Few days back I posted article about running Deployment registry in SAS Server running in Linux based OS. This tutorial is about running it in Windows OS.
Deployment registry information is useful if you need to find whether any hotfix has been installed and the hotfix number. It also give information about the all software components installed in your system. Running deployment registry in Windows OS (client machine) is bit trickier because it is not managed by experienced admins.
To run deployment registry open command prompt and use below command:
"C:\Program Files\SASHome2\SASPrivateJavaRuntimeEnvironment\9.4\jre\bin\java" -jar "C:\Program Files\SASHome2\deploymntreg\sas.tools.viewregistry.jar"
sas.tools.viewregistry.jar is the Java binary file which on execution create a text and html output on the same folder.
I have SAS 93 and SAS 94 client installed in my machine, so my SAS 9.4 clients are under SASHome2. SAS home folder depends on your system.
Deployment registry information is useful if you need to find whether any hotfix has been installed and the hotfix number. It also give information about the all software components installed in your system. Running deployment registry in Windows OS (client machine) is bit trickier because it is not managed by experienced admins.
To run deployment registry open command prompt and use below command:
"C:\Program Files\SASHome2\SASPrivateJavaRuntimeEnvironment\9.4\jre\bin\java" -jar "C:\Program Files\SASHome2\deploymntreg\sas.tools.viewregistry.jar"
sas.tools.viewregistry.jar is the Java binary file which on execution create a text and html output on the same folder.
I have SAS 93 and SAS 94 client installed in my machine, so my SAS 9.4 clients are under SASHome2. SAS home folder depends on your system.
Possible Error message:
java.io.FileNotFoundException: C:\Program Files\SASHome\deploymntreg\registry.lck (Access is denied)
java.io.FileNotFoundException: C:\Program Files\SASHome\deploymntreg\registry.lck (Access is denied)
Exception in thread "main" java.lang.NullPointerException
at com.sas.tools.viewregistry.Report.collectRegistryData(Report.java:106
)
at com.sas.tools.viewregistry.Report.main(Report.java:73)
It is clear that I don't have access to the registry.lck file to my SAS deployment. You need have access to that file.
Right click on registry.lck file and click properties. In details check for Attributes. It should be RA. If it is only A then you won't have access even if you are a admin user. To change the attribute to RA, right click registry.lck file and click properties. In general tab check READ ONLY next to attributes.
Alternatively, you can provide permission to your user-id for the whole directory C:\Program Files\SASHome\deploymntreg.
Comments
Post a Comment