HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Systems Insight Manager
- >
- hpsmh scripted install and certificate
Server Management - Systems Insight Manager
1833730
Members
2332
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2008 05:40 AM
06-20-2008 05:40 AM
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
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
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP