Concept Guide
Table Of Contents
- Dell EMC Networking Open Automation Guide 9.14.1.0 November 2018
- About this Guide
- Open Automation Framework
- Bare Metal Provisioning
- Introduction
- How it Works
- Prerequisites
- Industry Standard Upgrades with BMP
- BMP Process Overview
- BMP Operations
- Configure BMP
- BMP Commands and Examples
- System Boot and Set-up Behavior in BMP Mode
- BMP Mode - Boot and Set-up Behavior
- DHCP Offer Vendor-Specific Option for BMP
- DHCP Offer Relay Option 82
- Software Upgrade Using BMP
- Apply Configurations Using BMP Scripts
- Using the Post-configuration Script
- Using Auto-Execution Script - Normal Mode Only
- Timers in Pre–configuration and Post–configuration Scripts
- Script Examples
- BMP Operations on Servers Overview
- File Server Settings
- Domain Name Server Settings
- BMP MIB Support
- Bare Metal Provisioning CLI
- Open Management Infrastructure
- Puppet
- Smart Scripting
- Overview
- Download the Smart Scripting Package
- Dell EMC Environment Variables
- Dell EMC Proprietary Utilities
- Dell EMC SmartScript Utilities
- SQLite
- NET SNMP Client
- Limits on System Usage
- Supported UNIX Utilities
- Creating a Username and Password for Smart Scripting
- Logging in to a NetBSD UNIX Shell
- Downloading Scripts to a Switch
- Network File System (NFS)
- Setting a Search Path for Scripts
- Scheduling and Executing Scripts
- Running a Script from the UNIX Shell
- Running Scripts with User Privileges
- Smart Scripting CLI
- disable
- execute
- mount nfs
- package clear-all
- package install
- package uninstall
- script (run)
- script (stop/resume/clear/kill/unschedule)
- script event-handler
- script execute (EXEC mode)
- script execute
- script get
- script path
- script remove
- script trigger-event
- show packages
- show script
- start shell
- triggered-by
- switch script limit
- username (event handler)
- username
- SNMP MIBs
- Virtual Server Networking
- Virtual Server Networking CLI
- REST API
- HTTP and HTTPS
- XML
- Important Points to Remember
- REST Authentication
- Request Query Parameters
- Sample BGP Configurations
- HTTP Status Error Codes
- REST API — Protocol Data Unit (PDU) Structure
- Configurations
- Operational
- Operational Data for IPv6
- Management Information Base (MIB)
- IETF Interface Operations
- REST API Framework to Execute the CLIs
- Samples of the config-command
- Samples of the EXEC command
- Samples of the show-command
- REST API CLI
- Web Server

• 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