Service Manual
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 Proprietary Utilities
Dell Networking OS provides the following utilities which are unique and helpful while scripting.
1 clido
2 dellsh
3 dellsyslog
clido
To congure 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 dierent submodes
wherever required for the needed congurations.
The clido utility has no pagination, is always set to “terminal length 0”, and has Dell Networking OS CLI privilege 15 enabled. It works in the
following modes:
• Continuous mode (clido command) — use to retain the Dell Networking OS CLI context.
• Reset mode (clido —r command) — use to reset the CLI command to EXEC mode.
Sample script for clido in ZSH
#/usr/bin/zsh
clido –r "configure terminal" #usage of –r is to forcefully go to exec mode
clido "interface vlan 10"
clido "no shutdown"
clido “name MailServer_Vlan”
exit 0
dellsh
To parse a list of commands line by line in any given text le and congure it on the device, use the dellsh system command.
Syntax: dellsh <cli-file>
70
Smart Scripting