The routing system can optionally log information about errors and events. Logging is configured for each protocol or globally. Logging is not generally turned on during normal operations, as it can decrease performance. Log messages are saved in the /var/log/routed.log.*
files.
For detailed example instructions, see these procedures:
To enable Trace options:
Note - When the trace file reaches the specified size, it is renamed to file.0
, then file
.1
, file.2
.
If you want to enable tracing of a specific routing option for all protocols, in the Global options table, select that option. If you want to enable tracing of all routing options for all protocols, in the Global options table, select All.
For an explanation of each trace option, see the Description of Trace Options.
You can see the most recent trace log messages in the /var/log/routed.log
log file.
To monitor a Trace options:
The log messages show.
Before you configure the routing trace options, you can configure the log file size and the maximal number of log files.
To configure the log file options:
Run these commands:
set tracefile maxnum {
<num> | default}
set tracefile size {
<size_MB> | default}}
Parameter |
Description |
---|---|
|
Maximal number of log files - a number between |
|
Maximal size of the log file, in MB - a number between |
To configure the routing trace options:
Run this command:
set trace {bfd | bgp | bootp | cluster | dhcp6relay | global | icmp | igmp | ip-reachability-detection | iphelper | kernel | mfc | ospf | ospf3 | pbr | pim | rip | ripng | router-discovery | router-discovery6 | vrrp | vrrp6}
<protocol-specific event option> {on | off}
To configure the protocol-specific event options:
set trace global {adv | all | cluster | general | normal | parse | policy | route | state | task | timer} {on | off}
set trace kernel {all | cluster | iflist | interface | general | normal | packets | policy | remnants | request | route | routes | state | task | timer} {on | off}
set trace ospf {ack | all | cluster | dd | dr | general | hello | lsa | normal | packets | policy | request | route | spf | state | task | timer | trap | update} {on | off}
set trace ospf3 {ack | all | cluster | dd | dr | general | hello | lsa | normal | packets | policy | request | route | spf | state | task | timer | trap | update} {on | off}
set trace bgp {all | cluster | general | keepalive | normal | open | packets | policy | route | state | task | timer | update} {on | off}
set trace cluster all {on | off}
set trace pim {all | assert | bootstrap | cluster | crp | general | graft | hello | join | normal | mfc | mrt | packets | policy | refresh | register | route | rp | state | task | timer | trap} {on | off}
set trace igmp {all | cluster | general | group | leave | mtrace | normal | packets | policy | query | report | request | route | state | task | timer} {on | off}
set trace bootp {all | cluster | general | normal | packets | policy | request | response | route | state | task | timer} {on | off}
set trace dhcp6relay {all | cluster | general | normal | packets | policy | reply | request | route | state | task | timer} {on | off}
set trace icmp {all | cluster | error | general | info | normal | packets | policy | route | router-discovery | state | task | timer} {on | off}
set trace router-discovery {all | cluster | general | normal | policy | route | state | task | timer} {on | off}
set trace router-discovery6 {all | cluster | general | normal | policy | route | state | task | timer} {on | off}
set trace ip-reachability-detection {all | cluster | general | normal | packets | policy | route | state | task | timer} {on | off}
set trace bfd {address | all | auth | cluster | general | normal | policy | route | state | task | timer} {on | off}
set trace iphelper {all | cluster | general | normal | packets | policy | route | state | task | timer} {on | off}
set trace vrrp {advertise | all | cluster | general | normal | policy | route | state | task | timer} {on | off}
set trace vrrp6 {advertise | all | cluster | general | normal | policy | route | state | task | timer}{on | off}
set trace pbr {all | general | normal | policy | route | rule | state | table | task | timer | cluster} {on | off}
set trace mfc {all | alerts | cache | cluster | general | interface | mcastdist | normal | packets | policy | resolve | route | state | task | timer | wrongif} {on | off}
set trace rip {all | general | normal | packets | policy | route | state | task | timer | cluster} {on | off}
set trace ripng {all | general | normal | packets | policy | route | state | task | timer | cluster} {on | off}
Notes: