Owner's Manual
Smart Scripting CLI | 89
Parameters
Defaults
None
Command Modes
EXEC
Command
History
Usage
Information
The files are removed from the dedicated folder /usr/pkg/ss-scripts on the switch.
script trigger-event
Z9000
MXL Switch
Configure the event that causes the script to execute.
Syntax
script trigger-event event-name {log-event {tag tag} | severity severity level |
time-event time {day | date} | cpu-usage percentage | mem-usage percentage}
To delete the trigger event, use the no script trigger-event command.
Parameters
file-name Enter the file name of the script to be removed from the switch.
all Enter the keywords all to remove all files from the dedicated folder
on the switch.
Version 9.3(0.0) Introduced on the S6000.
Version 9.2(0.0) Introduced on the S4810, S4820T, Z9000, and MXL Switch.
event-name Enter the name of the script event to be triggered.
log-event {tag tag} Enter the keywords log-event tag followed by the pattern (tag) in
the syslog message to define the trigger event based on the pattern
(tag) in the syslog. A maximum three tags can be given. Each tag
must be separated by spaces “ “.
log-event severity
severity level
Enter the keywords log-event severity followed by the severity
level to define a trigger even based on the syslog message severity
level. Valid message security levels are from 1 to 6.
time-event time day Enter the keywords time-event followed by the time in HH:MM
(hour-minute) format and then the day of the week as mon, tue,
wed, thu, fri, sat, sun, and all to define the trigger event based on
the time and day of the week. Scripts associated with this event runs
on a particular day at the specified time.
time-event time date Enter the keywords time-event followed by the time in HH:MM
format and then the date in MM/DD/YY format. The associated
script is triggered when the event occurs.
cpu-usage percentage Enter the keywords cpu-usage followed by a percentage value
between 20 and 90 to define the trigger event based on CPU usage.
mem-usage percentage Enter the keywords mem-usage followed by a percentage value
between 20 and 90 to define the trigger event based on memory
usage.