Owner's Manual

Smart Scripting | 79
The smartutils.cfg configuration file is used by the Programmatic Interface package.
It contains the user name and passwords required to log on to a switch via telnet and
access the CLI to execute the function calls in a UNIX API script. The smartutils.cfg
file downloads with the Programmatic Interface package and is stored at /usr/pkg/
scripts/smartutils.
To configure the username and passwords located in the smartutils.cfg file that are
used to run UNIX API scripts, do one of the following:
From a UNIX shell, use the UNIX text editor to open the smartutils.cfg file, enter
a user name and password, and save the file.
To run a UNIX API script:
From the Dell Networking OS CLI, use the
script command described in
Scheduling Time / Event-based Scripts.
From a UNIX shell, follow the procedure described in Running a Script from the
UNIX Shell.
Running Scripts with User Privileges
Use these scripts to administer any Expect, PERL, Python, 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 Creating 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.
Note: Use the user name and passwords contained in the smartutils.cfg file to log
into and run only the scripts created using the PERL, Python, and UNIX APIs
described in this chapter. A username used to run scripts cannot contain special
characters.