SNMP

From Braindisconnect
Jump to navigationJump to search

Cisco

Device Information

snmpget -v 2c -c <SNMP Comm String> <Hostname or IP> 1.3.6.1.2.1.1.1.0

Hardware Information

snmptable -v2c -c <SNMP Comm String> -m +/usr/share/mibs/ietf/ENTITY-MIB \
-Cf , -Cb <Hostname or IP> 1.3.6.1.2.1.47.1.1.1 | sed 's/, / /g' | \
cut -s -d ',' -f 1,4,6,7,8,9,10,11,12

Just the Serials

snmpwalk -v2c -c <SNMP Comm String> <Hostname or IP> 1.3.6.1.2.1.47.1.1.1.1.11

Juniper

Device Information

snmpget -v 2c -c <SNMP Comm String> <Hostname or IP> 1.3.6.1.2.1.1.1.0

Juniper Chassis Info

snmpwalk -v 2c -c <SNMP Comm String> <Hostname or IP> 1.3.6.1.4.1.2636.3.1

Juniper Chassis Serial Number

snmpwalk -v 2c -c <SNMP Comm String> <Hostname or IP> 1.3.6.1.4.1.2636.3.1.3

Juniper OS Ver

snmpwalk -v 2c -c <SNMP Comm String> <Hostname or IP> 1.3.6.1.2.1.54.1.1.1.1.4.2