F3215-HP Load Balancing Module System Maintenance Command Reference-6PW101
128
Syntax
dir [ remotefile [ localfile ] ]
Views
FTP client view
Default command level
3: Manage level
Parameters
remotefile: Name of the file or directory on the remote FTP server.
localfile: Name of the local file used to save the displayed information.
Usage guidelines
The Is command displays only the names of files and directories. The dir command displays more
information about the files and directories, such as the size and the creation date.
Examples
# Display detailed information about the files and subdirectories under the current directory on the FTP
server.
[ftp] dir
227 Entering Passive Mode (192,168,1,46,5,68).
125 ASCII mode data connection already open, transfer starting for /*.
drwxrwxrwx 1 noone nogroup 0 Aug 08 2012 logfile
-rwxrwxrwx 1 noone nogroup 20471748 May 11 2012 test.bin
-rwxrwxrwx 1 noone nogroup 4001 Dec 08 2012 config.cfg
-rwxrwxrwx 1 noone nogroup 3608 Jun 13 2012 startup.cfg
drwxrwxrwx 1 noone nogroup 0 Dec 03 2012 test
-rwxrwxrwx 1 noone nogroup 299 Oct 15 2012 key.pub
226 Transfer complete.
FTP: 394 byte(s) received in 0.189 second(s), 2.00K byte(s)/sec.
[ftp]
# Save detailed information about file router.cfg to aa.txt.
[ftp] dir router.cfg aa.txt
227 Entering Passive Mode (192,168,1,50,17,158).
125 ASCII mode data connection already open, transfer starting for /router.cfg.
....226 Transfer complete.
FTP: 67 byte(s) received in 4.600 second(s), 14.00 byte(s)/sec.
# View the content of aa.txt.
[ftp] quit
<Sysname> more aa.txt
-rwxrwxrwx 1 noone nogroup 3077 Jun 20 15:34 router.cfg
disconnect
Use disconnect to disconnect from the remote FTP server but remain in FTP client view.