iConfig Hardware Inventory Discovery Agent for Assets
Auto Light Dark
Auto Light Dark

Network Discovery (SNMP) — Setup Procedure

BETA. Network Discovery is part of the Open Beta. Use a sandbox instance or a new schema in production, as recommended for the rest of the app.

Objective

This SOP outlines the steps to discover network equipment — switches, routers, access points, printers, PDUs/UPSs and DVRs/cameras — over SNMP and bring the ones you approve into Jira Assets.

Before you start

Network Discovery does not replace the iConfig Agent — it covers what the agent cannot reach.

Device

Inventoried by

Appears in Assets as

Windows / Linux / macOS computer

iConfig Agent (osquery)

Host

Switch, router, access point

SNMP Collector

Network Device

Printer, PDU/UPS, DVR/camera

SNMP Collector

Network Device

A machine that answers SNMP but is a computer is never turned into an asset — it is listed under Computer (agent) instead, which is effectively your list of machines still missing the agent.

Requirements

Item

Detail

A Linux server on the network

Any distribution with python3

net-snmp

sudo apt install snmp · sudo yum install net-snmp-utils

Outbound HTTPS

TCP 443 to iassets.io. No inbound port is required

SNMP read access

v2c community or v3 credentials for the ranges you will scan

Jira permission

Assets administrator (Assets Manager role on the schema)

The server running the collector only needs to reach the equipment over UDP 161 (SNMP) and iassets.io over TCP 443. It never receives inbound connections.

Key Steps

1. Create a collector in the addon

  • Open iConfig → Network Discovery → Collectors.

  • Under New collector, type a name that says where it runs — site-sp-01, branch-rj, vlan-cctv. With several sites, this name is what tells the panels apart.

  • Click Generate token.

The token (iccol_…) is shown once. We store only its hash. If you lose it, revoke that collector and create another. Each collector has its own token, so a compromised server means revoking one collector — not all of them, and never the agent's key.

2. Install the collector on the Linux server

The addon shows the command with the token already filled in. Copy it and run it as root on the server:

Bash
curl -fsSL https://iassets.io/api/v1/download/collector/install.sh \
  | sudo ICONFIG_COLLECTOR_TOKEN='iccol_...' bash

This installs the collector into /opt/iconfig-collector, stores the token in /etc/iconfig/collector.env with 0600 permissions, creates the configuration file from the example and schedules the hourly scan in cron.

3. Declare what to scan

Edit /etc/iconfig/iconfig-snmp.yaml. Nothing is scanned until you list it here — there is no automatic sweep of the network.

YAML
networks:
  - cidr: 10.0.10.0/24
    label: infra           # switches, UPSs
    exclude:
      - 10.0.10.1          # gateway

  - cidr: 10.0.20.0/24
    label: printers

credentials:
  - name: default-v2c
    version: 2c
    community: ${SNMP_COMMUNITY}
    networks: [infra, printers]

Two things worth knowing:

  • You never declare an OID. The collection profiles (switch, printer, PDU, camera) are maintained by us and improve with collector updates.

  • A credential is bound to the ranges you list. It will not go probing the same community across the whole network.

Put secrets in environment variables rather than in the file — the YAML resolves ${VAR}. The installer writes them, commented out, in /etc/iconfig/collector.env.

4. Validate before scanning

Bash
python3 -m iconfig_snmp check -c /etc/iconfig/iconfig-snmp.yaml

This validates the file and reports how many addresses your ranges add up to, without sending a single packet. It refuses to continue if the ranges exceed limits.max_addresses_per_scan (5000 by default) — a /16 is roughly 65,000 addresses, which is almost always a typo rather than an intention.

5. Run the first scan

Bash
# scan and show the result, sending nothing
python3 -m iconfig_snmp scan -c /etc/iconfig/iconfig-snmp.yaml --dry-run

# scan and upload to iConfig
python3 -m iconfig_snmp scan -c /etc/iconfig/iconfig-snmp.yaml

From here on, cron runs it hourly. The devices show up in Network Discovery → Devices under Pending review.

6. Approve what should become an asset

See Network Discovery — Reviewing Devices and Choosing Fields. Nothing reaches Jira Assets until you approve it.

Testing without hardware

You can exercise the entire flow — scan, upload, review screen, approval — with no equipment at all:

Bash
python3 -m iconfig_snmp scan -c /etc/iconfig/iconfig-snmp.yaml --simulate

Seven sample devices (Juniper switch, Aruba switch, HP printer, APC UPS, Intelbras DVR and two computers) appear in the addon exactly as real ones would. The report is flagged simulated so it is never confused with production data.

Cautionary Notes

  • The token is displayed only once. Copy it before closing the panel.

  • Do not reuse the agent's API key for the collector. They are different credentials on purpose.

  • Keep /etc/iconfig/iconfig-snmp.yaml as chmod 600, owned by root — it holds SNMP credentials. check warns you if it is readable by others.

  • Prefer SNMPv3 wherever the equipment supports it. v1/v2c sends the community string in clear text on the wire.

  • The collector is read only — it never issues an SNMP SET.

  • Revoking a collector stops collection immediately. Devices already discovered stay where they are; only new data stops arriving.

Tips for Efficiency

  • One collector per site or per isolated VLAN. Naming them after their location is what makes the Registered collectors table useful later.

  • rate_limit (default 20 concurrent devices) and timeout exist so a scan does not saturate the network or knock over a low-powered DVR. Lower them on fragile networks.

  • Scans do not stack up. If the previous run is still going, the next one exits quietly instead of piling on processes.

  • To upgrade an existing collector, run the same install command without the token — it reuses the one already on disk and preserves your YAML and cron schedule.

Troubleshooting

Symptom

Cause / what to do

invalid configuration (exit 2)

check explains the line. Usually a missing ${VAR} in the environment.

Scan finds nothing

The credential does not apply to that range, or the equipment does not answer SNMP from this server. Test with snmpget -v2c -c COMMUNITY <ip> 1.3.6.1.2.1.1.1.0.

Upload fails (exit 1)

Check outbound 443 to iassets.io and whether the collector was revoked in the addon.

A device appears as Computer (agent)

Expected. It is a computer, so it belongs to the agent. If it has no agent installed, this is your reminder.

Collector shows never ran in the panel

Cron has not fired yet, or the scan is failing. Check /var/log/iconfig-snmp.log.

Last updated: