To configure the username and passwords in the smartutils.cfg file that are used to
run PERL API scripts, do one of the following:
•
From the Web user interface, select
Options).
•
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 PERL API script:
•
From the FTOS CLI, use the
from the FTOS
•
From a UNIX shell, follow the procedure described in
UNIX
Shell.
Using the Python API
Use the information in this section to create a Python script using the Python API and
run the script on a Dell Force10 switch. For information on how to create and run a
PERL script using the PERL API, see
Creating a Python API Script
Use the information in this section to create a Python script to be run on a Dell
Force10 switch. For information on how to run a Python script from the FTOS CLI,
see
Running a Script from the FTOS
F10SmartUtils.py is the Python API library containing the supported functions
(described in
Table
operations on a switch. This file is downloaded with the Programmatic Management
package and is stored at /usr/pkg/scripts/smartutils.
You code FTOS API functions in a Python script as shown in the following example:
Settings > SmartUtils Credentials
command as described in
script
CLI.
Supported UNIX
CLI.
3-4), which can be used in a Python script to invoke FTOS
(see
Menu
Running a Script
Running a Script from the
Utilities.
Smart Scripting | 27
Need help?
Do you have a question about the FORCE10 Open Automation and is the answer not in the manual?
Questions and answers