1 2 Previous Next 19 Replies Latest reply on Feb 4, 2014 8:40 AM by Francois FURSTOSS

    direct copy between bladelogic agent with NSH

    Francois FURSTOSS

      Here you have our platform:

       

      One Server with NSH client (NSH Proxy configure) in DATACENTER A

                      VUHPLABSPBOT001

                                     |

                                     v

      One Application server (NSH Proxy) in DATACENTER A

                      VUHPLABSPBAS001

                                     |

                                     v

      One Proxy Socks + repeater server in DATACENTER B

                                     |

                                     v

      Two BladeLogic agent in  DATACENTER B -> tcp:4750 only reachable by the Proxy socks

                      VUHPLABGTDEV007 (Acl Pocilcy OK, certificate activated)

                      VUHPLABGTDEV008 (Acl Pocilcy OK, certificate activated)

       

      I'd like to copy file directly betwwen the two agents because there are in the same datacenter.

      The cp (NSH) copy files between two server but, not directly (it uses the Application server). But AS is not in the same datacenter so there too much network flows.

       

      BMC support propose to use cp -M command , an undocumented swith to the cp command, but it seems not working.

      Have you an idea ?

        • 1. Re: direct copy between bladelogic agent with NSH
          Bill Robinson

          when you tried the cp -M what did you run?

          what was in the agent log on the two targets ?

          did you get an error ?

          • 2. Re: direct copy between bladelogic agent with NSH
            Francois FURSTOSS

            Hello Bill

             

            Here you have the command line executed from the nsh client:

            cp -M //VUHPLABGTDEV007/tmp/ffu_test2.txt //VUHPLABGTDEV008/tmp

             

            No error message but the same message as i f i use nomal cp without switch -M:

            With -M

                 01/31/14 08:59:24.730 INFO     rscd - 10.1.242.132 3626 0/0 (BLAdmins:Francois.Furstoss): cp: cp -M //VUHPLABGTDEV007/tmp/ffu_test2.txt //VUHPLABGTDEV008/tmp

                 01/31/14 08:59:25.955 INFO1    rscd -  10.1.242.132 3626 0/0 (BLAdmins:Francois.Furstoss): cp: > 01011 Copy file //VUHPLABGTDEV007/tmp/ffu_test2.txt to //VUHPLABGTDEV008/tmp/ffu_test2.txt

             

            Without -M

                 01/31/14 09:11:33.018 INFO     rscd - 10.1.242.132 3639 0/0 (BLAdmins:Francois.Furstoss): cp: cp //VUHPLABGTDEV007/tmp/ffu_test2.txt //VUHPLABGTDEV008/tmp

                 01/31/14 09:11:34.192 INFO1    rscd -  10.1.242.132 3639 0/0 (BLAdmins:Francois.Furstoss): cp: > 01011 Copy file //VUHPLABGTDEV007/tmp/ffu_test2.txt to //VUHPLABGTDEV008/tmp/ffu_test2.txt

            • 3. Re: direct copy between bladelogic agent with NSH
              Dipak Gaigole

              Try to copy a big file say (say 10 MB). In addition you can try changing rscd agent log level to debug on VUHPLABGTDEV007 and VUHPLABGTDEV008 (Need rscd agent restart to make it effective).

              • 4. Re: Re: direct copy between bladelogic agent with NSH
                Francois FURSTOSS

                Here you have the rscd.log file extract (debug mode) of the target server

                10.1.242.132 is my Proxy Socks server

                VUHPLABGTDEV008 is the target server

                VUHPLABGTDEV007 is the server which provide the source fikle

                 

                 

                DEBUG    rscd -  10.1.242.132 3771 0/0 (BLAdmins:Francois.Furstoss): cp: ***** New connection *****

                01/31/14 13:34:50.439 INFO    rscd -  VUHPLABGTDEV008 3771 -1/-1 (Not_available): (Not_available): FIPS already enabled

                01/31/14 13:34:50.471 DEBUG    rscd -  10.1.242.132 3771 -1/-1 (Not_available): (Not_available): Enabling keepalive on the connection

                01/31/14 13:34:50.472 DEBUG    rscd -  VUHPLABGTDEV008 3771 -1/-1 (Not_available): (Not_available): Waiting for a command

                01/31/14 13:34:50.808 DEBUG    rscd -  VUHPLABGTDEV008 3771 -1/-1 (Not_available): (Not_available): Received command:101 with arg:f9;f9;1a;BLAdmins:Francois.Furstoss;2;cp;-;-;0;-;1;1;7;bladmin;UTF-8;

                01/31/14 13:34:50.812 DEBUG    rscd -  10.1.242.132 3771 0/0 (BLAdmins:Francois.Furstoss): cp: ***** New connection *****

                01/31/14 13:34:50.817 INFO    rscd -  10.1.242.132 3771 0/0 (BLAdmins:Francois.Furstoss): cp: cp -M //VUHPLABGTDEV007/tmp/ffu_test2.txt //VUHPLABGTDEV008/tmp

                01/31/14 13:34:50.827 INFO2    rscd -  10.1.242.132 3771 0/0 (BLAdmins:Francois.Furstoss): cp: stat (/tmp, buf) = 0

                01/31/14 13:34:52.235 INFO1    rscd -  10.1.242.132 3771 0/0 (BLAdmins:Francois.Furstoss): cp: > 01011 Copy file //VUHPLABGTDEV007/tmp/ffu_test2.txt to //VUHPLABGTDEV008/tmp/ffu_test2.txt

                01/31/14 13:34:52.249 INFO2    rscd -  10.1.242.132 3771 0/0 (BLAdmins:Francois.Furstoss): cp: lstat (/tmp, buf) = 0

                01/31/14 13:34:52.253 INFO2    rscd -  10.1.242.132 3771 0/0 (BLAdmins:Francois.Furstoss): cp: lstat (/tmp/ffu_test2.txt, buf) = 0

                01/31/14 13:34:52.267 INFO2    rscd -  10.1.242.132 3771 0/0 (BLAdmins:Francois.Furstoss): cp: lstat (/tmp, buf) = 0

                01/31/14 13:34:52.284 INFO2    rscd -  10.1.242.132 3771 0/0 (BLAdmins:Francois.Furstoss): cp: lstat (/tmp/ffu_test2.txt, buf) = 0

                01/31/14 13:34:52.293 INFO2    rscd -  10.1.242.132 3771 0/0 (BLAdmins:Francois.Furstoss): cp: bulk file (/tmp/ffu_test2.txt) = 0

                • 5. Re: direct copy between bladelogic agent with NSH
                  Bill Robinson

                  on the source server you should see a message like 'remote copy' in the rscd.log when the logging level is at info2 or higher and you initiate the copy w/ the -M.

                   

                  i just tested this and it seems to work fine.  a cp -M w/ two remote servers (source/target) takes a couple seconds.  if i use just cp then it takes a few min and my nsh client is across the wan from the other two systems.

                  • 6. Re: direct copy between bladelogic agent with NSH
                    Francois FURSTOSS

                    so we can only find the information from the source bladelogic agent ?

                    i will try this.

                     

                    It is very strange because there is no tcp communication betweeb the two server (i use tcpdump tools)

                    • 7. Re: direct copy between bladelogic agent with NSH
                      Bill Robinson

                      Yeah – the logging is a bit confusing because it looks like the connection is coming from the nsh client. But based on the timings I observed that’s not possible.

                      • 8. Re: direct copy between bladelogic agent with NSH
                        Dipak Gaigole

                        You might have a blocking firewall in between.

                         

                        Does bellow steps works for you?

                        1) Login to source server (VUHPLABGTDEV007 in your case).

                        2) telnet <Target server> 4750

                        telnet VUHPLABGTDEV008 4750

                         

                        It should successfully connect in step 2.

                         

                        In addition try "cp -M" with bigger file (say 20 MB).

                        • 10. Re: direct copy between bladelogic agent with NSH
                          Francois FURSTOSS

                          Now, i'm issuing a new error.

                           

                          From the nsh client i execute:

                          cp //VUHPLABGTDEV007/tmp/10M.bin //VUHPLABGTDEV008/tmp

                           

                          no error, then i execute:

                          cp -M //VUHPLABGTDEV007/tmp/10M.bin //VUHPLABGTDEV008/tmp

                           

                          I have the following message:

                          cp: Error writing to file //VUHPLABGTDEV008/tmp/10M.bin: Device not ready

                           

                          and my source file is ... deleted !!!

                           

                          rscd.log:

                          01/31/14 15:40:19.468 DEBUG    rscd -  10.1.242.132 3824 0/0 (BLAdmins:Francois.Furstoss): cp: ***** New connection *****

                          01/31/14 15:40:19.473 INFO     rscd -  10.1.242.132 3824 0/0 (BLAdmins:Francois.Furstoss): cp: cp -M //VUHPLABGTDEV007/tmp/10M.bin //VUHPLABGTDEV008/tmp

                          01/31/14 15:40:19.478 INFO2    rscd -  10.1.242.132 3824 0/0 (BLAdmins:Francois.Furstoss): cp: stat (/tmp/10M.bin, buf) = 0

                          01/31/14 15:40:19.482 INFO1    rscd -  10.1.242.132 3824 0/0 (BLAdmins:Francois.Furstoss): cp: > 01011 Copy file //VUHPLABGTDEV007/tmp/10M.bin to //VUHPLABGTDEV008/tmp/10M.bin

                          01/31/14 15:40:19.491 INFO2    rscd -  10.1.242.132 3824 0/0 (BLAdmins:Francois.Furstoss): cp: lstat (/tmp, buf) = 0

                          01/31/14 15:40:19.496 INFO2    rscd -  10.1.242.132 3824 0/0 (BLAdmins:Francois.Furstoss): cp: lstat (/tmp/10M.bin, buf) = 0

                          01/31/14 15:40:19.508 INFO2    rscd -  10.1.242.132 3824 0/0 (BLAdmins:Francois.Furstoss): cp: lstat (/tmp, buf) = 0

                          01/31/14 15:40:19.512 INFO2    rscd -  10.1.242.132 3824 0/0 (BLAdmins:Francois.Furstoss): cp: lstat (/tmp/10M.bin, buf) = 0

                          01/31/14 15:40:19.521 INFO2    rscd -  10.1.242.132 3824 0/0 (BLAdmins:Francois.Furstoss): cp: stat (/tmp/10M.bin, buf) = 0

                          01/31/14 15:40:19.525 INFO2    rscd -  10.1.242.132 3824 0/0 (BLAdmins:Francois.Furstoss): cp: stat (/tmp/10M.bin, buf) = 0

                          01/31/14 15:40:19.530 INFO2    rscd -  10.1.242.132 3824 0/0 (BLAdmins:Francois.Furstoss): cp: open (/tmp/10M.bin, 0x80000, 0777) = 5

                          01/31/14 15:40:19.551 INFO2    rscd -  10.1.242.132 3824 0/0 (BLAdmins:Francois.Furstoss): cp: remove (/tmp/10M.bin) = 0

                          01/31/14 15:40:19.556 DEBUG    rscd -  VUHPLABGTDEV007 3824 -1/-1 (Not_available): (Not_available): FIPS already enabled

                          01/31/14 15:40:19.559 INFO     rscd -  VUHPLABGTDEV007 3825 -1/-1 (Not_available): (Not_available): FIPS already enabled

                          01/31/14 15:40:19.575 DEBUG    rscd -  10.1.242.147 3825 -1/-1 (Not_available): (Not_available): Enabling keepalive on the connection

                          01/31/14 15:40:19.575 DEBUG    rscd -  VUHPLABGTDEV007 3825 -1/-1 (Not_available): (Not_available): Waiting for a command

                          01/31/14 15:40:19.576 DEBUG    rscd -  VUHPLABGTDEV007 3825 -1/-1 (Not_available): (Not_available): Received command:101 with arg:0;0;4;root;2;cp;-;-;167899780;BLAdmins:Francois.Furstoss;f9;f9;4;root;UTF-8

                          01/31/14 15:40:19.579 WARN     rscd -  10.1.242.147 3825 0/0 (BLAdmins:Francois.Furstoss): cp: Certificate check failed

                          01/31/14 15:40:19.579 DEBUG    rscd -  10.1.242.147 3825 0/0 (BLAdmins:Francois.Furstoss): cp: ***** New connection *****

                          01/31/14 15:40:19.580 INFO2    rscd -  10.1.242.132 3824 0/0 (BLAdmins:Francois.Furstoss): cp: remote copy (5, //VUHPLABGTDEV007/tmp/10M.bin, 16384, 700) = -1

                          01/31/14 15:40:19.587 INFO2    rscd -  10.1.242.132 3824 0/0 (BLAdmins:Francois.Furstoss): cp: close (5) = 0

                          01/31/14 15:41:26.759 INFO     rscd -  VUHPLABGTDEV007 3827 -1/-1 (Not_available): (Not_available): FIPS already enabled

                          01/31/14 15:41:26.799 DEBUG    rscd -  10.1.242.132 3827 -1/-1 (Not_available): (Not_available): Enabling keepalive on the connection

                          01/31/14 15:41:26.800 DEBUG    rscd -  VUHPLABGTDEV007 3827 -1/-1 (Not_available): (Not_available): Waiting for a command

                          01/31/14 15:41:27.119 DEBUG    rscd -  VUHPLABGTDEV007 3827 -1/-1 (Not_available): (Not_available): Received command:101 with arg:f9;f9;1a;BLAdmins:Francois.Furstoss;9;agentinfo;-;-;0;-;1;1;7;bladmin;UTF-8;

                           

                          I see "certificate check failed", what does it means ?

                          • 11. Re: direct copy between bladelogic agent with NSH
                            Francois FURSTOSS

                            Additional informations:

                             

                            BladeLogic Agent with certificates adn using cp -M:

                            the source file is...deleted, file is not copy => ouch,enormous bug!!!

                             

                            Bladelogic Agent without certificates and using cp -M:

                            file is copied very faster than the cp command, but the traget file is empty.

                            • 12. Re: direct copy between bladelogic agent with NSH
                              Bill Robinson

                              does the target system have the certs from the source system setup ?

                              • 13. Re: direct copy between bladelogic agent with NSH
                                Francois FURSTOSS

                                yes Bill, it seems that when i don't use the NSH proxy -> it works

                                 

                                Ticket opened at BMC support : ISS04249678

                                • 14. Re: direct copy between bladelogic agent with NSH
                                  Francois FURSTOSS

                                  Update : it's only work when i want to copy very small files in any case.

                                  big file don't works...

                                  1 2 Previous Next