Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Linux discovery

Discovery and Service Mapping applications use probes and patterns to discover and map information about Linux computers and servers. The information is populated in the CMDB. Discovering some of these resources may require updating to the latest version of the Discovery and Service Mapping Patterns application from the ServiceNow Store.

Supportability details

The Linux server pattern can discover only English-based Linux.

  • Supported Linux operating systems

    For IPv4 discovery:

    • Red Hat
    • Oracle
    • Fedora
    • Debian
    • SUSE
    • CentOS
    • Ubuntu
    • Rocky Linux
    • AlmaLinux OS
    • Debian GNU/Linux
    • VMware Photon OS
    • Amazon Linux
    • Alpine Linux (starting from Visibility Content version 6.30.0)* * Operating System and OS Version only

    For IPv6 discovery:

    • CentOS 7
    • Ubuntu 20 The following operating systems or devices haven’t been verified for IPv6 discovery:

    • Red Hat cluster

    • Oracle Clusterware
    • Linux Pacemaker cluster
    • Network storage

Classifier, probes, and pattern

ClassifierProbesPattern
Linux\(Unix classification\)- Horizontal discovery probe: Launches patterns - Linux - Installed Software^ - Unix - ADM^ - Linux - Identity\* - Linux - CPU\* - Linux - Distribution\* - Linux - Find FQDN\* - Linux - Memory\* - Linux - Memory Modules\* - Linux - Network ARP Tables\* - Linux - Storage\* - Linux - Amazon EC2\* - Unix - OS Uptime\* - UNIX - OS Filesystems\* - UNIX - Find FQDN\* - Unix - ADM Enhanced\*Linux Server

*These probes aren't active on the classifier, as Discovery uses patterns by default for these discoveries.

^These probes remain active by default, even when Discovery uses pattern discovery.

To use patterns, verify that the correct pattern is specified in the horizontal pattern probe on the classifier. See Add the Horizontal Pattern probe to a classifier for instructions.

Request new or enhanced Patterns on the ServiceNow® Store

Visit the ServiceNow Store to view all the available updates and for information about submitting requests to the store. For cumulative release notes information for all released apps, see the ServiceNow Store version history release notes.

Requirements for Linux discovery

Before running a discovery, you must verify that all the required configurations are complete.

Data collected

The Linux classifier triggers probes that perform the discovery. Several probes are launched during the discovery. See the classifier for a list of the trigger probes.

Note: See the knowledge article KB0687582 for information on model_id and manufacturer.

