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

Downloading Scripts to a Switch
Download a script to the switch using TFTP, FTP, or FLASH. Save the script to the dedicated script storage location, /usr/pkg/ss-
scripts. For S3100 series, the storage location is /f10/flash/pkg/ss-scripts.
Network File System (NFS)
A Network File System (NFS) allows you to mount the le systems over a network and locally interact with those le systems. To manage
the le systems, perform the following tasks:
1 Congure the folders to mount a remote directory in the local Dell EMC Networking OS path through a network le system (NFS).
CONFIGURATION mode
mount nfs nfs-server-ip: remote_dir mount_name [username username | password password]
NOTE: The NFS server exportfs setting must include the insecure keyword.
root@administrator-X8DTU-6:/usr# exportfs -v
/home/admin 1.1.0.0/16
(rw, wdelay, insecure, root_squash, no_subtree_check, sec=sys, rw, root_squash,
no_all_squash)
2 Copy a script to a switch and the downloaded les are stored at /usr/pkg/ss-scripts.
EXEC
script get url
NOTE
: For S3100 series, the downloaded les are stored at /f10/flash/pkg/ss-
scripts.
3 Remove a script from a switch.
EXEC
script remove {file_name file-name | all}
Setting a Search Path for Scripts
Create a path to the location where you stored the scripts. The Dell EMC Networking OS uses this path when searching for the scripts.
This way you do not have to specify a specic path when executing a script.
• Set a search path for a script in the Dell EMC Networking OS.
CONFIGURATION mode
script path path-name
The script path can contain a network le-system-mounted directory (dened in the mount nfs command). The path is added to a
script search list, allowing the system to search all locations for the script name. If the script is in multiple locations, the system uses the
rst instance of the script found.
Scheduling and Executing Scripts
Schedule scripts to execute periodically, based on an event and a specic time, such as at boot up or after you congure the switch.
Manage scripts to stop executing after a set time or to run at optimal times for critical resources, such as switch CPU load or packet loss.
To access the Dell EMC Networking OS CLI via scripts, the Dell EMC Networking OS provides a utility called clido, which is also a system
command. For more information about the properties of clido, seeDell Proprietary Utilities.
Smart Scripting
83