Service Manual
Downloading Scripts to a Switch
Download a script to the switch using TFTP, FTP, or FLASH. Save the script to the dedicated script storage location, /usr/pkg/ss-
scripts. For S3100 series, the storage location is /f10/flash/pkg/ss-scripts.
Network File System (NFS)
A Network File System (NFS) allows you to mount the file systems over a network and locally interact with those file systems. To manage
the file systems, perform the following tasks:
1 Configure the folders to mount a remote directory in the local Dell Networking OS path through a network file system (NFS).
CONFIGURATION mode
mount nfs nfs-server-ip: remote_dir mount_name [username username | password password]
NOTE: The NFS server exportfs setting must include the insecure keyword.
root@administrator-X8DTU-6:/usr# exportfs -v
/home/admin 1.1.0.0/16
(rw, wdelay, insecure, root_squash, no_subtree_check, sec=sys, rw, root_squash,
no_all_squash)
2 Copy a script to a switch and the downloaded files are stored at /usr/pkg/ss-scripts.
EXEC
script get url
NOTE
: For S3100 series, the downloaded files are stored at /f10/flash/pkg/ss-scripts.
3 Remove a script from a switch.
EXEC
script remove {file_name file-name | all}
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, seeDell Proprietary Utilities.
Smart Scripting
83