OBLYTECH Logo
OBLYTECH Logo

ServiceNow Discovery Classifiers and Identifiers

Discovery classifiers decide what kind of configuration item (CI) a device or process becomes. After a classification probe returns parameters, the classifier names the probes to run next. Identifiers then check the CMDB for an existing record, so Discovery can update a matching CI instead of creating a duplicate.

How a classifier starts the identification stage

A classifier sits between classification and the rest of a discovery run. Classification gathers facts about a target as parameters. The classifier tests those parameters against its criteria and, when they match, lists the probes for identification and exploration.

The default system ships classifiers for common platforms, so many environments do not need to write one. When a device is skipped, check the condition on the classifier that should have matched, since it depends on what the classification probe returned. For the probe types that a classifier can launch, see Discovery probes and sensors.

The three classification types

Classification type What it identifies What it relies on Typical result
Device Hardware and operating system, such as a Windows computer, a Linux host, a router or a load balancer WMI, SSH or SNMP access A device CI
Process Applications running on a computer Process output from a computer already in the Computer table Application CIs with a Runs on::Runs relationship
IP address (IP scan) Devices and software inferred from open ports and banners Port and banner data, without credentials for many devices An updated CI, then exploration probes for its class

Device classification triggers an active processes probe once a computer CI is found, and that probe’s results feed the process conditions. HTTP is the lowest-priority protocol by default, behind WMI, SSH and SNMP. From the Madrid release, horizontal discovery can classify devices over HTTP, falling back to it when ports 80 and 443 are open and the higher-priority probes fail, for example because SSH or SNMP credentials are wrong.

IP address classification starts from open ports and service banners. When its criteria match, Discovery updates the CI and runs the exploration probes for that device class.

Parameters and the criteria that test them

Each criterion pairs a parameter with an operator and a value. The parameter families differ by protocol.

Family Source Examples
UNIX SSH, version 2 output (raw uname -a result), type, IP address, name (for example Linux or HP-UX)
Windows WMI isNode, type, isVIP, ip_address, name (Windows version), cidata.name (hostname)
SNMP SNMP sysdescr, hosting, routing, switching, vlans, printing, powering, hint_router
Process Process probe parameter, command, output, type, PID, name

The sysdescr field is a required descriptive field on SNMP devices and can hold the operating system and version. Two cautions apply to process parameters. PID changes whenever a process restarts, so it rarely makes a useful criterion. Process names can also collide, since several processes can report the same name, so the name alone is an unreliable criterion. Condition filters in process classifiers are case-sensitive.

When a classifier misbehaves, enable the glide.discovery.debug.classification system property in the System Properties table. It accepts true or false and defaults to false. The log lists each classifier that runs and the values its criteria can see.

Classifier records and the fields that decide a match

Classifier records live under All > Discovery Definition > CI Classification, and creating one requires the admin role.

Field or list What it controls
OID and Operator The SNMP system OID to match, and whether it must Is or Starts with the value
Active A disabled classifier stops classification at its level and does not launch lower-order classifiers
Order The sequence in which the platform runs the classifier
Table The table that receives the classified CI
Match criteria Whether Any or All of the parameters must match
On classification script A script that runs on a match, often to set probe parameters
Triggers probes The exploration probes launched after classification

SNMP OIDs that use the Net-SNMP prefix 1.3.6.1.4.1.8072.3.2 or the Windows OS prefix 1.3.6.1.4.1.311.1.1.3 are not allowed, because template OIDs left on hardware can cause misclassification. If two devices share an OID, add criteria that tell them apart.

Windows machines acting as servers can be reclassified by function. Create a classifier against the Windows Server [cmdb_ci_win_server] table, add a criterion such as cidata.name starts with SRV, and set the Windows – Identity probe phase to Identification, which defaults to Exploration.

How identifiers decide whether a CI already exists

After classification, identity probes gather identifying data such as serial numbers, names and network details. An identity sensor passes those results to the identifier, which may update a matching CI or create a new one. When Discovery continues, the identifier launches the exploration probes in the classification record. This step applies to the Configuration item type of discovery. For the matching logic behind these rules, see CI lookup rules, and for how a single rule is put together, see identification rules.

Identifier rules sit in the Identifier [cmdb_identifier] table, with attributes in the Identifier Entry [cmdb_identifier_entry] table. The default system ships four rules.

