Introduction

In virtual infrastructures, especially in large data centers, ensuring high availability and eliminating single points of failure is crucial. Microsoft addresses this need with Failover Clustering technology, which can be implemented in a Hyper-V environment. This allows multiple Hyper-V hosts or nodes to take over the workload if one host fails, ensuring service continuity.

Although Hyper-V primarily manages resources at the physical machine level, Microsoft Failover Clustering provides protection for virtual machines by minimizing downtime during failures. Failover Clustering operates alongside Hyper-V, offering enhanced resilience. It uses its dedicated Failover Cluster Manager for administration, allowing streamlined management of clustered nodes and ensuring virtual machine availability in the event of host failure.

Key Use cases

Discovery Use cases

  • It discovers the Windows Hyper-V Cluster components.
  • Publishes relationships between resources to have a topological view and ease of maintenance.

Monitoring Use cases

  • Provides metrics related to job scheduling time and status etc.
  • Concern alerts will be generated for each metric to notify the administrator regarding the issue with the resource.

Supported Target Versions

Validated the application by executing powershell script against "Microsoft Windows Server 2019 Datacenter 10.0.17763 Build 17763.3770"

Prerequisites

  • OpsRamp Classic Gateway 14.0.0 and above.

  • OpsRamp NextGen Gateway 14.0.0 and above.
    Note: OpsRamp recommends using the latest Gateway version for full coverage of recent bug fixes, enhancements, etc..

  • Powershell cmdlets have the following prerequisites:

    • Windows domain User should be able to do powershell remoting
      Enable-PSRemoting -Force
    • Windows domain user should be added to “Remote Management users” group
      net localgroup “Remote Management Users” /add < user >
    • Windows domain user should be added to “Performance monitor users” group
      net localgroup “Performance monitor users” /add < user >
    • Add OpsrampGatewayIp to the TrustedHosts list on the target machine to allow the powershell connection from gateway to the target machine.
      • To add TrustedHosts use the following command:
      • To allow any host:
        Set-Item WSMan:\localhost\Client\TrustedHosts -Force -Value *
      • To allow a specific host: Set-Item WSMan:\localhost\Client\TrustedHosts -Force -Concatenate -Value <OpsRampGatewayIp>
      • Setup and restart the WinRM service for the changes to reflect
        • To set up: Set-Service WinRM -StartMode Automatic
        • Restart using: Restart-Service -Force WinRM
  • Granting Remote DCOM Rights

    • To grant users DCOM rights, log on to each monitored system and complete the following procedure:
      • Go to command prompt and enter dcomcnfg
      • Navigate to component services > computers > My computer and then right click and select Properties. Then go to the COM Security tab.
      • Under Access Permissions, go to edit limits and add the domain non-admin user and enable both local and remote access then click OK.
      • In Launch and Activation permissions, go to edit limits, add the domain non-admin user and check all boxes, and click OK.
  • Granting Remote WMI Rights

    • To give the user remote WMI rights, log on to each system to be monitored and complete the following procedure:
      • Go to computer management, under Services and Applications select WMI Control.
      • Right-click WMI control and go to Properties. Select the Security tab.
      • Select root and click Security.
      • Add the domain non-admin user, and check the boxes for execute methods, enable account, remote enable, and reas security.
      • Click Advanced, select added non-admin domain user and click Edit. Then for Applies, select namespace and sub namespaces in the dropdown.
      • Click OK three times .
  • For monitoring services like windows cluster service, windows domain users to be a part of Local Administrators group we are using win32_Service class for fetching the details.

    • refer to below link:
      Get-WmiObject
    • If you do not want to add the user to local administrator group, you can use Security descriptors for monitoring the services.
    • For that we have to do the configuration as below:
      Refer to Windows failover cluster monitoring.
  • Windows domain user should be granted read-only access to cluster
    Grant-ClusterAccess -User <domain\user> -Readonly

  • Open ports and add user in all nodes and cluster

    • Opsramp gateway should be able to access cluster and nodes.
    • Ports to be opened are 5985 and 5986.
      Note: By default, WS-Man and PowerShell remoting use port 5985 and 5986 for connections over HTTP and HTTPS, users should be present in nodes and cluster.

