Network security

What Is Simple Network Management Protocol (SNMP)? A Plain Guide

SNMP lets one monitoring station ask thousands of devices how they are doing. Here is how the manager-agent model, MIBs, OIDs and traps fit together.

Cysoro Security TeamPublished · 9 min read
NETWORK SECURITY SNMP Explained How one protocol watches your whole network Manager (NMS) polls · UDP 161 Router agent Switch agent TRAP · UDP 162 · link down! CYSORO.COM
Quick answer

Simple Network Management Protocol (SNMP) is an Internet Standard protocol that lets a management station monitor and configure network devices such as routers, switches, servers and printers. A manager polls agents running on each device, reading values organized in a Management Information Base (MIB) and identified by Object Identifiers (OIDs), while agents can also send unsolicited trap notifications when events occur.

Key takeaways

  • SNMP uses a manager-agent model: the manager polls devices, and agents answer with data from their MIB.
  • SNMP runs over UDP ports 161 for requests and 162 for traps, and every value is addressed by an OID.
  • SNMPv1 and SNMPv2c send community strings in clear text, so only SNMPv3 with authentication and encryption is safe to use.

Every router, switch and server on a network has something to say about its own health: how busy its interfaces are, how hot its CPU is running, whether a link just went down. SNMP is the standard language that lets one monitoring station ask thousands of devices those questions — and hear back when something breaks.

What is Simple Network Management Protocol?

Simple Network Management Protocol (SNMP) is an Internet Standard protocol for collecting and organizing information about managed devices on IP networks, and for changing that information to alter device behavior. It is defined by the Internet Engineering Task Force in the SNMPv3 standards, starting with RFC 3411, the SNMP architecture standard.

Despite the word "simple" in its name, modern SNMP is a structured framework. RFC 3411 describes it as a modular architecture built around an SNMP engine containing a message processing subsystem, a security subsystem and an access control subsystem, plus applications that handle requests and notifications.

SNMP is an application-layer protocol, and its messages travel over UDP: port 161 for requests to the agent, and port 162 for trap notifications back to the manager, as Cisco's SNMP configuration guide confirms. Because it uses UDP, SNMP is lightweight and fast, which matters when one station polls thousands of devices every few minutes.

How does SNMP work?

SNMP works on a manager-agent model. A management station, also called a network management system, sends requests to agents running on managed devices. Each agent answers with the requested values, and can also send unsolicited trap notifications when an event happens, such as a link going down.

How SNMP polling works SNMP manager monitoring station (NMS) sends GET requests Router agent · UDP 161 Switch agent · UDP 161 Server agent · UDP 161 What comes back GET response with values TRAP on UDP 162 when an event happens INFORM: a trap that expects a reply SET: change a value The manager asks; the agent answers — or speaks up first when something breaks.
The SNMP manager-agent model: polling on UDP 161, traps on UDP 162. Illustration by Cysoro.

A typical exchange runs like this. The manager picks an OID, a target address and credentials, then sends a GET request to the device on UDP port 161. The agent looks up the value in its MIB, checks that the requester is allowed to read it, and sends back a response. You can try this yourself with NET-SNMP's snmpget tool, which retrieves one OID value at a time — for example sysUpTime.0 — as shown in the NET-SNMP snmpget tutorial.

For events that cannot wait for the next poll — a failed interface, a reboot, a temperature alarm — the agent sends a trap to the manager on UDP port 162. BlueCat's SNMP glossary describes the same poll-and-trap pattern as the protocol's core monitoring loop.

SNMP supports several operations. GET reads one value, GETNEXT reads the next value in the MIB tree, GETBULK reads a whole table efficiently, and SET writes a value when the device and policy allow it. Traps are one-way notifications with no acknowledgement, while INFORM requests expect a response from the manager. RFC 3416 defines each of these operations, including the GetBulkRequest and InformRequest PDUs.

What are the main components of SNMP?

An SNMP deployment has three key parts: managed devices, agents and the network management station. A managed device is any network node that exposes an SNMP interface, such as a router, switch, server, printer or firewall. The agent is the software on that device that answers SNMP requests. The management station is the software that sends requests, collects responses and raises alerts.

Two more concepts hold the whole system together: the MIB and the OID. The MIB is the schema, and the OID is the address. Without them, the manager and the agent would have no shared language for naming values.

Management Information Base (MIB)

A MIB is a structured collection of managed objects describing a particular aspect of a managed system. RFC 3411 describes MIB documents as collections of managed objects that instrument some aspect of a managed node. Standard MIBs cover common things like system information, interfaces and IP statistics; vendors add their own MIBs for device-specific features such as fan speed or power supply status. RFC 1213 defines the standard MIB-II groups (system, interfaces, IP, TCP, UDP), and RFC 3418 defines the MIB for SNMP itself.

Your monitoring station needs the right MIB files to interpret what a device reports. Without the MIB, the station sees raw numbers; with it, those numbers become named values like interface traffic, error counts and CPU load.

Object Identifiers (OIDs)

