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

Switching to another user account, Maintaining and troubleshooting the FTP connection, Terminating

Page 80 highlights

Task Command Query a directory or file on the FTP server. ls [ remotefile [ localfile ] ] Delete the specified file on the FTP server permanently. Set the file transfer mode to ASCII. Set the file transfer mode to binary. Set the FTP operation mode to passive. Display the local working directory of the FTP client. Upload a file to the FTP server. Download a file from the FTP server. delete remotefile ascii binary passive lcd put localfile [ remotefile ] get 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. N/A By default, ASCII mode is used. By default, ASCII mode is used. By default, passive mode is used N/A N/A N/A Switching to another user account After you log in to the FTP server with one user account, you can switch to another user account to get a different privilege without reestablishing the FTP connection. You must correctly enter the new username and password. A wrong username or password can cause the FTP connection to disconnect. To switch to another user account: Task Change the username after FTP login. Command user username [ password ] Maintaining and troubleshooting the FTP connection Task Command Display the help information of FTP-related commands on the FTP server. remotehelp [ protocol-command ] Enable displaying detailed prompt information received from the server. verbose Enable FTP related debugging when the device acts as the FTP client. debugging Remarks N/A Enabled by default. Disabled by default. Terminating the FTP connection To terminate an FTP connection, perform one of the following tasks: 74

  • 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

74
Task
Command
Remarks
Query a directory or file on the
FTP server.
ls
[
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.
Delete the specified file on the
FTP server permanently.
delete
remotefile
N/A
Set the file transfer mode to
ASCII.
ascii
By default, ASCII mode is used.
Set the file transfer mode to
binary.
binary
By default, ASCII mode is used.
Set the FTP operation mode to
passive.
passive
By default, passive mode is used
Display the local working
directory of the FTP client.
lcd
N/A
Upload a file to the FTP server.
put
localfile
[
remotefile
]
N/A
Download a file from the FTP
server.
get
remotefile
[
localfile
]
N/A
Switching to another user account
After you log in to the FTP server with one user account, you can switch to another user account to get a
different privilege without reestablishing the FTP connection. You must correctly enter the new username
and password. A wrong username or password can cause the FTP connection to disconnect.
To switch to another user account:
Task
Command
Change the username after FTP login.
user
username
[
password
]
Maintaining and troubleshooting the FTP connection
Task
Command
Remarks
Display the help information of
FTP-related commands on the FTP server.
remotehelp
[
protocol
-
command
]
N/A
Enable displaying detailed prompt
information received from the server.
verbose
Enabled by default.
Enable FTP related debugging when the
device acts as the FTP client.
debugging
Disabled by default.
Terminating the FTP connection
To terminate an FTP connection, perform one of the following tasks: