Alcatel Carrier Internetworking Solutions omniswitch User Manual

Page of 260
File and Directory Management
Managing System Files
page 2-16
OmniSwitch 6600 Family Switch Management Guide
March 2005
Change File Attribute and Permissions
 and 
 commands have the same function and use the same syntax. Use these commands 
to change read-write privileges for the specified file. The following syntax sets the privilege for the 
config1.txt file to read-write. In this example, the user’s current directory is the /flash file directory.
Note. You must have read-write privileges to a file to change that file’s privileges. 
To set the permission for the config1.txt file to read-only, use the following syntax.
-> chmod -w /flash/config1.txt
To set the permission for the config1.txt file to read/write, use the following syntax.
-> chmod +w /flash/config1.txt
Delete an Existing File
The delete command deletes an existing file. If you use th
 command from the directory containing 
the file, you do not need to specify a path. If you are in another directory, you must specify the path and 
name for the file being deleted. The user of this command must have write privileges for any file being 
deleted.
-> delete /flash/config.txt
Managing Files on Non Primary Switches
You can copy a file from a non primary switch to the primary switch in a stack with the 
use this command enter rcp followed the slot number of the non primary switch, the path and file name of 
the source file on the non primary switch, and the destination file name on the primary switch.
For example, to copy the boot.params file the /flash directory on Switch 4 in a stack to the primary 
switch and name it boot.params.bak enter:
-> rcp 4 /flash/boot.params boot.params.bak
To delete a file on a non primary switch use the 
 command. To use this command enter rrm followed 
by the slot number of the non primary switch and the path and file name of the file on the non primary 
switch to be deleted.
For example, to delete the boot.params file in the /flash directory on Switch 4 enter:
-> rrm 4 /flash/boot.params
To list the directory contents of a non primary switch use the 
 command by entering rls followed by the 
slot number of the non primary switch and 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 /working directory on Switch 4 enter:
-> rls 4 /working