Setup Guide

003 EXEC Scheduled user2 args.pl hi
DellEMC#
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 EMC 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.
DellEMC#show script watch details
JobID Script Type Script Status Reset Count Watch StartTime Script NameArgs Username
002 CONF WATCH Watch Blocked 3 Tue Dec 3 18:04:28 2013 args.pl
user2
To control the script that is running based on the system resources such as the CPU, memory or disk I/O usage, use the switch
script limit cpu
<percentage> memory <percentage> diskio <percentage> command.
The scripting framework is enabled with system resource usage protection. Therefore, when the system is running at a high CPU,
memory or disk I/O, the program automatically suspends all the user-congured running scripts and also prevents scheduling new
scripts until the system resource usage returns to nominal levels. The following example suspends the scripts when the CPU crosses
70, memory usage is above 60, or the disk I/O is greater than 70.
DellEMC(conf)#switch script limit cpu 70 mem 60 diskio 70
NOTE
: For disk I/O, the /usr/pkg partition disk usage is considered.
To suspend a currently running script, use the script stop command.
DellEMC#script stop script-name admin.pl
To resume suspended script, use the script resume command.
DellEMC#script resume job-id 0
To clear the supervised script that is in blocked state, use the script clear command.
DellEMC#script clear script-name args.pl
To clear all the watch blocked state scripts, use the script clear all command.
DellEMC#script clear all
To terminate a script that is running, use the script kill command.
DellEMC#script kill script-name admin.pl
To terminate all the scripts that are running, use the script kill all command.
DellEMC#script kill all
To unschedule an EXEC mode script, that is scheduled to run later, use the script unschedule command.
DellEMC#script unschedule job-id 4
NOTE
: For information about running a script directly from a UNIX shell without using the Dell EMC Networking OS CLI,
see Running a Script from the UNIX Shell.
Viewing Script Information
To view information on currently stored, scheduled, and running SmartScripts, use the following commands.
Display a list of stored les in the script path. To show the detail output of the le, enter detail.
EXEC Privilege mode
show script file [detail]
86
Smart Scripting