]> git.proxmox.com Git - mirror_iproute2.git/blame - man/man8/rtmon.8
update kernel headers based on net-next 3.21
[mirror_iproute2.git] / man / man8 / rtmon.8
CommitLineData
30b2a29f
SH
1.TH RTMON 8
2.SH NAME
3rtmon \- listens to and monitors RTnetlink
4.SH SYNOPSIS
5.B rtmon
6.RI "[ options ] file FILE [ all | LISTofOBJECTS ]"
7.SH DESCRIPTION
8This manual page documents briefly the
9.B rtmon
10command.
11.PP
12.B rtmon
13listens on
14.I netlink
15socket and monitors routing table changes.
16
17.I rtmon
18can be started before the first network configuration command is issued.
19For example if you insert:
20
21.B rtmon file /var/log/rtmon.log
22
23in a startup script, you will be able to view the full history later.
24Certainly, it is possible to start rtmon at any time. It prepends the history with the state snapshot dumped at the moment of starting.
25
26.SH OPTIONS
27.I rtmon supports the following options:
28.TP
29.B \-Version
30Print version and exit.
31.TP
32.B help
33Show summary of options.
34.TP
35.B file FILE [ all | LISTofOBJECTS ]
36Log output to FILE. LISTofOBJECTS is the list of object types that we
37want to monitor. It may contain 'link', 'address', 'route'
38and 'all'. 'link' specifies the network device, 'address' the protocol
39(IP or IPv6) address on a device, 'route' the routing table entry
40and 'all' does what the name says.
41.TP
42.B \-family [ inet | inet6 | link | help ]
43Specify protocol family. 'inet' is IPv4, 'inet6' is IPv6, 'link'
44means that no networking protocol is involved and 'help' prints usage information.
45.TP
46.B \-4
47Use IPv4. Shortcut for -family inet.
48.TP
49.B \-6
50Use IPv6. Shortcut for -family inet6.
51.TP
52.B \-0
53Use a special family identifier meaning that no networking protocol is involved. Shortcut for -family link.
54.SH USAGE EXAMPLES
55.TP
56.B # rtmon file /var/log/rtmon.log
57Log to file /var/log/rtmon.log, then run:
58.TP
59.B # ip monitor file /var/log/rtmon.log
60to display logged output from file.
61.SH SEE ALSO
62.BR ip (8)
63.SH AUTHOR
64.B rtmon
65was written by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.
66.PP
67This manual page was written by Michael Prokop <mika@grml.org>,
68for the Debian project (but may be used by others).