Updated: December 20, 2017
Service Tag information is frequently requested by customers so that they can add it to reports that are not created through Solarwinds. This article addresses the tables (views) that store Service Tag data.
Service Tag information can be found in the following tables:
AssetInventory_ServerInformation: The column, HardwareSerialNumber contains the Service Tag. This table also contains the name of the host and system name so isn't necessary to get the node name from the Nodes view.
SELECT siv.NodeID, n.Caption, n.IP_Address, siv.Manufacturer, siv.Model, siv.HardwareSerialNumber
FROM [dbo].[AssetInventory_ServerInformationView] siv
INNER JOIN Nodes n
ON siv.NodeID = n.NodeID
WHERE siv.HardwareSerialNumber is not NULL
ORDER BY siv.SystemName
APM_HardwareInfo: The column ServiceTag, contains the Service Tag. This view does NOT contain the node name. Hence one would have to join the contents of this table with the Nodes view to get the node name.
SELECT n.Caption, n.IP_Address, hi.NodeID, hi.Manufacturer, hi.Model, hi.ServiceTag FROM [dbo].[APM_HardwareInfo] hi
INNER JOIN Nodes n
ON hi.NodeID = n.NodeID
WHERE hi.ServiceTag is not NULL
ORDER BY n.Caption