Hello,
Can someone please point me in the direction of where I could find the endpoint/query to determine if a node is a virtual server? We will be using the nodeID or the hostname and doing this via REST.
Thanks!Dominic
You could probably look at the logic in VM's not monitored by SolarWinds as Nodes - Custom Queries - The Orion Platform - THWACK as a starting point.
If you have asset inventory added on your server you can use something like below, or a combination with looking at "orion.VIM.virtualmachines".
SELECT N.Caption ,CASE WHEN HW.Model LIKE '%virtual%' THEN 'Virtual' WHEN HW.Model LIKE 'VMWare%' THEN 'Virtual' WHEN HW.Model IS NULL THEN 'Unknown' ELSE 'Physical' END AS HWType ,HW.ModelFROM Orion.Nodes AS NLEFT OUTER JOIN( SELECT SI.NodeID ,SI.Manufacturer ,SI.Model FROM Orion.AssetInventory.ServerInformation AS SI) AS HW ON N.nodeID=HW.nodeidWHERE n.Category=2 -- 2=Server