Home > Hp, vmware, vsphere > Fixing the installer of HP Management Agents for VMware ESX 4.x 8.51

Fixing the installer of HP Management Agents for VMware ESX 4.x 8.51

Just a weird thing that happened today.

I was upgrading some hp agents on an HP DL380 G6 ESX 4.1 nodes. I just followed the usual steps: put node in maintenance mode, untar the HP tarball and fire the installxxx.sh scripts…but…it stop suddenly with a lot of warning and saying that a “put a strange name here” vm is running and so it’s not able to put the node in maintenance mode (?!).  Obviously something is wrong: not only the node was in maintenance, but the culprit vm just did not exists!

After some test I found that this bug come from the way that the installer uses to check for vm and their state.

It uses the getallvm to retrieve the list, but when parsing the list to retrieve the vm_id get confused by the notes and uses some word from them as vm id and name.

So, to get a long story short, here it is the quick fix.

Just find this line:

vim-cmd vmsvc/getallvms > $HPIM_VMLIST

and change it to

vim-cmd vmsvc/getallvms | egrep “^[0-9]+” > $HPIM_VMLIST

and the installer will work.

Hope this help somebody else :)

Categories: Hp, vmware, vsphere
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: