SNMP network discovery with templates, and how to push configuration to many devices safely
SNMP network discovery step by step: templates, sweeps, SNMPv3 and onboarding — plus a safe process for pushing configuration to hundreds of devices at once.
SNMP network discovery finds every switch, router, access point, printer and server on your network by sweeping address ranges and asking each device to describe itself. Combined with templates, it replaces the network inventory spreadsheet that is always out of date. Once devices are discovered, the next step most teams want is the reverse: pushing a configuration change to many devices at once, without logging into each one.
This how-to covers both — how to set up discovery properly, and how to push configuration safely at scale.
What is SNMP, briefly?
The Simple Network Management Protocol lets a management system read (and, with write access, change) information on network devices. Each device runs an agent that exposes values organised in a MIB — system name, uptime, interface status, traffic counters and much more.
Three versions are in common use:
| Version | Authentication | Encryption | Recommendation |
|---|---|---|---|
| SNMPv1 | Community string, sent in clear text | None | Avoid except for legacy devices |
| SNMPv2c | Community string, sent in clear text | None | Read-only on isolated management networks only |
| SNMPv3 | User-based, with authentication | Optional privacy (encryption) | Use wherever supported |
SNMPv3’s user-based security model is defined in RFC 3414. If your devices support it, use authentication and privacy, and keep any remaining v2c communities read-only and restricted by access list.
How does SNMP auto-discovery work?
A discovery sweep does four things:
- Finds live hosts in a range — for example with ping — so it does not waste time on empty addresses.
- Tries SNMP credentials from your templates against each live host.
- Reads identifying values — system name, description, object ID, location and interfaces — to classify the device.
- Adds the device to monitoring, so availability, interface status and bandwidth are collected from then on.
An SNMP walk reads a whole branch of the MIB in sequence. It is the quickest way to see everything a device exposes and to troubleshoot why a value is missing.
Why use SNMP templates?
Large networks rarely use one set of credentials. Core switches may use SNMPv3 with one user, access switches another, printers a legacy v2c community, and a new building a different set again. Entering credentials device by device does not scale and leads to mistakes.
A template is a saved set of SNMP settings — version, user or community, authentication and privacy settings — that discovery applies to a range. A typical set:
core-v3— SNMPv3, authentication and privacy, for the data centre and core.access-v3— SNMPv3 for access switches across buildings.printers-v2c-ro— read-only v2c for printers and older devices on a restricted VLAN.
Point each template at the subnets it applies to, and discovery does the rest.
Step by step: setting up discovery
- Prepare devices. Configure SNMPv3 users (or read-only communities for legacy devices) and allow SNMP from the monitoring server’s address only.
- Create templates for each credential set.
- Define sweep ranges — management VLANs, building subnets, data centre ranges. Start small.
- Run the sweep and review what was found. Unknown devices are the interesting ones: unmanaged switches, forgotten access points, a printer nobody listed.
- Fix the gaps. Devices that answer ping but not SNMP usually have the wrong credentials or an access list blocking the monitoring server.
- Schedule regular sweeps so new devices are picked up automatically.
- Check monitoring — up/down status, interface status and bandwidth — is flowing for every discovered device.
Why do some devices not show up in discovery?
When a sweep misses devices you know exist, the cause is usually one of a handful of things:
- ICMP is blocked, so the sweep never sees the host as live. Allow ping from the monitoring server, or sweep those ranges without relying on it.
- Wrong credentials or version. The device runs SNMPv3 with a different user, or only v2c with a community the template does not hold.
- Access lists on the device permit SNMP only from an old management server address.
- Firewalls between sites drop UDP port 161 between the monitoring server and remote buildings.
- SNMP is simply not enabled, which is common on unmanaged or newly installed equipment.
Work through this list for each miss. Every fix improves the next sweep, and the list of devices that cannot be monitored becomes a useful finding for your asset register.
From monitoring to management: onboarding with write access
Discovery normally uses read-only access. To push configuration, a device must be onboarded with read-write access, which is a deliberate step. Treat it as one:
- Onboard only the devices you intend to manage centrally.
- Use separate credentials for read-write, held by fewer people.
- Restrict management access to the monitoring and management servers.
- Record who onboarded each device and when.
How do you push configuration to many devices safely?
The appeal is obvious: change the NTP server, a syslog destination, a banner or an access list on a hundred switches at once, instead of a day of manual logins. The risk is equally obvious: a mistake reaches a hundred switches at once. A safe process limits that risk.
- Write the change as a reviewed configuration. Keep it short and specific to one purpose.
- Back up current configurations of every target device before you start, using your existing backup process.
- Test on one or two lab or low-impact devices. Confirm the device accepts the change and still behaves as expected.
- Select targets carefully. Group by model and software version; a command that works on one platform may fail on another.
- Roll out in batches — for example 10 devices, then 25, then the rest — inside an approved change window.
- Check the per-device result after each batch. Any failure stops the rollout until it is understood.
- Verify the outcome, not just the push: monitoring should still show the devices up, and the new setting should be in effect.
- Record the change — what was pushed, to which devices, by whom, and the results — for your change management and audit trail.
A worked example
A campus network team needs to point 180 access switches at a new syslog server and the NIC NTP servers, in line with CERT-In’s time synchronisation and logging directions.
- The team writes a four-line configuration and has it reviewed.
- It pushes to two switches in the network lab and confirms logs arrive at the new server and the clocks are in sync.
- It selects the remaining switches by model, pushes to one hostel block of 12 switches and checks every result.
- Two switches report failures: an older software version uses different syntax. The team excludes that model, prepares a variant, and continues with the rest in batches of 40.
- The whole change takes an afternoon instead of several days, and the per-device results go into the change record.
A discovery and config push checklist
- SNMPv3 with authentication and privacy wherever supported
- Remaining v1/v2c communities read-only and restricted by access list
- Templates for each credential set, mapped to subnets
- Scheduled sweeps, with new devices reviewed
- Read-write onboarding as a deliberate, recorded step
- Configuration backups before every push
- Test on lab devices; roll out in batches by model and version
- Per-device results checked after each batch
- Change recorded for audit
Where AyatiNMS fits
AyatiNMS creates SNMP templates, sweeps the network, finds devices, connects to them and starts monitoring — with ping, up/down status, SNMP walk, interface status and bandwidth. Devices onboarded with read-write access can receive configuration in bulk: pick a configuration, select the devices, and AyatiNMS pushes it in the background and reports each result. It also keeps a DHCP lease timeline of who held every IP address.
If you run a large campus or enterprise network, read our guide to choosing a network monitoring tool for a campus, or book a demo on your own network.
Frequently asked questions
What is SNMP network discovery?
SNMP network discovery sweeps a range of IP addresses, tries SNMP credentials against each live host, and reads standard information such as system name, description and interfaces to identify and start monitoring every device that responds.
Which SNMP version should I use?
Use SNMPv3 wherever devices support it. SNMPv3’s user-based security model adds authentication and encryption, while SNMPv1 and v2c send community strings in clear text.
What is an SNMP template?
An SNMP template is a saved set of SNMP settings — version, credentials and options — that discovery applies to a range of addresses, so you do not enter credentials device by device.
How do you push configuration to many switches safely?
Back up current configurations, test the change on one or two devices, roll it out in small batches during a change window, check the per-device result, and stop if any batch fails.