SNMP: manager, agent, MIB and OID; GET, SET, trap, inform; versions and configuration
Sign in to read this lesson
SNMP (Simple Network Management Protocol) is used to monitor and manage network devices from an NMS. The SNMP manager is the NMS software, the SNMP agent runs on the network device. The monitored variables are in the MIB, and each variable is identified by an OID. The manager reads a value with GET and writes with SET; the agent reports an event immediately with a trap, while an inform requires an acknowledgment. SNMPv1 and v2c send the community string in clear text, SNMPv3 supports username authentication and encryption. Configuration: snmp-server community, location and contact.
What you will learn
- SNMP is an application layer protocol: the SNMP manager (NMS software) monitors devices, the SNMP agent runs on the network device. The agent uses UDP 161, traps use UDP 162.
- The MIB (Management Information Base) is a tree-structured database of monitored variables; each variable is identified by an OID (Object ID), for example 1.3.6.1.4.1.9.2.1.3 = hostname.
- GET reads a value (poll), SET writes a value. A trap reports an event immediately but has no acknowledgment; an inform requires an acknowledgment.
- SNMPv1/v2c: a community string as the password, sent in clear text (insecure). SNMPv3: username authentication and encryption; security levels noAuthNoPriv, authNoPriv, authPriv.
- Configuration (v2c):
snmp-server community <string> ro|rw <ACL>, plussnmp-server locationandsnmp-server contact.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.