HP 6125G HP 6125G & 6125G/XG Blade Switches Fundamentals Configuration - Page 79

Managing directories on the FTP server, Working with the files on the FTP server

Page 79 highlights

Step Command 1. Enter system view. system-view • For IPv4: 2. Set the DSCP value for ftp client dscp dscp-value IP to use for outgoing FTP packets. • For IPv6: ftp client ipv6 dscp dscp-value Remarks N/A The default is 0, whether the FTP client is running IPv4 or IPv6. Managing directories on the FTP server After the device establishes a connection to an FTP server, you can create or delete folders in the authorized directory on the FTP server. To manage the directories on the FTP server: Task Display detailed information about files and directories under the current directory on the FTP server. Query a directory or file on the FTP server. Change the working directory on the FTP server. Return to the upper level directory on the FTP server. Display the current directory on the FTP server. Create a directory on the FTP server. Remove the specified working directory on the FTP server. Command dir [ remotefile [ localfile ] ] ls [ remotefile [ localfile ] ] cd { directory | .. | / } cdup pwd mkdir directory rmdir directory Working with the files on the FTP server After you log in to the server, you can upload a file to or download a file from the authorized directory by following these steps: 1. Use the dir or ls command to display the directory and the location of the file on the FTP server. 2. Delete unused files to get more free storage space. 3. Set the file transfer mode. FTP transmits files in two modes: ASCII and binary. Use ASCII mode to transfer text files. Use binary mode to transfer image files. 4. Use the lcd command to display the local working directory of the FTP client. You can upload the file or save the downloaded file in this directory. 5. Upload or download the file. To work with the files on the FTP server: Task Display detailed information about a directory or file on the FTP server. Command dir [ remotefile [ localfile ] ] Remarks The ls command displays the name of a directory or file only, while the dir command displays detailed information such as the file size and creation time. 73

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135

73
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Set the DSCP value for
IP to use for outgoing
FTP packets.
For IPv4:
ftp client dscp
dscp-value
For IPv6:
ftp client ipv6 dscp
dscp-value
The default is 0, whether the FTP
client is running IPv4 or IPv6.
Managing directories on the FTP server
After the device establishes a connection to an FTP server, you can create or delete folders in the
authorized directory on the FTP server.
To manage the directories on the FTP server:
Task
Command
Display detailed information about files and directories under
the current directory on the FTP server.
dir
[
remotefile
[
localfile
] ]
Query a directory or file on the FTP server.
ls
[
remotefile
[
localfile
] ]
Change the working directory on the FTP server.
cd
{
directory
|
..
|
/
}
Return to the upper level directory on the FTP server.
cdup
Display the current directory on the FTP server.
pwd
Create a directory on the FTP server.
mkdir
directory
Remove the specified working directory on the FTP server.
rmdir
directory
Working with the files on the FTP server
After you log in to the server, you can upload a file to or download a file from the authorized directory
by following these steps:
1.
Use the
dir
or
ls
command to display the directory and the location of the file on the FTP server.
2.
Delete unused files to get more free storage space.
3.
Set the file transfer mode. FTP transmits files in two modes: ASCII and binary. Use ASCII mode to
transfer text files. Use binary mode to transfer image files.
4.
Use the
lcd
command to display the local working directory of the FTP client. You can upload the
file or save the downloaded file in this directory.
5.
Upload or download the file.
To work with the files on the FTP server:
Task
Command
Remarks
Display detailed information
about a directory or file on the
FTP server.
dir
[
remotefile
[
localfile
] ]
The
ls
command displays the name of a
directory or file only, while the
dir
command displays detailed information
such as the file size and creation time.