traceoptions
traceoptions (individual interfaces)
Syntax
traceoptions {
flagflag<disable>;
}Hierarchy Level
[edit interfacesinterface-name]Description
Define tracing operations for individual interfaces.
To specify more than one tracing operation, include multiple
flagstatements.The interfaces
traceoptionsstatement does not support a trace file. The logging is done by the kernel, so the tracing information is placed in the systemsyslogfile in the directory/var/log.Default
If you do not include this statement, no interface-specific tracing operations are performed.
Options
disable—(Optional) Disable the tracing operation. You can use this option to disable a single operation when you have defined a broad group of tracing operations, such asall.
flag—Tracing operation to perform. To specify more than one tracing operation, include multipleflagstatements. The following are the interface-specific tracing options.
all—All interface tracing operationsevent—Interface eventsipc—Interface IPC messagesmedia—Interface media changesUsage Guidelines
See Trace Operations of the Interface Process.
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.traceoptions (interface process)
Syntax
traceoptions {
filefilename<sizesize> <filesnumber>;
}Hierarchy Level
Description
Define tracing operations for the interface process (
dcd).Default
If you do not include this statement, no interface-specific tracing operations are performed.
Options
filename—Name of the file to receive the output of the tracing operation. Enclose the name within quotation marks. All files are placed in the directory/var/log. By default, interface process tracing output is placed in the filedcd.
filesnumber—(Optional) Maximum number of trace files. When a trace file namedtrace-filereaches its maximum size, it is renamedtrace-file.0, thentrace-file.1, and so on, 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 also must specify a maximum file size with the
sizeoption.Range: 2 through 1,000
Default: 3 files
sizesize—(Optional) Maximum size of each trace file, in kilobytes (KB), megabytes (MB), or gigabytes (GB). When a trace file namedtrace-filereaches this size, it is renamedtrace-file.0.When thetrace-fileagain reaches its maximum size,trace-file.0is renamedtrace-file.1andtrace-fileis renamedtrace-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 file size, you also must specify a maximum number of trace files with the
filesoption.Syntax:
xkto specify KB,xmto specify MB, orxgto specify GB
Range: 10 KB through the maximum file size supported on your router
Default: 1 MBUsage Guidelines
See Trace Operations of the Interface Process.
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.traceoptions (VRRP)
Syntax
traceoptions {
file {
filenamefilename;
filesnumber;
sizesize;
(world-readable | no-world-readable);
}
flagflag;
}Hierarchy Level
Description
Define tracing operations for Virtual Router Redundancy Protocol (VRRP).
To specify more than one tracing operation, include multiple
flagstatements.By default, VRRP logs the error,
dcdconfiguration, and routing socket events in a file in the directory/var/log.Default
If you do not include this statement, no VRRP-specific tracing operations are performed.
Options
filenamefilename—Name of the file to receive the output of the tracing operation. Enclose the name within quotation marks. All files are placed in the directory/var/log. By default, interface process tracing output is placed in the filevrrpd.
filesnumber—(Optional) Maximum number of trace files. When a trace file namedtrace-filereaches its maximum size, it is renamedtrace-file.0, thentrace-file.1, and so on, 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 also must specify a maximum file size with the
sizeoption.Range: 2 through 1,000
Default: 3 files
flagflag—Tracing operation to perform. To specify more than one tracing operation, include multipleflagstatements. These are the VRRP-specific tracing options.
all—All VRRP tracing operationsdatabase—Database changesgeneral—General eventsinterfaces—Interface changesnormal—Normal eventspackets—Packets sent and receivedstate—State transitionstimer—Timer events
sizesize—(Optional) Maximum size of each trace file, in kilobytes (KB), megabytes (MB), or gigabytes (GB). When a trace file namedtrace-filereaches this size, it is renamedtrace-file.0.When thetrace-fileagain reaches its maximum size,trace-file.0is renamedtrace-file.1andtrace-fileis renamedtrace-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 file size, you also must specify a maximum number of trace files with the
filesoption.Syntax:
xkto specify KB,xmto specify MB, orxgto specify GB
Range: 10 KB through the maximum file size supported on your router
Default: 1 MB
world-readable | no-world-readable—Specifies whether any reader can read the log file.Usage Guidelines
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.