
What is SNMP?
SNMP is the protocol a monitoring system uses to ask switches, routers, printers and UPS units how they are doing. It is decades old, built into almost every network device, and still the most common way to see a failing port or a full disk before users notice.
How SNMP works
SNMP stands for Simple Network Management Protocol. The answer to what is SNMP starts with two roles. An agent runs on the device and keeps track of its values: interface traffic, errors, temperature, fan speed, battery state. A manager, the monitoring system, asks the agents for those values and raises an alert when one crosses a threshold.
Which values a device can report is described in a MIB, the Management Information Base. Every value in it has an OID, an object identifier written as a string of numbers, so that a manager can ask for exactly that value on any device that supports it. Manufacturers publish their own MIBs for values specific to their equipment.
- Polling The manager asks the agent for values at fixed intervals, over UDP port 161.
- Traps The agent reports an event itself, such as a port going down, to the manager on UDP port 162.
- Informs Like a trap, but the manager confirms receipt, so a lost message is sent again.
- Set SNMP can also change settings. In most networks that is switched off, and changes go through other routes.
SNMPv1, v2c and v3
| Version | How access works | Encryption | Use today |
|---|---|---|---|
| SNMPv1 | A community string, sent in plain text | None | Only for old equipment that knows nothing else |
| SNMPv2c | A community string, sent in plain text | None | Still widespread, adds bulk requests and informs |
| SNMPv3 | A user name with authentication | Yes, with the authPriv security level | The version to choose wherever the device supports it |
A community string works like a shared password that anyone on the network path can read. Many devices ship with “public” for reading and “private” for writing, and those defaults are among the first things an attacker tries.
Setting up SNMP safely
SNMP is useful precisely because it can see a lot, which is also why it needs care.
Use SNMPv3
With authentication and encryption, and v1 and v2c switched off wherever every device supports v3.
Read only, from one place
Access limited to reading, and only from the address of the monitoring server, so nobody else on the network can query or change devices.
Alerts that mean something
Thresholds set for the devices that matter, so an alert is a reason to act and not one more message to ignore.
Where our work stops
This is an explanation, not a training course; for SNMP certification you need a training provider. We set up monitoring on the network devices we manage and act on what it reports, see Network monitoring and Managed network. The equipment we supply is in Networking equipment. Licences for monitoring software are bought from its vendor or a licensing partner; we configure the software and keep it running.
What it connects to
These pages cover the neighbouring part of the same environment.
Questions we get about this
The ones that come up most, answered briefly.
What is SNMP in simple terms?
A protocol that lets a monitoring system ask network devices such as switches, routers, printers and UPS units for their status, and lets those devices report problems themselves.
What is the difference between SNMP polling and traps?
With polling, the monitoring system asks a device for values at fixed intervals. With a trap, the device reports an event itself as soon as it happens, such as a port going down.
Which SNMP version should I use?
SNMPv3 with authentication and encryption, wherever the devices support it. SNMPv1 and v2c send their community string in plain text, so anyone who can see the traffic can read it.
Do you sell monitoring software or run SNMP training?
No. We are not a training provider and not a software vendor. We set up and run monitoring on the networks we manage; licences for the software are bought from its vendor or a licensing partner.
Curious what we would take over?
In a thirty-minute conversation we go through your current IT landscape and tell you honestly whether managed IT suits your situation.
Practical IT knowledge in your inbox
New guides on management, security and the workplace, written by the people doing the work. No sales talk, and you can unsubscribe in one click.