Management Center provides administrators with the ability to write scripts to perform routine tasks with devices. Applications deployed on the Integrated Secure Gateway (ISG) are managed from the ISG OS for tasks such as; upgrading, updating the license, model resizing, or updating the assigned network definition. The commands used to perform these tasks reference each application by unique values such as the application's name or serial number.
This article outlines how to utilize device attributes as substitution variables to write universal scripts that can be executed against any device.
The following sample scripts use the following device attributes.
Attribute Name | Description |
proxy_serial | Contains the serial number of the application. |
proxy_name | Contains the application name. |
;Update ISG Proxy License Script
;WARNING - This script will stop and start the application.
conf t
licensing view id ${device.attributes.proxy_serial}
licensing load id ${device.attributes.proxy_serial}
licensing view id ${device.attributes.proxy_serial}
applications
stop ${device.attributes.proxy_name}
start ${device.attributes.proxy_name}
view
;Upgrade ISG Proxy Script
;WARNING - This script will stop and start the application
;Set the <download URL> and <image ID> for the new code version.conf t
images
load <download url>
exit
applications
stop ${device.attributes.proxy_name}
edit ${device.attributes.proxy_name} image-id <image id>
start ${device.attributes.proxy_name}
view