SNMP

Done

SNMP (Simple Network Management Protocol), is a framework and protocol used to monitor, make configuration changes, and many more services to networking devices.

There are two types of devices in SNMP:

  • Managed Devices
    • These are the devices being monitored (i.e. routers and switches)
  • Network Management Station (NMS)
    • It is the device that orchestrate the Managed Devices, the manager of managed devices.
    • Could be said as the SNMP ‘server’

SNMP Operation Modes

There are essentially three main operations used in SNMP:

  • Managed devices can tell the NMS of events
  • The NMS can ask the devices for their current status
  • The NMS can tell the managed devices to change certain configurations

SNMP Structure

SNMP Messages

TypeDescriptionMessage
ReadAsks the managed device to respond with an information. (i.e. What`s the CPU Usage?)Get GetNext GetBulk
WriteChanges a configuration aspect in the managed device. (i.e. Change the IP Address of the f0/0 interface.)Set
NotificationIt is a message sent by the Agent to the Manager, alerting it of something. (i.e. The Interface f0/3 has gone down.)Trap Inform
ResponseIt is a reaction to something, a response. (i.e. The CPU Usage is 50%.)Response

SNMP Agent Configuration

[Optional] Set the Contact and Location info

configure terminal
snmp-server contact {EMAIL}
snmp-server location {PLACE}

Set the Password (Community String)

configure terminal
snmp-server community {password} {ro | rw}

Point to the NMS

snmp-server host {ip-address} version {version} {password}

Set alerts

snmp-server enable traps {event} 

Show command

show snmp