traceoptions (Traffic Load Balancer)
Syntax
traceoptions {
file file-name <files number> <no-word-readable | world-readable> <size size>;
flag flag;
level (all | critical | error | info | notice | verbose | warning);
monitor monitor-object-name {
instance-name instance-name;
virtual-svc-name virtual-service-name;
}
no-remote-trace;
}
Hierarchy Level
[edit services traffic-load-balance]
Description
Enabling tracing can adversely impact scale and performance and may increase security risk. We strongly recommend using the trace, tracing, or traceoptions commands only under the guidance of a JTAC support engineer. After collecting the debug information, immediately disable tracing to minimize risk and restore normal system performance.
Configure tracing options for the traffic load balancer.
Options
For Next Gen Services on the MX-SPC3 services card, set the monitor-object-name to either:
| file file-name | Name of the file to receive the output of the tracing operation. |
|||||||||||||||||||||||||||
| files number | (Optional) Maximum number of trace files. When a trace file named trace-file reaches its maximum size, it is renamed trace-file.0, then trace-file.1, and so on, until the maximum number of trace files is reached. Then the oldest trace file is overwritten.
|
|||||||||||||||||||||||||||
| flag flag | Specify which operations you want to trace from Table 1. To specify more than one operation, include multiple flag statements.
|
|||||||||||||||||||||||||||
| instance-name instance-name | (Optional) Name of the TLB instance to monitor. |
|||||||||||||||||||||||||||
| level | Use the specified level of tracing. You can specify any of the following levels:
These trace levels are available for both the MS-MPC and MX-SPC3 services cards unless otherwise specified. |
|||||||||||||||||||||||||||
| monitor monitor-object-name | Name of a monitoring object that contains an instance name or virtual service name. |
|||||||||||||||||||||||||||
| no-remote-trace | (Optional) Disable remote tracing. |
|||||||||||||||||||||||||||
| no-world-readable | (Optional) Disable unrestricted file access. |
|||||||||||||||||||||||||||
| group-name | Name of the group. |
|||||||||||||||||||||||||||
| real-services-name | Name of the real service |
|||||||||||||||||||||||||||
| size size | (Optional) Use the maximum size of each trace file, in kilobytes (KB) or megabytes (MB). When a trace file named trace-file reaches this size, it is renamed trace-file.0. When the trace-file again reaches its maximum size, trace-file.0 is renamed trace-file.1 and trace-file is renamed trace-file.0. This renaming scheme continues until the maximum number of trace files is reached. Then, the oldest trace file is overwritten. If you specify a maximum number of files, you must also specify a maximum file size with the size option.
|
|||||||||||||||||||||||||||
| virtual-svc-name virtual-service-name | (Optional) Name of the virtual service to monitor. |
|||||||||||||||||||||||||||
| word-readable | (Optional) Enable unrestricted file access. |
Required Privilege Level
trace and interface—To view this statement in the configuration.
trace-control and interface-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 16.1.
instance-name and virtual-service-name options added in Junos OS Release 16.1R6 and 18.2R1 on MX Series.
Support for Next Gen Services MX-SPC3 services card add in Junos OS Release 19.3R2.