Friday, April 07, 2006

Silent Install Compaq Insight Manager (CIM) 7.1

In the past few months I have had to install Compaq Insight Manager (or Server Insight Manager depending on who you ask) more times than I care to count. During this process I found that the silent install process was less than straight forward and frequently failed or hung for no apparent reason. So I decided to whip up a script to install it and share it with all of you.

Please note that this stops the SNMP service during the install but shouldn't have any other real adverse effects except for one notable one. The CIM install stops Microsoft Cluster Server service to install hooks to monitor it and does not restart it afterward. So please don't install this on any production cluster nodes.

The install may say it requires a reboot but I have not found this to be a necessary step 99% of the time. This may be different for you.

You'll need to download the following executables from their respective locations:

cp004188.exe - This is the CIM 7.1 install package.
setupc.exe - This is the silent installer for HP packages. I use 3.0.7.0 but there are newer versions out. I haven't tested these.
setupcor.dll - A dll for the HP silent installer setupc.exe This will be part of the package linked above.
ntrights.exe - This is a Microsoft executable. It can be obtained from the Windows Resource Kit.
pskill.exe - You can get this from Sysinternals.com.

And then the following files created by me;

Here is the content of the installer batch file:

 %systemdrive%
CD %systemdrive%\ciminstall


pskill setupc.exe
 
ntrights +r SeDebugPrivilege -u Administrators


REM Stop all the services
 
Net Stop "Windows Management Instrumentation" /y
Net Stop "Windows Management Instrumentation Driver Extensions" /y
 
Net Stop "SNMP" /y
Net Stop "SNMP Service" /y
Net Stop "HP Insight Event Notifier" /y
Net Stop "HP Foundation Agent" /y
Net Stop "HP Insight NIC Agent" /y
Net Stop "HP Insight Server Agents" /y
Net Stop "HP Insight Storage Agents" /y
Net Stop "HP Insight Web Agent" /y
 
Net Stop "HP Insight Foundation Agent" /y
Net Stop "HP ProLiant System Shutdown Service" /y
Net Stop "Compaq System Shutdown Service" /y
Net Stop "Compaq Remote Monitor Service" /y
 
Net Stop "Compaq Enhanced Integrated Management Display Service" /y
Net Stop "Compaq Foundation Agents" /y
Net Stop "Compaq NIC Agents" /y
Net Stop "Compaq Server Agents" /y
Net Stop "Compaq Storage Agents" /y
Net Stop "Compaq Web Agent" /y
Net Stop "Compaq Version Control Agent" /y
Net Stop "Compaq WMI WEB Agent" /y
 
REM Force kill stubborn agents
pskill SNMP.exe
pskill cqmgstor.exe
pskill cqmgserv.exe
pskill cqmghost.exe
pskill cpqrcmc.exe
pskill cpqnimgt.exe
 
REM Merge registry file
%windir%\regedit.exe /s %systemdrive%\ciminstall\silentsucceed.reg
 
REM Run install
setupc /override-existing-connection /force cp004188.exe
 
REM Clean up files
rd /s /q %systemdrive%\ciminstall

REM If the agents didn't restart themselves then start them
Net Start SNMP
Net Start "SNMP Service"
Net Start "Compaq Remote Monitor Service"
Net Start "HP Insight NIC Agent"
Net Start "HP Insight Server Agents"
Net Start "HP Insight Storage Agents"
Net Start "HP Insight Web Agent"
Net Start "HP Insight Foundation Agent"
Net Start "HP Insight Diagnostics"
Net Start "HP ProLiant System Shutdown Service"
Net Start "HP ProLiant Rack Infrastructure Service"
Net Start "HP Version Control Agent"
 
Net Start "Windows Management Instrumentation"
Net Start "Windows Management Instrumentation Driver Extensions"

 






Copy the following to a file named "silentsucceed.reg" and then put it in the same directory as the batch file and the rest of the executables. The batch file looks for all the files to be in the same location: "c:\ciminstall". Feel free to edit this in the batch file. There is no dependency on this directory specifically.

 Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Non-Driver Signing]
"Policy"=hex:00


WARNING: The CIM install will stop the Microsoft Cluster Server service. So don't install this on any live production cluster nodes.

Hope someone finds this useful! Also note that this should work just fine for 7.3 and other upcoming versions of CIM/SIM. Just edit the name of the install package within the installer batch file.
Send this to:                          

Comments

Tauntee said...

maaaan. im lookin for the 4920 dashh, ares said u got it. how weird is it that its a random search but its someone i know.

5/31/2006 12:12:08 AM

said...

all round i would say the HP Compaq Armada is a good laptop. it is very fast and user friendly and easy to upgrade. however it seems to over heat at prolonged periods of use once in awile and only one usb port also the track point mouse is a pain but i just connect a external mouse to it so not a biggy. i only payed $160 for mine havent had many problems using it the internet is super fast the cd rom is so easy to pull out and switch devices im currently still running windows pro and would ...

4/2/2009 7:03:30 AM

Name
URL
Email
Email address is not published
Remember Me
Comments

CAPTCHA
Write the characters in the image above