Administrator Guide
no shutdown
exit
interface loopback 10
ip address 10.10.10.10/24
end
do show vlan
show running | grep loopback
dellsyslog
A Dell proprietary utility which helps you in generating custom SYSLOGS with the configured severity.
Syntax: dellsyslog [-s <emergency|alert|critical|error|warning|notify|infor|debug|
0–7>] {syslog message}
The severity level maps as follows:
• 0 — emergency
• 1 — alert
• 2 — critical
• 3 — error
• 4 — warning
• 5 — notify
• 6 — infor
• 7 — debug
The default severity level is 6.
Sample script for dellsyslog in Python
#! /usr/pkg/bin/python
import sys
import os
print sys.argv[1]
os.system("dellsyslog -s %s 'The Syslog is generated by python'" %
(sys.argv[1]))
Sample script for dellsyslog in Perl
#! /usr/pkg/bin/perl
#system("dellsyslog" , "-s $ARGV[0] 'The Syslog is generated by Perl script'")
`dellsyslog -s $ARGV[0] "The Syslog is generated by Perl script"`
Dell SmartScript Utilities
Dell SmartScript utility is an easy API handler for scripting. When you install the Smart Scripting package,
sample Perl, Python, and Ruby scripts install in the /usr/pkg/scripts/sample_scripts directory.
You can also create your own customized scripts and store them anywhere on the switch, such as in
a /f10/flash_scripts directory.
In addition, Dell SmartScript Utils uses the Perl, Python, and Ruby APIs to create scripts that invoke
function calls directly in the Dell Networking OS commands.
80
Smart Scripting