Rule Applies to Attributes used for matching
ESX Server Rule ESX Server [cmdb_ci_esx_server] correlation_id
Hardware Rule Hardware [cmdb_ci_hardware], with serial number and network adapter searches serial_number, serial_number_type, name, ip_address, mac_address
Storage Server Rule Storage Server [cmdb_ci_storage_server], with serial number and network adapter searches cim_object_path, name, serial_number, serial_number_type, mac_address, ip_address
WBEM Service Rule WBEM Service [cmdb_ci_wbem_service] cim_object_path

Each rule ties to a CI type through sys_class_name or its Applies to table. The sys_class_name field cannot be an attribute of an independent rule such as the one for cmdb_ci_hardware. To match on one class, create a rule for that class and name it in Applies to.

Attribute choices carry trade-offs. Bonded or teamed interfaces share IP and MAC addresses, so adding the name attribute lets a rule tell them apart. Renaming an adapter then breaks resolution: Discovery cannot match it to the existing CI, the original shows an Install Status of Absent, and a second CI is created.

Custom identifiers need Order values that differ from the defaults. Clear the Active check box to switch a rule off without deleting it.

Pre-Geneva upgrades keep legacy identifiers. To move to the newer ones, add glide.discovery.use_cmdb_identifiers and set it to true, after converting any custom legacy identifiers, since the system does not convert them. Geneva and later instances already have that property. With Service Mapping active, the newer identifiers are used regardless of the property value.

Serial numbers as the identity anchor

Discovery writes each serial number it finds to the Serial Number [cmdb_serial_number] table, and its source sets the stored type.

Platform Where Discovery reads the value Stored serial types
Linux dmidecode output system_serial_number, uuid_serial, baseboard_serial, chassis_serial
Windows WMI Win32 classes for the computer system, enclosure, BIOS and baseboard system, uuid, chassis, bios, baseboard
SNMP Physical entries in the entityMIB Cisco stack and chassis, Foundry, APC PDU, printer, standard UPS

If you change a baseline probe, sensor or pattern, confirm it still discovers serial numbers, and do not add a custom prefix to serial number syntax, because non-standard serial numbers can lead to inaccurate asset tracking.

IP scans without credentials

IP address discovery runs port probes without credentials and chooses classifiers from the open ports it finds. SNMP devices still need credentials, and Discovery uses credentials whenever they are available.

Setup means scanning the target ports, creating an IP Service record under Discovery Definition > IP Services, and adding a port probe. Add that probe to the Basic Discovery functionality definition for All, create the classification with its parameter, and run an IP address discovery from the Discovery Schedule.

Parameters take the form portprobe.service.field, built from the fields the Shazzam probe returns. An open SSH port 22 becomes ssh.ssh.result, and MySQL on port 3306 becomes mysql.mysql.result.

Patterns and large horizontal runs

A pattern defines which CIs to find, which credentials to use and which tables to populate. Patterns run in the identification and exploration phases, where one pattern trigger can replace several probes. To switch a classifier, deactivate its identification and exploration probes, add the Horizontal Pattern probe, choose the pattern in its Pattern column and remove the other probes.

Switching after probes have populated the CMDB can create duplicate CIs, so the change suits classifiers that have not yet run with probes. Deleting a pattern leaves the Horizontal Pattern probe on the classifier, and with no pattern selected, discovery stops after classification.

Frequently asked questions

Do I need a new classifier for a device Discovery already sees?

Usually not. A custom classifier suits a CI type that Discovery does not already find.

Why did a classifier stop matching after a change?

Check the Active flag and the Order, since a disabled classifier stops classification at its level. Then confirm the criterion still matches the parameter value, and enable the classification debug property to see what the criteria receive.

Why did switching to patterns create duplicate CIs?

Records built by probes and records built by a pattern can both exist once the CMDB is populated. Reconcile the probe-based data before you move, and switch classifiers that have not yet run with probes.

Can HTTP classification use credentials?

Not by default. The HTTP Classify probe no longer attempts credentials over plain HTTP. The mid.http_classy.allow_credentials_over_http property overrides this, but enabling it can expose credentials to a man-in-the-middle attack, so keep it false and use HTTPS where the device supports it.

What happens when I disable an identifier?

Clearing its Active check box stops that identifier or rule from running, and it can be switched back on later.

For a wider rollout plan, see the discovery best practices page. The CMDB identification and reconciliation page covers the matching logic beside Discovery identifiers, and the troubleshooting guide helps when a run creates unexpected CIs.