If CMDB is installed run these both in sql if only cms run the latter.
The easiest way to automate this is to create a new report using the following sql code and schedule the report
to run after everytime the S/N scan runs.
*Report will not produce any results
REPLACE: = 'WhiteBoxVendorName' with actual vendor name
Code:
--If CMDB IS Installed
UPDATE dbo.Inv_Serial_Number
SET [Serial Number] = ( SELECT dbo.Inv_AeX_AC_TCPIP.[Mac Address]
FROM dbo.Inv_AeX_AC_TCPIP
WHERE dbo.Inv_AeX_AC_TCPIP._ResourceGuid = dbo.Inv_Serial_Number._ResourceGuid)
WHERE [Serial Number] = 'WhiteBoxVendorName'
Code:
-- For CMS
UPDATE dbo.Inv_AeX_HW_Serial_Number
SET [Serial Number] = ( SELECT dbo.Inv_AeX_AC_TCPIP.[Mac Address]
FROM dbo.Inv_AeX_AC_TCPIP
WHERE dbo.Inv_AeX_AC_TCPIP._ResourceGuid = dbo.Inv_AeX_HW_Serial_Number._ResourceGuid)
WHERE [Serial Number] = 'WhiteBoxVendorName'