Users Guide
for input1 in sys.argv[1:]:
print DellSmartUtils.DellCliConfig(["%s" %str("interface vlan %s" %str(input1)
) , "no shutdown"])
arg_val=""
for b in sys.argv[1:] :
arg_val=arg_val+" %s" %(b)
print DellSmartUtils.DellExec("loopback.zsh" , arg_val)
f = DellSmartUtils.DellCli("show version")
fh = open("/f10/flash/Dellcli.txt", "w")
fh.writelines(f)
fh.close()
For instructions about how to run a Perl, Python, or Ruby script from the Dell EMC Networking OS CLI, see Scheduling Time / Event-
based Scripts.
SQLite
The Dell EMC Networking OS supports the SQLite database engine as it is self-contained, serverless, zero-conguration, and transactional.
This database performs the following tasks:
• Stores all the periodically collected data and/or statistics from the Dell EMC Networking OS.
• Stores the Dell EMC Networking OS conguration les.
• Stores other script logs, updated, deleted, and transferred using this database.
Dell EMC Networking OS provides Perl, Python, Ruby, and TCLSH interfaces for SQLite. As a result, you can create custom scripts to
handle all the database information and operations.
NET SNMP Client
To manage the device using the simple network management protocol (SNMP) through scripts, the Dell EMC Networking OS supports the
NetSNMP client.
You can run scripts that use SNMP to manage the data center and devices from within the Dell EMC Networking OS. The Dell EMC
Networking OS provides Perl, Python, and Ruby interfaces for the NetSNMP client. To run the SNMP operations, use the tclsh exec
command. As a part of the NetSNMP client, the following utility applications are supported:
• snmpwalk
• snmpget
• snmpset
• snmpbulkget
• snmpbulkwalk
• snmpbulknext
NOTE
: SmartScripts package contains the Dell EMC Networking OS latest MIBs and the snmp.conf le. You can load the MIBs
while doing SNMP query as part of NET-SNMP client. The snmp.conf le is present in the /usr/pkg/share/snmp/
directory. For S3100 series, the snmp.conf le is present in the /f10/flash/pkg/usr/pkg/share/snmp/ directory.
Smart Scripting 79