Service Manual
Version Description
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
Configures the event that causes the script to run.
S4810, S4820T, S3048–ON, S3100 Series, S4048–ON,
S4048T–ON, S5000, S6000, S6000–ON, S6010–ON, S6100–
ON, Z9100–ON, Z9500, C9010, and MXL
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 with spaces.
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 with spaces.
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 on the next day HH:MM mentioned). The date
can be the present or future date.
time-event
start after
time
Enter the keyword start after then the time in [HHHH:] MMMM format to begin
the trigger event after the specified time.
Smart Scripting CLI 105