204 | | |
205 | | example : |
206 | | |
207 | | === Adding MIBs === |
208 | | |
209 | | Remember when you ran: |
210 | | |
211 | | $ snmpwalk <IP Address> .1.3.6.1.4.1.9.9.13.1 |
212 | | If you noticed, the SNMP client (snmpwalk) couldn't interpret all the OIDs coming back from the Agent: |
213 | | |
214 | | SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.1 = STRING: "chassis" |
215 | | SNMPv2-SMI::enterprises.9.9.13.1.3.1.6.1 = INTEGER: 1 |
216 | | What is 9.9.13.1.3.1 ? |
217 | | |
218 | | To be able to interpret this information, we need to download extra MIBs: |
219 | | |
220 | | Download them now as follows: |
221 | | {{{ |
222 | | $ cd /usr/share/mibs |
223 | | $ sudo mkdir cisco |
224 | | $ cd cisco |
225 | | |
226 | | $ sudo wget http://www.ws.nsrc.org/downloads/mibs/CISCO-SMI.my |
227 | | $ sudo wget http://www.ws.nsrc.org/downloads/mibs/CISCO-ENVMON-MIB.my |
228 | | }}} |
229 | | |
230 | | Now we need to tell the snmp tools that we have the cisco MIBS it should load. So edit the file /etc/snmp/snmp.conf, and add the following two lines: |
231 | | {{{ |
232 | | mibdirs +/usr/share/mibs/cisco |
233 | | mibs +CISCO-ENVMON-MIB:CISCO-SMI |
234 | | }}} |
235 | | Save the file, quit. |
236 | | |
237 | | Now, try again: |
238 | | |
239 | | $ snmpwalk <IP Address> .1.3.6.1.4.1.9.9.13.1 |