Siemens SCALANCE troubleshooting
The Siemens SCALANCE collector reads version, port status, descriptions, VLANs and the running configuration from SCALANCE switches over SSH. It covers the XR-500, XC-200, XB-200 and XM-400 families and SINEC OS. 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 for Cisco and is not used for SCALANCE.
- Supported families. Switches whose
show versionprints key: value lines (XC-200 and similar: System Name, Product, Serial Number, Firmware Version), and the X-500 family (XR-500; XM-400 shares its firmware), whoseshow versionprints tables. From the X-500 tables cinqstack takes the model (for exampleSCALANCE XR526-8C), the Siemens order number (MLFB, for example6GK5 526-8GR00-2AR2, shown as the part number in the device facts) and the firmware version. - Commands. The read-only commands
show device information,show version,show interface status,show interface description,show vlan,show ip interfaceandshow running-config. The serial number comes fromshow versionorshow device information. When the switch prints no system name, the hostname is taken from the CLI prompt. - Account rights. Interfaces and VLANs sync with a read-only account; configuration history and config checks need an account that may run
show running-config. - Paging. SCALANCE has no command to turn paging off (it answers
terminal length 0with% Invalid Command). cinqstack notices this and reads long output page by page, answering the-- more --prompt itself. There is nothing to configure. - 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 (
scalance,siemens-sinec-os,sinec-os,scalance-s,scalance-sc,siemens-scalance-sorsiemens-scalance-sc) or from a manufacturer whose slug containssiemens. If your platforms use other names, choose Siemens SCALANCE under Collector on the job. - Port names. The parser recognises ports named like
Gi0/1,Ex0/1,Fa0/1,Te0/1andP1. NetBox interfaces are matched by name:Gi0/1matchesGigabitEthernet0/1, but anExport matches only an interface namedEx0/25. - Port modes and VLANs. A port's tagged VLANs are its VLAN memberships in
show vlanthat are not untagged. Its untagged VLAN is its PVID from the running configuration, andswitchport mode accessortrunkthere decides the mode. A port can be an untagged member of several VLANs (VLAN 1 keeps every port untagged until it is removed there); NetBox holds one untagged VLAN per interface, so only the PVID is written. Without the running configuration, a port untagged in exactly one VLAN is an access port on it, and a port untagged in several gets no mode or VLAN that run. - Switched-off ports. A port with
power downin the running configuration is written as not enabled; the status table only saysnot connectedfor it. Without the running configuration,not connectedandnot present(an empty slot) leave NetBox's enabled flag as it is. - Timeouts. Connect, sign-in and banner each wait 20 seconds. Each command waits up to 60 seconds; on a switch that pages its output (the X-500 family),
show running-configwaits up to 120 seconds. - 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 SSH access is enabled for that user on the switch. |
SSH connection to 10.40.1.21: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. | Use an account that may run show running-config on the switch. |
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 Siemens SCALANCE under Collector on the job, or give the device the platform sinec-os 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. |
Read timeout on show vlan or show running-config (X-500 family) | Older cinqstack releases waited for output that the switch was holding behind a -- more -- prompt. | Upgrade cinqstack: current releases answer the prompt and read every page. |
No port mode or VLAN written for Gi0/4, Gi0/5: untagged in more than one VLAN, and which one is the port's PVID is only in the running configuration, which was not read. | A warning. Those ports are untagged members of several VLANs, and without the configuration cinqstack cannot tell which is the port's own. Their mode and VLANs in NetBox are left alone. | Use an account that may run show running-config. |
No port mode or VLAN written for Gi0/13: the port's PVID is not among its untagged VLANs in 'show vlan'. | A warning. The port's PVID (1 when the configuration sets none) is not one of the VLANs it is untagged in, so its NetBox VLANs are left alone. | Check the port on the switch: set its PVID to the VLAN it should be in, or correct its untagged membership. |
Untagged VLAN memberships NetBox cannot hold: Gi0/5 (VLAN 120; PVID 1 written). … | A warning. The port is untagged in another VLAN besides its PVID (VLAN 1 is not counted). NetBox holds one untagged VLAN per interface; the PVID is written. | Nothing, if that is intended. Otherwise remove the extra untagged membership on the switch. |
The running configuration's port section was not read to its end: … | A warning. The configuration read stopped among the port stanzas, so PVIDs and power down are not used that run. | Run again. If it repeats, collect a debug log for support. |
Device reports hostname '…', NetBox name is '…'. | A warning. The System Name 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 firmware 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 SCALANCE model and firmware version, and the device name as it appears in NetBox. The raw show version, show device information, show interface status and show vlan output helps most. Read the log before you send it, and 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.