vSphere Command-Line Interface 4.0 Update 2
|
vSphere CLI 4.0 Release NotesWelcome to the vSphere CLI 4.0 release notes. This document contains the following information: |
About vSphere CLI
The vSphere CLI command set allows you to run common system administration commands against ESX/ESXi systems from any machine with network access to those systems. You can run most vSphere CLI commands against a vCenter Server system and target any ESX/ESXi system that the vCenter Server system manages. vSphere CLI commands are especially useful for ESXi hosts because ESXi does not include a service console.
vSphere CLI commands run on top of the vSphere SDK for Perl. The vSphere CLI and the vSphere SDK for Perl are included in the same installation package.
Whats New in vSphere CLI 4.0
The following vSphere CLI commands have been added since the last documented release, Remote CLI 3.5 Update 2:
esxcli– Supports management of the VMware Pluggable Storage Array (PSA) architecture. You can useesxclito set the path policy and mask paths, and preview and manage third-party storage arrays. You can also useesxclito manage iSCSI NIC bindings.vicfg-iscsi– Allows you to manage both hardware and software iSCSI storage. The command includes functionality of theesxcfg-swiscsiandesxcfg-hwiscsiservice console commands, as well as options for setting authentication and for IPv6 configuration.vicfg-scsidevs– Displays information about available LUNs. Thevicfg-vmhbadevscommand available in ESX/ESXi 3.5 had similar but more limited functionality.vicfg-mpath– Displays information about a storage array and supports changing the state of a path. This command does not allow you to set the path policy; useesxcliinstead. Usevicfg-mpath35to manage ESX/ESXi 3.5 systems.vihostupdate– Applies software updates to ESX/ESXi images and installs and updates ESX/ESXi extensions such as VMkernel modules, drivers, and CIM providers. This command has more extensive functionality than thevihostupdatecommand available in Remote CLI 3.5 Update 2. Usevihostupdate35to manage ESX/ESXi 3.5 systems.vicfg-volume– Supports resignaturing a snapshot volume and mounting and unmounting the volume. You can make the mounted volume persistent across reboots and query a list of snapshot volumes and original volumes.
vSphere CLI 4.0 also includes the following new functionality:
- You can now run
resxtopthrough vCenter Server systems. - Networking commands support configuration of IPv6. The commands have not been tested running on an IPv6 network.
- The
vicfg-routecommand supports a number of new options for setting and managing the default route. - Several vSphere CLI commands have new options. See the vSphere Command-Line Interface Installation and Reference Guide or run the command with
--help.
The vSphere CLI package installers for Linux and Windows install the vSphere CLI and the vSphere SDK for Perl. Instead of using an installable package, you can deploy the vSphere Management Assistant (vMA), which includes the vSphere SDK for Perl, the vSphere CLI, and a set of other software components.
Supported Platforms
You can install vSphere CLI on the following Windows platforms:
- Windows XP SP2 32 bit
- Windows XP SP2 64 bit
- Windows Vista Enterprise SP1 32 bit
- Windows Vista Enterprise SP1 64 bit
You can install vSphere CLI on the following Linux platforms:
- Red Hat Enterprise Linux (RHEL) 5.2 (64 bit)
- Red Hat Enterprise Linux (RHEL) 5.2 (32 bit)
- SUSE Enterprise Server 10 SP1 32 bit
- Ubuntu 8.04 32 bit
vSphere CLI is also included in the vSphere Management Assistant (vMA), a virtual machine which includes prepackaged software. Developers and administrators can use vMA to run agents and scripts to manage ESX and ESXi systems.
You can run most vSphere CLI commands against ESX/ESXi 4.0 and ESX/ESXi 3.5 Update 2 and later. When you run vSphere CLI 4.0 against ESX/ESXi 3.5 Update 2 and later, only the commands and command options supported by Remote CLI 3.5 Update 2 are supported. Call each command with --help for more information. In a few cases, command options supported by Remote CLI 3.5 Update 2 against ESX/ESXi systems are not supported by vSphere CLI 4.0. See VMware KB Article 1008940 for information on
running vSphere CLI 4.0 commands against ESX/ESXi 3.5 Update 2 systems.
See VMware KB Article 1008194 for information on parity between vSphere CLI commands and ESX service console commands.
Installing vSphere CLI
You can install the vSphere CLI on one of the supported Windows or Linux platforms, or deploy vMA on your ESX/ESXi system. See the vSphere Command-Line Interface Installation and Reference Guide for detailed installation instructions.
Resolved Issues
The following issues that were reported in previous releases have been resolved.- VIMA 1.0 supports a maximum of 19 target servers. It is not possible to add more than 19 target servers to VIMA 1.0. This issue is resolved for vMA 4.0.
Known Issues
The vSphere CLI 4.0 Update 1 release has the following known issues:
-
WSMan modules missing in Linux installations. The Linux installer does not copy the Web Services for Management (WSMan) modules into the library tree.
Workaround: Manually copy the modules, as follows:
- Untar the vCLI tarball and find the
vmware-vsphere-cli-distrib/lib/WSMan/share/WSMandirectory. - Copy the directory into one of the directories in the Perl search path, which is defined in the @INC variable. You can list all directories in the search path by running this command:
perl -e 'foreach (@INC){print "$_\n"}'
- Untar the vCLI tarball and find the
Connection failure message when running the esxcli vSphere CLI under Linux. When you run an
esxclicommand on a Linux system that is using SELinux enhanced security, the command reports the following message in/var/log/messages.Connect to 1.2.3.4 failedand recordssetroubleshoot: SELinux is preventing esxcli from loading /usr/lib/vmware-vcli/bin/esxcli/_ssl.so which requires text relocationWorkaround: You can resolve this issue by making one of these changes on the system on which you run
esxclicommands:- Run the following command to resolve the text relocation issue:
chcon -t textrel_shlib_t /usr/lib/vmware-vcli/bin/esxcli/_ssl.so - Disable SELinux or change the SELinux policy to permissive. Note that this is a significant change to the security of the client system. Do not make this change unless you have in-depth knowlege of SELinux and your local network security policies.
- Run the following command to resolve the text relocation issue:
-
Patch installation using vihostupdate might fail on ESXi hosts for patch file sizes greater than 256MB If you run
vihostupdateto install patches on an ESXi host that does not have a scratch directory, and if the downloaded file size is above 256MB, patch installation fails. When the ESXi server boots initially, the system tries to auto configure a scratch directory. If no storage is available for the scratch directory, the scratch directory is not configured and points to a temporary directory.Workaround: Configure a scratch directory on a VMFS volume using the vSphere Client, then run
vihostupdateagain. Problems using vmkfstools to create VMFS3 volume when using VML name of LUN. When you run
vmkfstools -C vmfs3to create a VMFS3 volume, and you use the VML name for the LUN, the command might fail even if the VML name is a soft link to a device name (naa.xxx name). The command might fail, for example, if a VMFS3 volume already exists on the LUN.
Workaround: Use the device name (naa.xxx or eui.xx) to refer to the LUN.
-
Running vmkfstools -C does not prompt for confirmation. When you run
vmkfstools -Cto create a VMFS (Virtual Machine File System) on a partition that already has a VMFS on it, the command erases the existing VMFS and creates the new VMFS without prompting for confirmation.
Workaround: No workaround. Check the command carefully before running it.
-
resxtop not supported in replay mode. The
resxtopcommand is supported only in interactive mode and batch mode. Theesxtopservice console command is supported in interactive mode, batch mode, and replay mode.Workaround: On ESX systems, use
esxtopinstead. On ESXi systems, no workaround. -
resxtop Storage Panel "l" interactive command replaced by "u". When you use
resxtopin interactive mode and view the Storage Adapter panel, you can no longer type "l" to expand the view to the LUN level. Instead, an error results.Workaround: Type "u" to expand to the LUN level.
-
vicfg-route displays gateway that has been removed. If you add a gateway using
vicfg-route, and then remove that gateway, a follow-up call tovicfg-routestill displays the gateway although it has actually been removed.Workaround: None.
vicfg-dumppart --list results in error. When you run
vicfg-dumppart --liston an ESX/ESXi host that does not have a diagnostic partition configured, the following error results:Use of uninitialized value in length at /usr/bin/vicfg-dumppart line 307Workaround: Configure a diagnostic partition for core dump files on your ESX/ESXi system. When you do,
--listdisplays valid information.-
Diagnostic partition change is not persistent under certain conditions. If you call
esxcfg-dumppartorvicfg-dumppartto change the diagnostic partition, and if your ESX/ESXi system experiences a failure within an hour after this change is made and before the host is rebooted, the diagnostic partition reverts to the original setting.Workaround:
- ESX: Run
esxcfg-boot -bimmediately after changing the partition to ensure this problem does not occur. - ESXi: Reboot the ESXi system immediately after changing the partition.
- ESX: Run
-
When using svmotion in interactive mode, cannot specify non-ASCII characters as input. When you use
svmotionin interactive mode, you cannot specify non-ASCII input, for example, a German datacenter name.Workaround: Run
svmotionin non-interactive mode and use quotes around the datacenter name. -
vihostupdate reports
Host updated successfullywhen an obsolete bulletin is installed. An obsolete bulletin is a bulletin containing VIBs that are superseded by what is already installed. Because the bulletin is old, it does not need to be installed. Whenvihostupdateencounters an obsolete bulletin, it does not perform installation or update but skips the bulletin. The message is incorrect.Workaround: No workaround needed — just ignore the message. To verify what software is installed, run
vihostupdate --query. -
Error when using vicfg-iscsi to set up IP, subnet, and gateway separately. You perform a factory reset on a QLogic hardware iSCSI card that results in an error. If you then use the
vicfg-iscsivSphere CLI to set IP address, subnet mask, and gateway separately, an error status results in which the addresses for IP, subnet mask, default gateway, and DNS are set to NULL (0.0.0.0). This is also a problem if the address is 0.0.0.0 for other reasons.Workaround: Use the following command to reset the IP address, subnet mask, and gateway at the same time:
vicfg-iscsi --network --ip--subnetmask --gateway -
Cannot modify hardware iSCSI adapter MTU using
vicfg-iscsi. When you callvicfg-iscsi <conn_params> --pnp --mtu <number> <vmhba>to modify the MTU for a hardware iSCSI adapter, the MTU does not actually changed and an error indicates the property is not settable.Workaround: None
-
vicfg-vmknic completes successfully but displays error. Set up an ESXi Installable system with a DHCP IP address, then set an explicit IP address by running vicfg-vmknic -i -n -p. The IP address is set successfully, but a SOAP error is displayed instead of a success message. This problem has been found on ESXi Installable only.
Workaround: No workaround needed, the IP address is set successfully.
On Windows, Warnings During Startup if chcp Program Not Available. On Windows operating systems, if the chcp program is not present or is not in your PATH environment variable, vSphere CLI commands display the following warning message on startup:
By default, the program is not included with Windows XP 64 bit, but included with all other supported versions of Windows.'chcp' is not recognized as an internal or external command, operable program or batch file.
Workaround: No workaround needed. The commands are not affected. If you want to avoid the warning, make sure chcp is installed and in your PATH.
-
On Linux, cannot install into a non-default directory if it does not have a bin directory. If you run the vSphere CLI installer and specify as the installation location a directory that does not contain a
bindirectory, the installer ignores the specified directory and installs the package in the/usr/bindirectory instead. For example, if you specify/home/user, the installer creates a/home/bindirectory and installs the software there.Workaround: Create the bin directory before installation.
lcrypto installation error on some Linux platforms. When you install the package that includes the vSphere SDK for Perl and the vSphere CLI, you might see the following error on some Linux platforms:
ld: cannot find -lcrypto
Unable to link the Crypt::SSLeay Perl module. Secured connections will be unavailable until you install the Crypt::SSLeay module.The error indicates that OpenSSL is not available on that system.
Workaround: Install OpenSSL, as described in the vSphere SDK for Perl Installation Guide.
Error running credstore_admin.pl on some SUSE 10 installations. When you run the
/apps/general/credstore_admin.plscript on a SUSE 10 system the following error might result:*** glibc detected *** /usr/bin/perl: free(): invalid pointer: 0x083d0339 ***The probable reason for the error is that a version of
perl-XML-LibXMLthat is older than the version included with the vSphere CLI / vSphere SDK for Perl package is already installed on the system. As a result, the installer did not add the required version ofperl-XML-LibXMLto the SUSE system.Workaround: First uninstall the perl-XML-LibXML package, and then reinstall the vSphere CLI / vSphere SDK for Perl package. The required version of
perl-XML-LibXMLcan now be installed by that installer.vicfg-volume does not maintain global datacenter information in a distributed environment. In a distributed environment a user has mounted (persistent/no persistent) an unresolved volume from one ESX/ESXi system using
vicfg-volume -M. From another ESX/ESXi system, the user runsvicfg-volume -rto resignature that unresolved volume. If the mounted volume is not active, running the volume resignature command unmounts the volume. The volume appears as a resignatures volume to all hosts in the environment. In contrast, if you use vSphere Client to mount an unresolved volume from one host and issue resignature from another host, the vSphere Client generates a warning to let users know that volume has been mounted on another host and resignature does not succeed.Workaround: Use the vSphere Client instead of the vSphere CLI to resignature volumes in a distributed environment.
-
Starting SNMP service with vicfg-snmp sometimes fails. Starting the SNMP service by running
vicfg-snmpsometimes fails with the following error:# Snmpwalk -m all -c public -v1 <IP address> enterprises.6876
Timeout: No Response from <ip-address>The problem occurs under different conditions on ESX and ESXi systems.
ESX: When you call thevicfg-snmpvSphere CLI command on ESX systems, the SNMP service starts successfully. However, if you later attempt to access the service by runningsnmpwalk, the call tosnmpwalktimes out and displays the error.
ESXi: When you call thevicfg-snmpvSphere CLI command on ESXi systems, the SNMP service starts successfully and you can runsnmpwalkto access the service. However, if you disable SNMP and then enable it, a call tosnmpwalkfails.Workaround:
- ESX: Restart hostd from the service console by running:
Service mgmt-vmware restart - ESXi: Restart the ESXi system.
- ESX: Restart hostd from the service console by running: