Service Manual
Running Scripts with User Privileges
Use these scripts to administer any Expect, PERL, Python, Ruby, Tcl, UNIX and ZSH shell scripts stored on
the switch from the Dell Networking OS CLI.
To apply the associated read-write privileges while running a script from the Dell Networking OS CLI,
specify an optional username (refer to XXXCreating a User Name and Password for Smart Scripting). If
you do not specify a user name, the script runs with the privileges of the configured user.
To run a Perl, Python, Ruby or UNIX script from the Dell Networking OS CLI, use the script command.
Enter the script name and directory path to start the script. The script can invoke any of the supported
UNIX utilities listed in XXXSupported UNIX Utilities. Enter the command multiple times to run more than
one script at the same time.
• Run an installed script. For script-path, enter the directory path and filename.
CONFIGURATION mode
script [username name] script-path [script-parameter script-parameter ...]
For script-path, enter the directory path and filename.
(Optional) For username name, enter the user name whose read-write privileges are applied when
the script runs. A username running scripts cannot contain special characters.
(Optional) For script-parameter, enter the values of up to three parameters to be applied when
the script runs. Enter a blank space between parameter values; for example: script username
admin /f10/flash/createVlans.py 1 2
90
Smart Scripting