Service Manual

Following snippet triggers the script once the cpu-usage reaches 30%:
Dell(conf)#script trigger-event event1 cpu-usage 30
Dell(conf)#script event-handler handler1
Dell(conf-screvt-handler)#execute Report_server.tcl args 4
Dell(conf-screvt-handler)#triggered-by event1
Dell(conf-screvt-handler)#no disable
Following snippet triggers a script of the system throws the SYSLOG like Oct 29 05:28:16: %RPM0-
P:CP %IFMGR-5-OSTATE_UP: Changed interface state to up: Ma 0/0:
Dell(conf)#script trigger-event Port_State_Event log-event tag tag-regex
"OSTATE.*up"
Dell(conf)#script event-handler handler1
Dell(conf)#execute Report_server.tcl args 4
Dell(conf)#triggered-by Port_State_Event
Dell(conf)#no disable
Following snippet triggers a script even if any one of the pattern matches:
Dell(conf)#script trigger-event Server_Reporter_Event log-event tag tag-or-ex
"Major alarm" "Minor alarm"
Dell(conf)#script event-handler handler1
Dell(conf-screvt-handler)#execute Report_server.tcl args 4
Dell(conf-screvt-handler)#triggered-by Server_Reporter_Event
Dell(conf-screvt-handler)#no disable
Managing Executed Scripts
Use any of the following commands to manage or control the scripts; for example, stop, kill, resume,
unscheduled, and clear.
Protect system resources by scheduling scripts to run when resources are within the threshold parameters
you configured. System resources include the switch CPU, memory, and file system. For example:
Dell#show script process detail
JobID Script Type Script Status Username Script Name Args
000 TRIGGER Running admin admin.pl
001 REPEAT Running user1 sample.zsh hello
002 CONF WATCH Watch Blocked user2 args.pl
003 EXEC Scheduled user2 args.pl hi
Dell#
The script status are determined as follows:
Scheduled — The script is scheduled to run.
Running — The script is currently running.
Stopped — The script is suspended.
Completed — The script run is successful and exits normally.
Watch Blocked — The script is monitored but terminates within ten minutes.
SSMGR-Stopped — Dell Networking OS stops the script by itself, if the cpu/disk-io/mem goes beyond
the threshold.
To monitor the running script, use the watch command.
Dell#show script watch details
JobID Script Type Script Status Reset Count Watch StartTime Script NameArgs
Smart Scripting 99