Wednesday, October 10, 2018

Find Serial Number by SNMPWALK

find snmp OID:

snmpwalk -l noAuthNoPriv -v 1 -c COMUNICATION_STRING -On IP_ADDRESS | grep SERIALNUM

snmpwalk -l noAuthNoPriv -v3 IP_ADDRESS -u user -On

find serial by OID:

snmpwalk -l noAuthNoPriv -v 1 -c COMUNICATION_STRING -On IP_ADDRESS .1.3.6.1.2.1.47.1.1.1.1.11.1

snmpwalk -l noAuthNoPriv -v3 IP_ADDRESS -u user -On .1.3.6.1.2.1.47.1.1.1.1.11.67108867

find by network range:

for i in {1..20}; do echo ip = 192.168.1.$i Serial: ; snmpwalk -l noAuthNoPriv -v 1 -c COMUNICATION_STRING -On 192.168.1.$i .1.3.6.1.2.1.47.1.1.1.1.11.1  | awk '{print $4}'; done

for i in {1..20}; do echo ip = 192.168.2.$i Serial: ; snmpwalk -l noAuthNoPriv -v3 192.168.2.$i -u user -On .1.3.6.1.2.1.47.1.1.1.1.11.67108867  | awk '{print $4}'; done

ALCATEL 6400 Serial OID No. :  .1.3.6.1.2.1.47.1.1.1.1.11
HUAWEI S5720 Serial OID No. :  .1.3.6.1.2.1.47.1.1.1.1.11.67108867

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

ALCATEL 6900

write memory copy running certified reload from working no rollback-timeout