12 Replies Latest reply on Nov 20, 2012 4:11 PM by Bill Robinson

    BladeLogicRSCD local user on Windows

      Is the BladeLogicRSCD user given a default password when created by BladeLogic? If so is the password the same across the environment? If I randomly change the password across my servers will BladeLogic break?

        • 1. Re: BladeLogicRSCD local user on Windows

          The password is hardcoded and it's going to be the same across targets (agent has few passwords to pick from to meet security criteria of the target in question). You should not manually change the password - the agent will break. There is a chapw utility for that (administration guide or knowledge base should have more info about this).

           

          if you changed the password manually, then to recover, you can stop the agent, delete BladeLogicRSCD user, start the agent, and new BladeLogicRSCD user will be created.

          • 2. Re: BladeLogicRSCD local user on Windows

            Hey, Lazar. I'm able to change passwords with chapw when I execute it manually through the NSH interface. However, I'm having trouble getting it to work through an NSH script job. Any suggestions? I'm trying to pass the target (%h) and password (%p) as parameters, but get errors that aren't all that helpful.

            • 3. Re: BladeLogicRSCD local user on Windows

              Drew,

              what's the Script Type?

              what's the script contents?

              what's in the nsh script job log?

              how and where do you run the command manually when it works?

              • 4. Re: BladeLogicRSCD local user on Windows
                Sean Berry

                Can you post what's in your NSH Script?

                • 5. Re: BladeLogicRSCD local user on Windows

                  Type=Execute the script once...

                   

                  Contents= I tried keeping it simple...

                   

                  #!/bin/sh

                   

                  chapw -p '$2' $1

                   

                  Where I passed the parameters host (%h) and password (%p).

                   

                  Here's the manual command I use:

                   

                  > chapw -p <password here> <target>

                   

                  And here's what's in the NSH script job log:

                   

                  Info    Nov 15, 2012 2:31:22 PM    Started running the job 'Change BladeLogicRSCDUser Password' with priority 'NORMAL' on application server 'blapp-job'(2,020,000)

                  Info    Nov 15, 2012 2:31:24 PM    Executing work item NSH Script Job:Change BladeLogicRSCDUser Password;  on application server: blapp-job

                  Error    Nov 15, 2012 2:31:24 PM    *** glibc detected *** chapw: free(): invalid pointer: 0x00007fffafbe5976 ***

                  Error    Nov 15, 2012 2:31:24 PM    ======= Backtrace: =========

                  Error    Nov 15, 2012 2:31:24 PM    /lib64/libc.so.6[0x35b2e70f0f]

                  Error    Nov 15, 2012 2:31:24 PM    /lib64/libc.so.6(cfree+0x4b)[0x35b2e7136b]

                  Error    Nov 15, 2012 2:31:24 PM    /u01/bmc/BladeLogic/8.0/NSH/lib/libnc.so(_mem_free+0xe)[0x2acd0ed66aa2]

                  Error    Nov 15, 2012 2:31:24 PM    chapw[0x433691]

                  Error    Nov 15, 2012 2:31:24 PM    chapw[0x4323d2]

                  Error    Nov 15, 2012 2:31:24 PM    /lib64/libc.so.6(__libc_start_main+0xf4)[0x35b2e1d994]

                  Error    Nov 15, 2012 2:31:24 PM    chapw(free+0x8a)[0x407afa]

                  Error    Nov 15, 2012 2:31:24 PM    ======= Memory map: ========

                  Error    Nov 15, 2012 2:31:24 PM    00400000-0045b000 r-xp 00000000 fd:07 3273185                            /u01/bmc/BladeLogic/8.0/NSH/sbin/chapw

                  Error    Nov 15, 2012 2:31:24 PM    0055b000-0055f000 rwxp 0005b000 fd:07 3273185                            /u01/bmc/BladeLogic/8.0/NSH/sbin/chapw

                  Error    Nov 15, 2012 2:31:24 PM    0055f000-00560000 rwxp 0055f000 00:00 0

                  Error    Nov 15, 2012 2:31:24 PM    100db000-100fc000 rwxp 100db000 00:00 0                                  [heap]

                  Error    Nov 15, 2012 2:31:24 PM    35b2a00000-35b2a1c000 r-xp 00000000 fd:00 262444                         /lib64/ld-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b2c1c000-35b2c1d000 r-xp 0001c000 fd:00 262444                         /lib64/ld-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b2c1d000-35b2c1e000 rwxp 0001d000 fd:00 262444                         /lib64/ld-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b2e00000-35b2f4d000 r-xp 00000000 fd:00 262518                         /lib64/libc-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b2f4d000-35b314d000 ---p 0014d000 fd:00 262518                         /lib64/libc-2.5.so

                  Info    Nov 15, 2012 2:31:24 PM    Exit Code 134

                  Error    Nov 15, 2012 2:31:24 PM    35b314d000-35b3151000 r-xp 0014d000 fd:00 262518                         /lib64/libc-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b3151000-35b3152000 rwxp 00151000 fd:00 262518                         /lib64/libc-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b3152000-35b3157000 rwxp 35b3152000 00:00 0

                  Error    Nov 15, 2012 2:31:24 PM    35b3200000-35b3202000 r-xp 00000000 fd:00 262519                         /lib64/libdl-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b3202000-35b3402000 ---p 00002000 fd:00 262519                         /lib64/libdl-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b3402000-35b3403000 r-xp 00002000 fd:00 262519                         /lib64/libdl-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b3403000-35b3404000 rwxp 00003000 fd:00 262519                         /lib64/libdl-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b3600000-35b3616000 r-xp 00000000 fd:00 262523                         /lib64/libpthread-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b3616000-35b3815000 ---p 00016000 fd:00 262523                         /lib64/libpthread-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b3815000-35b3816000 r-xp 00015000 fd:00 262523                         /lib64/libpthread-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b3816000-35b3817000 rwxp 00016000 fd:00 262523                         /lib64/libpthread-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b3817000-35b381b000 rwxp 35b3817000 00:00 0

                  Error    Nov 15, 2012 2:31:24 PM    35b4200000-35b4282000 r-xp 00000000 fd:00 262520                         /lib64/libm-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b4282000-35b4481000 ---p 00082000 fd:00 262520                         /lib64/libm-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b4481000-35b4482000 r-xp 00081000 fd:00 262520                         /lib64/libm-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b4482000-35b4483000 rwxp 00082000 fd:00 262520                         /lib64/libm-2.5.so

                  Error    Nov 15, 2012 2:31:24 PM    35b5200000-35b520d000 r-xp 00000000 fd:00 262521                         /lib64/libgcc_s-4.1.2-20080825.so.1

                  Error    Nov 15, 2012 2:31:24 PM    35b520d000-35b540d000 ---p 0000d000 fd:00 262521                         /lib64/libgcc_s-4.1.2-20080825.so.1

                  Error    Nov 15, 2012 2:31:24 PM    35b540d000-35b540e000 rwxp 0000d000 fd:00 262521                         /lib64/libgcc_s-4.1.2-20080825.so.1

                  Error    Nov 15, 2012 2:31:24 PM    2acd0eb4a000-2acd0eb4c000 rwxp 2acd0eb4a000 00:00 0

                  Error    Nov 15, 2012 2:31:24 PM    2acd0eb4c000-2acd0eb98000 r-xp 00000000 fd:07 3263525                    /u01/bmc/BladeLogic/8.0/NSH/lib/libblsrp.so.1.0

                  Error    Nov 15, 2012 2:31:24 PM    2acd0eb98000-2acd0ec97000 ---p 0004c000 fd:07 3263525                    /u01/bmc/BladeLogic/8.0/NSH/lib/libblsrp.so.1.0

                  Error    Nov 15, 2012 2:31:24 PM    2acd0ec97000-2acd0ec9c000 rwxp 0004b000 fd:07 3263525                    /u01/bmc/BladeLogic/8.0/NSH/lib/libblsrp.so.1.0

                  Error    Nov 15, 2012 2:31:24 PM    2acd0ec9c000-2acd0ec9d000 rwxp 2acd0ec9c000 00:00 0

                  Error    Nov 15, 2012 2:31:24 PM    2acd0ec9d000-2acd0edff000 r-xp 00000000 fd:07 3263539                    /u01/bmc/BladeLogic/8.0/NSH/lib/libnc.so.1.0

                  Error    Nov 15, 2012 2:31:24 PM    2acd0edff000-2acd0eeff000 ---p 00162000 fd:07 3263539                    /u01/bmc/BladeLogic/8.0/NSH/lib/libnc.so.1.0

                  Error    Nov 15, 2012 2:31:24 PM    2acd0eeff000-2acd0ef0b000 rwxp 00162000 fd:07 3263539                    /u01/bmc/BladeLogic/8.0/NSH/lib/libnc.so.1.0

                  Error    Nov 15, 2012 2:31:24 PM    2acd0ef0b000-2acd0ef12000 rwxp 2acd0ef0b000 00:00 0

                  Error    Nov 15, 2012 2:31:24 PM    2acd0ef1c000-2acd0ef1d000 rwxp 2acd0ef1c000 00:00 0

                  Error    Nov 15, 2012 2:31:24 PM    2acd0ef1d000-2acd0ef7b000 r-xp 00000000 fd:07 3263538                    /u01/bmc/BladeLogic/8.0/NSH/lib/liblog4c.so.1.0

                  Error    Nov 15, 2012 2:31:24 PM    2acd0ef7b000-2acd0f07a000 ---p 0005e000 fd:07 3263538                    /u01/bmc/BladeLogic/8.0/NSH/lib/liblog4c.so.1.0

                  Error    Nov 15, 2012 2:31:24 PM    2acd0f07a000-2acd0f07f000 rwxp 0005d000 fd:07 3263538                    /u01/bmc/BladeLogic/8.0/NSH/lib/liblog4c.so.1.0

                  Error    Nov 15, 2012 2:31:24 PM    2acd0f07f000-2acd0f080000 rwxp 2acd0f07f000 00:00 0

                  Error    Nov 15, 2012 2:31:24 PM    2acd0f080000-2acd0f0c9000 r-xp 00000000 fd:07 3263526                    /u01/bmc/BladeLogic/8.0/NSH/lib/libblssl.so.0.9.8

                  Error    Nov 15, 2012 2:31:24 PM    2acd0f0c9000-2acd0f1c8000 ---p 00049000 fd:07 3263526                    /u01/bmc/BladeLogic/8.0/NSH/lib/libblssl.so.0.9.8

                  Error    Nov 15, 2012 2:31:24 PM    2acd0f1c8000-2acd0f1cf000 rwxp 00048000 fd:07 3263526                    /u01/bmc/BladeLogic/8.0/NSH/lib/libblssl.so.0.9.8

                  Error    Nov 15, 2012 2:31:24 PM    2acd0f1cf000-2acd0f32b000 r-xp 00000000 fd:07 3263517                    /u01/bmc/BladeLogic/8.0/NSH/lib/libblcrypto.so.0.9.8

                  Error    Nov 15, 2012 2:31:24 PM    2acd0f32b000-2acd0f42a000 ---p 0015c000 fd:07 3263517                    /u01/bmc/BladeLogic/8.0/NSH/lib/libblcrypto.so.0.9.8

                  Error    Nov 15, 2012 2:31:24 PM    2acd0f42a000-2acd0f451000 rwxp 0015b000 fd:07 3263517                    /u01/bmc/BladeLogic/8.0/NSH/lib/libblcrypto.so.0.9.8

                  Error    Nov 15, 2012 2:31:24 PM    2acd0f451000-2acd0f458000 rwxp 2acd0f451000 00:00 0

                  Error    Nov 15, 2012 2:31:24 PM    7fffafbd1000-7fffafbeb000 rw-p 7ffffffe4000 00:00 0                      [stack]

                  Error    Nov 15, 2012 2:31:24 PM    7fffafbfd000-7fffafc00000 r-xp 7fffafbfd000 00:00 0                      [vdso]

                  Error    Nov 15, 2012 2:31:24 PM    ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0                  [vsyscall]

                  Error    Nov 15, 2012 2:31:24 PM    The job 'Change BladeLogicRSCDUser Password' has failed

                  • 6. Re: BladeLogicRSCD local user on Windows

                    what if you just run chapw in your script without any arguments? do you get usage info in your log, or it also fails?

                    • 7. Re: BladeLogicRSCD local user on Windows

                      With no arguments it returns the usage info.

                      • 8. Re: BladeLogicRSCD local user on Windows

                        ok, now try with:

                        chapw -p 'actual_pass' actual_target

                         

                        if works, try to strip $1 of any passible control chars like this:

                         

                        Targets=`echo $1| tr -d '[:cntrl:]'`

                        chapw -p '$2' $Targets

                         

                        How many targets are in your Job? Try only with 1, then 2, then 10. Maybe there is a limit to how many targets chapw can take.

                         

                        EDIT:

                        if you did not use single quote during manual run ( ' ), then don't use it in the script around the password... maybe that is the issue

                         

                        Message was edited by: Lazar

                        • 9. Re: BladeLogicRSCD local user on Windows

                          When I tried it with:

                           

                          chapw -p 'actual_pass' actual_target

                           

                          I got the same error as I posted above in post # 5. I did use the single quotes, because that's what I had to do to get the manual command to work.

                          • 10. Re: BladeLogicRSCD local user on Windows

                            Oh, and I also tried it without the single quotes and got the same thing.

                            • 11. Re: BladeLogicRSCD local user on Windows

                              Drew, seems to be a bug, but not necessarily with chapw, as I see some similar issues, all of which seem to end up being defects/code fixes. Probably best to file a ticket for this and have engineer review.

                               

                              Amanda, let us know if your question was answered.

                              • 12. Re: BladeLogicRSCD local user on Windows
                                Bill Robinson

                                drew - what error do you get ?  this:

                                Error Nov 15, 2012 2:31:24 PM *** glibc detected *** chapw: free(): invalid pointer: 0x00007fffafbe5976 ***

                                 

                                ?

                                 

                                also, putting single quotes around a variable like '$2' will pass litterally $2 to the command because the single quotes prevent the variable from being expanded.

                                 

                                so if you do this in the job:

                                 

                                chapw '!QAZ2wsx#EDC4rfv' server

                                 

                                that fails on the target ?  can you try that on some other targets ?