Hi,
I'm looking for a sql query to show me all virtual machines in my environment.
Thanks.
Here is the report that we have working. It tells us every virtual on each server.
SELECT VirtualMachines.DisplayName, VirtualMachines.OperatingSystem, VirtualMachines.GuestState, Nodes.Caption
FROM VirtualMachines INNER JOIN
Nodes ON VirtualMachines.HostNodeID = Nodes.NodeID
@KCWayner - You might want to use PowerState not GuestState
If VMtools aren't running, GuestState show that the server is off, but PowerState is just that.
SELECT VirtualMachines.DisplayName, VirtualMachines.OperatingSystem, VirtualMachines.PowerState, Nodes.Caption
FROM VirtualMachines INNER JOIN
Nodes ON VirtualMachines.HostNodeID = Nodes.NodeID
Order by PowerState
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.