<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic hpsmh scripted install and certificate in Server Management - Systems Insight Manager</title>
    <link>https://community.hpe.com/t5/server-management-systems/hpsmh-scripted-install-and-certificate/m-p/4219779#M33596</link>
    <description>Trying to install 8.0 psp on rh el 4 x86_64.&lt;BR /&gt;Completed interactively and generated hppldu.cfg as a response file.&lt;BR /&gt;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.&lt;BR /&gt;For configuration I changed the xml file (bp000363.xml) so that all the hw-oriented drivers are marked to "no".&lt;BR /&gt;Run the installer as&lt;BR /&gt;./install800.sh --nui --inputfile hppldu.cfg &lt;BR /&gt;&lt;BR /&gt;I have configured hpsmh to use TrustByCert and I have locally available on this server the CMS certificate file &lt;BR /&gt;(from a CMS connected server with the command&lt;BR /&gt;wget http://CMS_IP:280/GetCertificate)&lt;BR /&gt;&lt;BR /&gt;The hpsmh rpm has a postinstall section where in scripted mode runs the temporary script&lt;BR /&gt;hpfdtn.sh and checks if the certfile is present in current directory. In this case it copies it to a local dir.&lt;BR /&gt;The code is&lt;BR /&gt;&lt;BR /&gt;declare -a certarray &lt;BR /&gt;   certarray=(`echo "$certlist" | awk 'BEGIN { FS = ";" } { for (i = 1; i &amp;lt;= NF;&lt;BR /&gt; i = i + 1)  print $i }'`)&lt;BR /&gt;   for cfile in "${certarray[@]}"; do&lt;BR /&gt;     # echo $cfile&lt;BR /&gt;     if [ -f $cfile ]; then&lt;BR /&gt;        cp -vf $cfile /opt/hp/hpsmh/certs&lt;BR /&gt;        if [ $? -eq 0 ]; then&lt;BR /&gt;          echo "$cfile copied sucessfully!!!"&lt;BR /&gt;        fi&lt;BR /&gt;     else&lt;BR /&gt;...&lt;BR /&gt;        wget http://$cfile:280/GetCertificate -O $certfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;From what I understand, the certfile is named as the ipaddr of the CMS.&lt;BR /&gt;So I renamed the certfile to this IP and put it into the same local dir where I run ./install800.sh&lt;BR /&gt;&lt;BR /&gt;But it seems it doesn't work.... and so the script tries to wget it from the CMS host. &lt;BR /&gt;Anyone knows what is the current working directory when this check is executed?&lt;BR /&gt;&lt;BR /&gt;The problem is that the wget command is run without any parameter, such as "-w" or "-t" and the default retry numner is 20.&lt;BR /&gt;And I have to wait 3min*20 = 1hour before completing the script....&lt;BR /&gt;&lt;BR /&gt;Thanks for any hint.&lt;BR /&gt;Gianluca</description>
    <pubDate>Fri, 20 Jun 2008 12:40:27 GMT</pubDate>
    <dc:creator>gianluca cecchi_1</dc:creator>
    <dc:date>2008-06-20T12:40:27Z</dc:date>
    <item>
      <title>hpsmh scripted install and certificate</title>
      <link>https://community.hpe.com/t5/server-management-systems/hpsmh-scripted-install-and-certificate/m-p/4219779#M33596</link>
      <description>Trying to install 8.0 psp on rh el 4 x86_64.&lt;BR /&gt;Completed interactively and generated hppldu.cfg as a response file.&lt;BR /&gt;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.&lt;BR /&gt;For configuration I changed the xml file (bp000363.xml) so that all the hw-oriented drivers are marked to "no".&lt;BR /&gt;Run the installer as&lt;BR /&gt;./install800.sh --nui --inputfile hppldu.cfg &lt;BR /&gt;&lt;BR /&gt;I have configured hpsmh to use TrustByCert and I have locally available on this server the CMS certificate file &lt;BR /&gt;(from a CMS connected server with the command&lt;BR /&gt;wget http://CMS_IP:280/GetCertificate)&lt;BR /&gt;&lt;BR /&gt;The hpsmh rpm has a postinstall section where in scripted mode runs the temporary script&lt;BR /&gt;hpfdtn.sh and checks if the certfile is present in current directory. In this case it copies it to a local dir.&lt;BR /&gt;The code is&lt;BR /&gt;&lt;BR /&gt;declare -a certarray &lt;BR /&gt;   certarray=(`echo "$certlist" | awk 'BEGIN { FS = ";" } { for (i = 1; i &amp;lt;= NF;&lt;BR /&gt; i = i + 1)  print $i }'`)&lt;BR /&gt;   for cfile in "${certarray[@]}"; do&lt;BR /&gt;     # echo $cfile&lt;BR /&gt;     if [ -f $cfile ]; then&lt;BR /&gt;        cp -vf $cfile /opt/hp/hpsmh/certs&lt;BR /&gt;        if [ $? -eq 0 ]; then&lt;BR /&gt;          echo "$cfile copied sucessfully!!!"&lt;BR /&gt;        fi&lt;BR /&gt;     else&lt;BR /&gt;...&lt;BR /&gt;        wget http://$cfile:280/GetCertificate -O $certfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;From what I understand, the certfile is named as the ipaddr of the CMS.&lt;BR /&gt;So I renamed the certfile to this IP and put it into the same local dir where I run ./install800.sh&lt;BR /&gt;&lt;BR /&gt;But it seems it doesn't work.... and so the script tries to wget it from the CMS host. &lt;BR /&gt;Anyone knows what is the current working directory when this check is executed?&lt;BR /&gt;&lt;BR /&gt;The problem is that the wget command is run without any parameter, such as "-w" or "-t" and the default retry numner is 20.&lt;BR /&gt;And I have to wait 3min*20 = 1hour before completing the script....&lt;BR /&gt;&lt;BR /&gt;Thanks for any hint.&lt;BR /&gt;Gianluca</description>
      <pubDate>Fri, 20 Jun 2008 12:40:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/hpsmh-scripted-install-and-certificate/m-p/4219779#M33596</guid>
      <dc:creator>gianluca cecchi_1</dc:creator>
      <dc:date>2008-06-20T12:40:27Z</dc:date>
    </item>
  </channel>
</rss>

