Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show system directory-usage

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show system directory-usage 
<depth number>
<path>             

Syntax (EX Series)

content_copy zoom_out_map
show system directory-usage
<all-members>
<depth number>
<local>
<member member-id> 
<path>

Syntax (TX Matrix Router)

content_copy zoom_out_map
show system directory-usage
<all-chassis | all-lcc | lcc number | scc> 
<depth number>
<path> 

Syntax (TX Matrix Plus Router)

content_copy zoom_out_map
show system directory-usage 
<all-chassis | all-lcc | lcc number | sfc number> 
<depth number>
<path>             

Syntax (MX Series Router)

content_copy zoom_out_map
show system directory-usage
<all-members>
<depth number>
<local>
<member member-id> 
<path>

Syntax (QFX Series and OCX Series)

content_copy zoom_out_map
show system directory-usage
<depth number>
<path>
<infrastructure name>
<interconnect-device name>
<node-group name>

Description

Display directory usage information.

Options

none

Display all directory usage information.

all-chassis

(TX Matrix routers and TX Matrix Plus routers only) (Optional) Display directory usage information about all the T640 routers (in a routing matrix based on a TX Matrix router). Display directory usage information about all the T1600 or T4000 routers (in a routing matrix based on a TX Matrix Plus router) in the chassis.

all-lcc

(TX Matrix routers and TX Matrix Plus routers only) (Optional) On a TX Matrix router, display directory information for all T640 routers (or line-card chassis) connected to the TX Matrix router. On a TX Matrix Plus router, display directory information for all connected T1600 or T4000 LCCs.

all-members

(EX4200 switches and MX Series routers only) (Optional) Display directory information for all members of the Virtual Chassis configuration.

depth number

(Optional) Depth of the directory to traverse. This option is useful when you want to limit the output shown for a large file system.

infrastructure name

(QFabric systems only) (Optional) Display directory information for the fabric control Routing Engines and fabric manager Routing Engines.

interconnect-device name

(QFabric systems only) (Optional) Display directory information for the Interconnect device.

node-group name

(QFabric systems only) (Optional) Display directory information for the Node group.

lcc number

(TX Matrix routers and TX Matrix Plus routers only) (Optional) On a TX Matrix router, display directory information for a specific T640 router that is connected to the TX Matrix router. On a TX Matrix Plus router, display directory information for a specific router that is connected to the TX Matrix Plus router.

Replace number with the following values depending on the LCC configuration:

  • 0 through 3, when T640 routers are connected to a TX Matrix router in a routing matrix.

  • 0 through 3, when T1600 routers are connected to a TX Matrix Plus router in a routing matrix.

  • 0 through 7, when T1600 routers are connected to a TX Matrix Plus router with 3D SIBs in a routing matrix.

  • 0, 2, 4, or 6, when T4000 routers are connected to a TX Matrix Plus router with 3D SIBs in a routing matrix.

local

(EX4200 switches and MX Series routers only) (Optional) Display directory information for the local Virtual Chassis member.

member member-id

(EX4200 switches and MX Series routers only) (Optional) Display directory information for the specified member of the Virtual Chassis configuration. For EX4200 switches, replace member-id with a value from 0 through 9. For an MX Series Virtual Chassis, replace member-id with a value of 0 or 1.

path

(Optional) Path or root directory to traverse.

scc

(TX Matrix router only) (Optional) Display directory information for the TX Matrix router (or switch-card chassis).

sfc number

(TX Matrix Plus routers only) (Optional) Display directory information for the TX Matrix Plus router. Replace number with 0.

Required Privilege Level

view

Output Fields

Table 1 describes the output fields for the show system directory-usage command. Output fields are listed in the approximate order in which they appear.

Table 1: show system directory-usage Output Fields

Field Name

Field Description

bytes

Number of bytes used by files in a directory.

directory-name

Name of the directory.

Sample Output (Junos OS)

show system directory-usage scc (TX Matrix Router)

content_copy zoom_out_map
user@host> show system directory-usage /var/tmp
scc             
          /var/tmp
1.0K      /var/tmp/vi.recover
2.0K      /var/tmp/instmp.tPMk8u
1.0K      /var/tmp/install
          /var/tmp/instmp.GUMpur
4.8M      /var/tmp/instmp.GUMpur/packages
6.4M      /var/tmp/troy1
297M      /var/tmp/dsw
          /var/tmp/pkg_tmp.2073
83K       /var/tmp/pkg_tmp.2073/bin
          /var/tmp/instmp.oMIDbl
89K       /var/tmp/instmp.oMIDbl/bin
          /var/tmp/instmp.byhMjR
4.6M      /var/tmp/instmp.byhMjR/packages
          /var/tmp/instmp.6fqHf3
1.7M      /var/tmp/instmp.6fqHf3/packages
          /var/tmp/instmp.mljECe
4.6M      /var/tmp/instmp.mljECe/packages

show system directory-usage sfc (TX Matrix Plus Router)

content_copy zoom_out_map
user@host show system directory-usage /var/tmp
sfc 0             
sfc0-re0:
--------------------------------------------------------------------------
          /var/tmp
46K       /var/tmp/gres-tp
          /var/tmp/sec-download
2.0K      /var/tmp/sec-download/sub-download
2.0K      /var/tmp/vi.recover
2.0K      /var/tmp/install
795M      /var/tmp/cores
766K      /var/tmp/pr440594

show system directory-usage (QFX Series and OCX Series)

content_copy zoom_out_map
user@host> show system directory-usage
          /var/tmp
30K       /var/tmp/gres-tp
2.0K      /var/tmp/rtsdb
2.0K      /var/tmp/vi.recover
2.0K      /var/tmp/install
2.0K      /var/tmp/pics

show system directory-usage (Relative Directory)

In this example, example_dir is a directory inside /var/tmp/, and the user ran this command inside /var/tmp/:

content_copy zoom_out_map
user@host> show system directory-usage example_dir
          example_dir
4.0K      example_dir/test_dir

Sample Output (Junos OS Evolved)

show system directory-usage (Relative Directory)

In this example, example_dir is a directory inside /var/tmp/, and the user ran this command inside /var/tmp/:

content_copy zoom_out_map
user@host> show system directory-usage example_dir
          /var/tmp/example_dir
4.0K      /var/tmp/example_dir/test_dir

Release Information

Command introduced before Junos OS Release 7.4.

sfc option introduced for the TX Matrix Plus router in Junos OS Release 9.6.

footer-navigation