OBLYTECH Logo
OBLYTECH Logo

Classify network functions by SNMP OID with classifiers

A Cisco 7613 router is classified as an xNF through the Standard Network Router classifier. That classifier matches the router’s SNMP object identifier, 1.3.6.1.4.1.9.1.528, and hands the device to the Telecom Cisco 7613 Router pattern. Before the match can happen, the instance needs a TSOM subscription, SNMP access to the router and SNMP credentials that Discovery can use.

What the Standard Network Router classifier matches on

A classifier decides what a discovered device is by comparing it against a list. For network functions found over SNMP, that list is made of OIDs. The Standard Network Router classifier holds the OID list for routers. Each row ties a vendor, a model and an OID to the pattern that should handle a device carrying that OID.

For the Cisco 7613, the row carries the OID 1.3.6.1.4.1.9.1.528 and points to the Telecom Cisco 7613 Router pattern. The vendor, model, OID and pattern values match across the Yokohama, Zurich, Australia and Brazil releases, so the mapping has not changed between them.

The pattern belongs to the Telecommunications Discovery Patterns application (sn_tsom_patterns), which is part of TSOM Visibility. Telecom Discovery uses these patterns to run Horizontal Discovery. The Cisco 7613 pattern sends a set of SNMP requests to find, classify and discover the network elements. In practice, a router that does not answer those requests gives the pattern nothing to classify.

The pattern reads five MIB tables on an xNF: SystemMIB, EntityPhysicalMIB, IfMIB, IfXMIB and IpMIB. When a Cisco 7613 is missing from the results, check that the router answers SNMP requests for these five modules before you change the classifier.

Prerequisites to confirm before you classify a Cisco 7613

Confirm these items before you open the classifier. Each one affects whether the pattern can run against the router.

  • A subscription to TSOM on the instance.
  • SNMP access on the Cisco 7613 router.
  • SNMP credentials configured on the instance for that router.
  • Updated Telecommunications Discovery Patterns from the ServiceNow Store, for the resources that require the update.

Some resources need the updated patterns from the Store, so check the Store for the update before you troubleshoot a missing classification. The telecom side of the setup is covered in setting up the telecom discovery builder, which you can read alongside this guide.

Configure SNMP credentials for the router

Discovery uses two kinds of SNMP credential. A community credential has no user name. Its password field holds the community string. The default read-only community string for many SNMP devices is public, and Discovery tries it automatically. If the router uses another string, create a community credential that holds the string the router actually uses.

When several community strings are configured, Discovery uses all of them during SNMP discovery. That behavior does not apply to SNMPv3, which relies on user credentials instead.

Add an SNMPv3 user credential

Role required: admin. Use this path when the router is configured for SNMPv3.

  1. Navigate to All > Discovery > Credentials.
  2. Click New.
  3. Click SNMPv3 Credentials.
  4. Fill in the form, using the fields below.
  • Name: a unique, descriptive name, such as one that identifies the site or the device group.
  • Active: enables or disables the credential for use.
  • Applies to: All MID servers, or Specific MID servers. With Specific MID servers, list the servers in the MID servers field.
  • Order: the sequence in which Discovery tries the credential. Set it deliberately when you hold many credentials or when devices lock accounts after three failed logins. If all the credentials have the same order number, Discovery tries them in a random order.
  • User name: the SNMP user name. Avoid leading or trailing spaces.
  • Authentication protocol and Authentication Key: choose from MD5, SHA-1, SHA-224, SHA-256, SHA-384 or SHA-512, then enter the key.
  • Privacy protocol and Privacy key: choose from 3DES, AES128, AES192, AES256 or DES, then enter the key.
  • Use Context and Context Name: adds a context value to this credential.

Choose the security level that matches the router’s SNMPv3 setup. For noAuthNoPriv, the authentication and privacy protocols are set to None, and both keys stay blank. For authNoPriv, the authentication protocol and key are set, and the privacy fields stay blank. For authPriv, all four values are set.

Set the SNMP version on the discovery schedule

A credential does not decide the SNMP version on its own. Set the version on the schedule after you choose the credential. Role required: admin.

  1. Navigate to All > Discovery > Discovery schedules.
  2. Open your Discovery schedule.
  3. In the Use SNMP Version field, select the version.

