Discovery probes - differentiating Linux workstations and servers

David A2
Giga Guru

We are using the OOTB probes, and our classifier doesn't seem to be able to distinguish between Linux servers and Linux workstations. From the logs it looks like it's gathering the OS information from uname-a, but the output doesn't give any of the unique os version info. The documentation seems to say this information can come from either uname -a or cat /etc/*release, the second being the more promising area. Do I need to customize the classifier to get it to look at cat/etc/*release?

https://docs.servicenow.com/bundle/london-it-operations-management/page/product/discovery/reference/...

Data collected

The Linux classifier triggers probes that perform the discovery. Several probes are launched during discovery. See the classifier for a list of the trigger probes.
LabelTable NameField NameSource
Operating Systemcmdb_ci_linux_serverosuname
OS Versioncmdb_ci_computeros_versionuname -a or cat /etc/*release
Short descriptioncmdb_ci_linux_servershort_descriptionuname
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
1 ACCEPTED SOLUTION

doug_schulze
ServiceNow Employee
ServiceNow Employee

I just explained how to something similar here but for triggering specific probes. In your case, you can take the result and use the value as a classification criteria. But know in our licensing model we consider all Linux OS's as a server os that ticks a license count. If you re-classify a Linux os outside the server class you might get into a grey area in your agreements and should probably have a conversation with your Account Manager for clarification on what can and can't be done in your use case.

View solution in original post

11 REPLIES 11

Sue L
Tera Contributor

I see I have a response in my query on this subject (over a year ago) that ServiceNow only thought of Linux as Servers.  SN can clearly telll us they are either Ubuntu or Red Hat (and in our environment RH are servers, Ubuntu are HP Thin Clients), where they classified to  Thin Client table by OS.  Not sure it anyone else tried this.  Will have to look into this.  But SN should not be generalizing all Linux as servers.       

I agree Susan. In our environment we have Red Hat servers and workstations, but it's pretty easy to tell the difference.

 

In /etc/redhat-release

               Workstation shows:

                              Red Hat Enterprise Linux Workstation release 6.10 (Santiago)

               Server shows:

                              Red Hat Enterprise Linux Server release 7.1 (Maipo)

 

Likes, enhancement request created and dropped a note to the PM, thank you for the important feedback.

Good news, talked to the powers that be and this distinction will be in the NY release for our pattern-based discovery!

Update, it didn't quite make NY but I have created an update set to do just this..

Custom Probe/Sensor (Linux Laptops)