projects
/
dell-switch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of github.com:ffzg/dell-switch
[dell-switch]
/
snmp-arp.sh
diff --git
a/snmp-arp.sh
b/snmp-arp.sh
index
b81b447
..
7cace7b
100755
(executable)
--- a/
snmp-arp.sh
+++ b/
snmp-arp.sh
@@
-1,2
+1,9
@@
+#!/bin/sh -xe
+
. ./snmp.conf
. ./snmp.conf
-snmpwalk -v2c -Cc -c $COMMUNITY $1 1.3.6.1.2.1.4.22 # (ipNetToMediaTable)
+
+log=/dev/shm/snmp-mac
+test -d $log || mkdir $log
+
+# (ipNetToMediaTable)
+snmpbulkwalk -v2c -Cc -c $COMMUNITY $1 1.3.6.1.2.1.4.22 | tee $log/$1