You are responsible for file management. Table 31 shows the types of system files and their corresponding extensions.
Table 31: Types of System Files and Corresponding Extensions
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.
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 32 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 32: FTP Commands That the System Supports
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.
To rename files, use the rename command. Table 33 shows the types of files you can rename in different locations.
rename
- host1#rename boston1.cnf boston2.cnf
Table 33: File Types You Can Rename
Use the delete command to delete files in NVS. Table 34 shows the types of files you can delete in different locations.
delete
- host1#delete test-2.txt
- host1#
- host1#del test*.txt
- Delete disk0:test-1.txt? [confirm] -> press n
- disk0:test-1.txt: not deleted (per user request)
- Delete disk0:test-2.txt? [confirm] -> press y
- disk0:test-2.dmp: Deleted
- Deleted 1 file, matched 2 files
- host1#del test*.txt force
- disk0:test-1.txt: deleted
- disk0:test-2.txt: deleted
- Deleted 2 files, matched 2 files
- host1#del *.dmp force
- WARNING: The force option is ignored for this file type.
- Delete disk0:sample-1.dmp? [confirm] -> press
n
- disk0:sample-1.dmp: not deleted (per user request)
- Delete disk0:sample-2.dmp? [confirm] -> press
y
- disk0:sample-2.dmp: Deleted
- Deleted 1 file, matched 2 files
- host1#delete /outgoing/test.scr
Table 34: File Types You Can Delete
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
![]() |
Note: When you issue the dir command from Boot mode, a reduced set of file types is displayed. |
host1#dir Please wait.....
Active/standby file systems are synchronized.
unshared
file size size
------------------------------------------------ --------- ---------
disk0:/incoming <DIR> 0
disk0:/outgoing <DIR> 0
disk0:810beta13.cnf 280944 280944
disk0:800beta12.cnf 327011 327011
disk0:bng___1.txt 11092 11092
disk0:bng___2.txt 11092 11092
disk0:bng___3.txt 11092 11092
disk0:erx701rel.cnf 255400 255400
disk0:730beta19.cnf 283141 283141
disk0:730beta18.cnf 284503 284503
disk0:erx_8-0-0b0-24.cnf 327404 327404
disk0:7.3run.cnf 301635 301635
disk0:80beta_bce_backup.cnf 333228 333228
disk0:800beta5.cnf 300575 300575
disk0:820beta5.cnf 311616 311616
disk0:810beta16.cnf 297764 297764
disk0:SRP-10Ge_3_SC_08_22_2006_07_39.dmp 153268924 153268924
disk0:SRP-10Ge_3_SC_04_12_2007_09_47.dmp 182385184 182385184
disk0:reboot.hty 402368 402368
disk0:system.log 702 702
disk0:erx_9-0-0a1-7.rel 176128192 160912356
disk0:erx_8-1-0b1-2.rel 164065212 148633854
disk0:erx_8-2-0b1-5.rel 166117319 150685961
disk0:testing_cat.txt 21848 21848
standby-disk0:SRP-10Ge_1_SC_08_21_2006_13_48.dmp 153547479 153547479
standby-disk0:SRP-10Ge_1_SC_04_12_2007_10_04.dmp 194849368 194849368
standby-disk0:reboot.hty 123136 123136
standby-disk0:system.log 855 855
in
file date (UTC) use
------------------------------------------------ ------------------- ---
disk0:/incoming <DIR> 02/08/2008 15:06:42
disk0:/outgoing <DIR> 02/08/2008 15:06:42
disk0:810beta13.cnf 02/06/2007 15:13:44
disk0:800beta12.cnf 09/29/2006 16:31:54
disk0:bng___1.txt 02/12/2008 07:05:20
disk0:bng___2.txt 02/12/2008 07:05:28
disk0:bng___3.txt 02/12/2008 06:59:46
disk0:erx701rel.cnf 10/07/2005 13:01:02
disk0:730beta19.cnf 07/12/2006 07:21:22
disk0:730beta18.cnf 06/19/2006 15:23:46
disk0:erx_8-0-0b0-24.cnf 11/02/2006 12:23:38
disk0:7.3run.cnf 08/21/2006 11:19:52
disk0:80beta_bce_backup.cnf 10/04/2007 09:01:36
disk0:800beta5.cnf 01/02/2007 16:01:36
disk0:820beta5.cnf 05/09/2007 14:29:58
disk0:810beta16.cnf 03/15/2007 06:58:14
disk0:SRP-10Ge_3_SC_08_22_2006_07_39.dmp 08/22/2006 07:43:14
disk0:SRP-10Ge_3_SC_04_12_2007_09_47.dmp 04/12/2007 09:51:08
disk0:reboot.hty 01/09/2008 13:57:02
disk0:system.log 11/12/2007 09:56:14
disk0:erx_9-0-0a1-7.rel 10/04/2007 08:40:06 !
disk0:erx_8-1-0b1-2.rel 03/15/2007 06:50:32
disk0:erx_8-2-0b1-5.rel 05/09/2007 14:22:22
disk0:testing_cat.txt 03/13/2006 17:42:12
standby-disk0:SRP-10Ge_1_SC_08_21_2006_13_48.dmp 08/21/2006 13:51:42
standby-disk0:SRP-10Ge_1_SC_04_12_2007_10_04.dmp 04/12/2007 10:08:38
standby-disk0:reboot.hty 01/09/2008 13:53:10
standby-disk0:system.log 04/12/2007 09:47:24
Disk capacity
-------------
Capacity Free Reserved
Device (bytes) (bytes) (bytes)
-------------- ---------- --------- --------
disk0: 1054900224 167372414 68157440
standby-disk0: 1054900224 153330775 68157440
host1#dir *.txt Please wait.....
Active/standby file systems are synchronized.
unshared
file size size
------------------------------------------------ --------- ---------
disk0:bng___1.txt 11092 11092
disk0:bng___2.txt 11092 11092
disk0:bng___3.txt 11092 11092
in
file date (UTC) use
------------------------------------------------ ------------------- ---
disk0:bng___1.txt 02/12/2008 07:05:20
disk0:bng___2.txt 02/12/2008 07:05:28
disk0:bng___3.txt 02/12/2008 06:59:46
Disk capacity
-------------
Capacity Free Reserved
Device (bytes) (bytes) (bytes)
-------------- ---------- --------- --------
disk0: 1054900224 167372414 68157440
standby-disk0: 1054900224 153330775 68157440
host1#dir /incoming
unshared in
file size size date (UTC) use
------------- -------- -------- ------------------- ---
disk0:3-0-0a3-7.rel 256 0 12/19/2000 07:14:01
disk0:srp.exe 30012312 0 12/19/2000 07:14:12
disk0:srpIc.exe 1801208 0 12/19/2000 07:20:32
disk0:srpDiag.exe 6984222 0 12/19/2000 07:22:08
Disk capacity
-------------
Capacity Free Reserved
Device (bytes) (bytes) (bytes)
------ ---------- --------- --------
disk0: 220200960 120616448 36700160
host1#dir /outgoing
unshared in
file size size date (UTC) use
------------- -------- -------- ------------------- ---
disk0:test.scr 1204 0 12/18/2000 03:01:04
disk0:foo.scr 1278 1278 12/20/2000 04:02:12
Disk capacity
-------------
Capacity Free Reserved
Device (bytes) (bytes) (bytes)
------ ---------- --------- --------
disk0: 220200960 120616448 36700160
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
- host1#more erxconfig.txt
- host1#more standby:mysetup.mac
- host1#more fileserver1:/startup/scripts/myconfig.scr