In my previous post I talked about backup facility in SAS 9.4. If you read that post, you might now know that SAS 9.4 uses Deployment Backup and Recovery tool for backup and restore. Also I have mentioned that it is a command line tool. Lets see how to use this tool to list of scheduled backup in the server running SAS 9.4.
As backup is routine/planned activity you will schedule it. Most of the time you just need to know when the backup activity is scheduled.
1. Verify that SAS Deployment agent is running. If not, then navigate to installation directory by issuing below command
cd /<installation directory>/SASDeploymentManager/9.4
Command to open SAS Deployment Manager and start SAS Deployment Agent
./sasadm.sh
2. Once you started the SAS Deployment Agent service you need to locate the installation file of Deployment Backup Tool. It should be in installation directory.
cd /<installation directory>/SASPlatformObjectFramework/9.4/tools/admin
3. Run the sas-list-backup-schedule command.
Example:
./sas-list-backup-schedule -host localhost -port 80 -user farustrix -password Brbad123$
In Windows:
1. You can verify whether SAS Deployment agent is running in Windows Services. If the service is stopped, then start it.
2. This step is same as Linux, open cmd (right click and run as administrator) and navigate to the location where Deployment Backup tool is installed. The command will be:
D: cd \Program Files\<home directory>\SASPlatformObjectFramework\9.4\tools\admin
3. Run the sas-list-backup-schedule command.
sas-list-backup-schedule.exe -host localhost -port 80 -user farustrix -password Brbad123$
Instead of providing options like host, port etc you can save all the contents in a file and run the command using profile option. But it means you will be specifying the password in that file. Anyone who has access to that file can get unrestricted user password.
Image Source: support.sas.com
As backup is routine/planned activity you will schedule it. Most of the time you just need to know when the backup activity is scheduled.
Command to get scheduled backup:
- In Windows - sas-list-backup-schedule.exe -host <hostname> -port <port number> -user <username> -password <password of the user>
- In Linux - ./sas-list-backup-schedule -host <hostname> -port <port number> -user <username> -password <password of the user>
How to run this command?
In Linux:1. Verify that SAS Deployment agent is running. If not, then navigate to installation directory by issuing below command
cd /<installation directory>/SASDeploymentManager/9.4
Command to open SAS Deployment Manager and start SAS Deployment Agent
./sasadm.sh
2. Once you started the SAS Deployment Agent service you need to locate the installation file of Deployment Backup Tool. It should be in installation directory.
cd /<installation directory>/SASPlatformObjectFramework/9.4/tools/admin
3. Run the sas-list-backup-schedule command.
Example:
./sas-list-backup-schedule -host localhost -port 80 -user farustrix -password Brbad123$
In Windows:
1. You can verify whether SAS Deployment agent is running in Windows Services. If the service is stopped, then start it.
2. This step is same as Linux, open cmd (right click and run as administrator) and navigate to the location where Deployment Backup tool is installed. The command will be:
D: cd \Program Files\<home directory>\SASPlatformObjectFramework\9.4\tools\admin
3. Run the sas-list-backup-schedule command.
sas-list-backup-schedule.exe -host localhost -port 80 -user farustrix -password Brbad123$
What does this command mean?
- sas-list-backup-schedule - It is a batch command which displays current backup schedule.
- host - This option is used to specify the hostname of SAS Web Server. If there is no SAS Web Server in your environment then specify the hostaname of Web Application Server.
- port - Used to specify the port number where SAS Web Server or Web Application Server lsiten.
- user - Give username of unristricted user.
- password - Password for the user
Instead of providing options like host, port etc you can save all the contents in a file and run the command using profile option. But it means you will be specifying the password in that file. Anyone who has access to that file can get unrestricted user password.
Image Source: support.sas.com
Comments
Post a Comment