Harish Bainsla
Kilo Patron

Recently Getting Error Identifier: validation error: cmdb_ci_linux_server: missing mandatory fields: serial_number While doing Linux Discovery 

HarishBainsla_1-1779432494809.png

 

Cause : The Identification and Reconciliation Engine (IRE) requires a unique identifier (like serial_number) to verify if a Configuration Item (CI) already exists or if it needs to create a new one. If the Discovery pattern fails to retrieve this data, the IRE aborts the insertion to prevent duplicate or corrupt records.

 

Solution: 1. Check Sudo Permissions: Linux patterns use commands like dmidecode or lshw to fetch the serial number. If the discovery user lacks proper sudo privileges, these commands return empty results. Ensure your /etc/sudoers file has non-interactive entry for the discovery user

Steps To check from pattern 

Go to discovery status open ip . Go to discovery logs and click on Here as shown in screenshot 

HarishBainsla_2-1779432642533.png

 

Once you click  you will see like screenshot

HarishBainsla_3-1779432839477.png

Click on Discovery and Debug

HarishBainsla_4-1779432938637.png

Select mid server which you are using and click on connect

HarishBainsla_5-1779433134513.png

 

Debug will start and after sometime you will see like below image

HarishBainsla_6-1779433212940.png

Now go to section 4 and under it 4.1.2 Get DMI type 1 click on Run Command 

HarishBainsla_8-1779433500985.png

Once command is run you will get result like this 

 

HarishBainsla_7-1779433412864.png

 

Now you have to informed this to your respective team about dmidecode ser lacks proper sudo privileges, these commands return empty results. Ensure your /etc/sudoers file has non-interactive entry for the discovery user: bash snc_discovery ALL=(ALL) NOPASSWD: /usr/sbin/dmidecode, /usr/bin/lshw

 

Thank You

LinkedIn : https://www.linkedin.com/in/harish-baisla-8895aa22a/

ServiceNow Community Rising Star 2024 & 2025

 

 

 

 

 

 

Version history
Last update:
43m ago
Updated by:
Contributors