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
Version Description
9.3(0.0) Introduced on the S6000.
9.2(0.0) Introduced on the S4810, S4820T, Z9000, and MXL Switch.
Usage Information
This command removes the les from the dedicated folder /usr/pkg/ss-scripts on the switch.
script trigger-event
Congures the event that causes the script to run.
S4810, S4820T, S3048–ON, S3100 Series, S4048–ON,
S4048T–ON, S5000, S6000, S6000–ON, S6010–ON, S6100–
ON, Z9100–ON, Z9500, C9010, and MXL
Syntax
script trigger-event event-name {log-event {tag [tag—or—ex tags | tag-and-ex
tags | tag-regex tag]} [severity severity level]} | time-event {[start {at
date-time | after time}] [stop {at date-time | after time | count number}]
[interval time] [weekday day] [ month month] [monthday nday]} | cpu-usage
percentage | mem-usage percentage}
To delete the trigger event, use the no script trigger-event command.
Parameters
event-name
Enter the name of the script event to trigger.
log-event tag
tag—or—ex
tags
Enter the keywords log-event tag tag—or—ex then the pattern (tag) in the syslog
message to trigger the event if any pattern matches the syslog message. You can enter a
maximum of three tags. Separate each tag with spaces.
log-event tag
tag—and—ex
tags
Enter the keywords log-event tag tag-and-ex then the pattern (tag) in the
syslog message to trigger the event if all the patterns match the syslog message. You can
enter a maximum of three tags. Separate each tag with spaces.
log-event tag
tag—regex
tags
Enter the keywords log-event tag tag-regex then the regex pattern (tag) in the
syslog message to trigger the event based on the regular expression. You can enter only
one tag.
log-event
severity
severity level
Enter the keywords log-event severity then the severity level to dene a trigger
based on the syslog message severity level. Valid message security levels are from 1 to 6.
time-event
start at date-
time
Enter the keywords time-event start at then the time and date either in HH:MM
— MM/DD/YY format to begin the trigger event at the specied time and date or in
HH:MM format to begin the trigger event at the specied time on the same day (if the
mentioned time is elapsed, the event runs on the next day HH:MM mentioned). The date
can be the present or future date.
time-event
start after
time
Enter the keyword start after then the time in [HHHH:] MMMM format to begin the
trigger event after the specied time.
Smart Scripting CLI 105