MIBS allow translation between the numeric OIDS and more friendly names that can be recalled. Many distributions are packed with a large number of MIBS but may not include the MIBS for your device, or could be out of date. Once downloaded the MIB should be placed in a dir where snmp commands can find it.
- Ascertain MIB path:
If that fails try:
snmptranslate -Dinit_mib .1.3 2>&1 |grep MIBDIR
In this example Squid 3.1 is used.
snmpwalk -v 2c -c cl0udsquid 188.8.131.52:3401 -m SQUID-MIB squid SQUID-MIB::cacheSysVMsize.0 = INTEGER: xxx SQUID-MIB::cacheSysStorage.0 = INTEGER: yyy SQUID-MIB::cacheUptime.0 = Timeticks: (xxxxxx) y:yy:yy.yy .......... snmpget -v 2c -c cl0udsquid 184.108.40.206:3401 -m SQUID-MIB cachePeerState.1 SQUID-MIB::cachePeerState.1 = INTEGER: 1