Administrator Guide

Smart Scripting CLI | 87
Syntax
script execute script-name start {now | time-date | time} [stop {at time-date | after
time}] [args arguments] [username username] [bg]
To cancel, use the script unschedule command.
Parameters
Defaults
The script runs in the foreground.
Command Modes
EXEC
Command
History
Usage
Information
All times selected follow the system time of the switch. The maximum number of
scripts to configure is 100. An error message displays when you exceed the limit.
script execute watch (EXEC mode)
,
S5000, Z9000,
Z9500, MXL
Switch
Monitor or supervise the scheduled scripts.
script-name Enter the name of the script to be scheduled for execution.
start now Enter the keywords start now to begin executing the script.
start time-date Enter the keywords start time-date with the time and date in
HH:MM format to begin executing the script at a specific time. The
date can be the present or a future date.
start time Enter the keywords start with the time in HH:MM format to begin
executing the script after a set time.
stop at time-date Enter the keywords stop at with the time and date in HH:MM-MM/
DD/YY format to stop executing the script. The date must be a future
date.
stop after time Enter the keywords stop after followed by the time in HH:MM
format to stop executing the script.
args arguments Enter the keyword args followed by the arguments to be scripted.
The maximum length is 64 characters. The arguments can be any
number of words within quotes (“) and separated by a space.
username username Enter the username to be used when the script executes. The
maximum length is 16 characters. The default username is the user
configuring the CLI.
bg Enter the keyword bg to schedule scripts to run in the background.
Version 9.6(0.0) Introduced on the S5000.
Version 9.5(0.1) Introduced on the Z9500.
Version 9.3(0.0) Introduced on the S6000.
Version 9.2(0.0) Introduced on the S4810, S4820T, Z9000, and MXL Switch.