User guide
Managing System Files Application Examples for File Management
OmniSwitch 7700/7800/8800 Switch Management Guide April 2006 page 2-31
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 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:
2 You must have a login and password that is recognized by the IP address you are logging into. 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 displays. This indicates
that you are in the Secure Shell FTP mode and must therefore use the Secure Shell FTP commands as
listed on page 2-22
.
3 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
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
287 boot.params
2048 certified
2048 working
64000 swlog1.log
64000 swlog2.log30 policy.cfg
2048 network
206093 cs_system.pmd
2048 LPS
2048 newssdir
256 random-seed