Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

store

Syntax

Hierarchy Level

Description

Store exception data in a file or database.

The on-box collector is disabled by default.

To enable the on-box collector for forwarding exceptions and store the exception data in a file, configure the following:

For forwarding exceptions, you must also configure inline-monitoring services to create the IPFIX records used to carry the exception data; see Understand Juniper Resiliency Interface.

To enable the on-box collector for routing and kernel exceptions and store the telemetry key-value-pair exception data in a file, configure the following:

Default

database

Options

database

Store exceptions data in the on-box SQLite database, in the /var/db directory. You can copy this database to a remote server and issue SQL commands using the SQLite command line interface.

Starting in Release 22.2R1, you can only configure one place to store your exception data, either in the database or in a file on the device. You cannot store data in both places. If you configure both the database statement and the file or fwding-file statement, you won't be able to commit the configuration.

file file-name

Use the specified file to receive the telemetry exceptions data. All files are placed in the directory /var/log. The files are also archived in the same way as trace logs.

Starting in Release 22.2R1, you can only configure one place to store your exception data, either in the database or in a file on the device. You cannot store data in both places. If you configure both the database statement and the file statement, you won't be able to commit the configuration.

files files

(Optional) Use the specified maximum number of files to create before overwriting the oldest one. If you specify a maximum number of files, you also must specify a maximum file size with the size option.

  • Default: 3 files

  • Range: 2 through 1000 files

fwding-file file-name

Use the specified file to receive the forwarding IPFIX exceptions data. All files are placed in the directory /var/log. The files are also archived in the same way as trace logs.

Starting in Release 22.2R1, you can only configure one place to store your exception data, either in the database or in a file on the device. You cannot store data in both places. If you configure both the database statement and the fwding-file statement, you won't be able to commit the configuration.

no-world-readable

(Default) Disable unrestricted file access. This means the exceptions file can be accessed only by the user who configured the exceptions operation.

world-readable

(Optional) Enable unrestricted file access.

size size

(Optional) Use the specified maximum size of each file. By default, the number entered is treated as bytes. Alternatively, you can include a suffix to the number to indicate kilobytes (KB), megabytes (MB), or gigabytes (GB). If you specify a maximum file size, you also must specify a maximum number of files with the files option.

  • Range: 10 KB through 1 GB

  • Default: 128 KB

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 21.2R1 for MX Series routers.

Statement introduced in Junos Evolved OS Release 22.2R1 for PTX Series routers.