What is the task of the Simple Network Management Protocol (SNMP)?
Answer
SNMP is a network protocol developed by the IETF to monitor and control network elements centrally – routers, switches, servers, printers, UPS systems, temperature sensors and more.
An SNMP agent runs on each managed device and stores its values in the MIB (Management Information Base).
The SNMP manager (monitoring station, e.g. PRTG, Zabbix) queries the agents.
Operations:
GET – the manager reads a value (e.g. CPU load, interface status) – UDP port 161.
SET – the manager changes a configuration value.
TRAP – the agent reports an important event on its own (e.g. “interface down”) – UDP port 162. The manager does not have to poll all the time.
Current version: SNMPv3 – with authentication and encryption (v1/v2c only use plain-text community strings).
Diagram
Key vocabulary
Term
Meaning
Example
network monitoring
watching the status of network devices
We use Zabbix for network monitoring.
agent
software on a device that answers SNMP requests
Enable the SNMP agent on the switch.
MIB
Management Information Base – the list of values a device offers
The MIB contains the interface counters.
trap
a message a device sends on its own when something happens
The UPS sent a trap when the power failed.
to poll
to ask for values again and again at intervals
The manager polls the switches every minute.
community string
a simple password in SNMPv1/v2c
Never leave the community string as “public”.
Useful phrases
to keep an eye on the networkSNMP helps us keep an eye on the whole network.
to trigger an alarmA trap triggers an alarm in the monitoring system.
to query a valueThe manager queries the CPU load every minute.
to switch to SNMPv3For security reasons we switched to SNMPv3.
Talk about it
Which values would you monitor on a switch, a server and a UPS? Explain why.
What is the difference between polling and traps? Which is better for what?
Why is SNMPv1/v2c considered insecure?
IHK hint
German: SNMP: zentrale Überwachung und Steuerung von Netzwerkelementen; Agent, Manager, MIB; GET/SET über UDP 161, Traps UDP 162; aktuell SNMPv3.