我正在调用 Ws-Management 调用来与 Dell Server R620 上的 iDRAC 交互。 由于我使用的是 Windows 机器,因此我为此目的调用 Windows WinRM 命令。
命令: winrm e http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_PhysicalDiskView -u:[用户名] -p:[密码] -r:https://[drac IP]/wsman -SkipCNCheck -SkipCACheck -encoding:utf-8 -a:basic所以我间歇性地收到以下错误响应:
Message = WS-Management cannot process the request. The operation failed because of an HTTP error. The HTTP error (12152) is: The server returned an invalid or unrecognized response .
错误号:-2147023901 0x800703E3 由于线程退出或应用程序请求,I/O 操作已中止。
我已经检查了wireshark来监控网络,并看到一致的帧检查序列不正确错误,但这是间歇性的
有人经历过类似的事情吗?
我尝试过: 1.禁用机器上的防火墙 2. 尝试多台机器执行同一个命令
最佳答案
我设法通过禁用防病毒软件的请求过滤功能来使其工作。 例如,Avast 为 webShield 提供了一种名为 HTTPS 扫描的功能。此外,QUIC 扫描仪几乎可以做同样的事情。
最后,我发现这个主题解决了我在目标系统上使用 Avast 的问题: https://mikefrobbins.com/2012/06/21/welcome-to-powershell-hell/
关于对于 Dell iDRAC 调用,Winrm 错误 : The HTTP error (12152) is: The server returned an invalid or unrecognized response.,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24916004/