Operating System - HP-UX
1752568 Members
5597 Online
108788 Solutions
New Discussion юеВ

Issue during HP-UX boot phase

 
Gerard FM
New Member

Issue during HP-UX boot phase

Hi,
I'm installing a couple of rx2620 with HP-UX 11.23 March 06 and having a trouble on one of them (whereas they have been installed the same way).
During boot, the following service is started: /sbin/rc2.d/S910rstEMSlistener start
It fails, saying that Support Tool Manager is not installed, but in fact it is.
The problem is that this script is checking that a given fileset is present and then the version.
To do that, it redirects a swlist -l fileset to a file (that's ok) and then check the versions by retrieving field nb 3 (cut -f 3). But on the faulty system, version is in field 7 due to additional ^I in the file.
What is making the swlist l fileset output different?
Can this be fixed without fully reinstalling the server?
This is for an urgent deal ... if you have any clue !
Thanks,
Gerard
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Issue during HP-UX boot phase

Shalom,

The EMSlistener requires inetd.conf entries. Make sure they are the same as a working server and then inetd -c

If that does not work, remove and reinstall the software.

I doubt full reinstallation is necessary.

swremove of the support tools and reinstallation should be sufficient if the ientd.conf chagnes don't fix it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Gerard FM
New Member

Re: Issue during HP-UX boot phase

Well, from what I see, the problem is not at this level as EMS is even not used (on working platform, status in rc.log is "skiped") but rather at the pure context checking by this startup script as it does the following:

# Check for Sup-Tool-Mgr is added to support AR Media.

/usr/sbin/swlist -l fileset | grep -i Sup-Tool-Mgr.STM-SHLIBS > tmp$$
if [ $? -ne 0 ]; then
echo "WARNING: Support Tools Manager for HPUX systems is required "
echo " by ISEE to work properly. Install Support Tools Manager "
echo " for HPUX systems (version B.11.11.05.00 or higher) "
echo " before start using ISEE. "
rm -f tmp$$ > /dev/null
exit $ERROR
fi

VERSION_SUP=`cat tmp$$ | cut -f 3 | cut -f 1 -d ' '`
rm -f tmp$$ > /dev/null
if [[ "$VERSION_SUP" < "B.11.11.05.00" ]] ; then
echo "WARNING: Support Tools Manager for HPUX systems is required "
echo " by ISEE to work properly. Install Support Tools Manager "
echo " for HPUX systems (version B.11.11.05.00 or higher) "
echo " before start using ISEE. "
exit $ERROR
fi

First test is ok (swlist -l fileset finds an installed fileset) but second one is failing as it does a "cut -f 3" which returns nothing...

tmp$$ file contains:
Sup-Tool-Mgr.STM-SHLIBS^I^I^I^I^I^IB.11.23.06.07 HPUX Support Tools Manager Share Libraries $

with 6 ^I that I don't have on the working system where there are only 2
This results in the version field to be detected in field 7 instead of 3...
Dennis Handly
Acclaimed Contributor

Re: Issue during HP-UX boot phase

/usr/sbin/swlist -l fileset | grep -i Sup-Tool-Mgr.STM-SHLIBS

Hmm, why should grep be used when they can just put the fileset on the swlist.

>but second one is failing as it does a "cut -f 3" which returns nothing...

This is why you should use awk vs cut. awk would say it is always field 2.

>with 6 ^I that I don't have on the working system where there are only 2

Then there is a real problem. I have 3 tabs.
It appears that swlist is trying to be user friendly and align the version field based on the longest fileset name.

Running the following script gives:
$ itrc_awk_swlist.sh swlist.out
The longest is (30): Isee_EmsListener.ISEE-EMSLSTNR

When I give it the product, I get only 2 tabs:
$ swlist -l fileset Sup-Tool-Mgr | itrc_awk_swlist.sh -
The longest is (26): Sup-Tool-Mgr.STM-REL-NOTES

So as I said above, Sup-Tool-Mgr should be using awk and specify the exact fileset.

When you contact the Response Center you should mention this.

============
#!/usr/bin/ksh
# compute longest field1 in swlist output.
awk '
BEGIN { NAME=""; len=0 }
{
if (length($1) > len) {
len = length($1)
NAME=$1
}
}
END { print "The longest is (" len "):", NAME; }
' $1
Gerard FM
New Member

Re: Issue during HP-UX boot phase

Hi,
thnks for your feedback, you're perfectly right.
And the latest version of OnlineDiag for HP-UX 11.23 have fixed this issue making the chage you suggested ;-)

However, I need to find out the right patch for this as we're building systems with a frozen HP-UX version as per customer requests and I can't roll to December 06 :-(

Gerard