Managing Files

You are responsible for file management. Table 33 shows the types of system files and their corresponding extensions.

Table 33: Types of System Files and Corresponding Extensions

Type of File

Extension

Description

Configuration

*.cnf

Snapshot of the system’s configuration

Core dump

*.dmp

File you can create for troubleshooting if a module fails

History

*.hty (reboot.hty)

Details of when and why modules rebooted

Log

*.log

A series of messages that describe events that occurred on the system

Macro

*.mac

A macro program

Release

*.rel

Software releases you can install in the system

Script

*.scr

A sequence of CLI commands. When you run a script file, the system executes the commands as though they were entered at the terminal

Secure Shell (SSH) Server public key

*.pub

Host key for the SSH server

Statistics

*.sts

Bulk statistics created when you run the bulkstats commands

Text

*.txt

Text file

System files may reside in four locations:

The system space contains files for system operation. For example, the current software configuration is stored in the system space.

The user space is reserved for FTP server operations and has the typical directory structure of a secure FTP server. The root or top level directory is a read-only directory that contains two subdirectories:

Users can transfer files through FTP to the user space from a network host and vice versa. However, users cannot access the system space through FTP. To install a file from the user space to the system space, use the copy command. For detailed information about transferring files between locations, see Transferring Files.

To conserve NVS and minimize the installation time, files are not stored in both the system space and the user space. When you issue the copy command to install a file from user space to system space, the E Series router establishes a link to the file, but does not make a physical copy.

Managing the User Space from a Network Host

If you enable the system’s FTP server (see Configuring the FTP Server), you can manage files on the user space from an FTP client on a network host. Table 34 lists the FTP protocol commands that the E Series router supports. Whether you can perform these functions on the user space depends on the features that the FTP client offers.

Table 34: FTP Commands That the System Supports

FTP Command

Function

HELP

List supported commands.

USER

Verify username.

PASS

Verify password for the user.

QUIT

Quit the session.

LIST

List contents of a directory.

NLST

List directory contents using a concise format.

RETR

Retrieve a file.

STOR

Store a file.

CWD

Change working directory.

CDUP

Change working directory to parent.

TYPE

Change the data representation type.

PORT

Change the port number.

PWD, XPWD

Get the name of current working directory.

STRU

Change file structure settings (only stream mode supported).

MODE

Change file transfer mode (only stream mode supported).

PASV

Make the server listen on a port for data connection.

NOOP

Do nothing.

DELE

Delete a file.

MKD, XMKD

Make directory.

RMD, XRMD

Remove directory.

RNFR

Rename from.

RNTO

Rename to.

File Commands and FTP Servers

Commands—copy, configure file, and macro—that invoke a remote FTP server take place in the context of the current virtual router rather than the default virtual router. You must configure the remote FTP server so that any traffic destined for the virtual router can reach the virtual router; typically, you configure the FTP server to reach the default address of the system, which will always be able to reach the virtual router.

Renaming Files

To rename files, use the rename command. Table 35 shows the types of files you can rename in different locations.

rename

Deleting Files

Use the delete command to delete files in NVS. Table 36 shows the types of files you can delete in different locations.

delete

Monitoring Files

Use the dir command to view files in NVS.

Note: When high availability is enabled on the router, it is possible that files or file attributes may appear unsynchronized when they are not. When enabled, high availability mirrors configuration changes instantly from the active SRP to the standby SRP. However, although these changes are reflected immediately in memory, the standby SRP NVS is updated at 5 minute intervals.

dir

Viewing Files

Use the more command to display the contents of a macro, script, or text file. The file can reside in NVS on the primary SRP module, in NVS on the redundant (standby) SRP module, or on a remote server that you access using FTP.

more