Operating System - VMware
cancel
Showing results for 
Search instead for 
Did you mean: 

Management Agents v8.5.1 will not install on ESX 4.0 Update 2

C Burchell
Occasional Visitor

Management Agents v8.5.1 will not install on ESX 4.0 Update 2

When trying to install ProLiant Management Agents for ESX v8.5.1 on an ESX 4.0 Update 2 host I receive the following error:

[root@SERVERNAME 851]# ./install851vibs.sh --install

HP Insight Manager Agent 8.5.1-1 Installer for VMware ESX
Target System is VMware ESX 4.0.0 build-261974
Server: ProLiant ML370 G5


This script will now attempt to set ESX Host in Maintenance Mode
for IM agents install.
Do you wish to continue? (y/n) y

Insufficient arguments.
Insufficient arguments.
An active Virtual Machine [ ] has been detected on host [SERVERNAME]

The ESX host will be put into maintenance mode
to be able to install/uninstall the agents.
The Virtual Machines must be either Powered off or Suspended
by the operator to allow the transition
of the ESX host into maintenance mode.
Please modify the state of the VMs to be Suspended or powered off
and then retry Agents Installation.

[root@SERVERNAME 851]#


The host has already been placed in maintenance mode yet the package will not install.

Any suggestions?
13 REPLIES
Shadders
Advisor

Re: Management Agents v8.5.1 will not install on ESX 4.0 Update 2

I had a similar issue with SLES 11 SP1.

I ended up installing an older version of the agents & then upgrading to the latest version.

C Burchell
Occasional Visitor

Re: Management Agents v8.5.1 will not install on ESX 4.0 Update 2

Thanks for your reply. I have tried to uninstall the existing agents v8.4.0 but I receive an error at the end:


----------
HP Insight Manager agents have been unconfigured successfully!

~/hpsw/hpmgmt/840
Uninstalling HP Insight Manager Agents bulletin [hp-classic-mgmt-solution-840.21.2217] ...
....FAILED
------------

If I try to then reinstall the 8.40 agents I get:

-------------
HP Insight Manager Agents [hp-classic-mgmt-solution-840.21.2217] is installed
Attempted bundle [hp-classic-mgmt-solution-840.21.2217] is same as the currently installed bundle [hp-classic-mgmt-solution-840.21.2217]. NO ACTION TAKEN.
-------------

Last time I had this happen I had to manually rebuild the ESX host from scratch.

Any other suggestions? HP, are you there?
Uwe Zessin
Honored Contributor

Re: Management Agents v8.5.1 will not install on ESX 4.0 Update 2

C, you should better open a call with HP so that it gets properly registered in their tracking system. If a HP employee responds, that's great, but HP has not promised to actively monitor any posts and respond to them.
.
C Burchell
Occasional Visitor

Re: Management Agents v8.5.1 will not install on ESX 4.0 Update 2

Uwe - thanks I will do as you suggested.

I did, in fact, call HP support when I first ran into this issue. They told me they couldn't help and suggested I post something in this forum...

I'll go back to square one with tech support.
Uwe Zessin
Honored Contributor

Re: Management Agents v8.5.1 will not install on ESX 4.0 Update 2

Oh, please don't get me wrong:
I am happy to read about your "heads up".
.
C Burchell
Occasional Visitor

Re: Management Agents v8.5.1 will not install on ESX 4.0 Update 2

An update and solution to my own posting...

It appears to be a bug in the HP software. The v8.5.1 agents install script can't seem to deal with _any_ VMs being registered on the host.

I managed to successfully upgrade the host from v8.4.0 > v8.5.1 by de-registering all VMs on the host in question, then running the 8.5.1 install script. The v8.5.1 install script then successfully uninstalled v8.4.0 and installed v8.5.1.

I then had to manually re-register all VMs in the datastore (vmware-cmd -s register PATH-TO-VMX).
Robert W. Eastman Jr._2
Frequent Advisor

Re: Management Agents v8.5.1 will not install on ESX 4.0 Update 2

If you ever get the

~/hpsw/hpmgmt/840
Uninstalling HP Insight Manager Agents bulletin [hp-classic-mgmt-solution-840.21.2217] ...
....FAILED

which has happened to me numerous times and after extensive research and playing around I found that you can manually uninstall all the RPM's associated with the HP Agents by performing the following:

List the installed RPM's that belong to HP Agents with the following command:

rpm -qa | grep hp

You will see a screen similiar to the one below, but remember that the actual RPM's listed will be different depending on the version installed:

vmware-esx-drivers-scsi-hpsa-400.3.6.14.29vmw-2vmw.2.17.261974
hpsmh-6.1.0-103
hp-agents-config-8.5.1-1
hp-snmp-agents-8.5.0-75.vmware4x
vmware-esx-drivers-ata-pata-hpt3x2n-400.0.3-1.0.4.164009
hpilo-400.8.5.0.1VMW-164009
hp-health-8.5.0-77.vmware4x
hp-smh-templates-8.5.0.13-15

