Secure Copy An Existing File; Move An Existing File Or Directory - Alcatel-Lucent OmniSwitch AOS Release 6 Manual

Omniswitch series
Table of Contents

Advertisement

Managing System Files

Secure Copy an Existing File

Use the
scp
command to copy an existing file in a secure manner. You can specify the path and filename
for the original file being copied as well as the path and filename for a new copy being created. If no path
is specified, the command assumes the current directory. If SCP is not enabled on the switch, use the
scp-sftp
command to enable it. The following syntax copies all of the image files in the working directory
from a remote switch 172.17.11.13 to the local working directory:
-> scp admin@172.17.11.13:/flash/working/*.img /flash/working
admin's password for keyboard-interactive method:
This second example helps copy all the image files from the user's current working directory to the remote
switch's working directory. A copy of all the image files will appear in the /flash/working directory of the
remote switch 172.17.11.13, once the following command is executed.
-> scp /flash/working/*.img admin@172.17.11.13:/flash/working
admin's password for keyboard-interactive method:
Note. The scp command prompts you to enter the admin password. On entering the admin password, the
names and the path of the files being copied will be displayed. SCP is not supported between OmniSwitch
and Windows in the current release.
Note. You must have write privileges in order to execute the

Move an Existing File or Directory

The
move
and
mv
commands have the same function and use the same syntax. Use these commands to
move an existing file or directory to another location. You can specify the path and name for the file or
directory being moved. If no path is specified, the command assumes the current path. You can also
specify a path and a new name for the file or directory being moved. If no name is specified, the existing
name will be used.
Note. Your login account must have write privileges to use the
Certified Directory
(Files)
OmniSwitch AOS Release 6 Switch Management Guide
Flash Directory
Working Directory
(Files)
scp
command.
move
or
mv
Network Directory
(File)
policy.cfg
July 2010
File and Directory Management
command.
Testfiles Directory
(File)
testfile2
page 1-15

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omniswitch aos 6

Table of Contents