LabelTable NameField NameSource
Operating Systemcmdb_ci_linux_serverosuname -a
OS Versioncmdb_ci_computeros_versionuname -a or cat /etc/*release
Short descriptioncmdb_ci_linux_servershort_descriptionuname -a
Namecmdb_ci_linux_servernameDNS, NBT
Hostnamecmdb_ci_linux_serverhost_nameDNS, NBT
DNS domaincmdb_ci_linux_serverdns_domainDNS
Start datecmdb_ci_linux_serverstart_dateuptime
Manufacturercmdb_ci_computermanufacturerdmidecode
Serial numbercmdb_ci_computerserial_numberdmidecode
CPU typecmdb_ci_linux_servercpu_type/proc/cpuinfo
CPU speed (MHz)cmdb_ci_linux_servercpu_speed/proc/cpuinfo
CPU countcmdb_ci_linux_servercpu_count/proc/cpuinfo
CPU core countcmdb_ci_computercpu_core_count/proc/cpuinfo
CPU core threadcmdb_ci_computercpu_core_thread/proc/cpuinfo
CPU manufacturercmdb_ci_linux_servercpu_manufacturer/proc/cpuinfo
Model numbercmdb_ci_computermodel_numberdmidecode
Model IDcmdb_ci_computermodel_iddmidecode
RAM (MB)cmdb_ci_linux_serverrammeminfo
Disk space (GB)*cmdb_ci_linux_serverdisk_space/proc/ide, /proc/scsi, /var/log/dmesg
Typecmdb_ci_disktype/proc/ide, /proc/scsi, /var/log/dmesg
Model IDcmdb_ci_diskmodel_id/proc/ide, /proc/scsi, /var/log/dmesg
Disk space (GB)cmdb_ci_diskdisk_space/proc/ide, /proc/scsi, /var/log/dmesg
Namecmdb_ci_diskname/proc/ide, /proc/scsi, /var/log/dmesg
Namecmdb_ci_file_systemnamedf
Capacity (MB)cmdb_ci_file_systemcapacitydf
Free Space Bytes (MB)cmdb_ci_file_systemfree_space_bytesdf
Mount pointcmdb_ci_file_systemmount_pointdf
Namecmdb_running_processnameps
Commandcmdb_running_processcommandps
Typecmdb_running_processtypeps
PIDcmdb_running_processpidps
Parameterscmdb_running_processparametersps
Namecmdb_ci_network_adapternameifconfig or ip address show
IP address**cmdb_ci_network_adapterip_addressifconfig or ip address show
MAC addresscmdb_ci_network_adaptermac_addressifconfig or ip address show
Netmaskcmdb_ci_network_adapternetmaskifconfig or ip address show
Default gatewaycmdb_ci_hardwaredefault_gatewayroute

* The value in the disk_space field is an aggregation of the total capacity (to include used space) for all non-removable disks, including both directly attached and SAN storage.

** Starting with Visibility Content version 6.32.0, for network adapters that support both IPv4 and IPv6, the IPv4 address is populated by default. Before this release, the populated value was selected randomly. To control which IP version is populated, see Set the preferred IP version for network adapter discovery.

Note: Make sure to define unique serial numbers for the RAMs on the Linux server.

Discovery also identifies and classifies information about Linux KVM. Discovery identifies Linux kernel-based virtual machines (KVM) when the process classifier detects libvirtd running on a Linux server. The classification triggers the creation of a cmdb_ci_kvm record and launches the SSH Command probes to explore the Linux server with virsh, lbvert utility, and virtual machine configuration data.

Discovery creates a [cmdb_ci_kvm_instance] record for each virtual machine on the server, and then matches the [cmdb_ci_kvm_instance] record to a corresponding [cmdb_ci_computer] record using the MAC addresses of installed network adapters.

Table nameExtendsDescriptionSource
cmdb_ci_kvmcmdb_ci_vmA hypervisor that manages kernel-based virtual machines (KVMs)Process classifier detects libvirtd running on Linux servers
cmdb_ci_kvm_vm_instancecmdb_ci_vm_instanceA virtual machine instance on this hypervisorvirsh list-all and dumpxml command
cmdb_ci_kvm_objectcmdb_ci_vm_objectAn object connected to a virtual machine instance<network>, <storage pool>, and <storage volume> elements from the dumpxml command
cmdb_kvm_deviceNot applicableA device connected to a virtual machine instance<devices> element from the dumpxml command
LabelTable nameField nameSource
Linux Hostcmdb_ci_kvmlinux_hostReference to the cmdb_ci_linux_server that is running this virtual machine
Detailscmdb_ci_kvmdetails_xmldumpxml
Object IDcmdb_ci_kvm_vm_instanceobject_idvirsh dumpxml
Statecmdb_ci_kvm_vm_instancestatevirsh list-all
CPUscmdb_ci_kvm_vm_instancecpusvirsh dumpxml
Memorycmdb_ci_kvm_vm_instancememoryvirsh dumpxml
Diskscmdb_ci_kvm_vm_instancedisksvirsh dumpxml
Disks sizecmdb_ci_kvm_vm_instancedisks_sizevirsh domblkinfo
Network adapterscmdb_ci_kvm_vm_instancenicsvirsh dumpxml
Namecmdb_ci_kvm_vm_instancenamevirsh dumpxml
Short descriptioncmdb_ci_kvm_vm_instanceshort_descriptionvirsh desc
Detailscmdb_ci_kvm_objectdetails_xmlXML element from dumpxml
KVM instancecmdb_kvm_devicekvm_instanceReference to cmdb_ci_kvm_instance
Devicecmdb_kvm_devicedevicedisk, controller, interface, and so on
Typecmdb_kvm_devicetypedepends on the device
Detailscmdb_kvm_devicedetails_xmlXML element from dumpxml
RelationshipParent tableChild table
Registered On::Has RegisteredKVM [cmdb_ci_kvm]KVM Virtual Machine instance [cmdb_ci_kvm_vm_instance]
Provided By::ProvidesKVM [cmdb_ci_kvm]Network [cmdb_ci_kvm_network]
Defines resource for::Gets resources fromKVM [cmdb_ci_kvm]Storage Pool [cmdb_ci_kvm_storage_pool]
Connected By::ConnectsKVM Virtual Machine instance [cmdb_ci_kvm_vm_instance]Network [cmdb_ci_kvm_network]
Instantiated By::InstantiatesKVM Virtual Machine instance [cmdb_ci_kvm_vm_instance]Computer [cmdb_ci_computer]
Virtualized By::VirtualizesComputer [cmdb_ci_computer]KVM [cmdb_ci_kvm]
Provides storage for::Stored onStorage Pool [cmdb_ci_kvm_storage_pool]KVM Virtual Machine instance [cmdb_ci_kvm_vm_instance]

Related topics

Linux discovery fails with "Cannot connect, status is SSH_CONNECTION_FAILURE. Could not agree on signature algorithm Client (KB1425502)

Linux discovery fails in Unix Classification with the error - Name of unclassified CI is 'servername' (KB0860486)

Linux discovery error "rbash: PATH: readonly variable Exit status: 1" (KB0866860)