WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Hardware Options
    • Hardware Reviews
    • Lab Deployment Scripts
    • Nested Virtualization
    • Homelab Podcasts
  • VMware Nostalgia
  • Apple

How to install vCLI 4.0 Update 2 on vMA

06.29.2010 by William Lam // Leave a Comment

There was a question today on the VMTN forums about obtaining the latest version of resxtop for vMA to utilize the new NFS datastore counters. Unfortunately, there is no automatic method of updating vMA to get the new version of resxtop, which is part of the vCLI 4.0 Update 2 package. The current release of vMA 4.0 contains the GA release of vCLI 4.0 (May 2009). VMware has since released both and Update 1 and Update 2 of vCLI.

Even though there is no automatic way of upgrading the vCLI on vMA, it is actually pretty easy to download the latest version and upgrade it yourself. Before starting, you will want to download vCLI 4.0 Update 2 and ensure that it is the 64bit version.

Download: vCLI 4.0 Update 2

You will need to copy the tarball to your vMA host using either UNIX/Linux scp command or WinSCP if you're on a Windows system. Once the package has been uploaded, you will login to your vMA host and you should see the package in the current working directory:
[vi-admin@kate ~]$ ls
VMware-vSphere-CLI-4.0.0-253290.x86_64.tar.gz

Now you will extract the contents of the tarball using the following command:

[vi-admin@kate ~]$ tar -zxvf VMware-vSphere-CLI-4.0.0-253290.x86_64.tar.gz

After extracting the contents, you should now have a new folder called vmware-vsphere-cli-distrib:

[vi-admin@kate ~]$ ls -l
total 18304
-rw-r--r-- 1 vi-admin root 18714362 Jun 28 10:35 VMware-vSphere-CLI-4.0.0-253290.x86_64.tar.gz
drwxr-xr-x 10 vi-admin root 4096 Apr 23 01:01 vmware-vsphere-cli-distrib

You will now cd into the vmware-vsphere-cli-distrib directory and run the installer. The first time you run this, you will get an error and you need to remove the installer db at this time to proceed with the installation:

[vi-admin@kate vmware-vsphere-cli-distrib]$ sudo ./vmware-install.pl
A previous installation of vSphere CLI has been detected.

Uninstallation of previous install failed. Would you like to remove the install
DB? [no] yes

Removing installer DB, please re-run the installer.
Note: (This is necessary since the installer script does not support a clean upgrade from what I can tell)

Once you have successfully removed the installer db, you will need re-run the previous command which will start the installation (accept all the defaults and ensure you do overwrite the utilities):

[vi-admin@kate vmware-vsphere-cli-distrib]$ sudo ./vmware-install.pl

......

The installation of vSphere CLI 4.0.0 build-253290 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command:
"/usr/bin/vmware-uninstall-vSphere-CLI.pl".

This installer has successfully installed both vSphere CLI and the vSphere SDK
for Perl.

Enjoy,

--the VMware team
After this, you now have the latest version of vCLI 4.0 Update 2 installed on your vMA host.

The biggest feature with this new release of the vCLI is the NFS datastore metrics which has been a sought after for awhile. One other feature that has not gotten too much attention in the new version of esxtop/resxtop is the power management metrics, denoted by the new "y" option.

Categories // Uncategorized Tags // vcli, vma

How to remove stale targets from vMA

06.10.2010 by William Lam // Leave a Comment

If you have used vMA's vi-fastpass authentication, you will know how easy it is to setup using vifp utility which supports both ESX/ESXi and vCenter targets.

Here's an example of adding ESXi target:

[vi-admin@scofield ~]$ sudo vifp addserver esxi3-1.primp-industries.com
*protected email*'s password:

Here's an example of the listing of the available fastpass targets:

[vi-admin@scofield ~]$ sudo vifp listservers
esxi3-1.primp-industries.com ESXi

During this process, two accounts (vi-userXX & vi-adminXX) are created on the target host with a password that vMA management creates and caches it locally in an obfuscated but not encrypted form. This will allow you to initialize a fastpass target using vifpinit utility and execute commands against the target host without having to manually type in the credentials.

The fastpass targets are stored in 2 configuration files on vMA:

1) The obfuscated cached credentials is stored in /home/vi-admin/.vmware/credstore/vicredentials.xml

If you cat out the contents, it will look something like this:

   esxi3-1.primp-industries.com
   vi-admin00
   XXXXXXXXXXXXXXXXXXXXXXX

2) A More detailed configuration for each of the targets along is stored in /etc/vmware/viconfig/viconfig.xml

If you cat out the contents, it will look something like this:

   esxi3-1.primp-industries.com
   443
   524d18f6-8bbb-2c5f-a366-6d191813fbe3
   https
   /sdk
   vi-admin00
   vi-user00
   true
   ESX
   1276121961

What happens when you rebuild your host, or the system is no longer available because it has been decommissioned or being used for another purpose? vMA will still think it's managing the host and the fastpass credentials will no longer function as the account is no longer valid the host. If you try to remove the old target, you will see the following error:

[vi-admin@scofield ~]$ sudo vifp removeserver esxi3-1.primp-industries.com
*protected email*'s password:

Error: Failed to connect. Please make sure the server is up and is of supported version.