Hierarchy of Windows Hyper-V Cluster

    For Windows Hyper-V Cluster, Hierarchy is as follows
    • Windows HyperV Cluster
      • Windows HyperV Server
        • Windows HyperV Virtual Switch
        • Windows HyperV Host Disk
        • Windows HyperV Guest VM
      • Windows HyperV Cluster Role
      • Windows HyperV Cluster Shared Volume
      • Windows HyperV Cluster Disk
    For Windows Hyper-V Standalone Server, Hierarchy is as follows
    • Windows HyperV Server
      • Windows HyperV Virtual Switch
      • Windows HyperV Host Disk
      • Windows HyperV Guest VM

Supported Metrics

Click here to view the supported metrics
Native TypeMetric NameDisplay NameMetric LabelUnitsApplication VersionDescription
Windows HyperV Clusterwindows_hyperv_cluster_network_Statewindows HyperV Cluster Network StateAvailability-1.0.0HyperV cluster network state.Possible states are:Unavailable: 0, Down: 1, Partitioned: 2, Unknown: 3, Up: 4
windows_hyperv_cluster_OnlineNodesCountWindows HyperV Cluster Online Nodes CountAvailabilitycount1.0.0HyperV cluster online nodes count
windows_hyperv_cluster_NodeHealthWindows HyperV Cluster Node HealthAvailability%1.0.0HyperV cluster node health.
Windows HyperV Serverwindows_hyperv_server_IdleCPUUtilizationWindows HyperV Server Idle CPU UtilizationUsage%1.0.0HyperV server idle cpu utilization
windows_hyperv_server_NetworkAdaptersBytesTotalPerSecWindows HyperV Server Network Adapter Total BytesPerSecPerformanceBps4.0.0This metric measures how many bytes of data are transferred or processed per second.
windows_hyperv_server_LegacyNetworkAdaptersBytesReceivedPerSecWindows HyperV Server Legacy Network Adapter Received BytesPerSecPerformanceBps4.0.0This metric measures the number of bytes received per second by a network adapter, particularly in older or legacy network hardware.
windows_hyperv_server_LegacyNetworkAdaptersBytesSentPerSecWindows HyperV Server Legacy Network Adapter Bytes Sent PerSecPerformanceBps4.0.0This metric provides insight into how much data is being sent out by the network adapter over a period of one second.
windows_hyperv_server_LegacyNetworkAdaptersBytesDroppedWindows HyperV Server Legacy Network Adapter Bytes DroppedPerformanceBps4.0.0The total amount of data (in bytes) that was sent to a network adapter but could not be processed or successfully transmitted due to various reasons, and therefore was "dropped".
windows_hyperv_server_LegacyNetworkAdaptersFramesSentPerSecWindows HyperV Server Legacy Network Adapter Frames Sent PerSecPerformancepackets/sec4.0.0This metric refers to the rate at which network frames (packets) are transmitted by a legacy network adapter, measured in frames per second.
windows_hyperv_server_SwapMemoryUsageInGBWindows HyperV Server Swap Memory Usage in GBUsageGB/sec4.0.0This metric measures the virtual memory that the operating system uses to extend physical RAM (Random Access Memory) when it is fully utilized.
windows_hyperv_disk_LogicalDiskTransferPerSecWindows HyperV Server Logical Disk Bytes Per SecPerformanceBps4.0.0This metric measures the rate at which thedata byte is being transferred to or from a logical disk.
windows_hyperv_disk_LogicalDiskQueueLengthWindows HyperV Server Logical Disk Queue LengthPerformance4.0.0This metric provides insight into how many read and write requests are queued up at any given time, waiting to be serviced by the disk.
windows_hyperv_disk_UtilizationWindows HyperV Server Disk UtilizationUsage%4.0.0This metric provides insight into how much of the disk's capacity is being used for I/O operations.
windows_hyperv_disk_LogicalDiskBytesPerSecWindows HyperV Server Logical DiskTransfer Per SecPerformanceIOPS4.0.0This metric measures the rate at which data is being transferred to or from a logical disk.
windows_hyperv_server_PhysicalMemoryUtilizationWindows HyperV Server Physical Memory UtilizationUsage%5.0.0HyperV server physical memory utilization
windows_hyperv_server_GuestCPUUtilizationWindows HyperV Server Guest CPU UtilizationUsage%1.0.0The percentage of time spent by the virtual processor in guest code.
windows_hyperv_server_HypervisorCPUUtilizationWindows HyperV Server Hypervisor CPU UtilizationUsage%1.0.0The percentage of time spent by the virtual processor in hypervisor code.
windows_hyperv_server_TotalCPUUtilizationWindows HyperV Total CPU UtilizationUsage%1.0.0The percentage of time spent by the virtual processor in guest and hypervisor code.
windows_hyperv_server_system_services_HealthStateWindows HyperV System Services Health StateAvailability1.0.0HyperV system services health state.Possible values are - 0 : Unknown , 5 : OK , 10 : Degraded/Warning , 15 : Minor failure , 20 : Major failure , 25 : Critical failure , 30 : Non-recoverable error , 35 : DMTF Reserved
windows_hyperv_server_AvailableMBytesWindows HyperV Server Available MBytesPerformanceMB1.0.0HyperV server available Mbytes.
windows_hyperv_server_PageFileUsageWindows HyperV Server Page File UsageUsageGB1.0.0HyperV server page file usage.
windows_hyperv_server_VirtualTLBPagesWindows HyperV Server Virtual TLB PagesPerformancecount1.0.0HyperV server virtual TLB pages.
windows_hyperv_server_DepositedPagesWindows HyperV Server Deposited PagesPerformancecount1.0.0HyperV server deposited pages.
windows_hyperv_server_TotalPhysicalMemoryWindows HyperV Server Total Physical MemoryPerformanceGB1.0.0HyperV server total physical memory.
windows_hyperv_server_Virtual_MemoryWindows HyperV Server Virtual MemoryPerformanceGB1.0.0HyperV server virtual memory
windows_hyperv_server_TotalRemotePhysicalPagesWindows HyperV Server Total Remote Physical PagesPerformancecount1.0.0HyperV server total remote physical pages.
windows_hyperv_server_NetworkAdaptersBytesReceivedWindows HyperV Server Network Adapter BytesReceivedPerSecPerformanceBps1.0.0HyperV network adapter bytes received per second.
windows_hyperv_server_NetworkAdaptersPacketsSentWindows HyperV Server Network Adapter Packets SentPerformanceBps1.0.0HyperV network adapter bytes received per second.
windows_hyperv_server_NetworkAdaptersBytesSentWindows HyperV Server Network Adapter Bytes SentPerformanceBps1.0.0HyperV network adapter bytes sent.
windows_hyperv_server_NetworkAdaptersPacketsReceivedWindows HyperV Server Network Adapter Packets ReceivedPerformancepackets/sec1.0.0HyperV network adapter packets received.
windows_hyperv_server_NetworkAdaptersPacketsWindows HyperV Server Network Adapter PacketsPerformancepackets/sec1.0.0HyperV network adapter packets per second.
Windows HyperV Virtual Switchwindows_hyperv_server_VirtualSwitchPacketsReceivedWindows HyperV Server Virtual Switch Packets ReceivedPerformancepackets/sec1.0.0HyperV virtual switch packets received per second.
windows_hyperv_server_VirtualSwitchBytesReceivedWindows HyperV Server Virtual Switch Bytes ReceivedPerformanceBps1.0.0HyperV virtual switch bytes received per second.
windows_hyperv_server_VirtualSwitchPacketsWindows HyperV Server Virtual Switch PacketsPerformancepackets/sec1.0.0HyperV virtual switch packets per second.
windows_hyperv_server_VirtualSwitchBytesSentWindows HyperV Server Virtual Switch Bytes SentPerformanceBps1.0.0HyperV virtual switch bytes sent per second.
windows_hyperv_server_VirtualSwitchBytesWindows HyperV Server Virtual Switch BytesPerformanceBps1.0.0HyperV virtual switch bytes per second.
windows_hyperv_server_VirtualSwitchPacketsSentWindows HyperV Server Virtual Switch Packets SentPerformancepackets/sec1.0.0HyperV virtual switch packets sent per second.
Windows HyperV Host Diskwindows_hyperv_disk_PhysicalDiskTransferPerSecWindows HyperV Disk Physical Disk Transfer Per SecPerformanceIOPS1.0.0HyperV physical disk transfers per second.
windows_hyperv_disk_PhysicalDiskQueueLengthWindows HyperV Disk Physical Disk Queue LengthPerformance1.0.0HyperV physical disk queue length.
windows_hyperv_disk_PhysicalDiskBytesPerSecWindows HyperV Disk Physical Disk Bytes Per SecPerformanceBps1.0.0HyperV physical disk bytes per second.
windows_hyperv_disk_PhysicalDiskReadBytesPersecWindows HyperV Disk Physical Disk Read Bytes Per SecPerformanceBps1.0.0HyperV physical disk read bytes per second.
windows_hyperv_disk_PhysicalDiskReadsPersecWindows HyperV Disk Physical Disk Reads Per SecPerformanceBps1.0.0HyperV physical disk reads per second.
windows_hyperv_disk_PhysicalDiskWritesPersecWindows HyperV Disk Physical Disk Writes Per SecPerformanceBps1.0.0HyperV physical disk writes per second.
windows_hyperv_disk_PhysicalDiskWriteBytesPersecWindows HyperV Disk Physical Disk Write Bytes Per SecPerformanceBps1.0.0HyperV physical disk write bytes per second.
windows_hyperv_disk_HealthStatusWindows HyperV Disk Health StatusAvailability1.0.0HyperV disk health status. Possible states are: 'Unknown': 0 ,'Failing' : 1, 'Failed' : 2, 'Healthy' : 3
windows_hyperv_disk_OperationalStatusWindows HyperV Disk Operational StatusAvailability1.0.0HyperV disk operational status. Possible statuses are: 'Unknown': 0, 'Not Ready': 1, 'No Media' : 2, 'Offline' : 3, 'Failed': 4, 'Missing' : 5, 'Online': 6
Windows HyperV Guest VMwindows_hyperv_guestvm_CpuUtilizationWindows HyperV GuestVM CPU UtilizationUsage%1.0.0HyperV guest VM cpu utilization.
windows_hyperv_guestvm_replicationStateWindows HyperV GuestVM Replication StateAvailability-6.0.0HyperV Guest VM Replication State.Possible values are ERROR : 0,FAILOVERWAITINGCOMPLETION : 1,FAILEDOVER : 2,NOTAPPLICABLE : 3,READYFORINITIALREPLICATION : 4,REPLICATING : 5,RESYNCHRONIZING : 6,RESYNCHRONIZESUSPENDED : 7,SUSPENDED : 8,SYNCEDREPLICATIONCOMPLETE : 9,WAITINGFORINITIALREPLICATION : 10,WAITINGFORSTARTRESYNCHRONIZE : 11
windows_hyperv_guestvm_replicationHealthWindows HyperV GuestVM Replication HealthAvailability-6.0.0HyperV Guest VM Replication Health.Possible values are : NORMAL : 0,WARNING : 1,CRITICAL : 2
windows_hyperv_guestvm_StateWindows HyperV GuestVM StateAvailability1.0.0HyperV guest VM state.Possible values are: Off : 0, Other: 1, Stopping: 2, Saved: 3, Paused: 4, Starting: 5, Reset: 6, Saving: 7, Pausing: 8, Resuming: 9, FastSaved: 10, FastSaving: 11, ForceShutdown: 12, ForceReboot: 13, Hibernated: 14, RunningCritical: 15, OffCritical: 16, StoppingCritical : 17, SavedCritical: 18 PausedCritical: 19, StartingCritical: 20, ResetCritical: 21, SavingCritical: 22, PausingCritical: 23, ResumingCritical: 24, FastSavedCritical: 25, FastSavingCritical: 26, Running: 27
windows_hyperv_guestvm_diskUsageWindows HyperV GuestVM Disk UsageUsageMB1.0.0HyperV guest VM disk usage
Windows HyperV Cluster Rolewindows_hyperv_role_RunningStatusWindows HyperV Role Running StatusAvailability1.0.0HyperV cluster role running status.Possible values: Online : 0, Offline : 1, Failed : 2, PartialOnline : 3, Pending : 4, Unknown : 5
windows_hyperv_role_FailoverStatusWindows HyperV Role Failover StatusAvailability1.0.0HyperV cluster role failover status. Possible values: Failedover: 0, No Failover: 1
Windows HyperV Cluster Shared Volumewindows_hyperv_csv_UtilizationWindows HyperV CSV UtilizationUsage%1.0.0HyperV cluster shared volume utilization.
windows_hyperv_csv_UsageWindows HyperV CSV UsageUsageGB1.0.0HyperV cluster shared volume usage.
windows_hyperv_csv_OperationalStatusWindows HyperV CSV Operational StatusAvailability1.0.0HyperV cluster shared volume operational status. Possible values: Offline : 0, Failed : 1, Inherited : 2, Initializing : 3, Pending : 4, OnlinePending : 5, OfflinePending : 6, Unknown : 7, Online : 8.
Windows HyperV Cluster Diskwindows_hyperv_clusterdisk_StateWindows HyperV Cluster Disk State1.0.0HyperV cluster disk state. Possible values: Offline : 0, Failed : 1, Inherited : 2, Initializing : 3, Pending : 4, OnlinePending : 5, OfflinePending : 6, Unknown : 7, Online : 8

