Users Guide
• Display a list of scripts that are scheduled or running. To display the detailed status of the scripts, enter detail.
EXEC Privilege mode
show script process [detail]
• Display a list of supervised scripts that are scheduled or running. To display the detailed status of the supervised scripts, enter detail.
EXEC Privilege mode
show script watch [detail]
Running a Script from the UNIX Shell
You can run any Perl, Python, Ruby, and UNIX script stored on a switch from either the Dell EMC Networking OS CLI or directly from a
NetBSD shell on the switch.
For more information about running a script from the Dell EMC Networking OS CLI, see Scheduling Time / Event-based Scripts.
1 When you run a script from a UNIX shell, rst access the shell using the start shell command.
2 You are prompted to enter a user name and password congured with the username command.
For more information, see Creating a User Name and Password for Smart Scripting.
The following shows examples of how to execute a Perl, Python, and UNIX shell script directly from a NetBSD shell on Dell EMC
Networking OS.
• The rst bold line shows logging in to a UNIX shell.
• The second bold line lists the existing scripts.
• The third bold line executes the Perl script using either command
• The forth bold line executes the Python script using either command
DellEMC# start shell
4.4 BSD UNIX () (ttyp0)
login: admin
Password:
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California. All rights reserved.
$ cd /f10/flash/scripts
$ ls
createVlans.pl createVlans.py createVlans.sh
$ ./createVlans.pl 12 14
$ perl createVlans.pl 12 14
$ ./createVlans.py 12 14
$ python createVlans.py 12 14
$ ./createVlans.sh 12 14
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 EMC
Networking OS CLI.
To apply the associated read-write privileges while running a script from the Dell EMC Networking OS CLI, specify an optional username
(see Creating a Username and Password for Smart Scripting). If you do not specify a user name, the script runs with the privileges of the
congured user.
To run a Perl, Python, Ruby or UNIX script from the Dell EMC 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 Supported 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 lename.
CONFIGURATION mode
Smart Scripting
87