Setup Guide
Creating a Username and Password for Smart
Scripting
Before you run a script from the Dell EMC Networking OS CLI, you may want to congure an additional user name and password to use
only to run scripts on a switch.
Use the username and password to log in to a UNIX shell and apply the read-write privileges assigned to the user name when a script runs
with the script command from the Dell EMC Networking OS CLI.
The username is an optional keyword in the script command (see Scheduling Time / Event-based Scripts). To satisfy the requirements
for a UNIX BSD login, the username must be fewer than 16 characters. A username you use to run scripts cannot contain special
characters.
• Create an additional username and password that you use to log in to a shell and apply read-write privileges when you run a script.
CONFIGURATION mode
username name password password
Logging in to a NetBSD UNIX Shell
To log in to the NetBSD UNIX shell on a switch to directly use any of the UNIX commands described in Supported UNIX Utilities or to run a
script, use the start shell command.
You are prompted to enter a user name and password before you can access the shell. Login is performed using SSHv2.
• Access the shell to run UNIX commands or a script (see Running a Script from the UNIX Shell).
EXEC Privilege mode
start shell
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 Congure 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
Smart Scripting
81