Owner's Manual
Smart Scripting | 69
The scripting framework is enabled with system resource usage protection. So, when
the system is running at a high cpu, memory or disk I/O, it automatically suspends all
the user-configured running scripts and also prevents scheduling new scripts further
till the system resource usage comes down to nominal levels. The following example
is used to suspend 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 diskIO, /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, refer to Running a Script from the UNIX Shell.