An OID is a dotted sequence of numbers that names one object in a hierarchical tree, for example 1.3.6.1.2.1.1.3.0, which is the system uptime object (sysUpTime) defined in RFC 3418. The tree starts at broad categories and branches down to individual values, so related objects sit near each other and can be walked with GETNEXT and GETBULK.

An OID names an object in the schema; the value stored there is a separate thing. The same OID on two devices can hold different values, and a single OID can hold a counter, a string, a state or a writable control, depending on how it is defined.

What are the SNMP versions?

Three significant versions of SNMP have been deployed: SNMPv1, SNMPv2c and SNMPv3. They share the same manager-agent model and MIB structure, but differ sharply in performance and security.

VersionAuthenticationEncryptionKey featuresStatus today
SNMPv1Community string, clear textNoneGET, GETNEXT, SET, trapsObsolete, do not use
SNMPv2cCommunity string, clear textNoneAdds GETBULK and INFORM, better error handlingStill common, but insecure
SNMPv3User-based (USM), username and passwordOptional, AES or DESAuthentication, privacy, access control, viewsThe only version to deploy

SNMPv1 is the original version from the late 1980s. SNMPv2c kept the community-string security model but added GETBULK for efficient table reads and INFORM notifications that expect an acknowledgement. SNMPv3, standardized in the RFC 3411 to RFC 3418 series, rebuilt security around the User-based Security Model, known as USM.

SNMPv3 defines three security levels. noAuthNoPriv provides neither authentication nor encryption, and is no better than v2c. authNoPriv authenticates the user but does not encrypt the data. authPriv authenticates and encrypts, and is the level you should use.

Why is SNMP a security risk?

SNMP is a security risk mainly because of its history. SNMPv1 and SNMPv2c transmit community strings in clear text, and the default strings "public" for read-only access and "private" for read-write access are widely known. Anyone who can reach a device on UDP port 161 and guess the community string can read its configuration, interface addresses and traffic counters.

That exposure is useful to attackers for reconnaissance: SNMP reveals network topology, device models, software versions and which hosts talk to which. With write access, the damage is worse — a weak community string can let an attacker change device configuration, disable interfaces or redirect traffic.

Because the default strings are widely known, any SNMP service reachable from the public internet is an easy reconnaissance target. That is why security guidance is consistent: use SNMPv3 with authPriv, restrict SNMP to read-only views, limit which hosts may query each device, and never expose SNMP to the internet. Our guide to securing your Wi-Fi network covers the same segmentation thinking for home and small-office networks.

Check your devices nowIf a device still answers SNMP with the community string "public", treat it as exposed. Change the string, move to SNMPv3, or disable SNMP on that device entirely.

How do you set up SNMPv3 securely?

Secure SNMPv3 setup comes down to five steps: create a dedicated read-only user, choose the authPriv security level, limit the views that user can see, restrict the source addresses that may query, and verify the configuration from the monitoring station.

  1. Create a dedicated user for monitoring, with its own authentication and privacy passwords. Never share credentials between devices or teams.
  2. Use authPriv with a strong authentication protocol and AES encryption for privacy.
  3. Limit the view to the MIB branches your monitoring actually needs, such as system and interface data. Exclude anything sensitive.
  4. Restrict sources with firewall rules or access lists so only your management station's address can reach UDP port 161.
  5. Test from the manager with a read-only GET, and confirm that unauthenticated requests and wrong credentials are rejected.

On Cisco-style devices, the shape of the configuration — shown in Cisco's SNMPv3 configuration guide — is a group with read-only access at the priv level, plus a user in that group with authentication and privacy keys. The exact commands differ by vendor and operating system, so follow your vendor's documentation for the precise syntax. If a device cannot do SNMPv3 at all, weigh replacing it against the risk of keeping an insecure management protocol on your network.

SNMP security checklist ✓ Use SNMPv3 authPriv Authentication plus AES encryption on every device that supports it ✓ Read-only views only Limit the MIB branches the monitoring user can see ✓ Restrict by source address Only the management station may reach UDP 161 ✗ Never expose SNMP No SNMP on the public internet, and no default strings Rotate SNMPv3 credentials like any other password — at least yearly.
Four rules that make SNMP safe to run. Illustration by Cysoro.

Traps vs polling: which should you use?

Use both, for different jobs. Polling is how you track trends: interface utilization, CPU load, memory use and error counters sampled every few minutes. Traps are how you learn about sudden events: a link down, a device reboot or a fan failure, without waiting for the next poll cycle.

Polling has a cost. Too frequent, and the monitoring traffic and device CPU load become a problem of their own. Too rare, and you miss short-lived events. A common starting point is polling core devices every one to five minutes and less critical devices every five to fifteen minutes, then tuning from there.

Traps have a weakness of their own: a plain trap has no acknowledgement, so if the notification is lost, the manager never learns about the event. INFORM requests fix this by expecting a response, at the cost of more traffic. For critical alerts, use INFORMs or confirm the trap with a follow-up poll.

What goes wrong with SNMP most often?

