Pcornel
Browse topics
Options
Recent
Favorites
Observability · Technical reference

Network Device Monitoring with SNMP and Streaming Telemetry

Direct answer

Network device monitoring uses SNMP (polling MIBs such as IF-MIB, v3 for security) and model-driven streaming telemetry (gNMI/gRPC with YANG models) for interface counters, errors, CPU and state.

When to use this

Use it to monitor routers, switches and firewalls.

First 30 seconds

1. SNMP test: snmpwalk -v3 -l authPriv -u <user> -a SHA -A <auth> -x AES -X <priv> <device> IF-MIB::ifHCInOctets.

2. snmp_exporter target up.

3. Interface errors/discards.

4. gNMI: gnmic -a <device>:57400 subscribe --path /interfaces/interface/state/counters.

5. CPU/memory/temperature.

Operational verification

device MIB/YANG → SNMP poll or gNMI stream → collector → TSDB

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
OpenTelemetry / Prometheus / Grafana / common metrics-log-trace pipelines
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformOpenTelemetry / Prometheus / Grafana / common metrics-log-trace pipelines
Scope / prerequisiteUse it to monitor routers, switches and firewalls.
What next?2 suggested next steps
Evidence0
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 How to verify Verify boundary

Compare interface rates with the device's own show interfaces output. Confirm sysUpTime resets are handled after reloads.

Step 2 Common failures Narrow the fault

Using 32-bit counters on fast links wraps quickly and gives wrong rates. Polling too many OIDs too often loads the device CPU. ACLs on the device blocking the poller look like a device outage.

Key points

Use SNMPv3 authPriv. Poll counters with 64-bit ifHC* objects. Streaming telemetry gives higher resolution at scale. Alert on errors, discards and link state, not only bandwidth.

Key checks
  • snmpwalk -v3 -l authPriv -u <user> -a SHA -A <auth> -x AES -X <priv> <device> IF-MIB::ifHCInOctets — first check for this topic
  • curl -s localhost:9090/-/ready — Prometheus ready
  • curl -s 'localhost:9090/api/v1/query?query=up' — scrape targets up/down
  • promtool check config prometheus.yml — config valid
ReferenceWhat it is1 section · depth on demand

How it works

Pollers request OIDs on an interval; counters are converted to rates by the time-series database. gNMI subscriptions stream YANG-modelled data, often through a collector such as gnmic or Telegraf.

ReferenceImportant terms & boundaries3 sections · depth on demand

Polling vs streaming

SNMP pollingStreaming telemetry (gNMI, model-driven)
Interval1–5 minutes typicalSeconds or on-change
Load on deviceHigher per data pointEfficient
Data modelMIBsYANG (OpenConfig, native)
Collectorssnmp_exporter, LibreNMS, ZabbixTelegraf gnmi, gnmic, Catalyst Center

Use SNMPv3 authPriv; 64-bit counters (ifHCInOctets) on fast links. On IOS XE: telemetry ietf subscription for dial-out streaming.

In depth

Counter width and polling interval

A 32-bit counter (ifInOctets) wraps at 4,294,967,295. On a 10 Gbit/s link at full rate that is 1.25 GB/s, so it wraps every 3.4 seconds — any polling interval gives meaningless rates. Always use the 64-bit high-capacity counters from IF-MIB:

UseInstead of
ifHCInOctets, ifHCOutOctetsifInOctets, ifOutOctets
ifHCInUcastPkts …ifInUcastPkts …
ifHighSpeed (Mbit/s)ifSpeed (caps at 4.29 Gbit/s)

Interface utilisation in PromQL

rate(ifHCInOctets{instance="sw1"}[5m]) * 8 / (ifHighSpeed{instance="sw1"} * 1e6)
rate(ifInErrors{instance="sw1"}[5m]) > 0
changes(sysUpTime{instance="sw1"}[10m]) > 0 and sysUpTime < 600*100   # reloaded (sysUpTime in 1/100 s)

Labels such as ifName, ifAlias (interface description) come from lookups configured in the exporter's generator.yml, so graphs can show Gi1/0/48 – uplink core1 instead of an index number.

SNMPv3 on Cisco IOS XE (read-only)

snmp-server view MON iso included
snmp-server group MONGRP v3 priv read MON access 99
snmp-server user prom MONGRP v3 auth sha <auth-key> priv aes 128 <priv-key>
access-list 99 permit 10.0.0.50

Use authPriv (authentication and encryption) and an ACL limited to the poller.

Polling vs streaming telemetry

SNMP pollingModel-driven telemetry (gNMI / IOS XE dial-out)
Interval30 s – 5 minSeconds, or on change
Device loadWalks of large tables are CPU-heavyPushed from the device, efficient
Data modelMIBsYANG (OpenConfig or native)
Collectorsnmp_exporter, TelegrafgNMIc, Telegraf, Cisco Telegraf/TIG stacks

Use streaming for high-resolution interface and queue counters on important links; SNMP remains the common denominator for everything else.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Common mistakes

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
network device monitoring with snmp and streaming telemetrysnmp monitoringgnmi streaming telemetry
Confirmation

Confirm action

Continue?