Service Manual

Setting a Search Path for Scripts
Create a path to the location where you stored the scripts. The Dell Networking OS uses this path when
searching for the scripts. This way you do not have to specify a specific path when executing a script.
Set a search path for a script in the Dell Networking OS.
CONFIGURATION mode
script path path-name
The script path can contain a network file-system-mounted directory (defined in the mount nfs
command). The path is added to a script search list, allowing the system to search all locations for the
script name. If the script is in multiple locations, the system uses the first instance of the script found.
Scheduling and Executing Scripts
Schedule scripts to execute periodically, based on an event and a specific time, such as at boot up or
after you configure the switch.
Manage scripts to stop executing after a set time or to run at optimal times for critical resources, such as
switch CPU load or packet loss.
To access the Dell Networking OS CLI via scripts, the Dell Networking OS provides a utility called clido,
which is also a system command. For more information about the properties of clido, refer to Dell
Proprietary Utilities.
Script Scheduler from EXEC mode
To trigger scripts to run periodically or based on an event, use the following commands.
Schedule a script to run in EXEC mode.
Schedule a script to execute at a specific time and optionally stop after a specified time. By default,
the script runs in the foreground. To run the script in the background, use the bg parameter.
EXEC mode
script execute script-name [start {at | date-time | after time}] [stop {at
date-time | after time}] [bg] [arguments arg[..arg]] [username username]
Following example shows the script execution at 22:22 10/30/14 (MM/DD/YY) and stops after 1 hour
and runs the script in the background:
Dell#script execute collect_log.py start at 22:22-10/30/14 stop after
0001:0000 args "Te 0/5" bg
Scheduled scripts can be unconfigured/stopped/killed/resumed only by the configured user (test)
or higher privileged user.
In general, the Privilege level 15 (highest privilege user in Dell Networking OS CLI) user can
configure/reconfigure the explicit username in script execute CLI.
Smart Scripting
85