Host Diagnostics CLI Commands

Host Diagnostics provides a CLI agent that allows you to perform tasks using the CLI. The Host Diagnostics Agent CLI is an administrative tool that you can use to register the host with a group and manage the HPE Storage Toolkit for Windows Host Diagnostics Collector Service if you encounter a problem and need to restart the service.

You run the Host Diagnostics Agent CLI commands on the Windows host. The hostdiag command is located at <InstallPath>\HPE Storage\Host Diagnostics. The commands have the following format:

hostdiag [comand]

For example, you could register a host with a group by entering:

hostdiag master add -i <group_IP> -u <admin_username> -p <admin_password>

Where
  • group_IP is the IP address of the group.
  • admin_username is the username of a user who has Power User or above credentials.
  • admin_password is the user's password.

The Host Diagnostics Agent CLI supports the following commands:

Command Description
help Display information about how to use any of the supported commands. You can use the -h flag with any of the commands.
master Use these commands to manage registering the host with a group on the array. When you supply the user name and password credentials to access the group, they must have Power User or above privileges.
master add Add this host to the group you specify..
Supported flags:
  • -i <group_IP_address>
  • -p <group_password>
  • -u <group_username>
master list Display the group to which the host is currently registered.
master remove Remove the host's registration from the group.
Supported flag:
  • -i <group_IP_address>
restart

Restart the HPE toolkit Host Diagnostics Collector Service.

start Start the HPE toolkit Host Diagnostics Collector Service.
status Check the status of the HPE toolkit Host Diagnostics Collector Service.
stop Stop the HPE toolkit Host Diagnostics Collector Service.
version Display the version of the HPE toolkit Host Diagnostics Collector Service.