Network discovery (SNMP)
The Network discovery provider maps the network from the switches and routers you list. It reads what each one knows about its neighbours (LLDP and Cisco’s CDP) over SNMP and turns that into the Topology tab’s devices and links. The incident’s fault map and the RCA then see which device depends on which.
Connect it
Section titled “Connect it”On the Providers page, choose Network discovery (SNMP) and fill in:
| Field | What to enter |
|---|---|
| Switches and routers to read | Their management addresses, separated by commas: 10.10.0.1, 10.10.0.2:1161. A host name works too. At most 2,000. A subnet (10.10.0.0/24) or a broadcast address is refused. |
| SNMP version | v3 (the default) signs and encrypts every request. Use v2c only for devices that have nothing else: it sends the community in clear text. |
| SNMPv3 user | A read-only user configured on the devices. |
| SNMPv3 authentication | SHA, SHA-256 or SHA-512, as set on the devices. MD5 is not offered. |
| SNMPv3 authentication passphrase | At least 8 characters. |
| SNMPv3 encryption | AES-128, or AES-256. For AES-256, Cisco devices use the Cisco form and Juniper and net-snmp the Blumenthal form. DES is not offered. |
| SNMPv3 encryption passphrase | At least 8 characters. |
| SNMPv2c community | A read-only community (v2c only). |
One provider holds one set of credentials. For a zone with other credentials (the DMZ, a branch), add a second Network discovery provider. When you connect it, AVACOM asks each device for its name and reports any that did not answer.
With Pulling Enabled, AVACOM reads the devices every hour, eight at a time, with a 5-second timeout and one retry per request. The Pull button on the Topology tab reads them now.
What it reads
Section titled “What it reads”| MIB | What for |
|---|---|
| SNMPv2-MIB (system) | The device’s name, description and maker |
| IF-MIB | Port names, and whether each port is up |
| LLDP-MIB | Neighbours on each port: their name, port, management address and what they are |
| CISCO-CDP-MIB | The same, for Cisco devices without LLDP |
| IP-MIB (ARP), BRIDGE-MIB and Q-BRIDGE-MIB (MAC tables) | Only when AVACOM already has hosts with an IP or MAC address in its topology, to find the switch port each one is cabled to |
Each table is read up to 10,000 rows, with a short pause between requests, so a core switch’s MAC table does not load its CPU.
How the map is drawn
Section titled “How the map is drawn”- Devices. Each device is named by its host name without the domain (
sw-core-dc1-02.bank.localbecomessw-core-dc1-02), the name its syslog and traps carry, so its alerts land on it. A neighbour that reports no name takes the name of the service AVACOM already has at its IP or MAC address, else its address. IP phones are left out. Each device gets its kind (switch, router, firewall, server, wireless access point), maker, IP and MAC. - Links. One link per pair of cabled devices, labelled with the ports at both ends, the dependent device’s port
first:
lldp Gi1/0/49 ↔ Gi1/0/48. A device that LLDP and CDP both report, seen from both ends, is still one link. - Which way. Servers, access points and other end devices depend on their switch. Switches depend on routers and firewalls. Between two switches, the one more hops from a router depends on the nearer one. Two devices at the same level (a core pair) depend on each other.
- Hosts. A host AVACOM already knows, for example from Dynatrace or entered by hand, is placed on a switch port when the ARP and MAC tables find it there and nowhere else, on a port with no LLDP or CDP neighbour and at most 8 MAC addresses.
When a link goes down
Section titled “When a link goes down”A switch forgets an LLDP neighbour about two minutes after the link drops, just when the RCA needs that link. So AVACOM holds on to a link it no longer sees while a device at its end does not answer, or has that link’s port down. A link goes only when a device that answers has the port up without that neighbour. A device listed by host name is matched by the address the name resolves to.
Limits
Section titled “Limits”- A device that is also in the topology from another source, or entered by hand, shows as two nodes on the Topology tab, one per source. The RCA treats them as one device, by name.
- On Cisco Catalyst switches the MAC table is read only for the default VLAN (Cisco has one per VLAN), so hosts on other VLANs are not placed.
- Only IPv4 management addresses are read from the neighbour tables.
- Names are what the devices report. A neighbour that announces another device’s name over LLDP is taken at its word, as in any LLDP-based map, so turn LLDP off on ports facing hosts you do not manage.
Try it on the demo
Section titled “Try it on the demo”The agent demo’s network profile runs two simulated switches, snmp-sim (sw-core-dc1-02) and snmp-sim-acc
(sw-acc-dc1-11). Run ./setup.sh in msn/agents/demo (it writes the lab’s SNMPv3 passphrases to .env there),
then docker compose --profile network up -d. Connect the provider with the devices snmp-sim:1161, snmp-sim-acc:1161
and either SNMPv3 (user avacom-lab, SHA-256, AES-128, the two SNMP_LAB_* passphrases from .env) or SNMPv2c
(community avacom-lab). The simulators write the SNMPv3 passphrases to their own logs: they are for the lab only.