
Managing System Files File and Directory Management
OmniSwitch 6250/6450 Switch Management Guide May 2012 page 1-17
Managing Files on Switches
On OmniSwitch stackable switches, you can copy a file from a non-primary switch to the primary switch
in a stack using the rcp command. To use this command, enter rcp followed by the slot number of the
non-primary switch, the path and file name of the source file on the non-primary switch, and the destina-
tion file name on the primary switch.
For example, to copy the boot.params file to the /flash directory on Switch 4 in a stack to the primary
switch and name it boot.params.bak, enter:
-> rcp 4:/flash/file.txt file.txt
On OmniSwitch chassis-based switches, you can copy a file from a secondary management module to a
primary management module or from a primary management module to a secondary management module
with the rcp command. To use this command enter rcp followed the secondary management module of
the switch, the path and file name of the source file on the secondary management module of the switch,
and the destination file name on the primary management module of the switch.
For example, to copy the boot.params file to the /flash directory on primary management module in a
switch and name it boot.params.bak enter:
-> rcp cmm-b: /flash/boot.params boot.params.bak
To delete a file on a secondary management module of the non-primary switch, use the rrm command. To
use this command, enter rrm followed by the path and file name of the file on the secondary management
module of the non-primary switch to be deleted.
For example, to delete the boot.params file in the /flash directory on a secondary management module of
the non-primary switch, enter:
-> rrm 4 /flash/boot.params
To list the directory contents of a secondary management module of the non-primary switch, use the rls
command by entering rls, followed by the path name of the directory you want to display. (As an option,
you can also specify a specific file name to be displayed.)
For example, to display the contents of the /flash directory on a secondary management module non-
primary switch, enter:
-> rls 4 /flash
A screen similar to the following will be displayed:
-rw 327 Sep 13 16:46 boot.params
drw 1024 Sep 13 16:46 certified/
drw 1024 Sep 13 16:45 working/
-rw 64000 Sep 13 16:46 swlog1.log
-rw 64000 Sep 8 21:24 swlog2.log
drw 1024 Sep 13 16:45 switch/
drw 1024 Sep 10 17:34 network/
-rw 256 Sep 13 16:41 random-seed
drw 1024 Jun 22 1986 tk.dir/
Comentarios a estos manuales