Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

traceoptions (System Accounting)

Syntax

Hierarchy Level

Description

Define tracing operations for System Accounting.

Default

Trace options are not enabled by default.

Options

file filename—Name of the file in which Junos OS stores the accounting logs. By default, this is created under the /var/log directory.

files number—(Optional) Maximum number of trace files. When a trace file reaches the size specified by the size option, the filename is appended with 0 and compressed. For example, when trace file named trace-file-log reaches size <size>, it is renamed and compressed to trace-file-log.0.gz. When trace-file-log reaches size <size> or the second time, the trace-file-log.0.gz is renamed to trace-file-log.1.gz and trace-file-log is renamed and compressed to trace-file-log.0.gz. This renaming shceme ensures that the older logs to have a greater index number. When number of trace files reach <number> then the oldest file is deleted.

If you specify a maximum number of files, you also must specify a maximum file size with the size option and a filename.

  • Range: 2 through 1000 files

  • Default: 10

flag flag—Tracing operation to perform. You can include one or more of the following flags:

  • all—Trace all operations.

  • config—Trace configuration processing.

  • events—Trace accounting events and their processing.

  • radius—Trace RADIUS processing.

  • tacplus—Trace TACPLUS processing.

no-remote-trace—(Optional) Disable tracing and logging operations that track normal operations, error conditions, and packets that are generated by or passed through the Juniper Networks device.

no-world-readable—Restrict access to the trace files to the owner.

  • Default: no-world-readable

size size—(Optional) Maximum size of each trace file in bytes, kilobytes (KB), megabytes (MB), or gigabytes (GB). If you do not specify a unit, the default is bytes. If you specify a maximum file size, you also must specify a maximum number of trace files by using the files option and a filename by using the file option.

If you specify a maximum file size, you also must specify a maximum number of trace files with the files option.

  • Syntax: size to specify bytes, sizek to specify KB, sizem to specify MB, or sizeg to specify GB.

  • Range: 10 KB through 1 MB

  • Default: 128 KB

world-readable—Enable any user to access the trace files.

Required Privilege Level

admin—To view this statement in the configuration.

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

Release Information

Statement introduced in Junos OS Release 14.2.

tacplus option introduced in Junos OS Release 15.1.