Maintaining the Local File System
Use CLI commands to manage and maintain the devices that make up the local file system. Execute all the
commands described in this section in the Exec Mode. Unless otherwise specified, you must have security
administrator or administrator privileges to execute these commands.
For complete information about the commands listed below, see the
Exec Mode Commands
chapter of
the
Command Line Interface Reference
.
Important
File System Management Commands
Use the commands in this section to manage and organize the local file system.
Synchronizing the File System
Commands are supported for mirroring the local file systems from the active SMC to the standby SMC in
systems containing two cards. Use these commands to synchronize any or all of the local devices.
Crash log files are not synchronized when these commands are executed.
Important
The following command synchronizes the file systems between two SMCs:
[local]
host_name
#
filesystem synchronize { / flash | /pcmcia1 | all } [ checkonly ] [ from | to ] } [
-noconfirm ]
The following command synchronizes the file systems on two SMC /flash devices.
[local]
host_name
#
filsystem synchronize /flash
Creating Directories
Use the
mkdir
command to create a new directory on the specific local device. This directory can then be
incorporated as part of the path name for any file located in the local file system.
[local]
host_name
#
mkdir { /flash | /pcmcia1 | /hd-raid } /dir_name
Use the following command to create a directory named
configs
:
[local]
host_name
#
mkdir /flash/configs
Renaming Files and Directories
Use the
rename
command to change the name of a file from its original name to a different name. Remember
to use the same file extension, if applicable, to ensure that the file type remains unchanged.
[local]
host_name
#
rename { /flash | /pcmcia1 | /hd-raid } /src_filename { /flash | /pcmcia1 | /hd-raid }
/dst_filename [ -noconfirm ]
ASR 5000 System Administration Guide, StarOS Release 21.1
121
Software Management Operations
Maintaining the Local File System
Summary of Contents for ASR 5000
Page 26: ...ASR 5000 System Administration Guide StarOS Release 21 1 xxvi Contents ...
Page 316: ...ASR 5000 System Administration Guide StarOS Release 21 1 288 VLANs VLAN Related CLI Commands ...
Page 400: ...ASR 5000 System Administration Guide StarOS Release 21 1 372 Engineering Rules ECMP Groups ...