From f1352c38c5d9c8d8a630a6ad2c2d438b0ccfb491 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 16 Mar 2022 10:07:07 +0100 Subject: [PATCH] refresh just single switch with param --- snmp-mac-port | 6 ++++++ 1 file changed, 6 insertions(+) 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" -- 2.20.1