Manually Specify a TCP Port for Host Diagnostics

The toolkit installation process prompts you either use the default TCP port number (21344) or enter a different, available port that Host Diagnostics can use. If you perform a silent installation, the installer automatically chooses an unused TCP port number in range 21344 to 21363. However, if you do not provide a port or the installer cannot locate an unused port, you must manually enter a port number.

  1. Start the HPE Host Diagnostics Collector Service. This service will automatically choose a port number and save it in the configuration file (<InstallDirectory>\HPE Storage\Host Diagnostics\.appdata\hostdiagsrv.json\hostdiagsrv.json).
  2. Open the configuration file and write down the port number.
  3. Add firewall exception to this port number using the following commands:

    Inbound rules:

    .\Netsh.exe advfirewall firewall add rule name= "HPE Host Diagnostics Agent" dir=in action=allow program="<InstallDirectory>\HPE Storage\Host Diagnostics\hostdiag.exe" description="Allow inbound communications from your HPE Storage array" enable=yes protocol=TCP localport=<PortNo> profile=private,domain,Public

    Outbound rules:

    .\Netsh.exe advfirewall firewall add rule name= "HPE Host Diagnostics Agent" dir=out action=allow program="<InstallDirectory>\HPE Storage\Host Diagnostics\hostdiag.exe" description="Allow inbound communications from your HPE Storage array" enable=yes protocol=TCP remoteport=<PortNo> profile=private,domain,Public

  4. Initiate log collection to verify the connectivity.