Forum Discussion

BradB_11461's avatar
BradB_11461
Icon for Nimbostratus rankNimbostratus
Jun 22, 2009

File copy from F5 LTM via TFTP or FTP?

I know this is probably pretty basic. But, is there a simple method to copy a file generated on the F5 LTM (running release 9.1.2) to either a tftp or ftp server? It's a larger output file sitting in the /var/tmp directory.

 

3 Replies

  • WinSCP is a simple to use open source Windows GUI tool you can use to copy files to/from any SSH server including LTM.

     

     

    www.sf.net/projects/winscp/

     

     

    Or if you really want to use FTP, LTM has an FTP client:

     

    https://support.f5.com/kb/en-us/solutions/public/0000/100/sol175.html

     

     

    Aaron
  • James_Quinby_46's avatar
    James_Quinby_46
    Historic F5 Account
    I don't believe a tftp client is present on the LTM. FTP will work, unless you're looking to automate the transfer. You'd need something along the lines of an expect script for that.

     

     

    You can certainly use scp to move files off the unit.

     

     

    If you want to get crafty, you can use netcat to move files to and fro. On your receiving host, do:

     

     

    nc -v -l -p 12345 | tar xf -

     

     

    ...then on the LTM do:

     

     

    tar cf - (filename) | nc (IP of the receiving host) 12345

     

     

    This will copy the file directly off via the netcat listening on port 12345. It's nice and quick, requires no password and copies without the overhead of scp.