Alcatel-Lucent 6850-48 补充手册

下载
页码 312
Application Examples for File Management
Managing System Files
page 1-34
OmniSwitch AOS Release 6 Switch Management Guide
September 2009
Creating a File Directory Using Secure Shell FTP
The following example describes the steps necessary to create a directory on a remote OmniSwitch and to 
transfer a file into the new directory by using Secure Shell FTP.
Log on to the switch and issue the 
 CLI command with the IP address for the device you are 
connecting to. The following command establishes a Secure Shell FTP interface from the local 
OmniSwitch to another OmniSwitch at IP address 10.222.30.125.
-> sftp 10.222.30.125
login as:
Note. If SFTP is not enabled, use the
command to enable it.
You can use the 
 command followed by the IPv6 address or hostname of the SFTPv6 server to start 
an SFTPv6 session over an IPv6 environment. For example:
-> sftp6 fe80::a00:20ff:fea8:8961 int1
login as:
Note. It is mandatory to specify the name of the particular IPv6 interface, if the SFTPv6 server has been 
specified using its link-local address. 
You must have a login and password that is recognized by the IP address you are logging in to. When 
you enter your login, the device will request your password. Here, the login “rrlogin2” is used, the system 
requests a password.
-> sftp 10.222.30.125
login as: rrlogin2
rrlogin2's password for keyboard-interactive method:
Once the correct password is given and the login is completed, the sftp> prompt is displayed. This indi-
cates that you are in the Secure Shell FTP mode and must, therefore, use the Secure Shell FTP commands 
as listed on 
.
Use the ls command to display the contents of the target OmniSwitch’s directory.
sftp> ls
287 boot.params
2048 certified
2048 working
64000 swlog1.log
64000 swlog2.log30 policy.cfg
2048 network
206093 cs_system.pmd
2048 LPS
256 random-seed
Use the mkdir command to create a new directory entitled “newssdir” in the target OmniSwitch. 
Remember you must specify the path for the new directory as follows:
sftp> mkdir /flash/newssdir
Use the ls command again to list the contents of the current (flash) directory. Note that the “newssdir” 
directory appears toward the bottom of the following list.
sftp> ls