Run Host Management Commands from a Linux System

After installation, you can run ESXCLI commands from the command prompt.
  1. Open a command prompt.
  2. Change to the ESXCLI installation directory.
    The default directory is
    /opt/vmware/esxcli
    .
  3. Run the command, including the connection options.
    <command> <conn_options> <params>
    Specify connection options in a configuration file or pass them on the command line.
    esxcli --server <
    vc_hostname_or_IP
    > --username snow\-white --password dwarf\$ network ip interface list
    The system prompts you for a user name and password for the target server.