Need to write a flat file to another server on the network

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Need to write a flat file to another server on the network

  • Creator
    Topic
  • #52046
    Don Anderson
    Participant

      I’m creating a flat file. That file needs to be on a network server other than the one Cloverleaf is on. It’s prefered to populate the file real time and not have to schedule a ftp job to periodiclly transfer it. The only place I can get it to write to is the site directory. I’ve tried several protocols with no luck. This is new teritory for me. Can anyone assist

    Viewing 8 reply threads
    • Author
      Replies
      • #72847
        Jim Kosloskey
        Participant

          Don,

          If Cloverleaf is on a Windows platform, then you can map to the device if it is exposed to the network much as any other windows platform. You would then use the full pathing (the shared drive notation) as you would normally.

          If the Cloverleaf platform is UNIX, then there is the potential of NFS (Network File System) assuming that can be configured in your environment or 3rd party products (like Samba I think is the name) that allow such foreign file systems to be referenced from UNIX environs.

          However, if your FTP/Fileset is outbound, then there really does not need to be any scheduled job for Cloverleaf. You can FTP to the target system as often as you want. This assumes the target system has an FTP server running.

          In any case, on the target system something needs to be running that periodically picks up the files no mater how you get them there.

          email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.

        • #72848
          Don Anderson
          Participant

            I’m trying to get the PROTOCOL:fileset-ftp to work. Not sure if my set up is correct. The forgein system does have the ftp client running but I’m getting this error. I have the IP address in the etc/hosts file. Can anyone advise?

            [fset:wrte:ERR /0:lex_adt_db_ob:12/14/2010 09:31:36] Error while trying to write Test_ftp.dat.

                                    Detailed error:bind failure: Cannot assign requested address

                                      Curl errCode:7 Curl error: couldn’t connect to server

          • #72849
            David Harrison
            Participant

              You will need ftp server running on your foreign system.[/u]

            • #72850
              Charlie Bursell
              Participant

                This error:  Detailed error:bind failure: Cannot assign requested address

                Leaves me to beleive you may have put the FTP host name in a field that says: “Host Name or IP Address” in versions prior to 5.8 and “Local Binding Address” in 5.8

                This field is only used when you want to specify which Network to use in a multi-network environment.  It is best left blank

                Also, make sure you can access the FTP server from the command line before you ask Cloverleaf to do it

              • #72851
                Don Anderson
                Participant

                  The ftp client is running on the target server and I am able to manually ftp from the linux shell.

                  I removed the entry from the “Host Name or IP Address” field and got the following error.

                  [fset:read:ERR /0:lex_adt_db_ob:01/03/2011 11:04:29] Error while trying to get directory listing.

                                          Detailed error:Server denied you to change to the given directory

                                            Curl errCode:9 Curl error:FTP: access denied

                • #72852
                  Jim Kosloskey
                  Participant

                    Don,

                    It appears the Server is blocking your attempt to change to the directory where the file is.

                    When you did the command line ftp, did you do a CWD to change the working directory?  If that worked successfully then use the same path in the Fileset/FTP Fileset Options Tab Directory field.

                    If the Server places you right where the files are to be found (thus no CWD necessary) then try a . (period) in the Directory field. First try the period in the command line with a CWD to see if that works.

                    The Fileset protocols require you to enter a directory so you cannot leave that empty but using a period says to change to where you are.

                    Sometimes the Server blocks even that (they essentially block the CWD command no matter the target). If this is the case, see if you can negotiate using the CWD and still allow them control over where you can change to. We have had to do that on occassion.

                    email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.

                  • #72853
                    Don Anderson
                    Participant

                      I’m able to cwd from the command line. I can do everything from the command line.

                      I also tried going directly to the root directory from cloverleaf. I’m sure it’s just a setup I’m missing. I’ve attached the screen prints of Netconfig if you could verify my settings I’d really appreciate it

                    • #72854
                      Jim Kosloskey
                      Participant

                        Don,

                        Is the value in your Fileset Options Tab Outbound Container Directory field correct? That should be the directory where you want to place the files. It looks like some sort of host name.

                        Also, remove the /dev/null from the Inbound Container Directory field. I think the presence of any value in that field indicates to the protocol it is supposed to GET files and I think you just want to PUT.

                        In addition, normally in the Host Address of the FTP Options we would expect to see either an IP Address or a host name. What you have there looks odd (the lanierout piece in particular).

                        email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.

                      • #72855
                        Don Anderson
                        Participant

                          your last comment did it, I’m posting a file to a target server now. Thankyou for the help, Lots of testing now.

                      Viewing 8 reply threads
                      • The forum ‘Cloverleaf’ is closed to new topics and replies.