www.mamboteam.com
Debian Linux (on HP)  
Home arrow Forum
Friday, 30 July 2010
 
 
HP System Management Homepage Howto 0.3

gfx* Home Help Search Calendar Login Registergfx
Debian on HP, Linux  |  Debian on HP (HP software: agents, drivers and such)  |  HP System Management  |  Archive  |  HP System Management Homepage Howto 0.3 « previous next »
Pages: [1] 2 Print
Author Topic: HP System Management Homepage Howto 0.3  (Read 13259 times)
mutombo
Administrator
Sr. Member
*****
Offline Offline

Posts: 72


View Profile
HP System Management Homepage Howto 0.3
« on: April 22, 2005, 06:20:19 pm »

1.) Requirements

The Management Homepage doesn't make any sense without the Agents, so please follow the Agents Howto first.
http://debian.catsanddogs.com/forum/index.php/topic,4.0.html

install gdbm:
Code:
apt-get install libgdbmg1 libexpat1 iproute


Then download the hpsmh package:

Code:
wget ftp://ftp.compaq.com/pub/products/servers/supportsoftware/linux/hpsmh-2.0.0-103.linux.i386.rpm

2.) Installation

Convert the rpm via alien to a tar archive.
i created a directory /usr/src/hpagents and copied the rpm there.

Code:
dcfax02:/# cd /usr/src/hpagents/
dcfax02:/usr/src/hpagents# ls
hpsmh-2.0.0-103.linux.i386.rpm
dcfax02:/usr/src/hpagents#alien -t -c  hpsmh-2.0.0-103.linux.i386.rpm
hpsmh-2.0.0.tgz generated
dcfax02:/usr/src/hpagents#tar -xzf  hpsmh-2.0.0.tgz
dcfax02:/usr/src/hpagents#

we need to fool the script a bit.
create the file /etc/UnitedLinux-release
write 1.0 in there.


first we check out the predoinstall.sh.
goto line 4 and change it into:
Code:
osval="UNITED 1.0"
goto line 186 change it to:
Code:
if [ ! -f /usr/lib/libz.so.1 ]; then
goto line 228 and change it to:
Code:
/usr/sbin/useradd -u 79 -g 79 -s /sbin/nologin -M -d /opt/hp/hpsmh hpsmh > /dev/null 2>&1

now execute predoinst.sh
your output should look like this:
Code:
Detected United Linux 1.0/SuSE SLES8/SuSE SLSS8
The db3 package or binaries are missing!
Please install the compat-2002 RPM package.
Required Packages are missing!

were missing the /usr/lib/libdb-3.3.so here.
Code:
ln -s /usr/lib/libdb3.so.3.0.2 /usr/lib/libdb-3.3.so
this should do it.
execute it again:
Code:
Detected United Linux 1.0/SuSE SLES8/SuSE SLSS8
Creating hpsmh user and group...
now its fine.

before we can copy the files we need some modifications:
open file opt/hp/support/hpsmhd.united1
comment out line 119,120,124,128,170,177,182,201.
change line 161 from:
Code:
        startproc -t5 $START_BIN 
to:
Code:
        $START_BIN 

lets start copy the files:
Code:
dclx01:/usr/src/hp_agents/hpsmh# cp opt/hp/* /opt/hp/ -R
cp usr/local/hp /usr/local/ -R

somehow we need to fix the permissions, theres a fixperms script that will be installed later into /etc/init.d/fixperms, but it seems not working.
Code:
chown hpsmh:hpsmh /opt/hp/hpsmh/data/htdocs -R
chown hpsmh:hpsmh /opt/hp/hpsmh/data/isdocs -R
chown root:hpsmh /opt/hp/hpsmh/data/webapp-data/webagent/csginkgo
should do it.

now we can execute the doinst.sh:
Code:
dclx01:/usr/src/hp_agents/hpsmh# install/doinst.sh

**********************************************************
* System Management Homepage installed successfully with *
* default configuration values.   To change the default  *
* configuration values,  type the following command at   *
* the root prompt:                                       *
*                                                        *
* perl /usr/local/hp/hpSMHSetup.pl                       *
*                                                        *
**********************************************************

/opt/hp/support/cs-final.sh: line 186: chkconfig: command not found
Shutting down hpsmhdStarting hpsmhd ]
...
 

that my output the missing chkconfig from the cs-final script aint important, ignore it.
if everything went right you should be able to point your browser on the loginpage:

http://SERVERIP:2301


SO FAR SO GOOD!

you should be able to login and see a list of your devices.
i played a bit around and everything seems working.
Please report me any failures.


« Last Edit: May 05, 2005, 06:11:58 pm by mutombo » Logged
happymcplaksin
Newbie
*
Offline Offline

Posts: 1


View Profile
Re: HP System Management Homepage Howto 0.1
« Reply #1 on: April 22, 2005, 09:03:50 pm »

For me, predoinst.sh complains because it can't find the right libgdbm.  What does ls -l /usr/lib/*gdbm* say on your system?

Mine has:
lrwxrwxrwx  1 root root    16 Apr 20 13:01 /usr/lib/libgdbm.so.3 -> libgdbm.so.3.0.0
-rw-r--r--  1 root root 18532 Sep  8  2003 /usr/lib/libgdbm.so.3.0.0
lrwxrwxrwx  1 root root    23 Apr 20 13:01 /usr/lib/libgdbm_compat.so.3 -> libgdbm_compat.so.3.0.0
-rw-r--r--  1 root root  6668 Sep  8  2003 /usr/lib/libgdbm_compat.so.3.0.0


Thanks for your help!
Logged
mutombo
Administrator
Sr. Member
*****
Offline Offline

Posts: 72


View Profile
Re: HP System Management Homepage Howto 0.1
« Reply #2 on: April 22, 2005, 09:35:30 pm »

Code:
lrwxrwxrwx  1 root root    23 2005-03-06 04:28 /usr/lib/libgdbm_compat.so.3 -> libgdbm_compat.so.3.0.0
-rw-r--r--  1 root root  6668 2003-09-09 01:02 /usr/lib/libgdbm_compat.so.3.0.0
lrwxrwxrwx  1 root root    16 2005-03-06 04:27 /usr/lib/libgdbm.so.1 -> libgdbm.so.1.7.3
-rw-r--r--  1 root root 20232 2003-06-03 22:09 /usr/lib/libgdbm.so.1.7.3
lrwxrwxrwx  1 root root    16 2005-03-06 04:27 /usr/lib/libgdbm.so.2 -> libgdbm.so.1.7.3
lrwxrwxrwx  1 root root    16 2005-03-06 04:28 /usr/lib/libgdbm.so.3 -> libgdbm.so.3.0.0
-rw-r--r--  1 root root 18532 2003-09-09 01:02 /usr/lib/libgdbm.so.3.0.0

the script is looking for /usr/lib/libgdbm.so.2

you need the package libgdbmg1. thx for the info i updated the howto.
« Last Edit: April 22, 2005, 09:45:10 pm by mutombo » Logged
lunarg
Administrator
Sr. Member
*****
Offline Offline

Posts: 61


View Profile WWW
Re: HP System Management Homepage Howto 0.2
« Reply #3 on: April 26, 2005, 03:19:54 pm »

Following your howto, I got as far as executing doinst.sh.

The output/error I get is:
Code:
fweurom:/usr/src/hpsmh# ./install/doinst.sh

**********************************************************
* System Management Homepage installed successfully with *
* default configuration values.   To change the default  *
* configuration values,  type the following command at   *
* the root prompt:                                       *
*                                                        *
* perl /usr/local/hp/hpSMHSetup.pl                       *
*                                                        *
**********************************************************

./install/doinst.sh: line 236: /etc/init.d/hpsmhd: No such file or directory
fweurom:/usr/src/hpsmh#

Did I forget anything?
Or can I simply manually copy the hpsmhd.united1 file to /etc/init.d/ ?

Thx
Logged

mutombo
Administrator
Sr. Member
*****
Offline Offline

Posts: 72


View Profile
Re: HP System Management Homepage Howto 0.2
« Reply #4 on: April 26, 2005, 03:42:36 pm »

did you executed the doinst.sh more than 1 time?

because it takes the script from /opt/hp/support/ copies it and then delete them.
you can move the script from the by yourself to the right locations, but i would recommend that you copy over the complete /opt/hp/ tree again and execute doinst.sh again.
then you should have your startupscript.
this part is important because it copies a script for pam there too.
without it authentication isnt possible.
Logged
lunarg
Administrator
Sr. Member
*****
Offline Offline

Posts: 61


View Profile WWW
Re: HP System Management Homepage Howto 0.2
« Reply #5 on: April 26, 2005, 04:04:11 pm »

did you executed the doinst.sh more than 1 time?
Executed it only once.
I tried it again with a clean opt/hp, but gives the same result.

because it takes the script from /opt/hp/support/ copies it and then delete them.
It doesn't delete them. They're still there.

EDIT: well, you're right, it removes them from /opt/hp....

Pretty strange.
« Last Edit: April 26, 2005, 04:19:55 pm by lunarg » Logged

lunarg
Administrator
Sr. Member
*****
Offline Offline

Posts: 61


View Profile WWW
Re: HP System Management Homepage Howto 0.2
« Reply #6 on: April 26, 2005, 04:43:51 pm »

Okay, I found the problem in the cs-final.sh script (where it copies the files).

