Service Manual

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-configured
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.
Dell(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.
Dell#script stop script-name admin.pl
To resume suspended script, use the script resume command.
Dell#script resume job-id 0
To clear the supervised script that is in blocked state, use the script clear command.
Dell#script clear script-name args.pl
To clear all the watch blocked state scripts, use the script clear all command.
Dell#script clear all
To terminate a script that is running, use the script kill command.
Dell#script kill script-name admin.pl
To terminate all the scripts that are running, use the script kill all command.
Dell#script kill all
To unschedule an EXEC mode script, that is scheduled to run later, use the script unschedule
command.
Dell#script unschedule job-id 4
NOTE: For information about running a script directly from a UNIX shell without using the Dell
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 files in the script path. To show the detail output of the file, enter detail.
EXEC Privilege mode
show script file [detail]
Display a list of scripts that are scheduled or running. To display the detailed status of the scripts, enter
detail.
EXEC Privilege mode
show script process [detail]
Display a list of supervised scripts that are scheduled or running. To display the detailed status of the
supervised scripts, enter detail.
EXEC Privilege mode
Smart Scripting 100