Users Guide

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 le systems over a network and locally interact with those le systems. To manage
the le systems, perform the following tasks:
1 Congure the folders to mount a remote directory in the local Dell EMC Networking OS path through a network le 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 les are stored at /usr/pkg/ss-scripts.
EXEC
script get url
NOTE
: For S3100 series, the downloaded les 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 EMC Networking OS uses this path when searching for the scripts.
This way you do not have to specify a specic path when executing a script.
Set a search path for a script in the Dell EMC Networking OS.
CONFIGURATION mode
script path path-name
The script path can contain a network le-system-mounted directory (dened 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
rst instance of the script found.
Scheduling and Executing Scripts
Schedule scripts to execute periodically, based on an event and a specic time, such as at boot up or after you congure 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 EMC Networking OS CLI via scripts, the Dell EMC 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