Cisco IOS and IOS-XE troubleshooting
The Cisco IOS / IOS-XE collector reads version, interfaces, VLANs and the running configuration from switches over SSH. It is part of the Network devices connector, which is in every edition.
Before you start
- Protocol and port. SSH, port 22 by default. You set the port per job in the SSH port field of the Network devices job.
- Address. cinqstack connects to the device's primary IPv4 address in NetBox. A device without one is skipped.
- Account. A username and password saved on the SSH credentials page under Connectors › Network devices (admins only). The enable secret is optional. When it is set, cinqstack enters enable mode before it runs the commands.
- Commands. Read-only:
show version,show interfaces status,show interfaces description,show interfaces switchport,show vlan brief,show ip interface brief,show inventoryandshow running-config, thenshow archive log config allas a best effort (it reads configuration logging when that is on; a refusal is ignored). A read-only (privilege 1) account is refusedshow running-config(% Invalid input). Interfaces and VLANs still sync; configuration history and config checks need privilege 15, orshow running-configgranted to the account through AAA command authorization or a parser view. - Address tables. Also read-only, once per run and best effort:
show ip arpandshow mac address-table. They tell IP addresses where each address was last seen (switch, port, MAC). Each waits up to 30 seconds and is read up to 20,000 lines; past that the run says "address table truncated". A device that refuses them still syncs as before. cinqstack sends nothing to the addresses themselves. - Which devices. The job form under Connectors › Network devices needs a credential and at least one filter (site, role or tag). The collector is picked from the NetBox platform (
cisco-ios,cisco-ios-xe,ios,ios-xe,iosxe,cisco_ios,stratix,rockwell-stratix,stratix-iosorstratix-ios-xe), from a manufacturer whose slug containscisco, or from arockwellorallen-bradleymanufacturer when the device type is a Stratix 5200, 5400, 5410, 5700 or 5800 (by name or1783-catalogue number). If your platforms use other names, choose Cisco IOS / IOS-XE under Collector on the job. - Timeouts. Connect, sign-in and banner each wait 20 seconds. Each command waits up to 60 seconds (120 for
show running-config). - NetBox. The firmware version is written to the
firmware_versioncustom field. Create it in Settings › NetBox schema if it is missing.
Common problems
| Message you see | What it means | What to do |
|---|---|---|
SSH authentication failed | The switch answered but refused the username or password. The run report groups these devices under "SSH sign-in refused". | Check the credential on the SSH credentials page, and that the account may use SSH on these switches. |
SSH connection to 10.20.0.11:22 timed out | No SSH answer within 20 seconds. The run report shows "No answer on SSH". | Check the primary IP in NetBox, that SSH is enabled on the switch, the SSH port on the job, and that firewalls let the cinqstack host (or its Relay edge) in. |
account cannot read the running configuration; config history disabled for this device; needs privilege 15, or 'show running-config' allowed for the account via AAA or a parser view | The account was refused show running-config. Facts, interfaces and VLANs synced; no configuration snapshot was stored. | Give the account privilege 15, or allow show running-config through AAA command authorization or a parser view. |
No primary IP address in NetBox | The device was skipped because NetBox has no primary IPv4 address for it. | Set a primary IPv4 address on the device in NetBox and run again. |
No collector recognises this platform or manufacturer: choose one under Collector on the job | The device was skipped. Neither its platform nor its manufacturer matched a known collector. | Choose Cisco IOS / IOS-XE under Collector on the job, or give the device a platform such as ios-xe in NetBox. |
NetBox: … | Collection worked, but NetBox did not answer while cinqstack planned the changes. | Check the NetBox connection and its token under Settings › NetBox. |
Device reports hostname '…', NetBox name is '…'. | A warning. The hostname on the switch differs from the device name in NetBox. Nothing is renamed. | Correct the name on the switch or in NetBox if they should match. |
Firmware not recorded: the firmware custom field is not set up in NetBox. | A warning. The software version was read but there is nowhere to write it. | Provision the firmware_version field in Settings › NetBox schema. |
NetBox writes are paused: NetBox has … devices and this licence covers … | Applying is blocked because NetBox has more devices than the licence allows. Plans and reviews keep working. | Reduce the device count or upgrade the licence under Settings › Licence. |
Other connection errors appear as the error type followed by its text. The run report lists them under "Collection failed".
Collect details for support
- Open the job under Connectors › Network devices, use the arrow next to Run now and choose Run with debug log. This records every command and its raw output. Passwords, secrets and SNMP communities are masked before they are stored.
- When the run finishes, open the run page (
/device-sync/runs/<run id>) and click Download log. The file is nameddevice_sync-run-<run id>.log. - Only operators and admins see the debug detail, so download the log with one of those roles.
Send the log file, the cinqstack version, the switch model and IOS or IOS-XE version, and the device name as it appears in NetBox. Read the log before you send it and remove anything your site does not share. Never send the credential itself.
An admin can also download a diagnostics bundle under Settings › Support › Download diagnostics. The page lists every file in it before you download, so you can check what you send. It never contains passwords, API keys, NetBox tokens, the licence file, device configurations or photos.