SNMP

Day 40

SNMP (Simple Network Management Protocol) is an industry-standard framework and protocol that was originally released in 1988. SNMP can be used to monitor the status of the devices, make configuration changes, etc. There are two main types of devices in SNMP:

  1. Managed devices - the devices being managed using SNMP. Like routers, switches, etc. They listen on UDP port 161.

  2. NMS (Network Management Station) - SNMP server. This is the device managing the managed devices. It listens on UDP port 162.

There are three main operations used in SNMP:

  1. Managed devices can notify the NMS of events.

  2. The NMS can ask the managed devices for information about their current status.

  3. The NMS can tell the managed devices to change their configuration settings.

Here are the main SNMP components:

The SNMP Manager is the software on the NMS that interacts with the managed devices. It receives notifications, sends requests for information, sends configuration changes, etc. The SNMP Application provides an interface for the network admin to interact with. It displays alerts, stats, charts, etc.

The SNMP Agent is the SNMP software running on the managed devices that interacts with the SNMP Manager on the NMS. It communicates with the NMS. MIB (Management Information Base) is the structure that contains the variables that are managed by SNMP. Each variable is identified with an OID(Object ID). SNMP OIDs are organized in a hierarchical structure.

Versions

  • SNMPv1 is the original version of SNMP.

  • SNMPv2c - allows the NMS to retrieve large amounts of data in a single request. c refers to community strings used as passwords in SNMPv1, removed in SNMPv2, added back in SNMPv2c.

  • SNMPv3 - a much more secure version of SNMP that supports strong encryption and authentication.

SNMP Messages

Message ClassDescriptionMessages

Read

Sent by the NMS to read information from the managed devices

Get GetNext GetBulk

Write

Sent by the NMS to change information on the managed devices

Set

Notification

Sent by the managed devices to alert the NMS of a particular event

Trap Inform

Response

Sent in response to a previous message

Response

Configuration

  • Configure contact information - snmp-server contact followed by the contact information.

  • Configure location information - snmp-server location followed by the location.

  • Configure a community string - snmp-server community followed by the password and ro (for read-only) or rw (for read-write).

  • Configure the NMS address specifying the version and community string - snmp-server host followed by the NMS IP address, keyword version, version number, and password.

  • Configure the trap types to send to the NMS - snmp-server enable traps followed by the trap types.

Last updated