Hyper-V data collector in Cloud Insights fails inventory with error: "General Error"
- Views:
- 220
- Visibility:
- Public
- Votes:
- 0
- Category:
- data-infrastructure-insights
- Specialty:
- bluexp_insights
- Last Updated:
- 5/17/2024, 12:22:58 PM
Applies to
- Cloud Insights (CI)
- Microsoft Hyper-V data collector
Issue
- A Microsoft Hyper-V data collector in Cloud Insights is failing inventory collections with a generic error:
General Error
-
Review of the
log_sample.log
from the inventory recording file reveals more information about the error:
[DEBUG] Remote Host - ComputerNameSwitch - IP : 10.10.10.10 [10.10.10.10] Connecting to remote server 10.10.10.10 failed with the following error message : The client cannot connect to the destination specified in the request.
Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig". For more information, see the about_Remote_Troubleshooting Help topic. + CategoryInfo : OpenError: (10.10.10.10:String) [], PSRemotingTransportException + FullyQualifiedErrorId : CannotConnect,PSSessionStateBroken - Checking the WinRM service on the Hyper-V nodes shows that the service is running:
-
The
netstat
command shows nothing listening on ports 5985 or 5986
netstat -an | findstr /i "listen" | findstr "5985 5986"
Example:
C:\Users\Administrator> netstat -an | findstr /i "listen" | findstr "5985 5986"
C:\Users\Administrator> -
Running the following PowerShell command shows no listener configured for remote WinRM connections:
winrm enumerate winrm/config/listener