#!/bin/sh
OLDOID=””
NEWOID=”0″
count=0
while [ “$OLDOID” != “$NEWOID” ];
do
OLDOID=$NEWOID
bin/snmpgetnext -O s -v 2c -c public 192.168.0.1 $OLDOID
NEWOID=`bin/snmpget…
转载请注明:爱开源 » 遍历设备OID的脚本
#!/bin/sh
OLDOID=””
NEWOID=”0″
count=0
while [ “$OLDOID” != “$NEWOID” ];
do
OLDOID=$NEWOID
bin/snmpgetnext -O s -v 2c -c public 192.168.0.1 $OLDOID
NEWOID=`bin/snmpget…
转载请注明:爱开源 » 遍历设备OID的脚本