[Contents] [Prev] [Next] [Index] [Report an Error]


file rename

Syntax

file rename source destination 

Description

Rename a file on the local router.

Options

destination—New name for the file.

source—Original name of the file. For a routing matrix, the filename must include the chassis information.

Required Privilege Level

maintenance

Sample Output

user@host> file list /var/tmp
dcd.core
rpd.core
snmpd.core
user@host> file rename /var/tmp/dcd.core /var/tmp/dcd.core.990413
user@host> file list /var/tmp
dcd.core.990413
rpd.core
snmpd.core

Sample Output (routing matrix)

user@host> file list lcc0-re1:/var/tmp    
lcc0-re1:
--------------------------------------------------------------------------

/var/tmp:
.pccardd
sartre.conf         
snmpd               
syslogd.core-tarball.0.tgz
user@host> file rename lcc0-re0:/var/tmp/snmpd /var/tmp/snmpd.rr
user@host> file list lcc0-re1:/var/tmp
lcc0-re1:
--------------------------------------------------------------------------

/var/tmp:
.pccardd
sartre.conf         
snmpd.rr 
syslogd.core-tarball.0.tgz


[Contents] [Prev] [Next] [Index] [Report an Error]