Default Monitoring Configurations

Windows-hyper v-cluster has default Global Device Management Policies, Global Templates, Global Monitors and Global Metrics in OpsRamp. You can customize these default monitoring configurations as per your business use cases by cloning respective Global Templates and Global Device Management Policies. We recommend doing this activity before installing the application to avoid noise alerts and data.

  1. Default Global Device Management Policies

    You can find the Device Management Policy for each Native Type at Setup > Resources > Device Management Policies. Search with suggested name in global scope. Each Device Management Policy follows below naming convention:

    {appName nativeType - version - Mode}

    Ex: windows-hyperv-cluster Windows HyperV Cluster - 1 - Cluster(i.e, appName = windows-hyperv-cluster, nativeType =Windows HyperV Cluster, version = 1, Mode = Cluster)

  2. Default Global Templates

    You can find the Global Templates for each Native Type at Setup > Monitoring > Templates. Search with suggested names in global scope. Each template follows below naming convention:

    {appName Mode nativeType 'Template' - version}

    Ex: windows-hyperv-cluster Cluster Windows HyperV Cluster Template - 1 (i.e, appName = windows-hyperv-cluster , nativeType = Windows HyperV Cluster, version = 1, Mode = Cluster)

  3. Default Global Monitors

    You can find the Global Monitors for each Native Type at Setup > Monitoring > Monitors. Search with suggested name in global scope. Each Monitors follows below naming convention:

    {monitorKey appName nativeType - version}

    Ex: Windows HyperV Cluster Monitor windows-hyperv-cluster Windows HyperV Cluster 1 (i.e, monitorKey = Windows HyperV Cluster Monitor, appName = windows-hyperv-cluster , nativeType = Windows HyperV Cluster , version= 1)

