Posts

Showing posts with the label snmp

Issues to display SNMP information

This is a typical error on snmpwalk at the beginning of the display information: snmpwalk -v1 -c public 127.0.0.1 system Expected "::=" (RFC5644): At line 493 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB Expected "{" (EOF): At line 651 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB Bad object identifier: At line 651 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB Bad parse of OBJECT-IDENTITY: At line 651 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB Bad operator (INTEGER): At line 73 in /usr/share/mibs/ietf/SNMPv2-PDU Unlinked OID in IPATM-IPMC-MIB: marsMIB ::= { mib-2 57 } Undefined identifier: mib-2 near line 18 of /usr/share/mibs/ietf/IPATM-IPMC-MIB Open /etc/snmp/snmp.conf and it should be as follows: mibs : mibs +SNMPv2-MIB But, if you run ... snmptranslate -m all -Tz -On | sed -e 's/"//g' > /tmp/oids.txt ... to create your oids.txt, you still see the same error. To fix them, you can edit th...

How to configure SNMP in mininet

First, you need to install snmp on your system: sudo apt-get install snmp snmpd Now, procced to configure snmp with the respective information about your machine: sudo mv /etc/snmp/snmpd.conf  /etc/snmp/snmpd.conf.org sudo vim /etc/snmp/snmpd.conf #Add these lines #Change public by your SecretPassword if you like rocommunity  public syslocation  "Somewhere" syscontact  nicolas.boettcher@mail.udp.cl Now, edit the snmp daemon to listen all interfaces: sudo vim /etc/default/snmpd Change from: # snmpd options (use syslog, close stdin/out/err). SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1' To: # snmpd options (use syslog, close stdin/out/err). #SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1' SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf' Now, restart the daemon with:  /etc/init.d/snmpd restart To check it's all o...