Port 161 is the SNMP agent port where managed devices (routers, switches, servers) listen for queries. SNMPv1 and v2c transmit community strings in cleartext – attackers who sniff these gain full read/write access to device configs. Use SNMPv3 with authentication and encryption for production monitoring.
Port Number
161
Protocol
UDP
Service
Simple Network Management Protocol
Range
IANA Well-Known (0–1023)
Test if default 'public' community string works (should fail if secured)
snmpwalk -v2c -c public target 1.3.6.1.2.1.1SNMPv3 authenticated+encrypted query
snmpget -v3 -u monitor -l authPriv -a SHA -A 'authpass' -x AES -X 'privpass' target sysUpTime.0Brute-force SNMP community strings (security audit)
nmap -sU -p 161 --script snmp-brute targetList running processes via SNMP (if this works, the device is dangerously exposed)
snmpwalk -v2c -c public target 1.3.6.1.2.1.25.4.2.1.2snmpwalk -v2c -c public 192.168.1.1 sysDescr
snmpget -v3 -u admin -l authPriv -a SHA -A pass -x AES -X key host 1.3.6.1.2.1.1.1.0
snmpbulkwalk -v2c -c public host ifTableSNMP was created in 1988 (RFC 1067) as a simple network management protocol for routers. SNMPv1 had no security (cleartext community strings). SNMPv2c (1996) added GetBulk but kept the same weak authentication. SNMPv3 (2002, RFC 3414) finally added authentication (HMAC-SHA) and encryption (AES). Despite being 20+ years old, SNMPv3 adoption remains under 50% because device vendors and network teams resist the complexity of USM credentials.
How do I migrate from SNMPv2c to SNMPv3?
On the device: create a SNMPv3 user with auth+priv (e.g., Cisco: snmp-server user monitor grp-ro v3 auth sha AuthPass priv aes 128 PrivPass). On the NMS (Zabbix/LibreNMS): update host config to use SNMPv3 credentials. Test: snmpget -v3 -u monitor -l authPriv -a SHA -A 'AuthPass' -x AES -X 'PrivPass' device sysUpTime.0. Then disable v2c: no snmp-server community public.
Is SNMP still relevant in 2024+ with modern monitoring?
Yes for network devices (switches, routers, firewalls, UPS, PDUs) – SNMP is the only universal protocol they all speak. No for servers – use Prometheus node_exporter, Datadog agent, or OpenTelemetry. Streaming telemetry (gNMI/gRPC) is replacing SNMP polling on modern Cisco/Arista/Juniper gear but adoption is early. Plan: SNMPv3 for legacy devices, streaming telemetry for new deployments.