Configure and Install the Windows HyperV Cluster Integration

  1. To select your client, navigate to All Clients, and click the Client/Partner dropdown menu.
    Note: You may either type your client’s name in the search bar or select your client from the list.
  2. Navigate to Setup > Account. The Account Details screen is displayed.
  3. Click Integrations. The Installed Integrations screen is displayed with all the installed applications.
    Note: If you do not have any installed applications, you will be navigated to the Available Integrations and Apps page with all the available applications along with the newly created application with the version.
  4. Click + ADD on the Installed Integrations page. Note: Search for the integration either by entering the name of the integration in the search bar or by selecting the category of the integration from the All Categories dropdown list.
  5. Click ADD in the Windows HyperV Cluster application.
  6. In the Configuration page, click + ADD. The Add Configuration page appears.
  7. Enter the following BASIC INFORMATION:
Field NameDescriptionField Type
NameEnter the name for the configuration.String
Modechoose Cluster or Standalone based the providing Windows HyperV configuration.
  • Cluster: If provided Windows HyperV is a cluster.
  • Standalone: If provided Windows HyperV is a standalone server
Dropdown
IP Address/Host Name of Hyper-V clusterEnter the IP address/host name of the Hyper-V Cluster. It should be accessible from Gateway.String
Is SecureSelect this checkbox if you want the communication between your system and the specified endpoint to be secured using protocols such as HTTPS (HTTP over SSL/TLS).
Default Selection:7 When selected, it signifies that the connection is encrypted, providing an added layer of security to the data being transmitted.
Checkbox
Windows Cluster CredentialsSelect the credential associated with your Commvault account. If you want to use the existing credentials, select them from the Select Credentials dropdown. Else, click + Add to create credentials. The ADD CREDENTIAL window is displayed. Enter the following information.
  • Name: Credential name.
  • Description: Brief description of the credential.
  • User Name: User name.
  • Password: Password.
  • Confirm Password: Confirm password
