Purpose
The save_job_scripts command saves all the scripts in the scripts file to the daemon, which does not verify the scripts. Therefore, ensure the scripts' accuracy before saving.
Parameters
See Parameter Order.
- broker.port
- [Optional] You may enter a broker port to overwrite the default value specified in the commandline.properties file in order to connect to a different ActiveMQ server (and therefore a different daemon) at runtime.
- broker.url
- [Optional] You may enter a broker URL to overwrite the default value specified in the commandline.properties file in order to connect to a different ActiveMQ server (and therefore a different daemon) at runtime.
- dir
- Input directory for the job scripts file referenced by the command description XML.
- filename.xml
- Name of the job scripts XML file.
- job_name
- Name of the job to be saved.
- security_password
- [Optional] Password for the super user or authorized Viewpoint user.
- security_password_encrypted
- [Optional] Encrypted password for the super user.
- security_username
- [Optional] User ID of the super user or authorized Viewpoint user. The user ID of the super user is dmcl_admin and cannot be changed.
Usage Notes
Scripts have timestamps that are used to detect whether a newer version of the script has already been saved. This avoids conflicts with simultaneous editing. If a newer version of the script is detected, a command prompt gives the choice to overwrite the script or update to the latest version.
XML File Example
For the save_job_scripts command, type datamove save_job_scripts -f <job_name>_script.xml. For example, to save all job scripts for the job 12315DFHJKS that are specified in 12315DFHJKS_script.xml, type datamove save_job_scripts -f 12315DFHJKS_script.xml.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <dmSaveJobScript> <job_name>12315DFHJKS</job_name> <dir>/home/datamover/scripts</dir> <plan> <step> <task id="3"> <timestamp>Fri Jul 10 21:52:55 PDT 2009</timestamp> <archive_script>archiveScript_3</archive_script> <copy_script>copyScript_3</copy_script> </task> </step> </plan> </dmSaveJobScript>