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

for input1 in sys.argv[1:]:
print DellSmartUtils.DellCliConfig(["%s" %str("interface vlan %s" %str(input1)
) , "no shutdown"])
arg_val=""
for b in sys.argv[1:] :
arg_val=arg_val+" %s" %(b)
print DellSmartUtils.DellExec("loopback.zsh" , arg_val)
f = DellSmartUtils.DellCli("show version")
fh = open("/f10/flash/Dellcli.txt", "w")
fh.writelines(f)
fh.close()
For instructions about how to run a Perl, Python, or Ruby script from the Dell EMC Networking OS CLI, see Scheduling Time / Event-
based Scripts.
SQLite
The Dell EMC Networking OS supports the SQLite database engine as it is self-contained, serverless, zero-conguration, and transactional.
This database performs the following tasks:
• Stores all the periodically collected data and/or statistics from the Dell EMC Networking OS.
• Stores the Dell EMC Networking OS conguration les.
• Stores other script logs, updated, deleted, and transferred using this database.
Dell EMC Networking OS provides Perl, Python, Ruby, and TCLSH interfaces for SQLite. As a result, you can create custom scripts to
handle all the database information and operations.
NET SNMP Client
To manage the device using the Simple Network Management Protocol (SNMP) through scripts, the Dell EMC Networking OS supports
the NetSNMP client.
You can run scripts that use SNMP to manage the data center and devices from within the Dell EMC Networking OS. The Dell EMC
Networking OS provides Perl, Python, and Ruby interfaces for the NetSNMP client. To run the SNMP operations, use the tclsh exec
command. As a part of the NetSNMP client, the following utility applications are supported:
• snmpwalk
• snmpget
• snmpset
• snmpbulkget
• snmpbulkwalk
• snmpbulknext
NOTE
: SNMP MIB package contains the Dell EMC Networking OS latest MIBs and the snmp.conf le. You can load the MIBs
while doing SNMP query as part of NET-SNMP client. The snmp.conf le is present in the /usr/pkg/share/snmp/
directory. For S3100 series, the snmp.conf le is present in the /f10/flash/pkg/usr/pkg/share/snmp/ directory.
Smart Scripting 79