Dropdown
App Failure NotificationsWhen selected, you will be notified in case of an application failure such as Connectivity Exception, Authentication Exception.Checkbox
  1. CUSTOM ATTRIBUTES: Custom attributes are the user-defined data fields or properties that can be added to the preexisting attributes to configure the integration.
Field NameDescriptionField Type
Custom AttributeSelect the custom attribute from the dropdown. You can add attributes by clicking the Add icon (+).Dropdown
ValueSelect the value from the dropdown.Dropdown

Note: The custom attribute that you add here will be assigned to all the resources that are created by the integration. You can add a maximum of five custom attributes (key and value pair).

  1. In the RESOURCE TYPE section, select:
    • ALL: All the existing and future resources will be discovered.
    • SELECT: You can select one or multiple resources to be discovered.
  2. In the DISCOVERY SCHEDULE section, select recurrence pattern to add one of the following patterns:
    • Minutes
    • Hourly
    • Daily
    • Weekly
    • Monthly
  3. Click ADD.
Hpe3par
  1. Now the configuration is saved and displayed on the configurations page after you save it. From the same page, you may Edit and Remove the created configuration..
  2. Click NEXT.
  3. In the Installation page, select an existing registered profile, and click FINISH.
Hpe3par

The application is now installed and displayed on the Installed Integration page. Use the search field to find the installed application.

