4 Replies Latest reply on Nov 12, 2013 11:34 PM by Sudesh Sancheti

    Agent Upgrade on Solaris from 7.4/7.6 to 8.1 SP5

      While upgrading solaris agent from 7.4/7.6 to 8.1 we are faceing below issue, can anyone please suggest us the way to upgrade our all solaris agent using package method.

       

      Env Detail:

      Our App server is running with 7.6 version and solaris agent are running with 7.4/7.6 version. Previously agent install was done through package installation method so we have to use the same way for upgrade.

       

      We have created a package and tried to upgrade but it has created these issues.

       

      During the installation at Installing Agent Component either of the following errors is encountered and a link to the service file is shown as "already exists".  The upgrade is shown as complete and the package info command (pkginfo -x BLOGrscd) command shows the RSCD agent is upgraded to 8.1.05.506, however when running the agentinfo command remotely from nsh prompt still shows the old version on the target.  If the agent is stopped and restarted, the agent never gets started, the path for the rscd folder in the service file is the issue.  As the service file changes during the upgrade fail, it results in the service not restarting after the upgrade. when we check the agent status it still shows the older version even after upgrade.

       

      Error 1 :

      ===================== Installing SysInfo =====================
      ... Done
      ================= Installing Agent Component ================= 

      Segmentation Fault - core dumped
      Segmentation Fault - core dumped 

      ln: cannot create /etc/rc2.d/S90rscd: File exists

      Error 2:

       

      ===================== Installing SysInfo =====================
      ... Done
      ================= Installing Agent Component =================  

      Entry for host rscd successfully added
      Entry for host default successfully added

      ln: cannot create /etc/rc2.d/S90rscd: File exists

       

      ----------------------------------------------------

        • 1. Re: Agent Upgrade on Solaris from 7.4/7.6 to 8.1 SP5
          Bill Robinson

          The problem you have though is that the 7.4 agent is not provided by bmc right?  it’s your own package.  it looks like w/ that pkg it’s a ‘local’ install which means the install is mostly self-contained.  The subsequent 8.1 packages cannot perform the upgrade in that case.

           

          My suggestion via the support case you have open is that you uninstall and then re-install the agents via a backgrounded script – all from a file deploy job.

           

          What about the 7.6 agents – are those from your custom package or from ours ?

          • 2. Re: Agent Upgrade on Solaris from 7.4/7.6 to 8.1 SP5

            Thanks for your quick response Bill.

             

            backgrounded script ? If we uninstall the agent then connectivity from Config manger will go and we won't be able to install it remotely via Bladelogic, right ?


            I am not aware about the Bmc packages, are there any packages available from bmc to upgrade the agents ?


            Yes 7.6 agents are also installed through custom packages only. I mean we packaged the agent pkg file and installed.


            The current 7.4 and 7.6 agent are installed under /opt/BLOGRscd and when we are installing new agent it goes to /opt/bmc/bladelogic.

            • 3. Re: Agent Upgrade on Solaris from 7.4/7.6 to 8.1 SP5
              Bill Robinson

              I tested this out on a test vm and this seems to work

               

              make a script like 'update74.sh' and in that put:

              --

              #!/bin/sh

              TMPDIR=/var/tmp

              export TMPDIR

              sleep 10

              echo "Copy files"

              for file in users.local users exports license.dat

              do

              cp /opt/BLOGrscd/conf/${file} /tmp

              done

              /etc/init.d/rscd stop

              pkgrm -n BLOGrscd

              pkgadd -n -a /tmp/admin -d /tmp/RSCD81-SP5-SOL10-X86-SPARC-LOCAL BLOGrscd

               

              for file in users.local users exports license.dat

              do

              cp /tmp/${file} /opt/bmc/bladelogic/RSCD/conf

              done

              --

               

              use the admin file you have

              the file deploy job pushes the admin file, the RSCD installer and the update74.sh script to /tmp or where ever on the target

               

              the post install of the file deploy job contains this:

              --

              chmod 755 /tmp/update74.sh

              nohup /tmp/update74.sh > tmp/out.txt 2>&1 &

              sleep 5

              --

               

              and that should do it.  so the update74.sh will get nohup'd and backgrounded, the file deploy job will disconnect and the script will run and do the upgrade and preserve the acls and license from the 7.4 agent.

               

              what do you mean by 'we packaged the agent package file' ?  when we looked at your env i think we saw that the 7.4 agents were installed as a 'local' install which is why this upgrade w/ the 8.x pkg is having a problem.

               

              is there some issue putting the install in /opt/bmc/bladelogic/RSCD ?

               

              :

              1 of 1 people found this helpful
              • 4. Re: Agent Upgrade on Solaris from 7.4/7.6 to 8.1 SP5

                Thank you so much for quick response Bill. No there is no issue in putting the install in /opt/bmc/bladelogic/RSCD.

                 

                we will test this and will get update you and will get back to you incase if I face any issue,. Thanks again for quick response.