X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=snmp-mac-port;h=5ea2fafd27ab14a0beb92e6cbb395477271f6f2a;hb=f1352c38c5d9c8d8a630a6ad2c2d438b0ccfb491;hp=8ddf0436d8cfc5504e1118c6b943db193573b4f8;hpb=33e5818e8bc8905d3628cc32176f98711863e395;p=dell-switch diff --git a/snmp-mac-port b/snmp-mac-port index 8ddf043..5ea2faf 100755 --- a/snmp-mac-port +++ b/snmp-mac-port @@ -31,6 +31,12 @@ if [ ! -z "$1" ] ; then fi #( ls -d $log.last/* | sed 's/^.*\///' ; ./ips ) | sort -u | while read ip + +if [ ! -z "$1" ] ; then + snmp_walk $1 +fi + + ./sw-names | while read ip do echo "## $ip"