For all ESXi hosts that are managed by a vCenter Server system that is integrated with vCenter Single Sign-On 6.0 and later, you can authenticate directly to the vCenter Server system, or you can authorize to vCenter Server through vCenter Single Sign-On.

The best practice is to authenticate through vCenter Single Sign-On.

You use the following options.

  • server - Specifies the vCenter Server system that manages the host.
  • vihost - Specifies the ESXi host.

Example

vminfo.pl --server <vc_HOSTNAME_OR_IP> --vihost <esxi_HOSTNAME_OR_IP>--username root --password vmware --vihost <esxi_host>

If the specified user is known to vCenter Single Sign-On, a session is created. You can save the session with the --savesessionfile argument, and later use that session with the --sessionfile argument.