How do I FTP files to and from a PacketShaper?
search cancel

How do I FTP files to and from a PacketShaper?

book

Article ID: 166111

calendar_today

Updated On:

Products

PacketShaper

Issue/Introduction

FTP (File Transfer Protocol) can be used to transfer images and other files to and from a PacketShaper device. It can also be used to transfer files from one PacketShaper to another.

Resolution

To begin an FTP session from a desktop or laptop computer running Windows to a PacketShaper:

  1. Go to Start > Run.
  2. Type cmd  in the Open field. 
  3. Click OK. A DOS-style window opens.

The directory shown in this window's prompt is where any downloaded FTP files will be saved.

To initiate the FTP session to the PacketShaper (assuming an IP of the Shaper of 10.10.10.19):

C:\> ftp 10.10.10.19

Connected to 10.10.10.19.
220 10.10.10.19 PacketShaper FTP server ready.
User (10.10.10.19:(none)):

Password:
230 User touch logged in.
ftp>

Use admin for the login name, and use the normal TOUCH password.

To confirm the directory you've logged into, use the pwd command (Print Working Directory):

ftp> pwd
257 "9.256/" is current directory.
ftp>

To list the files and directories, use the ls command:

ftp> ls -l
200 PORT command successful.
150 Opening ASCII mode data connection for ..
drwxrwxrwx   1 root root     2048 Aug 03 12:03 BIN
drwxrwxrwx   1 root root     2048 Aug 03 12:03 CFG
drwxrwxrwx   1 root root     2048 Aug 03 12:03 CMD
drwxrwxrwx   1 root root     2048 Aug 03 12:03 LOG
drwxrwxrwx   1 root root     2048 Aug 03 12:03 PLG

226 Transfer complete.
ftp: 763 bytes received in 0.00Seconds 763000.00Kbytes/sec.
ftp>

To set a transfer into ASCII mode (standard text file to be transferred, including .ldi and .cmd files):

ftp> ascii
200 Type set to A.
ftp>

To set a transfer into Binaray mode (.zip files or .zoo files, for example):

ftp> binary
200 Type set to I.
ftp>

To get feedback (# signs appear on the screen) as the transfer is taking place:

ftp> hash
Hash mark printing On  ftp: (2048 bytes/hash mark) .
ftp>

To change directories on the PacketShaper, use the CD (Change Directory) command, for example:

ftp> cd cfg
250 CWD command successful.
ftp>

To download a file from the PacketShaper to the computer, use the GET command:

ftp> get config.ldi
200 PORT command successful.
150 Opening ASCII mode data connection for config.ldi (47073 bytes).
#######################
226 Transfer complete.
ftp: 48774 bytes received in 0.19Seconds 259.44Kbytes/sec.
ftp>

To upload a file from the computer to the PacketShaper, use the PUT command:

ftp> put config.ldi
200 PORT command successful.
150 Opening ASCII mode data connection for config.ldi.
#######################
226 Transfer complete.
ftp: 48774 bytes sent in 0.00Seconds 48774000.00Kbytes/sec.
ftp>

To logout and close the FTP session:

ftp> quit
221 Goodbye.

C:\>