Support > Knowledge Base
Knowledge Base

Search the Knowledge Base: |
Search the Knowledge Base: |
vmware-cmd commands may fail in ESX 3.5 service console
Symptoms
vmware-cmd commands may fail in the ESX 3.5 service console.
For example, the following commands may produce these errors: :
-
# vmware-cmd -s getresource system.cpu.number
VMControl error -10: The specified property or variable is invalid or undefined
-
# vmware-cmd -s getresource system.mem.COS
getresource(system.mem.COS) = UnImplemented for S.Resource.system.mem.COS (6)
-
# vmware-cmd -s getresource system.mem.swapin
getresource(system.mem.swapin) = UnImplemented for S.Resource.system.mem.swapin (27)
-
# vmware-cmd -s getresource system.mem.swapout
getresource(system.mem.swapout) = UnImplemented for S.Resource.system.mem.swapout (28)
-
# vmware-cmd -s getresource system.mem.overhd
VMControl error -10: The specified property or variable is invalid or undefined
Resolution
To workaround the issue:
- Download the VMware Perl API for Linux from build 39850, at http://www.vmware.com/download/sdk/api.html into your ESX 3.5 Service Console.
-
Copy the archive file to a permanent directory, such as /root .
Note: Do not use /tmp .
-
Extract the archive file using:
tar zxf VMware-VmPerlAPI-2.3.2-39850.tar.gz
-
Run the following commands in sequence to install the package:
cd vmware-api-distrib
./vmware-install.pl
-
Specify the hostname, username, and password on the command line for all vmware-cmd commands. For example:
# vmware-cmd -H esxhostname -U root -P rootpassword -s getresource system.cpu.number
getresource(system.cpu.number) = 8
Additional Information
Feedback
Actions
- KB Article: 1005039
- Updated: Aug 14, 2009
- Products:
VMware ESX - Product Versions:
VMware ESX 3.5.x

