script-control
config>system
Supported on all 7210 SAS platforms as described in this document, including platforms configured in the access-uplink operating mode
Commands in this context configure the script and script parameters.
script script-name [owner script-owner]
no script
config>system>script-control>script-policy
config>system>script-control
Supported on all 7210 SAS platforms as described in this document, including platforms configured in the access-uplink operating mode
This command is used to configure a script to be run.
The no form of this command removes the script.
no script
Specifies the name of the script, up to 32 characters.
Specifies the name of the script owner, up to 32 characters.
The owner is an arbitrary name and not necessarily a user name. Commands in the scripts are not authorized against the owner.
location file-url
no location
config>system>script-control>script
Supported on all 7210 SAS platforms as described in this document, including platforms configured in the access-uplink operating mode
This command is used to identify the location of a script to be scheduled.
The no form of this command removes the location.
no location
Specifies the location to search for scripts.
[no] script-policy policy-name [owner policy-owner]
config>system>script-control
config>system>cron>schedule
Supported on all 7210 SAS platforms as described in this document, including platforms configured in the access-uplink operating mode
Commands in this context configure script policy parameters for a script.
Specifies the name of the policy, up to 32 characters.
Specifies the name of the policy owner, up to 32 characters.
The owner is an arbitrary name and not necessarily a user name. Commands in the scripts are not authorized against the owner.
expire-time {seconds | forever}
config>system>script-control>script-policy
Supported on all 7210 SAS platforms as described in this document, including platforms configured in the access-uplink operating mode
This command is used to configure the maximum length of time to keep the run history status entry from a script run.
expire-time 3600
Specifies the time to keep the run history status entry, in seconds.
Keyword to run the history status entry indefinitely.
lifetime {seconds | forever}
config>system>script-control>script-policy
Supported on all 7210 SAS platforms as described in this document, including platforms configured in the access-uplink operating mode
This command is used to configure the maximum length of time that a script may run.
lifetime 3600
Specifies the maximum amount of time that a script may run, in seconds.
Keyword to allow a script to run indefinitely.
max-completed unsigned
config>system>script-control>script-policy
Supported on all 7210 SAS platforms as described in this document, including platforms configured in the access-uplink operating mode
This command enables user to configure the maximum number of scripts to keep the run history status entries.
max-completed 1
Specifies the maximum number of script run history status entries to keep.
results file-url
no results
config>system>script-control>script-policy
Supported on all 7210 SAS platforms as described in this document, including platforms configured in the access-uplink operating mode
This command specifies the location where the system writes the output of an event script’s execution.
The no form of this command removes the file location from the configuration. Scripts will not execute if there is no result location defined.
no results
Specifies the location to send the CLI output from script runs. The file-url is a location, directory, and filename prefix to which a data and timestamp suffix is added when the results files are created during a script run, as follows:
file-url_YYYYMMDD-hhmmss.uuuuuu.out
where: YYYYMMDD — date
hhmmss — hours, minutes, and seconds
uuuuuu — microseconds (padded to 6 characters with leading zeros)