EasyManuals Logo
Home>Dell>Server>FORCE10 Open Automation

Dell FORCE10 Open Automation User Manual

Dell FORCE10 Open Automation
98 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #21 background imageLoading...
Page #21 background image
Smart Scripting | 21
Running a Script from the FTOS CLI
You can run any PERL, Python, and UNIX script that is stored on the switch from the
FTOS CLI.
When you run a script from the FTOS CLI, you can specify an optional user name to
apply the associated read-write privileges when the script is run (see Creating a User
Name and Password for Smart Scripting). If you do not specify a user name, the
script is run with the privileges of the current user.
To run a PERL, Python, or UNIX script from the FTOS CLI, enter the
script
command. You must enter the script name and directory path to start the script. The
script can invoke any of the supported UNIX utilities listed in Table 3-2. You can
enter the command multiple times to run more than one script at the same time.
To stop a script that is running. enter the
no version of the script command; for
example:
no script admin.pl.
To display the scripts that are currently running, including the scripts you have
stopped, enter the
show running-config | grep command.
Figure 3-1. Starting and Stopping PERL and Python Scripts: Examples
Tip: For information on how to run a script directly from a UNIX shell without using
the FTOS CLI, see Running a Script from the UNIX Shell.
Command Syntax Command Mode Task
script [username name]
script-path [script-parameter
script-parameter ...]
CONFIGURATION Run an installed script; for examples, see Figure 3-1.
For script-path, enter the directory path and filename.
(Optional) For username name, enter the user name
whose read-write privileges will be applied when the script
is run. A username used to run scripts cannot contain
special characters.
(Optional) For script-parameter, enter the values of up to
three parameters to be applied when the script is run. Enter
a blank space between parameter values; for example:
script username admin /f10/flash/createVlans.py 1 2
f)# script /usr/pkg/scripts/sample_scripts/cmd-server.pl
f)# no script /usr/pkg/scripts/sample_scripts/cmd-server.pl
f)# script username admin /usr/pkg/scripts/sample_scripts/DisplayAlarms.py
f)# no script username admin /usr/pkg/scripts/sample_scripts/DisplayAlarms.py

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Dell FORCE10 Open Automation and is the answer not in the manual?

Dell FORCE10 Open Automation Specifications

General IconGeneral
BrandDell
ModelFORCE10 Open Automation
CategoryServer
LanguageEnglish

Related product manuals