Apparently, it looks for release files, and does things accordingly (whether it's redhat, united, or suse).
Because I'm running Debian here, I don't have those files.
After creating the one for united linux (/etc/UnitedLinux-release), the install script works.

Also worth mentioning that the iproute package is required (which is not present in a basic Sarge netinst).
Otherwise hpsmhd segfaults.

Also not in a basic Sarge netinst, is expat. The predoinst.sh will complain about this, so this is not really an issue.
Logged

mutombo
Administrator
Sr. Member
*****
Offline Offline

Posts: 72


View Profile
Re: HP System Management Homepage Howto 0.3
« Reply #7 on: April 26, 2005, 05:13:42 pm »

thx, i updated the howto.
cant remember when i created this /etc/UnitedLinux-release but its here too Wink
Logged
gilf
Newbie
*
Offline Offline

Posts: 1


View Profile
Re: HP System Management Homepage Howto 0.3
« Reply #8 on: May 05, 2005, 12:06:36 pm »


Small typo

Code:
/usr/sbin/useradd -u 79 -g 79 -s /sbin/nologin -M -d opt/hp/hpsmh hpsmh > /dev/null 2>&1

Should be
Code:
/usr/sbin/useradd -u 79 -g 79 -s /sbin/nologin -M -d /opt/hp/hpsmh hpsmh > /dev/null 2>&1

Other then that, installes fine.
Thanks

Logged
osinet
Newbie
*
Offline Offline

Posts: 1


View Profile
Re: HP System Management Homepage Howto 0.3
« Reply #9 on: May 25, 2005, 09:51:44 pm »

Good job! It works!

I attach a patch for hpsmh-2.0.2-109.linux.i386.rpm so it would be simpler to install.

Regards,

Osinet
http://www.osinet.com.ar
Logged
skalet
Jr. Member
**
Offline Offline

Posts: 8


View Profile
Re: HP System Management Homepage Howto 0.3
« Reply #10 on: June 07, 2005, 11:03:39 pm »

I had problems with zlib detection during execution of predoinst.sh. At the end I was forced to remove the detection, because it didn't disappear though I had the right file on the right place (/usr/lib/libz.so.1). In the howto it says that I must replace whatever is available at line 186 with "if [ ! -f /usr/lib/libz.so.1 ]; then" but that is the same line as before changes are made.

There is btw one more "rc_status -v" on line 192 of opt/hp/support/hpsmhd.united1.

After the above changes my System Management Homepage is up and running.


Logged
mick
Full Member
***
Offline Offline

Posts: 21


View Profile
HPSMH Howto 0.3 - No Panels shown
« Reply #11 on: June 20, 2005, 10:49:18 am »

I followed the instructions twice - first with HPSMH 2.0.0, then with HPSMH 2.0.2 and the reference patch. Both times everything seem to be ok.

Before that I installed the agents according to the HPASM Howto 0.2. hpasmcli showed some values.

The SMH can be displayed but it is empty - no indicators. The only thing that can be shown is the Log of SMH itself. It shows no errors, only the creation of its own certificate and the login activities.

Further symptoms:

It takes about half a minute to display pages.

Every 15 seconds following message is writen to /var/spool/compaq/cma.log:
rpm: To install rpm packages on Debian systems, use alien. See README.Debian.
error: cannot open Packages index using db3 - No such file or directory (2)

What is wrong?

Regards,
Mick
Logged
lunarg
Administrator
Sr. Member
*****
Offline Offline

Posts: 61


View Profile WWW
Re: HPSMH Howto 0.3 - No Panels shown
« Reply #12 on: June 21, 2005, 01:36:25 pm »

I followed the instructions twice - first with HPSMH 2.0.0, then with HPSMH 2.0.2 and the reference patch. Both times everything seem to be ok.

Before that I installed the agents according to the HPASM Howto 0.2. hpasmcli showed some values.

The SMH can be displayed but it is empty - no indicators. The only thing that can be shown is the Log of SMH itself. It shows no errors, only the creation of its own certificate and the login activities.

Further symptoms:

It takes about half a minute to display pages.

Every 15 seconds following message is writen to /var/spool/compaq/cma.log:
rpm: To install rpm packages on Debian systems, use alien. See README.Debian.
error: cannot open Packages index using db3 - No such file or directory (2)

What is wrong?

Regards,
Mick


A solution might be this: http://debian.catsanddogs.com/forum/index.php/topic,15.0.html
This still needs to be added to the howto.
Logged

mick
Full Member
***
Offline Offline

Posts: 21


View Profile
Re: HP System Management Homepage Howto 0.3
« Reply #13 on: June 21, 2005, 01:47:47 pm »

Thanx for the answer. But the link is broken. Would you please give me the subject.
Logged
lunarg
Administrator
Sr. Member
*****
Offline Offline

Posts: 61


View Profile WWW
Re: HP System Management Homepage Howto 0.3
« Reply #14 on: June 21, 2005, 02:11:17 pm »

The subject of the topic is: HP System Management Homepage is "empty", and is in the same folder.
Logged

Debian on HP, Linux  |  Debian on HP (HP software: agents, drivers and such)  |  HP System Management  |  Archive  |  HP System Management Homepage Howto 0.3 « previous next »
Pages: [1] 2 Print 
Jump to:  
Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media
Joomla Bridge by JoomlaHacks.com

Apollo design by Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.057 seconds with 21 queries.
 
Top! Top!