VMware
 

Knowledge Base

Search the Knowledge Base:

Products:
Search In:
 

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:
  1. 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.
  2. Copy the archive file to a permanent directory, such as /root .

    Note: Do not use /tmp .

  3. Extract the archive file using:

    tar zxf VMware-VmPerlAPI-2.3.2-39850.tar.gz

  4. Run the following commands in sequence to install the package:

    cd vmware-api-distrib

    ./vmware-install.pl

  5. 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

You can also install the Perl Scripting API (build 39850) into a separate Linux machine and use vmware-cmd from that machine. This Linux machine then passes login information to vmware-cmd to connect to different hosts.

Feedback

Rating: 1 - Lowest 2 3 4 5 - Highest (0 Ratings)   

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (2000 or fewer characters)
Submit
Rating: 1 - Lowest 2 3 4 5 - Highest (0 Ratings)   
Actions