Owner's Manual
56 | Smart Scripting
www.dell.com | support.dell.com
Smart Utils
When you install the Smart Scripting package, sample PERL and Python scripts are
installed in the /usr/pkg/scripts/sample_scripts directory. You can also create your
own customized scripts and store them anywhere on the switch, such as in a /f10/
flash_ scripts directory.
In addition, you can use the PERL, Python, and UNIX APIs to create scripts that
invoke function calls directly in the Dell Networking OS CLI that are collectively
called smart utils. These APIs provide a shortcut when writing scripts. For more
information, refer to the following sections:
• Using the PERL API
• Using the Python API
• Using UNIX Shell Scripting
For instructions about how to run a PERL, Python, or UNIX script from the Dell
Networking OS CLI, refer to Scheduling Time / Event-based Scripts.
For information about how to run a PERL, Python, or UNIX script directly from a
UNIX shell, refer to Running a Script from the UNIX Shell.
Creating a User Name and Password for Smart
Scripting
Before you run a script from the Dell Networking OS CLI, you may want to
configure an additional user name and password to be used only to run scripts on a
switch. Use the user name and password to log into a UNIX shell and apply the
read-write privileges assigned to the user name when a script is run with the
script
command from the Dell Networking OS CLI.
The user name is an optional keyword in the
script command (refer to Scheduling
Time / Event-based Scripts). To satisfy the requirements for a UNIX BSD login, the
username must be less than 16 characters. A username used to run scripts cannot
contain special characters.
Command Syntax Command Mode Task
username name password password CONFIGURATION Create an additional user name and password
that are used to log in to a shell and apply
read-write privileges when a script is run.