Understanding SNMP and Net-SNMP

Net-SNMP is a suite of tools used to implement SNMP (Simple Network Management Protocol). SNMP is a widely used protocol for monitoring the health and welfare of network equipment (eg. routers), computer equipment and even devices like UPSs. Net-SNMP includes tools with capabilities such as:

How SNMP Works

SNMP allows a management station to treat its network as a distributed database of health and configuration information. SNMP contains a small set of operations:

SNMP Architecture

SNMP Agents and snmpd

SNMP agents are responsible for delivering requested data through SNMP. Devices that are being polled for SNMP data must have a SNMP agent installed, configured, and running.

Net-SNMP comes with a daemon called snmpd which works as an SNMP agent. This agent is responsible for listening and responding to requests. Its configuration can be found in /etc/snmp/snmpd.conf.

Understanding OIDs and MIBs

MIBs stand for Management Information Base. They represent a collection of information that is accessed hierarchically by protocols such as SNMP. Scalar MIBs define a single object instance. Tabular MIBs define multiple related object instances grouped in MIB tables.

OIDs stand for Object Identifiers and they uniquely identified managed objects in a MIB hierarchy. They can be depicted as trees whose nodes are assigned by different organizations. Generally, an OID is a long sequence of numbers, coding the nodes, separated by dots. Top level MIB object IDs (OIDs) belong to different standard organizations. Vendors define private branches including managed objects for their own products.

Basically a MIB is like a translator that helps a Management Station to understand SNMP responses obtained from your network devices

OID Tree

References

  1. How SNMP, MIBs and OIDs work
  2. http://www.networkmanagementsoftware.com/snmp-tutorial-part-2-rounding-out-the-basics/
  3. Net-SNMP Tutorials
snmp monitoring sysadmin

Comments

comments powered by Disqus