First step to do if no data is available for a tab in Hyper-V Host

First step to do if no data is available for a tab in Hyper-V Host

In Hyper-V all the data has been collected via WMI. So if any of data is not retrieved properly in the UI, we can check it by executing the VBScript in powershell.

Steps to execute the VBScript in powershell:
  1. Navigate to Appmanager14->working->conf->Application->scripts.
  2. Type cscript filename and its arguments.
The below table contails the List of VBScript Commands for each metrics present under the Hyper-V Host Monitor:
      
Attributes
WMI Property Used
Vb Script
Overview Tab:


HYPERVISOR CPU USAGE DETAILS:
Total CPU Utilization
Guest CPU Utilization
Hypervisor CPU Utilization
Idle CPU Utilization

%TotalProcessorTime
%GuestProcessorTime
%HyperVisorRunTime
%IdleProcessorTime
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "9" <Version>
PROCESSOR DETAILS:
Logical Processors
Virtual Processors
Physical Processors

NoOfLogicalProcessors
NoOfVirtualProcessors
PhysicalProcessors
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "9" <Version>
MEMORY DETAILS:
Total Physical Memory
Total Swap Memory
Total Physical Pages Allocated
Total Remote Physical Pages

TotalPhysicalMemoryHyperVHost
TotalVirtualMemorySize
TotalPhysicalPagesAllocated
TotalRemotePhysicalPages
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "9" <Version>
Hyper-V System Services:
Service Name
Service Status

Name
State
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "7" <Version>
Virtual Machines:
Virtual Machine Name
VM State
GUID

VMDisplayName
VMState
VMID
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "8" <Version>



CPU Tab:


CPU Details:
Core Name
User Time(%)
System Time(%)
I/O Wait Time(%)
Idle Time(%)
CPU Utilization(%)
Interrupts/sec

CoreName
CpuUtil
UserTime
SystemTime
IOWaitTime
IdleTime
InterruptsPerSec
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "1" <Version>



Memory Tab:


Memory Usage Details:
Swap Memory Utilization
Swap Memory Used
Physical Memory Utilization
Physical Memory Used
Free Physical Memory

TotalVirtualMemorySize
FreeVirtualMemory
TotalVisibleMemorySize
FreePhysicalMemory
AvailableMBytes
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "9" <Version>
Page Details:
Deposited Pages
Virtual TLB Pages
Total Remote Physical Page
Total Physical Pages Allocated
Pages Per Second

DepositedPages
VirtualTLBPages
RemotePhysicalPages
PhysicalPagesAllocated
PagesPersec
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "9" <Version>



Network Tab:


Network Traffic Stats:
Network Adapter Name
Speed
Input Traffic
Output Traffic

Name
CurrentBandwidth
BytesReceivedPersec
BytesSentPersec
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "2" <Version>
Network Packets Stats:
Network Adapter Name
Offloaded Connections
Outbound Packets Discarded
Outbound Packets Errors
Packets Sent Per Second

Packets Received Per Second


Name
OffloadedConnections
PacketsOutboundDiscarded
PacketsOutboundErrors
(PacketsSentUnicastPersec
+PacketsSentNonUnicastPersec)
(PacketsReceivedUnicastPersec
+PacketsReceivedNonUnicastPersec)
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "2" <Version>



Storage Tab:


Disk IO Details:
Name
Current Disk Queue Length
Disk Bytes Per Second
Disk Transfers Per Second
Average Disk Queue Length
Disk Details:
Name
CurrentDiskQueueLength
DiskBytesPersec
DiskTransfersPersec
AvgDiskQueueLength
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "3" <Version>
Disk Partition Usage:
Name
Free Space(MB)
Used Space(MB)
Disk Space Details:
Name
FreeSpace
Size
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "3" <Version>



Virtual Storage Tab:


Virtual Storage Stats:
Name
Error count
Flush count
Read count
Write count
Read Bytes Per Second
Write Bytes Per Second
VirtualStorageDevice:
Name
ErrorCount
FlushCount
ReadCount
WriteCount
ReadBytesPersec
WriteBytesPersec
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "4" <Version>
Virtual IDE Controller Details:
Name
Read Bytes Per Second
Read Sectors Per Second
Write Bytes Per Second
Written Sectors Per Second
Virtual IDE Controller Details:
Name
ReadBytesPersec
ReadSectorsPersec
WriteBytesPersec
WrittenSectorsPersec
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "4" <Version>



Virtual Network Tab:


Virtual Network Adapter Details:
Network Interface Name
Bytes/Sec
Packets/Sec
VirtualNetworkAdapterDetails:
Name
BytesPersec
PacketsPersec
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "5" <Version>
Legacy Virtual Network Adapter Details:
Legacy Network Interface Name
Bytes Received Per Second
Bytes Sent Per Second
Bytes Dropped
Legacy Virtual NetworkAdapter Details:
Name
BytesReceivedPersec
BytesSentPersec
BytesDropped
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "5" <Version>
Virtual Switch Details:
Switch Name
Bytes Per Second
Packets Per Second
Virtual Switch Details:
Name
BytesPersec
PacketsPersec
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "5" <Version>



Hardware Tab:


Power:
Name
Voltage
Status
Power:
Name
DesignVoltage
Status
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "6" <Version>

Fan:
Name
Status
Fan:
Name
Status
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "6" <Version>

Temperature:
Name
Status
Temperature:
Description
Status
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "6" <Version>

Processor:
Processor Name
Clock Speed
Voltage
Number Of Cores
Number Of Logical Processors
Status
Socket Designation
Processor:
Name
CurrentClockSpeed
CurrentVoltage
NumberOfCores
NumberOfLogicalProcessors
Status
SocketDesignation
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "6" <Version>
Memory:
Tag
Capacity
Speed
Voltage
Memory:
Memory Device Name
Capacity
Speed
ConfiguredVoltage
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "6" <Version>
Disk:
Disk Name
Capacity
Status 
Disk:
Model
Size
Status
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "6" <Version>



Configuration Tab:
Hardware Manufacturer
CPU Model
CPU Capacity
CPU Manufacturer
CPU Caption

Manufacturer
CPUName
MaxClockSpeed
CPUManufacturer
CPUCaption
cscript HyperVHostDC.vbs <HostName> <UserName> <Password> "9" <Version>

Note:
  1. For Memory Tab values will be calculated as follows,
    1. Swap Memory Utilization = (((TotalVirtualMemorySize-FreeVirtualMemory)/TotalVirtualMemorySize)*100)
    2. Swap Memory Used = ((TotalVirtualMemorySize-FreeVirtualMemory)/1024)
    3. Physical Memory Utilization = (((TotalVisibleMemorySize-FreePhysicalMemory)/TotalVisibleMemorySize)*100)
    4. Physical Memory Used = ((TotalVisibleMemorySize-FreePhysicalMemory)/1024)
  2. For Network and Virtual Storage Tab, only the raw value will be obtained from WMI Class which will be formatted using respected formula and shown in UI. 
If VBScript is returing data, reach out to our support with the screenshot of the script output to appmanager-support@manageengine.com along with the latest Support Information File (SIF) after polling the problematic Hyper-V Monitor from Applications Manager with print all logs enabled for analysis.