Use it when graphs have gaps, counters look wrong, or the monitoring system marks a device down while it is up.
Polling
SNMP polling means the manager periodically requests values (get, getbulk, walk) from agents over UDP 161; the polling interval limits how quickly changes are seen.
1. show snmp — requests arriving at the poll interval?
2. Timeouts at the manager → ACL, credentials, or the device too slow (show processes cpu sorted).
3. Counter jumps or negative rates → 32-bit counters wrapping; use ifHC* OIDs.
4. Interface index changed after reload → snmp-server ifindex persist.
5. Compare one counter with show interfaces to confirm.
manager sends get/getbulk on schedule → agent answers within the timeout → 64-bit counters read → rates calculated → graphs and alerts updated
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Testing polling Verify boundary
snmpwalk -v2c -c <community> 10.0.0.1 ifDescr
snmpget -v3 -l authPriv -u nms -a SHA -A <auth> -x AES -X <priv> 10.0.0.1 sysUpTime.0
snmpbulkwalk -v2c -c <community> -Cr50 10.0.0.1 ifHCInOctets
Documented example, not captured output. Timeouts usually mean ACLs, wrong community/user or the device's SNMP engine ID changed (v3).
Step 2 Verification & troubleshooting Narrow the fault
1. Verify manager-to-agent routing and UDP 161.
2. Verify version, credentials/user, view and ACL.
3. Poll one known OID.
4. Verify notification destination and UDP 162.
5. Correlate device and manager logs.
Step 3 Common mistakes Narrow the fault
- Polling every few seconds on many devices.
- Not handling counter wraps or resets.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Polling is pull: the manager asks every few minutes, so short spikes between polls are invisible. Use 64-bit counters (ifHCInOctets) on fast links — 32-bit counters wrap in seconds at 10 Gb/s. Gaps usually mean timeouts: ACL, credentials, CPU or too many OIDs in one request.
show snmp— packets in/out and errors (bad community, unknown user, ACL drops).show snmp user/show snmp group— SNMPv3 users and security levels.show snmp host— trap and inform receivers.show running-config | include snmp-server— communities, views, ACLs.- From the manager:
snmpwalk -v3 -l authPriv -u <user> -a SHA -A <pw> -x AES -X <pw> <device> 1.3.6.1.2.1.1— test a read.
ReferenceWhat it is1 section · depth on demand
Polling operations
| Operation | Use |
|---|---|
| GET | One or a few OIDs |
| GETNEXT / walk | Step through a table |
| GETBULK (v2c/v3) | Many rows per request; efficient for interface tables |
Polling too often or walking large tables (routing table, ARP) can load the device CPU. Poll counters at a steady interval and calculate deltas; a counter that decreases means a reset or wrap.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Worked rate calculation
Two polls of ifHCInOctets 300 s apart:
t1 = 10:00:00 ifHCInOctets = 1 284 553 112 004
t2 = 10:05:00 ifHCInOctets = 1 284 928 612 004
Δ = 375 500 000 octets
rate = 375 500 000 × 8 / 300 = 10 013 333 bit/s ≈ 10 Mbit/s average
The result is an average over the polling interval; a 30-second burst at line rate disappears in a 5-minute average.
Why 64-bit counters are mandatory on fast links
| Counter | Wraps after | At 1 Gbit/s | At 10 Gbit/s |
|---|---|---|---|
ifInOctets (32-bit) | 2^32 octets ≈ 4.29 GB | ~34 s | ~3.4 s |
ifHCInOctets (64-bit) | 2^64 octets | Centuries | Centuries |
A 32-bit counter can wrap several times between polls, and the poller cannot detect it. 64-bit counters need SNMPv2c or v3.
Efficient retrieval — GetBulk
RFC 3416 GetBulkRequest returns many rows per request: non-repeaters scalar values once, then max-repetitions rows of each table column. Walking a 500-port interface table with GetNext needs about 500 round trips per column; GetBulk with max-repetitions 50 needs about 10.
snmpbulkwalk -v3 -l authPriv -u nms ... -Cr50 10.0.0.1 ifHCInOctets
Discontinuities
A reload or counter reset makes Δ negative or meaningless. Pollers compare sysUpTime (and ifCounterDiscontinuityTime where supported) and drop that sample.
Load on the device
Aggressive polling shows up as CPU in the SNMP ENGINE process (show processes cpu sorted | include SNMP). Poll only the OIDs you graph, use bulk requests, and consider model-driven telemetry for sub-minute data.
Worked example
SNMP polling is the regular, scheduled reading of values from devices. Counters only ever increase, so a monitoring tool calculates rates by comparing two readings and dividing by the time between them. The polling interval is a trade-off between detail and load, and averages over several minutes hide short spikes — useful to remember when users report problems that graphs do not show.
SNMP polling reads values periodically (GET/GETBULK). Rates are computed from counter deltas: bits/s = (Δ octets × 8) ÷ Δ time.
Worked example: ifHCInOctets 1 000 000 000 → 1 750 000 000 over 300 s → 750 000 000 × 8 ÷ 300 = 20 Mb/s average. A 5-minute average hides short bursts — micro-bursts that drop packets need streaming telemetry or interface drop counters.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IP Services → SNMP → Polling. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc3411.html · confidence 94%