Owner's Manual

96 | Smart Scripting CLI
www.dell.com | support.dell.com
To delete the trigger event, use the no script trigger-event command.
Parameters
Defaults
None
Command Modes
CONFIGURATION
Command
History
Usage
Information
The maximum number of events you can configure is 20. The maximum number of
allowed tag patterns in a log event trigger is three. The tags of the log events must be
an exact comparison. The three tags work in a logical OR operation format (match
with any one of the tags occurs).
Related
Commands
Example
The following examples define triggers for the subsequent log messages: link down
pattern, failure pattern, severity 1 logs, and 85% memory consumption.
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.
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.
Note: Before deleting a trigger event, the script must be unlinked from the event.
script execute triggered-by Configure the event that causes the script to execute.