You will need to uninstall all of the RPM's listed with hp??????. DO NOT UNINSTALL THE ones that start with vmware-esx???

To uninstall the rpm:

rpm -e hp-smh-templates-8.5.0.13-15

Some rpm's must be uninstalled before others. If you happen to try to uninstall one before the other you will get a warning about a dependency. Just remove the dependency first and then retry to uninstall the rpm again. Once you have all the RPM's uninstalled, do the uninstall of the agents again and it will complete successfully so you can install the new version.

(NTFS) No Time For Stupidity
jkopp
Occasional Visitor

Re: Management Agents v8.5.1 will not install on ESX 4.0 Update 2

I was also getting a similar error to "Uninstalling HP Insight Manager Agents bulletin [hp-classic-mgmt-solution-840.21.2217] ...
....FAILED"

ran "rpm -qa | grep -i hp" and removed all of the HP RPM packages with "rpm -e " (an ILO package was the last one hanging me up). Only uninstall the ones that start with "HP".

I was still getting the original error after all HP RPMs were removed and found this on an ESX thread.
"esxupdate --vib-view query | grep hp"

I ran that command and found the same ILO application still running and ran "esxupdate remove -b "

It prompted me to reboot. After the reboot, the 851 agents installed as they should.

My HP web chat experience was terrible. The phone support was OK, but the issue was still not resolved.

I appreciate everyone's efforts in this forum to help resolve the issue. You've saved me a bunch of time! Thanks for the advice. I was not looking forward to a full host rebuild.
David Niven DE
Occasional Visitor

Re: Management Agents v8.5.1 will not install on ESX 4.0 Update 2

Check out the VM description text. The installer seems not working with CRLF and other special characters.

See

Buggy Management Agents Installer http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1439756

Installation of HP Management Agents for VMware ESX 4.x failed
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1444879
Solusjen
Occasional Visitor

Re: Management Agents v8.5.1 will not install on ESX 4.0 Update 2

HI,

had the same problem on one of 4 ESX server where I had to do this update.

I was sure that there was nothing active anymore so I edited the install script. Just keep de counter to zero and the script will run succesfull.

Just change the text + 1 to + 0 in the script on some lines.

It is not the best solution, but it worked for me.


Regards,
Lucien Bosman
Florian Schmutz
Frequent Advisor

Re: Management Agents v8.5.1 will not install on ESX 4.0 Update 2

Hi Solusjen

If got the same prob. I Removed manualy with the previus szenario the varios software packs. No is no software pack listed anymore. I try to uninstall the whole agents with the script.
./install860vibs.sh --uninstall
Got this error:
HP Insight Manager Agent 8.6.0-11 Installer for VMware ESX
Target System is VMware ESX 4.1.0 build-260247
Server: ProLiant DL380 G6


This script will now attempt to set ESX Host in Maintenance Mode
for IM agents uninstall.
Do you wish to continue? (y/n) y
System is already in Maintenace mode.

/opt/hp/hp-agents-config /vmfs/volumes/ISO/hpmgmt/860
ls: configure*: No such file or directory
/vmfs/volumes/ISO/hpmgmt/860
Uninstalling HP Insight Manager Agents bulletin [hp-classic-mgmt-solution-860.11.0508] ...
....FAILED

I will now try to reboot the exs and try to uninstall / reinstall again.

But i expect that this will not work. Can you told me wath did you exactly switch the install860vibs.sh?

Thanks for your fast answer ^^

Kind Regards

Florian
Florian Schmutz
Frequent Advisor

Re: Management Agents v8.5.1 will not install on ESX 4.0 Update 2

Oke jkopp version of uninstalling was working. After a reboot could i inst. the SMH again
David Niven DE
Occasional Visitor

Re: Management Agents v8.5.1 will not install on ESX 4.0 Update 2

Same problem.

I want to run 'install851vibs.sh --uninstall' and got the error message with 'Insufficient arguments.'. There were 3 power-off VMs on the ESX 4.1 host.

I replaced
--- old --- line 405 ---
if [ "$VM_ID" = "Vmid" ] ; then
continue
else
--- old ---
with
--- new ---
if [ "$VM_ID" = "Vmid" ] ; then
continue
elif [ "$VM_ID" = "" ] ; then
continue
else
--- new ---

The uninstall runs fine after the fix. The function 'vmops_list_vm' (vim-cmd vmsvc/getallvms > $HPIM_VMLIST) returns a empty add the end, which is interpreted as a VM later.

I started the installation of install860avibs.sh afterwards.

Surprise, surprise -> same bug. But the coding is now in line 414.

825 -> 851 -> 860a

There could also a problem with comments on VM, but I removed all comments on VMs in vCenter before --uninstall and --install.

Make your homework:
1. Test with registered VMs on ESX host
2. Test with registered VMs on ESX host,
which has a comment (for example: last backup date or user/passwd)

thx.