Service Manual

script trigger-event
Configure the event that causes the script to run.
S4810, S4820T, S3048–ON, S4048–ON, S5000, S6000, S6000–ON, Z9100–
ON, Z9500, 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 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 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.
106
Smart Scripting CLI