Pattern discovery error "Failed to download binary using httpgetbin_adodb.vbs"Description<!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } table tr td { padding: 15px; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul { list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> Overview When discovering an application using patterns via either discovery or Service Mapping, the following error is returned and discovery fails: Failed to download binary using httpgetbin_adodb.vbs Root Cause The MID server has a ServiceNow WMI Collector service that listens on port 8585 by default. You can change this port by updating wmi_collector.ini. Patterns can run commands on a target server to collect data. Depending on the method used to collect the data, a new connection is created from the target back to the MID server to return the information. Some firewalls might be configured to allow established connection traffic back to the MID server. However, because this is a new connection, these firewall rules will not allow this traffic. The following example shows sample output in the .\agent\bin\sw_wmi\log\logfile.txt file. DEBUG NeebulaWMI.NeebulaWMIProcess - Connection ID: #### Context: 14315 Host: Action Type: executeQuery Process ended: -r:http://target_server_ip:5985 -u:username -p:******* -d:c:\temp cscript httpgetbin_adodb.vbs httputil.exe http://mid_server_ip:8585/download/64/httputil.exe DEBUG NeebulaWMI.NeebulaWMIProcess - Connection ID: #### Context: 14315 Host: target_server_ip Action Type: executeQuery WinRS result: Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved. c:\temp\httpgetbin_adodb.vbs(10, 1) msxml3.dll: The operation timed out This command is asking the target server to download httputil.exe from the MID server to the target. Other tools are downloaded next. This step will fail if the connection back to the MID Server is not successfully created. These tools are downloaded to the target's C:\Temp directory. Note – Simply moving the files to the target's C:\Temp directory will not resolve the issue because these tools will also run commands later and return the output back to the WMI Collector service on the default port. In some scenarios, the MID Server might have multiple network cards and some of the network cards might not be reachable from the target's network. Therefore, the MID Server might ask the target to download the files from an interface it cannot reach. When the MID Server builds the command it will use one of the IPs returned by Dns.GetHostName. Therefore, this error can happen due to the following issues: New connections cannot be created from the target back to the MID server on port 8585The command is using an IP address for the MID server that is not reachable by the target Solution Create a firewall rule allowing for new connections from the target server back to the MID Server on port 8585. Update .\agent\bin\sw_wmi\conf\wmi_collector.ini with an IP address that the target sever can reach by adding parameter "localAddress". Restart the MID Server. localAddress=<MidServerReachableIP> Note – You can also change the default port on which WMI Collector listens by updating wmi_collector.ini. Important note WMI Collector is deprecated in New York patch 10 and later. See the KB0791835 WMI Collector deprecation details for more information.