In this segment we are going to talk about using “snmpwalk” to learn more about our devices. We can start simple and build from a foundation. SNMP has 3 versions. The versions essentially control the security about how you validate to a device. SNMP can be used to get a wide range of metrics as well as to “set” values. It’s easy to think of SNMP as pulling switch port statistics but they can pull email counts; number of process; temperature from environmental controls.
apt-get install snmp -y
Let’s say we have done a simple config of a switch enabling only “public” with SNMP Version 1.0
root@host:/home/user# snmpwalk -v1 -c public 192.168.160.5 iso.126.96.36.199.188.8.131.52.10.10140 iso.184.108.40.206.220.127.116.11.10.10140 = Counter32: 2568375858