
Managing System Files Application Examples for File Management
OmniSwitch 6250/6450 Switch Management Guide May 2012 page 1-33
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.
1 Log on to the switch and issue the sftp 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 scp-sftp command to enable it.
You can use the sftp6 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. SFTPv6 sessions are supported. It is mandatory to specify the name of the particular IPv6 interface,
if the SFTPv6 server has been specified using its link-local address.
2 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 page 1-24
.
3 Use the ls command to display the contents of the target OmniSwitch 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
4 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
5 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
Comentarios a estos manuales