OBLYTECH Logo
OBLYTECH Logo

Use telecom router and switch discovery patterns

The Telecom Router discovery pattern finds SNMP-based routers in the network and creates IP Router records along with their slots, interface cards and network interfaces. The Telecom Switch pattern does the same for SNMP-based switches. Both run from the Telecommunications Discovery Patterns application, so check the TSOM subscription, SNMP access and pattern setup before you start a run.

What the router pattern discovers

Telecom Discovery uses the Telecommunications Discovery Patterns to run Horizontal Discovery. The router pattern sends a set of SNMP requests to find, classify and discover network elements, then writes the results to the CMDB as linked records. A router is not stored as one flat record. Its chassis, cards and ports are modeled as child records, so the CMDB reflects how the device is built.

The pattern is delivered in the Telecommunications Discovery Patterns application, identified as sn_tsom_patterns, which is part of TSOM Visibility. If the pattern does not appear to run on your instance, confirm the application is installed before you change any discovery settings.

Prerequisites to confirm before the first run

Work through these five items in order. A gap in any one of them can look like a router that did not reach the CMDB, and that makes the cause harder to trace later.

  • A TSOM subscription on the instance.
  • SNMP access on the network router devices, checked from the network side.
  • SNMP credentials configured on the ServiceNow instance.
  • The Telecommunications Discovery Patterns (TSOM Patterns) installed from the ServiceNow Store, with updates applied.
  • A MID Server with the TSOM patterns synced to it. Run Pattern Sync to Mid from Discovery > MID Servers, then check that mid.telecom.discovery.patterns.enabled is set to true for each MID Server that runs them.

Some router resources need updated TSOM Patterns from the Store, so an older pattern set can leave a device unidentified. Set up the patterns before the first run, following the steps for your release. For the setup sequence on this site, see the telecom discovery builder setup page. For help planning this work, see ServiceNow implementation.

Plan the router inventory and credentials

A discovery run is easier to check when you know what it should find. Before the first run, list the management addresses of the routers you expect to see, and note which SNMP credential each one uses. Keep the list with the run notes so you can compare the result against it later.

Group the routers by SNMP configuration. If some devices use one credential and others use a different one, check each group separately. A router that fails inside a mixed group is easier to isolate when you already know which credential it should use.

Write down the layout of one or two routers as well. The chassis model, the slot count and the number of cards each router should have give you a baseline for the CMDB records after the run.

Map the CMDB classes the router pattern writes

Each router produces a chain of configuration items. Knowing the class and table for each level tells you where to look when a record is missing.

  • IP Router CI (table cmdb_ci_ip_router): the device itself. It contains slots or network interfaces.
  • Slot CI (table cmdb_ci_container_slot): contained by the IP Router, and holds an interface card.
  • Subslot CI (table cmdb_ci_container_subslot): contained by an interface card, and holds an interface card of its own.
  • Interface Card CI (table cmdb_ci_interface_card): sits in a slot or subslot and can hold network interfaces or subslots. Fan and power supply units are modeled as card CIs too.
  • Network Interface CI (table cmdb_ci_ni_interface): contained by an interface card or by the IP Router.

Read the hierarchy from the top. Start at the IP Router record, then follow the containment links down to the cards and interfaces. A network interface with no containing card or router often means the parent record was not created, so check the parent level before you investigate the interface itself.

Review the router SNMP classifier

The classifier holds the list of OIDs that determine how a device found by SNMP is classified. For routers, the classifier is named Standard Network Router. Its SNMP OID Classifications tab lists the OIDs. The MIB tables used on a router are SystemMIB, EntityPhysicalMIB, IfMIB, IfXMIB and IpMIB.

Use these steps to review the list. The classification review requires the admin role.

  1. Navigate to All > Discovery Definition > CI Classification > SNMP.
  2. Select Standard Network Router from the list.
  3. Open the SNMP OID Classifications tab to see the list of OIDs.

The steps above were written for the Yokohama release. Confirm the classifier name and navigation path on your own release before you rely on them.

Compare the switch pattern with the router pattern

The Telecom Switch pattern follows the same SNMP-based approach. Its prerequisites match the router list, and it uses the same card, slot and interface model. The same five MIB tables are used for switches. The differences sit in the top-level device class and the classifier.

  • The device record is an IP Switch CI in the table cmdb_ci_ip_switch, where the router uses cmdb_ci_ip_router.
  • The classifier is named Standard Network Switch and sits under the same CI Classification path as the router classifier.
  • Network interfaces are still stored in cmdb_ci_ni_interface, and they can be contained by an interface card or by the IP Switch.

The router and switch classifiers are separate lists, so check whether the switch classifier needs the same change when you edit the router list.

Run one device before you widen the range

Before you run the pattern across a full set of addresses, pick one router with a known layout and confirm its records. A single device gives you a baseline that is easy to check against the CMDB.

  1. Choose a router whose hardware layout you wrote down in your inventory.
  2. Confirm SNMP access from the discovery side, and confirm the credential that applies to that router’s address.
  3. Run the pattern for that device and wait for the run to complete before you check the results.
  4. Compare the IP Router record, its slots, cards and interfaces with the layout you wrote down.
  5. Widen the range after the single device matches the layout.

Repeat the check for one router from each hardware family before you run the whole range, because cards and interfaces can differ between models.

Verify discovered records after a run

After a run, check the results in the same order as the hierarchy. Confirm that:

  • an IP Router record exists in cmdb_ci_ip_router for each router in the expected list;
  • slot records in cmdb_ci_container_slot link to the correct router;
  • interface card records, including fan and power supply cards, sit under the correct slot or subslot;
  • network interface records in cmdb_ci_ni_interface link to the correct card or router.

Compare the counts with the layout you wrote down. Missing cards usually point to an SNMP or classifier problem on that device. Missing routers point to reachability or credentials first.

Fix routers that are missing from the CMDB

Work through the causes below, from the quickest check to the slowest.

  • No SNMP response. The device does not answer SNMP requests from the discovery side. Test the SNMP access on the router first.
  • Credential mismatch. The SNMP credentials on the instance do not match what the device expects for that address.
  • Outdated pattern. The router needs an updated TSOM Pattern from the ServiceNow Store.
  • Classifier gap. The device exposes OIDs that the Standard Network Router classifier does not list.

Change one thing at a time. Run the pattern for the same device after each change and compare the result with the previous run, so you can tell which change made the difference.

Questions about router and switch discovery

Can the router pattern find a device that does not answer SNMP?

Not through this pattern. The pattern discovers devices with SNMP requests, so a device that does not respond to them needs its SNMP access fixed first. Track the device as an open item in your inventory until the access is in place.

What should I check before I add an OID to the classifier?

Confirm that the device returns the value over SNMP from the discovery side, and that the OID is not already on the list. Write down the device model, the OID and the reason for the change, so the next person can see why the list changed.

Should I delete existing router records before a rerun?

Do not start by deleting records. Note the current state of the router and its child records, run the pattern again, and compare the new records with the old ones. Remove a record after you have checked that it is a duplicate or stale, and note the reason in your run notes.

Why does a router record exist with no interface cards?

The IP Router record can be created while its child records are not. Check whether the interface MIBs, IfMIB and IfXMIB, return data for the device over SNMP. Then check EntityPhysicalMIB, which describes the hardware components, before you change any credential, since the credential already reached the device to create the router record.

Does this approach apply to discovery outside telecom networks?

This page covers the telecom router and switch patterns. Teams with other estates can compare the scope of the healthcare discovery page and the financial services discovery page before they plan a run. The prerequisite and verification order here still works as a checklist, but check the patterns that apply to the devices in that estate.