The reason this occurs is that vMA is unable to login to the host and remove the two accounts that were initially created and fails to remove the target. What you will need to do is actually pass in an additional parameter to vifp command "--force" which will forcefully remove the target from vMA management. This command actually does not require the user to enter the correct password to the host even if it is still reachable by vMA. By specifying this flag and providing some input when prompted for the password, vMA will purge the target from it is system.

[vi-admin@scofield ~]$ sudo vifp removeserver esxi3-1.primp-industries.com --force
*protected email*'s password:

After a target is removed from vMA, it is also removed from the two above files. You do not manually tweak either of these configuration files or it may lead to issues on your vMA host.

Best practice for decommissioning a host that has been added to vMA's management is the following:

  1. Disable vilogger if you've enabled it for the host
  2. Remove target from vMA management
  3. Verify the host is no longer being managed by vMA
  4. Decomission host

Categories // Uncategorized Tags // ESX 4.0, vifp, vma

Getting started with vMA

05.30.2010 by William Lam // 4 Comments

Documentation

What is vMA?

  • Here is a video explaining vMA on VMware KBTV

Visit the vMA Home Page:

  • VMware vMA

vMA Forum:

  • VMware vSphere Management Assistant (vMA)

You will find latest Downloads, Reference Documentation and Community Discussions and links to resources.

Downloads

  • vMA 4.x Download - Supports ESX(i) 3.5u2/4.x and vCenter 2.5/4.x
  • VIMA 1.0 Download - Supports ESX(i) 3.5u2+

Tutorials

    Setting up vMA video by David Davis

    • Using the new VMware vSphere Management Assistant (vMA)

    Setting up vMA to be a syslog server by Simon Long

    • Using vMA As Your ESXi Syslog Server

    vi-fastpass

    • vMA 4.1 - Authentication Policy (fpauth vs adauth)
    • How to configure and use vMA's vi-fastpass with fpauth and adauth on vSphere 4.1
    • How to automate & cron vi-fastpass scripts on vMA 4.1

    Upgrade vMA:

    • Why you should upgrade from vMA 4.0 to vMA 4.1

    How to clone vMA:

    • Cloning vMA still not supported?

    Backup & Restore vMA + vi-fastpass DB:

    • How to backup/restore vMA's config + vi-fastpass DB

    Scripts and Tools

    vGhetto Script Repository:

    • vGhetto Script Repository

    New tools and scripts to add/manage ESX(i) and vCenter targets on vMA 4.x:

    • http://www.virtuallyghetto.com/p/vmware-vma-vima.html

    vMA Compatible Agent/Scripts(Third Party) Community List:

    • vMA Compatible Agent/Scripts(Third Party) Community List

    Health check reports on your VMware environment:

    • VMware vSphere Health Check Report - vMA 4.x
    • VMware Health Check Report - VIMA 1.0

    Taking screenshots of your VM using vMA 4.x:

    • takeVMScreenshot.pl using vMA 4.x

    Host and VM shutdown with UPS integration using vMA:

    • ghettoUPSHostShutdown.pl

    Backup VMs using vMA:

    • ghettoVCBg2 - Free alternative for backing up VMs in ESX(i) 3.5 and 4.x (no SSH console required!)

    Utilize vi-fastpass On vMA to run Perl script without clear text password:

    • useVIFastpassOnvMAToRunPerlScriptWithoutClearTextPassword.pl

    Tweaks

    Hot add memory to vMA or other supported Linux guestOSes using vSphere ESX(i) 4.x:

    • Hot add memory to vMA or other supported Linux guestOSes using vSphere ESX(i) 4.x

    How to increase/resize vMA Disks:

    • How to increase/resize vMA 4.0 Disks
    • How to increase/resize vMA 4.1 Disks

    Offline patching of vMA 4.x:

    • Update vMA without internet access

    How to install VMware VDDK on vMA:

    • How to install VDDK 1.1 on vMA 4.0 (libfuse.so.2 fix)

    Reconfigure networking on vMA:

    • vmware-vima-netconf.pl

    vMA & Active Directory:

    • vMA 4.1 - Active Directory IntegrationTip

    Removing stale targets from vMA:

    • How to remove stale targets from vMA

    Enable root account:

    Edit /etc/passwd using vi

    sudo vi /etc/passwd

    Change

    root:x:0:0:root:/root:/sbin/nologin

    to


    root:x:0:0:root:/root:/bin/bash

    Categories // Uncategorized Tags // vma, vSphere

    • « Previous Page
    • 1
    • …
    • 4
    • 5
    • 6
    • 7
    • Next Page »

    Search

    Thank Author

    Author

    William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

    Connect

    • Bluesky
    • Email
    • GitHub
    • LinkedIn
    • Mastodon
    • Reddit
    • RSS
    • Twitter
    • Vimeo

    Recent

    • VCF 9.0 Hardware Considerations 05/30/2025
    • VMware Flings is now available in Free Downloads of Broadcom Support Portal (BSP) 05/19/2025
    • VMUG Connect 2025 - Minimal VMware Cloud Foundation (VCF) 5.x in a Box  05/15/2025
    • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
    • Quick Tip - Validating Broadcom Download Token  05/01/2025

    Advertisment

    Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
    To find out more, including how to control cookies, see here: Cookie Policy

    Copyright WilliamLam.com © 2025