rename
Syntax
rename [ sourcePath]sourceFilename [ destinationPath]destinationFilename
Release Information
Command introduced before JunosE Release
7.1.0.
hostName and deviceName variables added in JunosE Release 7.2.0.
Description
Renames a local file. There is no no version.
 | Note:
You cannot change the extension of a file, for example,
from .mac to .scr. See Renaming Files in the JunosE System Basics Configuration Guide for
detailed information on file type usage with the rename command. |
Options
- sourcePath—Path to the source
in the format:
hostName: | deviceName: | /incoming/subdirectory/ | /outgoing/subdirectory/- hostName:—Name of the network
host
- deviceName:—Name of the device
specifying a flash card slot
- disk0—Specifies flash card slot 0 on the primary
SRP module; if no device is specified for the primary SRP module,
then disk0 is used
- disk1—Specifies flash card slot 1 on the primary
SRP module; source and destination file types must be .dmp; supported
only on the E120 router and the E320 router
- standby—Specifies flash card slot 0 on the standby
SRP module for backward compatibility
- standby-disk0—Specifies flash card slot 0 on the
standby SRP module
- standby-disk1—Specifies flash card slot 1 on the
standby SRP module; source and destination file types must be .dmp;
supported only on E120 and E320 routers
- incoming—Specifies the router’s incoming FTP
directory
- subdirectory—Name of a subdirectory
on the router’s FTP server. If the subdirectory does not exist,
the router creates it.
- outgoing—Specifies the router’s outgoing FTP
directory
- sourceFileName—File to rename
- destinationPath—Path to the
destination in the format:
networkPath | /incoming/subdirectory | /outgoing/subdirectory - networkPath—Path to the network
host
- incoming—Specifies the incoming router’s FTP
directory
- subdirectory—Name of a subdirectory
on the router’s FTP server. If the subdirectory does not exist,
the router creates it.
- outgoing—Specifies the router’s outgoing FTP
directory
- destinationFileName—New filename
Mode
Privileged Exec
Published: 2012-06-29