Update Serial Number Type

AndyB5000
Mega Guru

 

We are in the process of congiuring discovery and CI's and have come across an issue.   When the discovery runs and creates or updates a CI it is entering the baseboard serial number into the serial number field.

 

I am looking for how to change this entry to update the field with the BIOS or Chassis serial number.  We use Dell hardware so the 7 digit servic tag is all we need in the record.

 

thanks.

1 ACCEPTED SOLUTION

Warren Pilkingt
Mega Expert

The Dell BIOS Serial numbers tend to be the same as their seven digit service tag, at least on some OptiPlex devices that I've tested here, such as the 3010 and 3020 models.

In Windows, entering wmic bios get serialnumber should return that correctly (and that'll do it for any device)

I'd check the discovery probe for Windows - Hardware Information as a WMI Probe.  The WMI Fields in that probe should show Win32_BIOS.SerialNumber

 

find_real_file.png

That serial number should return the same as the WMI query above.   The post-processor script should also refer to that accordingly - another thing to check.    Both of the above are normally out of the box configs so should work.

This probe should be included in the Windows - Identity discovery probe as well and is in the Windows - Identity sensor.  That sensor should be active.

I suspect what's actually happening is that the WMI query being run is actually Win32_baseboard.serialnumber as above which would return the field as you mentioned.  You can verify this by:

wmic baseboard get serialnumber

You can of course in the WMI fields above set the active to false, as long as the post-processor script doesn't need to reference it.  That way it should always return the BIOS serial number.

 

 

View solution in original post

8 REPLIES 8

Dan Bruhn
Administrator
Administrator

Looks like your image didn't upload correctly.  Can you please try and re-upload?

Thanks,

Dan

Warren Pilkingt
Mega Expert

The Dell BIOS Serial numbers tend to be the same as their seven digit service tag, at least on some OptiPlex devices that I've tested here, such as the 3010 and 3020 models.

In Windows, entering wmic bios get serialnumber should return that correctly (and that'll do it for any device)

I'd check the discovery probe for Windows - Hardware Information as a WMI Probe.  The WMI Fields in that probe should show Win32_BIOS.SerialNumber

 

find_real_file.png

That serial number should return the same as the WMI query above.   The post-processor script should also refer to that accordingly - another thing to check.    Both of the above are normally out of the box configs so should work.

This probe should be included in the Windows - Identity discovery probe as well and is in the Windows - Identity sensor.  That sensor should be active.

I suspect what's actually happening is that the WMI query being run is actually Win32_baseboard.serialnumber as above which would return the field as you mentioned.  You can verify this by:

wmic baseboard get serialnumber

You can of course in the WMI fields above set the active to false, as long as the post-processor script doesn't need to reference it.  That way it should always return the BIOS serial number.

 

 

AndyB5000
Mega Guru

thanks.

 

Tate Roth
Tera Contributor

I am seeing the same behavior, I went into the Windows - Hardware Information Probe and set Win32_BaseBoard.SerialNumber to false in the WMI Fields related list.  I also commented out the lines 

if (JSUtil.notNil(output.Win32_BaseBoard.SerialNumber))
snm.add('baseboard', output.Win32_BaseBoard.SerialNumber);

in the Post processor script but for some reason it's still being added to the CI when I run a quick discovery and the Serial number is set to the BaseBoard Serial Number.  Not sure what else I am missing.  Does anyone have any pointers on this?

Thank you.