HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Server Management - Systems Insight Manager
cancel
Showing results for 
Search instead for 
Did you mean: 

hpsmh scripted install and certificate

 
gianluca cecchi_1
Occasional Contributor

hpsmh scripted install and certificate

Trying to install 8.0 psp on rh el 4 x86_64.
Completed interactively and generated hppldu.cfg as a response file.
I want to use it in a scripted way on a server that has no connection with the CMS at the moment, but I would like to preset it.
For configuration I changed the xml file (bp000363.xml) so that all the hw-oriented drivers are marked to "no".
Run the installer as
./install800.sh --nui --inputfile hppldu.cfg

I have configured hpsmh to use TrustByCert and I have locally available on this server the CMS certificate file
(from a CMS connected server with the command
wget http://CMS_IP:280/GetCertificate)

The hpsmh rpm has a postinstall section where in scripted mode runs the temporary script
hpfdtn.sh and checks if the certfile is present in current directory. In this case it copies it to a local dir.
The code is

declare -a certarray
certarray=(`echo "$certlist" | awk 'BEGIN { FS = ";" } { for (i = 1; i <= NF;
i = i + 1) print $i }'`)
for cfile in "${certarray[@]}"; do
# echo $cfile
if [ -f $cfile ]; then
cp -vf $cfile /opt/hp/hpsmh/certs
if [ $? -eq 0 ]; then
echo "$cfile copied sucessfully!!!"
fi
else
...
wget http://$cfile:280/GetCertificate -O $certfile


From what I understand, the certfile is named as the ipaddr of the CMS.
So I renamed the certfile to this IP and put it into the same local dir where I run ./install800.sh

But it seems it doesn't work.... and so the script tries to wget it from the CMS host.
Anyone knows what is the current working directory when this check is executed?

The problem is that the wget command is run without any parameter, such as "-w" or "-t" and the default retry numner is 20.
And I have to wait 3min*20 = 1hour before completing the script....

Thanks for any hint.
Gianluca