Supported Platforms
Related Documentation
- ACX, EX, M, MX, PTX, SRX, T Series
- Tracing Commit Script Processing
- Tracing Op Script Processing
traceoptions (Commit and Op Scripts)
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.4.
Statement introduced in Junos OS Release 9.0 for EX Series switches.
Description
Define tracing operations for commit or op scripts.
Default
If you do not include this statement, no script-specific tracing operations are performed.
Options
file filename | — | Name of the file to receive the output of the tracing
operation. All files are placed in the directory |
Default: Commit scripts: /var/log/cscript.log, Op scripts: /var/log/op-script.log
files number | — | (Optional) Maximum number of trace files. When a trace
file named 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
Default: 10 files
flag flag | — | Tracing operation to perform. To specify more than one tracing operation, include multiple flag statements. You can include the following flags:
|
no-world-readable | — | Restrict file access to owner. This is the default. |
size size | — | (Optional) Maximum size of each trace file, in kilobytes (KB),
megabytes (MB), or gigabytes (GB). When a trace file named If you specify a maximum file size, you also must specify a maximum number of trace files with the files option and a filename. |
Syntax: size to specify bytes, sizek to specify KB, sizem to specify MB, or sizeg to specify GB
Range: 10 KB through 1 GB
Default: 128 KB
world-readable | — | Enable unrestricted file access. |
Required Privilege Level
maintenance—To view this
statement in the configuration.
maintenance-control—To
add this statement to the configuration.
Related Documentation
- ACX, EX, M, MX, PTX, SRX, T Series
- Tracing Commit Script Processing
- Tracing Op Script Processing
Published: 2013-03-05
Supported Platforms
Related Documentation
- ACX, EX, M, MX, PTX, SRX, T Series
- Tracing Commit Script Processing
- Tracing Op Script Processing