Modify the Configuration

View the Windows HyperV Cluster Details

  1. Navigate to Infrastructure > Search > Virtualization > Windows HyperV Cluster. The Windows HyperV Cluster page is displayed.
  2. Select the application on the Windows HyperV Cluster page
  3. The RESOURCE page appears from the right.
  4. Click the ellipsis (…) on the top right and select View Details.
Hpe3par
  1. Navigate to the Attributes tab to view the discovery details.
Hpe3par

View resource metrics

To confirm Windows HyperV Cluster monitoring, review the following:

  • Metric graphs: A graph is plotted for each metric that is enabled in the configuration.
  • Alerts: Alerts are generated for metrics that are configured as defined for integration.
  1. Click the Metrics tab to view the metric details for Windows HyperV Cluster.
Hpe3par

Risks, Limitations & Assumptions

  • The integration can manage critical/recovery failure alerts for the following two scenarios when the user activates App Failure Notifications in the settings:
    • Connectivity Exception
    • Authentication Exception
  • Application will not send any duplicate/repeat failure alert notification until the already existing critical alert is recovered.
  • Using metrics for monitoring the resources and generating alerts when the threshold values are breached.
  • Application cannot control monitoring pause/resume actions based on above alerts.
  • This application supports both Classic Gateway and NextGen Gateway.
  • Not supported with Cluster Gateway.
  • No support of showing activity logs.
  • The Template Applied Time will only be displayed if the collector profile (Classic and NextGen Gateway) is version 18.1.0 or higher.
  • For a Windows HyperV cluster, If Standalone Mode is selected part of configuration, only Windows HyperV Server will get created/updated. Windows HyperV Cluster wont be discovered and will get deleted if already exists.
  • Latest snapshot metric support from gateway version 14.0.0.
  • Component level thresholds can be configured on each resource level.

Troubleshooting

Before troubleshooting, ensure that all Windows HyperV Cluster prerequisites are met.

