Use the set trace command to
Configure a device/terminal server for tracing
Display tracing information
Root privileges are required to execute the set trace command.
Enter the set trace command as shown below to configure tracing:
set trace [loghost=ip_addr]
[mask=type:severity] [mode={historical|concurrent}]
[state={on|off|dump}] [syslog={on|off}]
Enter the set trace command as shown below to display the status of tracing information:
set trace
|
Command Field |
Description |
|
loghost |
Specifies the IP address of a host to which trace messages should be sent. This host must be running the syslog daemon. |
|
mask=type:severity |
Specifies the type and nature of event that should be traced. type - is one of the following:
severity - is one of the following severity levels:
|
|
mode |
historical - means that all trace messages stored in the buffer may be displayed by issuing the following command: set trace state=dump. concurrent - means that all trace messages are printed to the administrative terminal when state=on. |
|
state |
on - means that all messages in the trace buffer are displayed. Once they are displayed, the state remains on. off - means that tracing off. dump - means that all messages in the trace buffer are displayed. Once they are displayed, the state returns to off. The default is off. |
|
syslog |
on - means that trace messages are sent to the host identified on the log-host field. off - means that trace messages are not sent to a host. The default is off. |
In this example, the set trace command displays current trace settings.
set trace
In this example, the set trace command configures tracing for ARP events.
set trace mask=arp:warning mode=historical state=dump