Service Manual
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,
seeDell 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.
The following example shows how you can schedule the script named sample.zsh to start after one
hour and 12 minutes from now and runs the script in the background:
Dell#script execute sample.zsh start 01:12 bg
• Schedule a script to run periodically.
Schedule scripts to run at a certain time, to be repeated, to stop at a specified time or by a string of
arguments. This script runs in the background.
CONFIGURATION mode
Smart Scripting 97