Users Guide

set fileId [open $filename "a+"]
switch $env(DELL_TRGEVT_TYPE) {
"TIME EVENT" {
set data "Sending Mail : The triggered Event $env(DELL_TRGEVT_NAME) is Time Event
- Reload Started"
}
"LOG EVENT" {
set data "Sending Mail : Triggered Event is $env(DELL_TRGEVT_NAME) BPDU Guard
Initiated , Port will recover once it is out of Error Disable State \n"
set data [concat $data "Attching the Log Message : $env(DELL_TRGEVT_LOGMSG)"]
}
"CPU" {
set data "Sending Mail : Triggered Event is $env(DELL_TRGEVT_NAME) CPU Limits
crossed - Sending CPU Usage Analyser Report. The CPU Percentage at which Script got Triggered
is $env(DELL_TRGEVT_CPU)"
}
"MEMORY" {
set data "Sending Mail : Triggered Event is $env(DELL_TRGEVT_NAME) Memory Limits
Crossed - Sending Memory Usage Analyser Report. The MEMORY Percentage at which Script got
Triggered is $env(DELL_TRGEVT_MEM)"
}
}
puts $fileId $data
close $fileId
Dell EMC Proprietary Utilities
Dell EMC Networking OS provides the following utilities which are unique and helpful while scripting.
1 clido
2 dellsh
3 dellsyslog
clido
To congure any command from the script directly without handling it through the telenet or ssh sessions, use the clido system
command.
Syntax: clido “CLI command”
Example
clido "configure terminal"
clido "interface vlan 10"
clido "no shutdown"
clido "end"
clido "show vlan"
NOTE
: clido maintains context upon execution in the system. To handle such cases, switch between dierent submodes
wherever required for the needed congurations.
The clido utility has no pagination, is always set to “terminal length 0”, and has Dell EMC Networking OS CLI privilege 15 enabled. It works
in the following modes:
Continuous mode (clido command) — use to retain the Dell EMC Networking OS CLI context.
Reset mode (clido —r command) — use to reset the CLI command to EXEC mode.
Smart Scripting
75