fetch all switches in parallel
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 20 Mar 2022 11:27:27 +0000 (12:27 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 20 Mar 2022 11:27:27 +0000 (12:27 +0100)
snmp-mac-port

index 5ea2faf..7c08066 100755 (executable)
@@ -36,6 +36,9 @@ if [ ! -z "$1" ] ; then
        snmp_walk $1
 fi
 
+# fetch all switches in parallel
+./sw-names | parallel -j 70 $0
+exit 0
 
 ./sw-names | while read ip
 do