1 2 Previous Next 26 Replies Latest reply on Mar 25, 2011 10:03 AM by Raghava Sanam

    RSCD Agent Bulk Installation

      Hi All,

       

      I'm trying the Bulk Installer first time. I've connected to Bladelogic Appserver on-line mode.

       

      I'm trying to install the RSCD agent on solaris 10 box using Bulk Installer tool. When I tried to execute, the job got failed with below errors (SSHExecutor not successfull exitval), but I can access the target server through SSH.

       

      Even I tried to install the agent on solaris 9 box, that job also failed. with the same error (SSHExecutor not successfull exitval).

       

      I heard that if target machine is Solaris 8,9 then we have to use 'telnet' if solaris 10 then 'ssh'. Is it true? becuase it's not found documentation. If so, please let me know the alternative to 'telnet' as this is not allowed in our organization.

       

      Kindly let me know why this job is failing.

       

      My App server Configuration:

               

                          APP Server & Bulk Installer (Exists on the same machine) OS: Windows 2003 64-bit Enterprise Edition

                          APP Server Version : 8.0 SP7

                          Target OS : Solaris 8,9 and 10.

       

      Error Log:

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

      [2011-03-21|03:22:24] Starting agent install routines
      [2011-03-21|03:22:24] Checking agent status on <TARGET_IP>
      [2011-03-21|03:22:25] No existing RSCD Agent detected on :<TARGET_IP>
      [2011-03-21|03:22:25] Proceeding with the install routine.
      [2011-03-21|03:22:25] Agent installer selected :agentinstaller solaris 10
      [2011-03-21|03:22:25] RSC File selected :RSC files
      [2011-03-21|03:22:25] Attempting copier Unix SCP Copier with password set: password
      [2011-03-21|03:23:06]
      [2011-03-21|03:23:03]
      [2011-03-21|03:23:03] SCP Copy Succeeded for RSCD800-622-SPARC10-LOCAL
      [2011-03-21|03:23:03]
      [2011-03-21|03:23:03] SCP Copy Succeeded for Unix-Silent.txt
      [2011-03-21|03:23:04]
      [2011-03-21|03:23:04] SCP Copy Succeeded for exports
      [2011-03-21|03:23:04]
      [2011-03-21|03:23:04] SCP Copy Succeeded for secure
      [2011-03-21|03:23:05]
      [2011-03-21|03:23:05] SCP Copy Succeeded for users
      [2011-03-21|03:23:06]
      [2011-03-21|03:23:06] SCP Copy Succeeded for users.local
      [2011-03-21|03:23:06] Attempting installer Unix SSH Installer with password set: password
      [2011-03-21|03:23:09]
      [2011-03-21|03:23:09]
      [2011-03-21|03:23:09] SSHExecutor not successfull exitval = 2
      [2011-03-21|03:23:09] SSH Installed Failed for <TARGET_IP>
      [2011-03-21|03:23:09] Cleaning temporary files on: <TARGET_IP>
      [2011-03-21|03:23:11] Cleaned temporary files on: <TARGET_IP>
      [2011-03-21|03:23:11] No installers were successful. Exiting...

       

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

       

      Regards,

      Raghava

        • 1. RSCD Agent Bulk Installation
          Paul Seager-Smith

          Not sure about the Solaris 8,9 SSH restriction, I would have thought that it should work. I have used the bulk installer on Solaris 10 without problems. Couple of things to check though:

           

          1. Can you log into the server directly using the SSH account that you have, i.e. without the Bulk installer?
          2. Sometimes remote login as root is not allowed for ssh, so check the sshd.conf file on the target to see whether this has been disabled.
          3. Does the /tmp folder have the noexec option set. This prevents you from running jobs from /tmp. IIRC, the bulk installer puts the files into /tmp and runs them from there by default. You can override ths by using the unixTempDir property for the installer.

           

          From your logs it looks as if the scp command is succeeding, but the ssh command to execute the install is failing.

           

          Regards,

           

          Paul

          • 2. RSCD Agent Bulk Installation

            Hi Paul,

             

                 Thanks for your valuable inputs. I kept your recommendations in mind and re-checked once again all the points you mentioned. All the ports and services are enable and I'm able to scp and ssh on the target server. But I don't know why this job is failing.

             

            Can anybody help me out to resolve this issue.

             

             

            Regards,

            Raghava

            • 3. RSCD Agent Bulk Installation
              Bill Robinson

              are you scp/ssh'ing directly to the target as root ?

              • 4. Re: RSCD Agent Bulk Installation

                Hi Bill,

                 

                     Yes, I'm able to scp & ssh on target server directly as root user.

                 

                Kindly confirm this query also: is it true for solaris 8 & 9 -----> telnet    and solaris 10 -----> SSH. Can't I use SSH for all solaris 8,9&10?

                • 5. Re: RSCD Agent Bulk Installation
                  Bill Robinson

                  Do you see any of the bulk installer files on the target system in the temporary directories?

                  • 6. Re: RSCD Agent Bulk Installation

                    Yes, while the bulk installer job is executing I open the target server and keep monitored on the /tmp directory of the target server. I found installer, Unix-Silent.txt, rsc files. After the job failed, those files are automatically rolled back (removed from target server).

                     

                     

                    Today i've re-executed the same job by enabling the "debug" option in the log4j.properties of Bulk Agent Installer. For your reference I'm attaching the logs. Kindly have a look.

                     

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

                     

                     

                    [22 Mar 2011 14:59:55,156] [INFO] Install Job - "job1--2011_03_22_02_59_55" has started at: 2011-03-22|02:59:55

                    [22 Mar 2011 14:59:55,156] [INFO] Starting agent install routines

                    [22 Mar 2011 14:59:55,156] [INFO] Checking agent status on <TARGET_IP_ADDRESS>

                    [22 Mar 2011 14:59:55,156] [INFO] Executing...C:/Program Files/BMC Software/BladeLogic/8.0/NSH/bin/nsh.exe -c "agentinfo -c -H <TARGET_IP_ADDRESS>"

                    [22 Mar 2011 14:59:55,437] [INFO] An earlier version of RSCD Agent detected. Agent Version :8.0.7.722

                    [22 Mar 2011 14:59:55,437] [INFO] Proceeding with the install routine.

                    [22 Mar 2011 14:59:55,437] [INFO] Agent installer selected :agentinstaller1

                    [22 Mar 2011 14:59:55,437] [INFO] RSC File selected :rsc

                    [22 Mar 2011 14:59:55,437] [DEBUG] Adding password set: password to set of compatiable passwords

                    [22 Mar 2011 14:59:55,437] [INFO] Attempting copier Unix SCP Copier with password set: password

                    [22 Mar 2011 14:59:55,437] [DEBUG] Copying installer: agentinstaller1 via SCP to: <TARGET_IP_ADDRESS> using password set: password

                    [22 Mar 2011 14:59:55,453] [DEBUG] ServerName =<TARGET_IP_ADDRESS>

                    [22 Mar 2011 14:59:55,453] [DEBUG] UserName =root

                    [22 Mar 2011 15:00:30,906] [INFO] SCP Copy Succeeded for RSCD800-622-SPARC10-LOCAL

                    [22 Mar 2011 15:00:30,906] [INFO]

                    [2011-03-22|03:00:30] SCP Copy Succeeded for RSCD800-622-SPARC10-LOCAL

                    [22 Mar 2011 15:00:30,906] [DEBUG] Copying silent install file for upgrade...

                    [22 Mar 2011 15:00:30,906] [DEBUG] ServerName =<TARGET_IP_ADDRESS>

                    [22 Mar 2011 15:00:30,906] [DEBUG] UserName =root

                    [22 Mar 2011 15:00:31,453] [INFO] SCP Copy Succeeded for Unix-Silent.txt

                    [22 Mar 2011 15:00:31,453] [INFO]

                    [2011-03-22|03:00:31] SCP Copy Succeeded for Unix-Silent.txt

                    [22 Mar 2011 15:00:31,453] [DEBUG] Copying RSC files...

                    [22 Mar 2011 15:00:31,453] [DEBUG] Copying exports file...

                    [22 Mar 2011 15:00:31,453] [DEBUG] ServerName =<TARGET_IP_ADDRESS>

                    [22 Mar 2011 15:00:31,453] [DEBUG] UserName =root

                    [22 Mar 2011 15:00:32,000] [INFO] SCP Copy Succeeded for exports

                    [22 Mar 2011 15:00:32,000] [INFO]

                    [2011-03-22|03:00:32] SCP Copy Succeeded for exports

                    [22 Mar 2011 15:00:32,000] [DEBUG] Copying secure file...

                    [22 Mar 2011 15:00:32,000] [DEBUG] ServerName =<TARGET_IP_ADDRESS>

                    [22 Mar 2011 15:00:32,000] [DEBUG] UserName =root

                    [22 Mar 2011 15:00:32,546] [INFO] SCP Copy Succeeded for secure

                    [22 Mar 2011 15:00:32,546] [INFO]

                    [2011-03-22|03:00:32] SCP Copy Succeeded for secure

                    [22 Mar 2011 15:00:32,546] [DEBUG] Copying users file...

                    [22 Mar 2011 15:00:32,546] [DEBUG] ServerName =<TARGET_IP_ADDRESS>

                    [22 Mar 2011 15:00:32,546] [DEBUG] UserName =root

                    [22 Mar 2011 15:00:33,093] [INFO] SCP Copy Succeeded for users

                    [22 Mar 2011 15:00:33,093] [INFO]

                    [2011-03-22|03:00:33] SCP Copy Succeeded for users

                    [22 Mar 2011 15:00:33,093] [DEBUG] Copying users local file...

                    [22 Mar 2011 15:00:33,093] [DEBUG] ServerName =<TARGET_IP_ADDRESS>

                    [22 Mar 2011 15:00:33,093] [DEBUG] UserName =root

                    [22 Mar 2011 15:00:33,640] [INFO] SCP Copy Succeeded for users.local

                    [22 Mar 2011 15:00:33,640] [INFO]

                    [2011-03-22|03:00:33] SCP Copy Succeeded for users.local

                    [22 Mar 2011 15:00:33,640] [INFO]

                    [2011-03-22|03:00:30]

                    [2011-03-22|03:00:30] SCP Copy Succeeded for RSCD800-622-SPARC10-LOCAL

                    [2011-03-22|03:00:31]

                    [2011-03-22|03:00:31] SCP Copy Succeeded for Unix-Silent.txt

                    [2011-03-22|03:00:32]

                    [2011-03-22|03:00:32] SCP Copy Succeeded for exports

                    [2011-03-22|03:00:32]

                    [2011-03-22|03:00:32] SCP Copy Succeeded for secure

                    [2011-03-22|03:00:33]

                    [2011-03-22|03:00:33] SCP Copy Succeeded for users

                    [2011-03-22|03:00:33]

                    [2011-03-22|03:00:33] SCP Copy Succeeded for users.local

                    [22 Mar 2011 15:00:33,640] [INFO] Attempting installer Unix SSH Installer with password set: password

                    [22 Mar 2011 15:00:33,640] [DEBUG] SUDO not enabled as user is ROOT.

                    [22 Mar 2011 15:00:33,640] [DEBUG] Trying to connect to: <TARGET_IP_ADDRESS> for SSH with password set: password

                    [22 Mar 2011 15:00:35,015] [INFO] 0

                     

                    [22 Mar 2011 15:00:36,078] [DEBUG] Executing: cd /tmp;chmod 755 RSCD800-622-SPARC10-LOCAL;sh RSCD800-622-SPARC10-LOCAL -default ./Unix-Silent.txt < /dev/null

                    [22 Mar 2011 15:00:37,140] [DEBUG] sshexecutor not successfull exitval = 2

                    [22 Mar 2011 15:00:37,140] [INFO] SSHExecutor not successfull exitval = 2

                    [22 Mar 2011 15:00:37,140] [INFO]

                    [2011-03-22|03:00:37] SSHExecutor not successfull exitval = 2

                    [22 Mar 2011 15:00:37,140] [DEBUG] SSH Installed Failed for <TARGET_IP_ADDRESS>

                    [22 Mar 2011 15:00:37,140] [INFO] SSH Installed Failed for <TARGET_IP_ADDRESS>

                    [22 Mar 2011 15:00:37,140] [INFO] Install worked with installer: Unix SSH Installer and password set: password

                    [22 Mar 2011 15:00:37,140] [INFO]

                    [2011-03-22|03:00:37]

                    [2011-03-22|03:00:37] SSHExecutor not successfull exitval = 2

                    [2011-03-22|03:00:37] SSH Installed Failed for <TARGET_IP_ADDRESS>

                    [22 Mar 2011 15:00:37,140] [INFO] Cleaning temporary files on: <TARGET_IP_ADDRESS>

                    [22 Mar 2011 15:00:37,140] [DEBUG] Trying to connect to: <TARGET_IP_ADDRESS> using SSH with: password

                    [22 Mar 2011 15:00:38,515] [INFO] 0

                     

                    [22 Mar 2011 15:00:38,515] [DEBUG] Cleaning files:cd /tmp;rm -f RSCD800-622-SPARC10-LOCAL;rm -f Unix-Silent.txt;rm -f Unix-Silent.txt;rm -f exports users secure users.local;

                    [22 Mar 2011 15:00:39,578] [INFO]

                    [22 Mar 2011 15:00:39,578] [INFO] Cleaned temporary files on: <TARGET_IP_ADDRESS>

                    [22 Mar 2011 15:00:39,578] [INFO] No installers were successful. Exiting...

                    [22 Mar 2011 15:00:41,156] [INFO] Starting writing job run file :job1--2011_03_22_02_59_55

                    [22 Mar 2011 15:00:41,187] [INFO] Install Job - "job1--2011_03_22_02_59_55" has finished at: 2011-03-22|03:00:41

                     

                     

                     

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

                    • 7. Re: RSCD Agent Bulk Installation
                      Bill Robinson

                      The silent install file needs to be called ‘nsh-install-defaults’ not ‘Unix-Silent.txt’.  are there any logs on the system in /tmp? – like a ‘BladeLogic_Install’?  or is a /opt/bmc/.. dir present?  Are you using the ‘sh’ installer or the pkg ?

                       

                      For solaris 8 and 9 ssh was not shipped w/ the product which is why we say telnet.  If you have ssh running on those systems, you can use ssh.  Solaris 10 shipped w/ ssh.

                      • 8. Re: RSCD Agent Bulk Installation
                        Paul Seager-Smith

                        Can you just run the mount command on the target server and post the results - I still think you may have noexec set on the /tmp partition?

                        • 9. Re: RSCD Agent Bulk Installation

                          Please find the mount command o/p of target server.

                           

                          # mount

                          / on /dev/dsk/c1t0d0s0 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=800018 on Mon Apr 12 18:48:24 2010

                          /devices on /devices read/write/setuid/devices/dev=5080000 on Mon Apr 12 18:48:12 2010

                          /system/contract on ctfs read/write/setuid/devices/dev=50c0001 on Mon Apr 12 18:48:12 2010

                          /proc on proc read/write/setuid/devices/dev=5100000 on Mon Apr 12 18:48:12 2010

                          /etc/mnttab on mnttab read/write/setuid/devices/dev=5140001 on Mon Apr 12 18:48:12 2010

                          /etc/svc/volatile on swap read/write/setuid/devices/xattr/dev=5180001 on Mon Apr 12 18:48:12 2010

                          /system/object on objfs read/write/setuid/devices/dev=51c0001 on Mon Apr 12 18:48:12 2010

                          /etc/dfs/sharetab on sharefs read/write/setuid/devices/dev=5200001 on Mon Apr 12 18:48:12 2010

                          /platform/sun4u-us3/lib/libc_psr.so.1 on /platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1 read/write/setuid/devices/dev=800018 on Mon Apr 12 18:48:19 2010

                          /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1 on /platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1 read/write/setuid/devices/dev=800018 on Mon Apr 12 18:48:19 2010

                          /dev/fd on fd read/write/setuid/devices/dev=5380001 on Mon Apr 12 18:48:24 2010

                          /tmp on swap read/write/setuid/devices/xattr/dev=5180002 on Mon Apr 12 18:48:24 2010

                          /var/run on swap read/write/setuid/devices/xattr/dev=5180003 on Mon Apr 12 18:48:24 2010

                          /u03/ora8data on /dev/dsk/c1t2d0s0 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=800008 on Mon Apr 12 18:48:40 2010

                          /usr2/app on /dev/dsk/c1t1d0s1 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=800001 on Mon Apr 12 18:48:40 2010

                          /usr1/dev3 on /dev/dsk/c1t1d0s0 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=800000 on Mon Apr 12 18:48:40 2010

                          /u02/sv4_app on /dev/dsk/c1t2d0s3 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=80000b on Mon Apr 12 18:48:40 2010

                          /usr1/dev1 on /dev/dsk/c1t2d0s4 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=80000c on Mon Apr 12 18:48:40 2010

                          /u04/ora9data on /dev/dsk/c1t3d0s0 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=800010 on Mon Apr 12 18:48:40 2010

                          /u02/sv5_app on /dev/dsk/c1t3d0s3 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=800013 on Mon Apr 12 18:48:40 2010

                          /usr1/dev2 on /dev/dsk/c1t3d0s4 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=800014 on Mon Apr 12 18:48:40 2010

                          /u01/app/oracle8/product/8.1.7 on /dev/dsk/c1t2d0s1 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=800009 on Mon Apr 12 18:48:40 2010

                          /u01/app/oracle9/product/9.2.0 on /dev/dsk/c1t3d0s1 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=800011 on Mon Apr 12 18:48:40 2010

                          • 10. Re: RSCD Agent Bulk Installation

                            Like Bill said, as outlined in the documentation, the response file has to have a specific name. Correct this issue and try again posting your new log.

                            • 11. Re: RSCD Agent Bulk Installation

                              Hi Adam,

                               

                                       As recommended I've modified the silent installer file name to nsh-install-defaults and executed the job. The job failed again with the same error. Kindly find the below log.

                               

                              [2011-03-22|06:02:09] SCP Copy Succeeded for RSCD800-622-SPARC10-LOCAL
                              [2011-03-22|06:02:09]
                              [2011-03-22|06:02:09] SCP Copy Succeeded for nsh-install-defaults
                              [2011-03-22|06:02:10]
                              [2011-03-22|06:02:10] SCP Copy Succeeded for exports
                              [2011-03-22|06:02:10]
                              [2011-03-22|06:02:10] SCP Copy Succeeded for secure
                              [2011-03-22|06:02:11]
                              [2011-03-22|06:02:11] SCP Copy Succeeded for users
                              [2011-03-22|06:02:11]
                              [2011-03-22|06:02:11] SCP Copy Succeeded for users.local
                              [22 Mar 2011 18:02:11,953] [INFO] Attempting installer Unix SSH Installer with password set: password

                              [22 Mar 2011 18:02:11,953] [DEBUG] SUDO not enabled as user is ROOT.
                              [22 Mar 2011 18:02:11,953] [DEBUG] Trying to connect to: <TARGET_IP> for SSH with password set: passwo
                              rd
                              [22 Mar 2011 18:02:13,312] [INFO] 0

                              [22 Mar 2011 18:02:14,375] [DEBUG] Executing command: cd /tmp;chmod 755 RSCD800-622-SPARC10-LOCAL;sh RSCD800-622-SPARC10-LOCAL -default ./nsh-install-defaults < /dev/null
                              [22 Mar 2011 18:02:15,437] [DEBUG] sshexecutor not successfull exitval = 2
                              [22 Mar 2011 18:02:15,437] [INFO] SSHExecutor not successfull exitval = 2
                              [22 Mar 2011 18:02:15,437] [INFO]
                              [2011-03-22|06:02:15] SSHExecutor not successfull exitval = 2
                              [22 Mar 2011 18:02:15,437] [DEBUG] SSH Installed Failed for <TARGET_IP>
                              [22 Mar 2011 18:02:15,437] [INFO] SSH Installed Failed for <TARGET_IP>
                              [22 Mar 2011 18:02:15,437] [INFO] Install worked with installer: Unix SSH Installer and password set:
                              password
                              [22 Mar 2011 18:02:15,437] [INFO]
                              [2011-03-22|06:02:15]
                              [2011-03-22|06:02:15] SSHExecutor not successfull exitval = 2
                              [2011-03-22|06:02:15] SSH Installed Failed for <TARGET_IP>
                              [22 Mar 2011 18:02:15,437] [INFO] Cleaning temporary files on: <TARGET_IP>
                              [22 Mar 2011 18:02:15,437] [DEBUG] Trying to connect to: <TARGET_IP> using SSH with: password
                              [22 Mar 2011 18:02:16,828] [INFO] 0

                              • 12. Re: RSCD Agent Bulk Installation
                                Bill Robinson

                                You are using the wrong installer.  Use the one that ends in ‘.SH’

                                • 13. Re: RSCD Agent Bulk Installation

                                  Maestro Bill,

                                   

                                              Thanks for your valuable inputs. Thanks to each and every one. The job got successfully completed after modified the correct package (.sh). But the below things happening. Kindly look into this.

                                   

                                  1. The rscd agent not started. Tried to start the rscd agent forcefully but not starting.

                                  2. The rsc file left on the /tmp folder (target server) alone and not moved to respective directory (/usr/lib/rsc/)

                                   

                                  Kindly find the logs.

                                   

                                  2011-03-22|06:26:05] Moving RSC files for <TARGET_IP>

                                  [2011-03-22|06:26:06] Could not move RSC file on <TARGET_IP>

                                  [2011-03-22|06:26:06] SSH Install Succeeded for <TARGET_IP>

                                  [2011-03-22|06:26:06] Cleaning temporary files on: <TARGET_IP>

                                  [2011-03-22|06:26:08] Cleaned temporary files on: <TARGET_IP>

                                  [2011-03-22|06:26:08] Agent install routine finished for <TARGET_IP> 2011-03-22|06:26:05] Moving RSC files for <TARGET_IP>

                                   

                                  Regards,

                                  Raghava

                                  • 14. Re: RSCD Agent Bulk Installation
                                    Bill Robinson

                                    What is in the nsh-install-defaults file ?

                                     

                                    Is this a zone ?

                                    1 2 Previous Next