Use it when configuring, checking or troubleshooting Device Inventory in Network Automation.
Device Inventory
Device Inventory is the authoritative automation view of network targets, identities, addresses, platform metadata, groups and variables used to select and parameterize work.
1. Device inventory: hostname, management IP, platform, site, role.
2. Generated from NetBox/SoT.
3. Correct network_os/platform drives connection plugins.
4. Group by site/role.
5. Validate against reality (discovery).
SoT devices → inventory → automation targets
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 Operational evidence path Verify boundary
source of truth → inventory snapshot → identity normalization → group/selector evaluation → effective variables → live reachability/capability check → approved target set
Healthy evidence: stable identifiers, source revision, selector result and critical live metadata agree for the intended target set.
Step 2 Failure modes and next checks Narrow the fault
Suspicious evidence: stale IPs, duplicate identities, unexpected inherited groups or dynamically discovered devices silently expand or shrink scope.
Step 3 Common mistakes Narrow the fault
- Inventory missing platform/OS info.
Step 4 Where it fails Narrow the fault
Where Device Inventory usually goes wrong: source authority, host/object identity, grouping/selection, staleness and downstream target resolution.
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.
- Inventory record exists ≠ device reachable.
- Hostname label ≠ unique device identity unless anchored to a stable identifier.
- Group membership ≠ intended change scope when inheritance or dynamic rules are involved.
- Inventory metadata ≠ live device capability; software, interfaces or roles may have drifted.
ansible-inventory -i netbox.yml --list | jq '._meta.hostvars | length'— device count- Platform/network_os per device — connection settings
- Management IP and credentials source — reachability
ReferenceWhat it is1 section · depth on demand
Core model
Separate source-of-truth identity from discovery data, selector/group evaluation and live reachability; inventory is an input model, not evidence that a device exists, is reachable or should be changed.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Inventory shows what the automation system intends to target, not that every record is current, reachable, authorized or semantically correct.
In depth
Device inventory is the authoritative list of network devices with the attributes automation needs: name, management IP, platform/OS, site, role, credentials group and status. Every automation job depends on it being correct.
| Attribute | Used for |
|---|---|
| Management IP/hostname | Connecting |
Platform (ios, nxos, eos) | Choosing driver/module |
| Role and site | Grouping and templates |
| Status (active/planned/decommissioned) | Excluding devices |
| Software version | Compliance and upgrade planning |
Generate Ansible or Nornir inventory from NetBox rather than maintaining separate host lists.
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 Network Automation > Device Inventory. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://developer.cisco.com/site/networking/ · confidence 94%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.
Quick lookup tables
Device Inventory Network Automation proof-boundary map
Fast intent/scope, management-operation, device-state and network-acceptance boundaries for Device Inventory.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Intent / scope | Source revision and exact targets are explicit | Stale inventory, hidden selector or wrong variables change scope |
| Management operation | Transport/model/payload and per-device response are traceable | Auth/capability/parser differences hide partial or wrong execution |
| Device state | Effective and persistent state are read back | Accepted config/API result is mistaken for convergence |
| Network proof | Original control/data-plane or service test passes | Automation summary substitutes for actual network acceptance |
Deep reference
Healthy vs suspicious evidence
Output interpretation
For Device Inventory, rely on structured fields and stable IDs (source authority, host/object identity, grouping/selection, staleness and downstream target resolution) rather than text formatted for display.