I'm trying to create a report that shows Physical versus VM Support basically sent me to the forums and said probably have to use SQL for this. Can anyone help with just a basic report for this to show number of physical versus number of VM's?
I was able to create a report using this SQL
declare @TotalCount real
select @TotalCount = count(*) from (select nodes.caption, nodes.Vendor, case when vm.hostnodeid is not null then 'VM' else (case when nodes.vendor = 'VMware Inc.' then 'ESX Host' else 'Physical' end)end as IsVMfrom nodes nodesleft join VirtualMachines VM on VM.NodeID=nodes.NodeIDwhere Nodes.Vendor in ('', 'Windows', 'net-snmp', 'Linux', 'VMware Inc.')) a
select a.IsVM, count(*)/@TotalCount as Total, count(*) as TotalServers from (select nodes.caption, nodes.Vendor, case when vm.hostnodeid is not null then 'VM' else (case when nodes.vendor = 'VMware Inc.' then 'ESX Host' else 'Physical' end)end as IsVMfrom nodes nodesleft join VirtualMachines VM on VM.NodeID=nodes.NodeIDwhere Nodes.Vendor in ('', 'Windows', 'net-snmp', 'Linux', 'VMware Inc.')) agroup by a.IsVM
Did you ever find a solution for this? I'm in the same situation. Still getting same error message. Emory Healthcare Patient Portal
There is a field called Hardware in the Node details and it displays Physical when the devices are not VMs. I cannot find that field to make a report. That would be the easiest solution, just pull all physical Hardware in a report. It must be in a separate table that I do not know how to access.