Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Monitoring the List of Files Residing in Nonvolatile Storage

    Purpose

    Shows a list of files in NVS. You can specify a directory path, a local filename, a local device name, or some combination of these to view any local files or directories. You can include an asterisk (*) at any position in a specified filename as a wildcard. The asterisk substitutes for zero or more characters in the name. You cannot use a wildcard in a path.

    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.
    • Bulk statistics .sts files are stored in volatile storage on a RAM disk, and are displayed only when bulkstats is configured.
    • When you issue the dir command from Boot mode, a reduced set of file types is displayed.
    • You cannot use the dir command on a network device.

    Action

    To show a list of files in NVS:

    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

    To show a list of files of a specific extension:

    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

    To show a list of files in the incoming directory:

    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

    To show a list of files in the outgoing directory:

    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

    Meaning

    Table 1 lists the dir command output fields.

    Table 1: dir Output Fields

    Field Name

    Field Description

    file

    Name of the file or directory (DIR indicates a directory)

    size

    Physical size of the file

    unshared size

    Size of the file in user space:

    • Value of zero indicates that this file has been installed onto the system space and that there is a link to this file.
    • Value other than zero indicates that the file has not been installed onto the system space and equals the physical size of the file.

    date

    Date that the file was created

    in use

    An exclamation point (!) indicates that the system is using this file

    Published: 2014-08-12