Is it possible to modify the SNcSerialNumber script to take the chassis serial number as the default instead of the baseboard serial number when new CI's are created via ServiceNow Discovery?

alexbrooks
Giga Contributor

Hi - is it possible to modify the SNcSerialNumber script to take the chassis serial number as the default instead of the baseboard serial number when new CI's are created via ServiceNow Discovery?

We have just started to use Discovery, and whilst it is great that the tool can pick up multiple serial numbers associated with a single CI, it appears to default to the baseboard serial number when creating a new record, which then causes us an issue with matching to imported asset records, which for obvious reasons are created using the chassis CI (which is always the one provided by the manufacturers inventory when you take receipt of the goods).

4 REPLIES 4

Marskh11
Tera Guru

Hi Alex did you ever resolve this? I have a similar question

lister
Kilo Expert

This can be done by modifying the discovery pattern for 'Windows OS - Desktops'.

Navigate to Pattern Designer > Discovery Pattern and select Windows OS - Desktops'.  Once there, under the 'Identification Section' select 'discovery.  From there will be able to see the discovery steps.  Double-click on, '3. Windows - Hardware Information' to expand the steps.  From there you will need to swap the 'Add Win32_BaseBoard.SerialNumber to temporary table' and 'Add Win32_BIOS.SerialNumber to temporary table' so that 'Win32_BaseBoard.SerialNumber' is discovered first and 'Win32_BIOS.SerialNumber' is discovered after that.

This should fix that issue.

chuckm
Giga Guru

The modifications that lister described are documented in KB article KB KB0749739 How to make 'Windows OS - Servers' Pattern return Bios Serial number instead of Baseboard Serial num....  Since the modifications for Option #1 (swap steps 3.10 and 3.12) are part of a shared library it affects 2 Patterns: Windows OS - Desktops and Windows OS - Servers.

The baseboard/BIOS serial number issue has been discussed in these other community articles:

Computer Discovery. How to replace baseboard serial number with bios

After upgrading to London, Discovery is picking baseboard serial number as CI serial number

discovery workstation scans - incorrect serial number

chuckm
Giga Guru

ServiceNow has created an out of the box solution to choose the BIOS Serial Number instead of the Baseboard Serial Number for the Windows OS - Servers pattern.  The update is being released in Paris per KB KB0786378:

BaesBoard Serial number is populated on the serial number record instead of the BIOS Serial number f...

New mid server property introduced "mid.win.baseboard.or.bios.insertion" , based on the property value (true / false) pattern will insert BaseBoard or Bios Serial number.

If false - BaseBoard number will be populated
If true - BIOS serial number will be inserted