Service Manual

script (run)
Runs an Expect, Perl, Python, Ruby, Tcl, UNIX, and ZSH shell script from the Dell Networking OS CLI.
S4810, S4820T, S3048–ON, S3100 Series,
S4048–ON, S5000, S6000, S6000–ON, S6100–
ON, Z9100–ON, Z9500, C9010, and MXL
Syntax
script [username name] script-name [script-parameter script-
parameter ...]
Parameters
username name
(Optional) Enter the user name with read-write privileges. A
username cannot contain special characters.
script-name
Enter the name of the script to run, including the directory path
and filename; for example:
Perl script: /usr/pkg/scripts/sample_scripts/cmd-
server.pl. For S3100 series, the path and filename
is
/f10/flash/pkg/usr/pkg/scripts/
sample_scripts/cmd-server.pl
Python script: /usr/pkg/scripts/sample_scripts/
DisplayAlarms.py
. For S3100 series, the path and
filename is/f10/flash/pkg/usr/pkg/scripts/
sample_scripts/DisplayAlarms.py
Ruby script: /usr/pkg/ss-scripts/
interface_monitor.rb
. For S3100 series, the path and
filename is/f10/flash/pkg/ss-scripts/
interface_monitor.rb
UNIX shell script: /usr/pkg/home/admin/test.sh
script-
parameter
(Optional) Enter the values of up to three parameters to apply
when the script runs. Enter a blank space between parameter
values. For example, script username admin /f10/flash/
createVlans.py 1 2.
Defaults none
Command Modes CONFIGURATION
Command History
This guide is platform-specific. For command information about other platforms, see
the relevant Dell Networking OS Command Line Reference Guide.
The following is a list of the Dell Networking OS version history for this command.
Smart Scripting CLI 111