The default value is ALL. The other choices are v1, v2c and v3. The version has to fit the credential. With an active SNMPv3 credential, choose v3 or ALL. With an active SNMPv1 or v2c community credential, choose v1, v2c or ALL.

A MID Server parameter also controls which SNMP versions a server supports. MID Servers support all SNMP versions by default, and a server can be limited to specific versions. Check that parameter when the schedule and the credential agree but the router still does not respond through that server.

Verify the Cisco 7613 row in the classifier

Check the classifier row before you rerun discovery on the router, so you know which pattern the OID will call. Role required: admin.

  1. Navigate to All > Discovery Definition > CI Classification > SNMP.
  2. From the list, select Standard Network Router.
  3. Open the SNMP OID Classifications tab.
  4. Find the row with Vendor Cisco, Model 7613 and OID 1.3.6.1.4.1.9.1.528.

The Pattern value on that row should read Telecom Cisco 7613 Router. If it reads anything else, resolve the classifier before you rerun discovery.

How a classified Cisco 7613 maps to CIs

After classification, the router and its parts are represented by the physical-layer CIs below. The relationships follow the physical layout of the device, so you can read a discovered chassis from the top down.

  • The IP Router CI (cmdb_ci_ip_router) represents the device. It contains slots or network interfaces.
  • The Slot CI (cmdb_ci_container_slot) represents each slot. A slot is contained by the IP Router and contains an interface card.
  • The Subslot CI (cmdb_ci_container_subslot) represents each subslot. A subslot is contained by an interface card and contains an interface card.
  • The Interface Card CI (cmdb_ci_interface_card) represents each card. Cards are contained by slots or subslots, and they can contain network interfaces or subslots.
  • The Network Interface CI (cmdb_ci_ni_interface) represents each interface. It is contained by an interface card or by the IP Router.

Fan and power supply units are also represented by the Interface Card CI. When you reconcile a chassis, look for them among the cards rather than among the network interfaces.

Release differences in the Cisco 7613 setup

The classifier row, the pattern name and the prerequisites are the same in the Yokohama, Zurich, Australia and Brazil releases. Brazil is the newest of these and Yokohama the oldest. Where the classifier steps live does differ. In Yokohama they sit inside the pattern page. Zurich, Australia and Brazil give them a page of their own.

If your instance runs a release older than Brazil, check the classifier row on your own instance, because that list is what the pattern reads when it runs there.

For help planning this work, see ServiceNow implementation.

Questions about extending the classifier and troubleshooting discovery

Can I add an OID for a router model that is not in the list?

Yes. Rows are added on the SNMP OID Classifications tab of the Standard Network Router classifier, and each row names the pattern that handles the OID. Test a new row on one router of that model, and confirm the pattern it calls is the one you expect, before you apply it across a wider Discovery run.

Can the same SNMP credentials serve other discovery work?

SNMP community credentials are available to Discovery, Service Mapping and Orchestration. SNMPv3 credentials are available to Discovery and Orchestration. A credential created for this router is therefore not limited to the telecom pattern. Check its Applies to setting before you reuse it. A credential limited to specific MID servers is available only to those servers, and Specific MID servers is not supported for Orchestration activities. Discovery work in other industries has its own pages, such as discovery for healthcare and discovery for financial services.

When does an SNMPv3 credential need a context name?

A context is a collection of management information that an SNMPv3 credential can reference, and it points to a specific OID. Some devices need a context before the credential can reach information that the normal credential cannot access. The manufacturer can provide a context, or one can be configured separately. Enable Use Context and enter the Context Name for devices that need it. If devices share a user name and keys but some need a context and some do not, create a separate credential record for each group. Contexts are not currently supported for external credential storage.

What should I check first when a Cisco 7613 is discovered but not classified?

Start with the network path. Confirm that the MID Server running the schedule can reach the router over SNMP, because the pattern has no data to classify without that access. Next, confirm that the credential record is active and that its Applies to setting covers the MID Server that runs the schedule. Then confirm that the Use SNMP Version setting on the schedule fits the credential type. If all three agree and the router still does not classify, rerun the schedule once and record the outcome for that router before you change anything else.