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
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
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.Model FROM Orion.Nodes AS N LEFT OUTER JOIN ( SELECT SI.NodeID ,SI.Manufacturer ,SI.Model FROM Orion.AssetInventory.ServerInformation AS SI ) AS HW ON N.nodeID=HW.nodeid WHERE n.Category=2 -- 2=Server
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.Model FROM Orion.Nodes AS N LEFT OUTER JOIN ( SELECT SI.NodeID ,SI.Manufacturer ,SI.Model FROM Orion.AssetInventory.ServerInformation AS SI ) AS HW ON N.nodeID=HW.nodeid WHERE n.Category=2 -- 2=Server
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.