Administrator Guide
Version Description
9.5(0.1) Introduced on the Z9500.
9.3(0.0) Introduced on the S6000.
9.2(0.0) Introduced on the S4810, S4820T, Z9000, and MXL Switch.
Usage
Information
This command removes the files from the dedicated folder /usr/pkg/ss-
scripts
on the switch.
script trigger-event
Configure the event that causes the script to execute.
S4810, S4820T, S5000, S6000, Z9000, Z9500 and MXL Switch
Syntax
script trigger-event event-name {log-event {tag [tag—or—ex tags
| tag-and-ex tags | tag-regex tag]} [severity severity level]}
| time-event {[start {at date-time | after time}] [stop {at
date-time | after time | count number}] [interval time]
[weekday day] [ month month] [monthday nday]} | cpu-usage
percentage | mem-usage percentage}
To delete the trigger event, use the no script trigger-event command.
Parameters
event-name
Enter the name of the script event to trigger.
log-event
tag tag—or—
ex tags
Enter the keywords log-event tag tag—or—ex then the
pattern (tag) in the syslog message to trigger the event if any
pattern matches the syslog message. You can enter a
maximum of three tags. Separate each tag by commas.
log-event
tag tag—and—
ex tags
Enter the keywords log-event tag tag-and-ex then the
pattern (tag) in the syslog message to trigger the event if all
the patterns match the syslog message. You can enter a
maximum of three tags. Separate each tag by commas.
log-event
tag tag—
regex tags
Enter the keywords log-event tag tag-regex then the
regex pattern (tag) in the syslog message to trigger the event
based on the regular expression. You can enter only one tag.
log-event
severity
severity
level
Enter the keywords log-event severity then the severity
level to define a trigger based on the syslog message severity
level. Valid message security levels are from 1 to 6.
time-event
start at
date-time
Enter the keywords time-event start at then the time
and date either in HH:MM—MM/DD/YY format to begin the
trigger event at the specified time and date or in HH:MM
format to begin the trigger event at the specified time on the
same day (if the mentioned time is elapsed, the event runs
Smart Scripting CLI
91