The most common SNMP problems are mismatched credentials, missing MIB files, firewall blocks and polling overload. Each has a clear symptom, and each is quick to diagnose if you know what to look for.

  • Authentication failures: the manager reports timeouts or authorization errors. Check the community string or SNMPv3 username, and confirm the security level matches on both sides.
  • Unknown OIDs: the agent returns "no such object". Load the vendor's MIB file on the management station, or check that the device firmware supports that object.
  • No response at all: check that UDP port 161 is open through the firewall and that the agent service is running on the device.
  • Missing traps: confirm the trap destination address and community or user on the device, and check that UDP port 162 is open on the manager.
  • High CPU on devices: reduce polling frequency or narrow the set of OIDs you collect.

When you audit a network, SNMP is also a good place to check what is exposed. You can see which of your own systems answer on common ports with our IP and network tools.

Our small business cybersecurity checklist includes network device hardening alongside SNMP hygiene.

SNMP vs newer monitoring options

SNMP is not the only way to monitor a network, and for newer environments it is often not the best one. Streaming telemetry, REST APIs and agent-based monitoring all compete with it, and each has strengths SNMP lacks.

ApproachHow data flowsSecurityBest for
SNMPManager polls agents over UDPStrong only in v3 authPrivRouters, switches, printers, legacy gear
Streaming telemetryDevices push data continuouslyTLS-encrypted, modern authHigh-frequency metrics on modern gear
REST APIsManager queries HTTP endpointsHTTPS with token authCloud-managed and software-defined networks
Agent-based monitoringAgent on each host reports inEncrypted, authenticatedServers and applications

SNMP's advantage is universality: almost every network device made in the last thirty years speaks it, including equipment that has no API and no telemetry support. Its disadvantage is a data model from another era and security that depends on getting v3 configuration exactly right. Most real networks end up using SNMP for network hardware and agent-based tools for servers, side by side.

The bottom line

SNMP is the shared language that lets one monitoring station watch routers, switches, servers and printers from many vendors. The manager polls agents, agents answer with MIB values addressed by OIDs, and traps flag sudden events — all over UDP ports 161 and 162.

Use it, but use the secure version. Retire SNMPv1 and SNMPv2c, deploy SNMPv3 with authPriv, keep access read-only, and restrict who can query your devices. Check your own exposure with our free DNS lookup tool to see what your network reveals to the outside world.

Frequently asked questions

What is SNMP in simple terms?

SNMP is a standard language that lets monitoring software ask network devices how they are doing. A central manager polls each device for values like CPU load, interface traffic and uptime, and devices can also send alerts called traps when something goes wrong.

What is SNMP used for?

SNMP is used to monitor the health and performance of routers, switches, servers, printers, firewalls and other networked devices. It is also used to detect faults, track bandwidth use, and in some setups to change device configuration remotely.

What ports does SNMP use?

SNMP uses UDP port 161 for requests from the manager to the agent, and UDP port 162 for trap notifications sent from the agent to the manager. These are the conventional ports defined in the SNMP transport mappings.

What is the difference between SNMPv2c and SNMPv3?

SNMPv2c authenticates with a community string sent in clear text, so anyone who can see the traffic can read it. SNMPv3 adds user-based authentication and optional encryption, with three security levels: noAuthNoPriv, authNoPriv and authPriv.

What is a MIB in SNMP?

A MIB, or Management Information Base, is a structured collection of definitions that describes the values a device can report, such as interface counters or system uptime. Each value in the MIB is addressed by a unique Object Identifier, or OID.

What is an OID?

An OID, or Object Identifier, is a dotted-number address in a hierarchical tree that names one specific value on a device, for example 1.3.6.1.2.1.1.3.0 for system uptime. The manager asks for an OID and the agent returns the current value stored there.

Is SNMP secure?

SNMPv1 and SNMPv2c are not secure, because community strings travel in clear text and default strings like public are widely known. SNMPv3 with authentication and encryption is the secure option, and it should be combined with read-only access, source-address restrictions and network segmentation.

Should I disable SNMP?

If nothing in your network uses SNMP, disable it on devices that have it enabled, because an exposed SNMP service is a reconnaissance target. If you do use it, run SNMPv3 with strong credentials, restrict which hosts can query each device, and never expose SNMP to the internet.

Sources

  1. IETF — RFC 3411: An Architecture for Describing SNMP Management Frameworks
  2. BlueCat — What is Simple Network Management Protocol? SNMP
  3. IETF — RFC 3416: Version 2 of the Protocol Operations for SNMP
  4. IETF — RFC 3418: Management Information Base (MIB) for SNMP
  5. IETF — RFC 1213: Management Information Base for Network Management of TCP/IP-based internets: MIB-II
  6. Cisco — SNMP Configuration Guide, Cisco IOS Release 15S (SNMP Version 3)
  7. NET-SNMP — TUT:snmpget
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against IETF RFC 3411 (SNMP architecture), RFC 3416 (protocol operations), RFC 3418 (SNMP MIB) and RFC 1213 (MIB-II), Cisco's SNMP Version 3 configuration guide, the NET-SNMP snmpget tutorial and BlueCat's SNMP glossary.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free