Administrator Guide
clido
To configure any command on the device directly without handling it via 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 different submodes wherever required for the needed configurations.
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:
• Continues mode (clido command) — use to retain the Dell Networking OS context.
• Reset mode (clido —r command)
— use to reset the CLI command to its original context.
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 file and configure it on the device, use the
dellsh system command.
Syntax: dellsh <cli-file>
Sample script for dellsh in Python
#! /usr/pkg/bin/python
import os
os.system("dellsh '/usr/pkg/ss-scripts/dellsh.txt'")
Dellsh can also be used as
Dell#script execute dellsh args /usr/pkg/ss-scripts/dellsh.txt
Sample dellsh parser file
#! /usr/bin/dellsh
configure terminal
interface vlan 10
Smart Scripting
79