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
and the installer will work.
Hope this help somebody else :)