SolarWinds

Edition: PROPro ENTERPRISEEnterprise

Connector for: SolarWinds Platform

What it does

The SolarWinds connector reads the nodes SolarWinds Platform monitors and compares them with the devices in NetBox. It supports SolarWinds Platform 2023 and later. It is a quick way to bring a site SolarWinds already knows into NetBox, and to keep the two in step afterwards. For each run the cinqstack Sync Engine makes a plan; nothing is written until an operator applies it (see Collect, review and approve).

Over the SolarWinds Information Service (SWIS), each run reads:

Every SWQL query, word for word, is on What each connector reads.

Matching. Each node is matched to one NetBox device, in this order:

  1. The solarwinds_id custom field (the Orion server and the node's NodeID). Once linked, a device stays linked through renames and re-addressing.
  2. The serial number.
  3. The name: the node caption, then its DNS name, compared as described under Domain suffixes to ignore when matching names below.
  4. The device's primary IPv4 address.

If more than one free device fits at a step, the node is ambiguous. cinqstack never guesses.

When a plan is applied, cinqstack writes for each matched device:

FieldWhen it is written
solarwinds_idAlways, to link the device to its node.
SerialWhen Orion's differs from NetBox.
FirmwareWhen the firmware_version field is in use and Orion's OS version differs.
DescriptionOnly when NetBox has none.
Primary IPOnly when the device has no primary IPv4 address yet.
InterfacesEnabled, description (from the Orion alias), speed, MTU and MAC address, when Interfaces is on. New interfaces only when Create interfaces is on.

Network devices comes first. A device kept up to date by the Network devices connector keeps its serial, firmware and interfaces from it, because a live read of the device beats SNMP polling. The SolarWinds connector only adds its node link, a missing description and a missing management IP.

The run also lists NetBox devices that no Orion node matched, and NetBox devices linked to Orion nodes that no longer exist.

What it needs in NetBox

If the optional last_synced and sync_source fields exist, each linked device gets the time of the last apply and cinqstack SolarWinds sync. A device owned by the Network devices connector keeps its own sync_source.

Setting up

1. Add a connection

An admin opens Connectors › SolarWinds and clicks Connections. The page explains that the sync only reads SolarWinds through SWIS: port 17774 on SolarWinds Platform 2023 and later, 17778 on older Orion releases.

FieldWhat to enter
NameA name for the list, for example "Site 2 Orion". Blank uses the server name.
Orion serverFor example orion.example.com.
Port17774 by default. Use 17778 for Orion releases before 2023.
UsernameAn Orion account with SWIS read access, for example DOMAIN\svc-readonly.
PasswordStored encrypted.
Verify TLS certificateOff by default, because Orion ships a self-signed certificate. Turn it on if your Orion server has a trusted certificate.

Then choose:

If you enter 17778 and the server answers on 17774 instead, the test says SWIS answered on port 17774, not 17778: use that port. Test and save saves port 17774 for you and says so.

A connection that a job uses cannot be deleted: That connection is used by a job.

2. Create a job

An operator or admin clicks New job on the Connectors › SolarWinds page.

FieldDefaultWhat it does
NameA name for the job.
OrionThe connection to read.
Domain suffixes to ignore when matching namesblankComma-separated, for example site.example.com, ot.example.com. Blank compares short host names (everything before the first dot). With suffixes, only those suffixes are removed and the rest of the name must match.
Interfaces: enabled, description, speed, MTU and MAConUpdates interfaces that exist in both.
Create interfaces Orion monitors but NetBox lacksoffAdds missing interfaces.
Create devices that are not in NetBoxoffCreates a device for an unmatched node. Needs a role on the matching rule.
Skip nodes that are unmanaged in OriononLeaves unmanaged nodes out of the run.
Prefix length when Orion has no subnet mask24Used to write the management IP. 8 to 32.
EnabledonA disabled job is not run by its schedule.

Schedule sets when the job runs: Manual, Repeating (every 5 minutes or more, optionally inside a daily time window), At a set time (chosen days) or Cron.

What happens after a run sets how far the job may write on its own:

LevelWhat happens
Report onlyCollect and plan. Never write to NetBox, even by hand.
Review firstEvery plan waits for someone to review and apply it.
Automatic updatesUpdates to linked devices are written. New devices and new interfaces wait for review.
Fully automaticEverything is written, including new devices and interfaces.

Safety limit holds an automatic write for review when a run would change more than the number of objects you set.

Click Save. Until the job has rules, it says Job saved. Add rules to decide which nodes go to which site.

3. Add rules

Rules decide which Orion nodes go to which NetBox site, with which role. They are listed under Rules on the job page. Rules run top to bottom (lowest Order first) and the first match wins. A rule with no site excludes what it matches. Nodes no rule matches are left out.

WhenPattern example
Node caption matches (regex)^ROT-
DNS name matches (regex)\.site\.example\.com$
IP address is in (CIDR)10.20.0.0/16
Vendor matches (regex)Siemens
Machine type matches (regex)SCALANCE
SNMP location matches (regex)Building 4
Custom property matches (Property=regex)Site=Rotterdam
Everything else(no pattern)

Regular expressions ignore case. A pattern that is not valid never matches. A custom property name may use letters, digits and underscores only; cinqstack reads only the properties your rules name.

Each rule also has a NetBox site slug (blank excludes), a Role slug (used only for new devices) and an optional Tag slug.

4. Run it

On the Connectors › SolarWinds page, click Run now beside the job, or use the arrow next to it and choose Run with debug log. Scheduled runs start on their own.

To collect through a Relay edge ENTERPRISEEnterprise, route the job under Connectors › Relay › Routes.

Problems with logins, ports or certificates are covered in SolarWinds troubleshooting.

Reading the results

The run page

Each run has a page at /solarwinds/runs/<run id>. Its status is one of queued, running, relay (waiting for a Relay edge), planned, apply queued, applying, applied or failed.

The tiles give the counts: nodes in scope, to update, in sync, to create, not in NetBox, ambiguous, NetBox only and not up in Orion.

If the plan can be written, an operator sees "Review the plan below, then write it to NetBox." with an Apply button. A report-only job has no Apply button.

A SolarWinds run plan: serial differences, a new switch to create, devices not monitored.
A SolarWinds run plan: serial differences, a new switch to create, devices not monitored.

Above the full plan, the report groups what the run found:

GroupWhat it means
NetBox refused some writesAfter apply. Everything else was written.
More than one NetBox device fitscinqstack will not guess. Set solarwinds_id on the right device, or rename the others, and run again.
Already linked to another Orion serverThe device carries another Orion's node ID. Clear its solarwinds_id to move it to this server.
Monitored in Orion but not in NetBoxNo device matched. Add it, or let the job create devices.
Not up in OrionOrion reports these nodes with any status other than up. They are still synced.
Gone from OrionLinked to an Orion node that no longer exists. Nothing is changed or deleted.
New devices to create in NetBoxCreated on apply.
… differs from OrionOne group per field, for example Serial differs from Orion. Applying writes the Orion value.
Interfaces to add, Interface details differWritten on apply.
In NetBox but not monitoredDevices with a primary IP at the sites in scope that no Orion node matched.
Out of scopeNo rule matched these nodes.
In syncNetBox matches Orion.

Under Full plan, the Nodes table (switch between Needs attention and All in scope) shows each node with its Orion status and response time, the NetBox device and how it was matched (id, serial, name or ip), the action and the changes. The action is one of create, update, ok, not in NetBox, ambiguous or linked to another Orion.

A node can carry notes:

NoteWhat it means
No role from the matching rule; cannot create.Create devices is on, but the rule has no role.
NetBox site is <a>, rule says <b>; not moved.The device sits at another site than the rule says. cinqstack does not move devices.
Orion polls <ip> but NetBox primary IP is <ip>; not changed.The primary IP differs. cinqstack does not replace it.
Owned by Network devices: serial, firmware and interfaces left to it.The Network devices connector keeps this device.
Already linked to …; clear its solarwinds_id in NetBox to move it to this Orion.See Already linked to another Orion server above.

Below come In NetBox but not monitored, Gone from Orion, the number of nodes out of scope or unmanaged, and after apply the Apply result with every operation and error.

Job history lists past runs with their counts.

What apply does

Apply is queued (Apply queued. The worker writes the reviewed changes to NetBox.) and the worker writes the plan. It first compares each planned field with what NetBox holds now: a field someone edited in NetBox since the plan is left alone and listed under Apply result and in the run report as "changed in NetBox since the plan", with a Plan again button. Linked devices that are already in sync get their last_synced time updated.

To set a missing primary IP, cinqstack uses the interface Orion polls that address on, creating it if needed. Without one, it uses the device's management-only interface or creates a virtual mgmt0. An IP address already assigned to another object in NetBox is left alone and reported. If NetBox cannot be reached, the run goes back to planned with Apply failed: ….

Applying is blocked while more devices are counted than the licence covers or a schema field the sync needs is missing. Pause all automation stops only automatic applies; an operator can still apply by hand.

Findings it raises

Findings appear in the Findings inbox PROPro, from the latest run of each job.

FindingSeverity
<device> is down in SolarWinds (a linked device, Orion status 2)High
<device>: <Orion status> (SolarWinds), for any other status that is not up, with Orion's own status descriptionMedium
SolarWinds node <name> matches several NetBox devicesMedium
SolarWinds node <name> is not in NetBoxLow
<device> is in NetBox but not monitored by SolarWindsInfo

Gone from Orion and Already linked to another Orion server are rows in the run report, not findings.

Limits