If the Windows HyperV Cluster integration fails to Discover or Monitor, try the following troubleshooting steps:

  • Check if any alerts have been generated on the cluster or gateway, or if there are any error logs in vprobe.
  • If an error or alert is related to the End Device Connectivity or Authentication issue, try to establish connection with the end device from a gateway using below power shell command:
    • In the case of a NextGen gateway, first connect to native bridge container using {kubectl exec -it nextgen-gw-0 -c nativebridge -- /bin/bash} and then run below commands. For classic gateway directly run below commands.
    • Launch power shell using the {pwsh} command.
    • Run the following commands to establish connection, using the details of your end device.
      • {$pw = convertto-securestring -AsPlainText -Force -String "<password>"}
      • {$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist "<username>", $pw}
      • {$session = new-pssession -computername "<ipAddress>" -credential $cred -Authentication Negotiate -ErrorAction Stop}
      • {session.state} Note: The session state should be open.
    • If the session is not establishing, cross check that all of the prerequisites are met on all servers and clusters.
    • If the session does establish, check if the failover modile is installed on all servers and clusters with the following commands:
      • If the cluster is set up, run {get-cluster | Select-Object name, id, domain, sharedvolumesroot, description} in the cluster and all nodes. - If the cluster is not set up, run {get-disk | select FriendlyName, UniqueId, Manufacturer, Model, NumberOfPartitions, ProvisioningType, PartitionStyle, DiskNumber, Size} in the server.
    • If the previous commands fail, run the below commands to install a failover module.
      • {Install-WindowsFeature -name FailOver-Clustering -IncludeManagementTools}
      • {Import-module failovercluster}

To validate new powershell scripts, use the following steps:

  • In the case of a NextGen gateway, first connect to a native bridge container using {kubectl exec -it nextgen-gw-0 -c nativebridge -- /bin/bash}, and then run below commands. For a classic gateway, directly run below commands.
    • Execute the command {"cat > <new script file name>”}. Copy the content of the script with the required changes and paste in the command.
    • Exit the cat command using {Ctrl + Z}
    • Execute the script using the command {pwsh -File <script file name> <host ip> <username> <base64 encoded password> 0}

To validate script changes for existing script files, use the following steps:

  • In the case of a NextGen gateway, first connect to a native bridge using {kubectl exec -it nextgen-gw-0 -c nativebridge -- /bin/bash}, then proceed to the next steps. If using a classic gateway, proceed directly to the next steps.
    • Navigate to the path, cd /opt/gateway/content/scripts/windows-hyperv-cluster.
    • Get a backup of the file using the command, {cp <script file name to be modifed> <backup file name>}.
    • Execute the command {cat ><script file name>}. For the script file name, copy and paste the content of the script with the required changes.
    • Exit the cat command using {Crtl + Z}.
    • Check the last modified time for the script file using the command {ll}. The last modified time should be the current time.
    • Execute the script using the command {pwsh -File <script file name> <host ip> <username> <base64 encoded password> 0}.
    • If the script is responding, restart the POD using the appropriate command:
      • If using a Next Gen gateway, use {kubectl delete pod nextgen-gw-0}
      • If using a classic gateway, use {service vprobe restart}

Version History

Application VersionBug fixes / Enhancements
6.0.0
  • Support for monitoring replication health and status metrics for Hyper-V Guest VMs.
  • The app will set the MAC and IP Address if the end device provides them as part of the output from the following PowerShell cmdlet output: get-vm -ComputerName $Using:currentNodeName | Get-VMNetworkAdapter |
5.0.0
  • Metric Calculation updated for the metric windows_hyperv_server_TotalPhysicalMemory
  • Support added for new metric windows_hyperv_server_PhysicalMemoryUtilization
4.0.0
  • Added additional metric support for the nativeType - Windows HyperV Server
3.0.1Code fix for latest snapshot metric.
3.0.0Persona changes to support Cluster and Standalone Windows HyperV Cluster configurations.
2.0.0
  • Code Enhancements - bulkOperations Support.
  • Metric label support.
  • Missing component alert support.
  • Display Order and Resource Grouping Support
  • subcategory Updated from Servers and VMs to Compute
Click here to view the earlier version updates
Application VersionBug fixes / Enhancements
1.0.2Full discovery support.
1.0.1Resource discovery and monitoring implementations.