Documentation
Name
bgp options msg-monitor - activate the recording of BGP messages
Synopsis
msg-monitor <output-file>
Arguments
- output-file
- the trace output file
Description
This command activates the recording of exchanged BGP messages. The messages are written in the specified output-file. If the file does not exist, it is created. If it already exists, the file is overwritten. The BGP messages are written in MRTd format. Each message is prefixed with the IP address of the router that received the message. It should therefore be easy to extract messages sent to a specific destination using the first field. Existing MRT analysis script can then directly be used with the MRTD output.
Output format for an UPDATE message:
dest-ip|BGP4|time|A|peer-ip|peer-as|prefix|as-path|origin|next-hop|local-pref|med|communities
Output format for a WITHDRAW message:
dest-ip|BGP4|time|W|peer-ip|peer-as|prefix
Example:
0.2.0.0|BGP4|0.00|A|0.1.0.0|1|0.1.0.0/16|1|IGP|0.1.0.0|100|0|