Execute Scripts for Deployment
Executing scripts allows you to register, unregister, and run scripts that add a set of instructions or commands to an asset or assets in an Axeda agent The scripts are later deployed and published. The advantage of registering a script is that you can do the following:
• Validate the instruction you want to run against an asset or assets.
• Run the script multiple times against the same asset or assets as required by using the script name you have registered.
Register Script
1. Select the Instruction-Based Package tab on the Create Package page.
2. Click Add Instruction. This will open a window where you can select the type of instruction that you want to deliver to the asset.
3. Select Register Script from the Instruction Type list.
4. Enter the absolute path to the file that you want to register in the Script file field.
|
If you get validation errors, check for spaces entered as a suffix or prefix in the file path.
|
5. Enter the script name you want to add as instruction in the Script name field.
6. Click Add to add the instruction to the instruction list on the grid in the Create Package page.
7. Click Save to save the package.
Run Script
1. Select the Instruction-Based Package tab on the Create Package page.
2. Click Add Instruction. This will open a window where you can select the type of instruction that you want to deliver to the asset.
3. Select Run Script from the Instruction Type list.
4. Enter the script name you want to run in the Script name field.
5. Click Add to add the instruction to the instruction list in the grid on the Create Package page.
6. Click Save to save the package.
Unregister Script
1. Select the Instruction-Based Package tab on the Create Package page.
2. Click Add Instruction. This will open a window where you can select the type of instruction that you want to deliver to the asset.
3. Select Unregister Script from the Instruction Type list.
4. Enter the script name you want to unregister in the Script name field.
5. Click Add to add the instruction to the instruction list in the grid on the Create Package page.
6. Click Save to save the package.