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
With Smart Scripting, you don’t need to learn proprietary scripting languages; allowing for faster development and deployment of custom
scripts.
Smart Scripting also oers solutions in a UNIX environment useful to cloud administrators who are familiar with working in a UNIX shell.
Smart Script support in a UNIX environment allows you to invoke standard UNIX utilities like netstat, tcpdump, ls, chmod,
chown, and so on.
Smart Scripting supports running a script either from the Dell EMC Networking OS CLI or directly from a UNIX shell. You can run scripts
periodically, based on events, at boot up or after the switch is initialized. In addition, you can run scripts in the foreground or background
and display the progress of a script. If required, you can cancel, stop, or resume scripts.
Smart Scripting allows you to automate common management and maintenance tasks, such as:
• Building visibility and/or discovery programs.
• Creating custom logging.
• Reporting conguration information.
• Reporting switch memory usage, congured virtual local area networks (VLANs), and other operation and conguration parameters.
• Creating custom APIs for external applications to access the switch.
• Automating custom provisioning of network devices to support server virtualization.
For example, you can automate any of the following tasks:
• Monitor the conguration of switch ports to verify that no change occurs and generate an alarm if a conguration change is detected
as part of a cloud-computing deployment.
• Stage CLI command requests received from a customer. If a link aps, the command completion status is held in the script so you can
see when the management plane reconnects.
• Generate time-based reports to receive updates on network status on a periodic basis.
• Query an external, conguration management database on a remote server to retrieve information on port operation and recongure
switch ports based on the data received.
• Apply additional time-based access-control lists (ACLs) to limit after hours access.
• Monitor network requests; for example, nd a specied MAC address or generate a health-check heartbeat.
• Create a simple menu of options that a non-network administrator can use to create requests to send to the network.
Smart Scripting consolidates management data inside a switch and sends it to management consoles, databases, or applications —
reducing polling and network trac. For example, you can use a script as part of a cloud-computing deployment to detect when the
network has changed, query a database server for conguration management database (CMDB) information, and ultimately apply network
changes based on the data.
Download the Smart Scripting Package
Download the Smart Scripts package from the Dell EMC Networking OS website.
The Smart Script lenames are:
• SMARTSCRIPTS-LITE-A-9.14.1.0.tar.gz for S3100 Series.
• SMARTSCRIPTS-P-9.14.1.0.tar.gz for S4810, S4820T, and S5000.
• SMARTSCRIPTS-I-9.14.1.0.tar.gz for S6000, S6000–ON, S6010–ON, S6100–ON, Z9500, C9010, S3048–ON, S4048–ON,
S4048T–ON, and Z9100–ON.
• SMARTSCRIPTS-I-9.14.1.0.tar.gz for S5048F–ON.
• SMARTSCRIPTS-M-9.14.1.0.tar.gz for MXL Switch.
To download the SmartScript package to a dedicated location, use one of the following methods: TFTP, FTP, Flash, or NFSMount.
The Smart Scripting package includes the following les and functionality:
• Perl interpreter and associated les.
72
Smart Scripting