script-control
config>system
7210 SAS-D, 7210 SAS-Dxp, 7210 SAS-K 2F1C2T, 7210 SAS-K 2F6C4T, and 7210 SAS-K 3SFP+ 8C
Commands in this context configure command script parameters.
[no] script-policy policy-name [owner policy-owner]
config>system>script-control
config>system>cron>schedule
7210 SAS-D, 7210 SAS-Dxp, 7210 SAS-K 2F1C2T, 7210 SAS-K 2F6C4T, and 7210 SAS-K 3SFP+ 8C
This command is used to configure the CLI script policy.
Specifies the name of the policy. Can be 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 username. Commands in the scripts are not authorized against the owner. The configure system security cli-script authorization x cli-user command determines the user context against which commands in the scripts are authorized.
expire-time {seconds | forever}
config>system>script-control>script-policy
7210 SAS-D, 7210 SAS-Dxp, 7210 SAS-K 2F1C2T, 7210 SAS-K 2F6C4T, and 7210 SAS-K 3SFP+ 8C
This command configures the maximum amount 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.
Specifies to keep the run history status entry indefinitely.
lifetime {seconds | forever}
config>system>script-control>script-policy
7210 SAS-D, 7210 SAS-Dxp, 7210 SAS-K 2F1C2T, 7210 SAS-K 2F6C4T, and 7210 SAS-K 3SFP+ 8C
This command configures the maximum amount of time that a script may run.
lifetime 3600
Specifies the maximum amount of time that a script may run, in seconds.
Specifies to allow a script to run indefinitely.
max-completed unsigned
config>system>script-control>script-policy
7210 SAS-D, 7210 SAS-Dxp, 7210 SAS-K 2F1C2T, 7210 SAS-K 2F6C4T, and 7210 SAS-K 3SFP+ 8C
This command configures the maximum number of script run history status entries to keep.
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
7210 SAS-D, 7210 SAS-Dxp, 7210 SAS-K 2F1C2T, 7210 SAS-K 2F6C4T, and 7210 SAS-K 3SFP+ 8C
This command configures 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 do not execute if there is no result location defined.
no results
Specifies the location to send 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)
script script-name [owner script-owner]
no script
config>system>script-control>script-policy
config>system>script-control
7210 SAS-D, 7210 SAS-Dxp, 7210 SAS-K 2F1C2T, 7210 SAS-K 2F6C4T, and 7210 SAS-K 3SFP+ 8C
This command configures 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 username. Commands in the scripts are not authorized against the owner. The configure system security cli-script authorization x cli-user command determines the user context against which commands in the scripts are authorized.
location file-url
no location
config>system>script-control>script
7210 SAS-D, 7210 SAS-Dxp, 7210 SAS-K 2F1C2T, 7210 SAS-K 2F6C4T, and 7210 SAS-K 3SFP+ 8C
This command identifies 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.