Blame man/man8/rtmon.8

Packit Service 3880ab
.TH RTMON 8
Packit Service 3880ab
.SH NAME
Packit Service 3880ab
rtmon \- listens to and monitors RTnetlink
Packit Service 3880ab
.SH SYNOPSIS
Packit Service 3880ab
.B rtmon
Packit Service 3880ab
.RI "[ options ] file FILE [ all | LISTofOBJECTS ]"
Packit Service 3880ab
.SH DESCRIPTION
Packit Service 3880ab
This manual page documents briefly the
Packit Service 3880ab
.B rtmon
Packit Service 3880ab
command.
Packit Service 3880ab
.PP
Packit Service 3880ab
.B rtmon
Packit Service 3880ab
listens on
Packit Service 3880ab
.I netlink
Packit Service 3880ab
socket and monitors routing table changes.
Packit Service 3880ab
Packit Service 3880ab
.I rtmon
Packit Service 3880ab
can be started before the first network configuration command is issued.
Packit Service 3880ab
For example if you insert:
Packit Service 3880ab
Packit Service 3880ab
.B rtmon file /var/log/rtmon.log
Packit Service 3880ab
Packit Service 3880ab
in a startup script, you will be able to view the full history later.
Packit Service 3880ab
Certainly, it is possible to start rtmon at any time. It prepends the history with the state snapshot dumped at the moment of starting.
Packit Service 3880ab
Packit Service 3880ab
.SH OPTIONS
Packit Service 3880ab
.I rtmon supports the following options:
Packit Service 3880ab
.TP
Packit Service 3880ab
.B \-Version
Packit Service 3880ab
Print version and exit.
Packit Service 3880ab
.TP
Packit Service 3880ab
.B help
Packit Service 3880ab
Show summary of options.
Packit Service 3880ab
.TP
Packit Service 3880ab
.B file FILE [ all | LISTofOBJECTS ]
Packit Service 3880ab
Log output to FILE. LISTofOBJECTS is the list of object types that we
Packit Service 3880ab
want to monitor. It may contain 'link', 'address', 'route'
Packit Service 3880ab
and 'all'. 'link' specifies the network device, 'address' the protocol
Packit Service 3880ab
(IP or IPv6) address on a device, 'route' the routing table entry
Packit Service 3880ab
and 'all' does what the name says.
Packit Service 3880ab
.TP
Packit Service 3880ab
.B \-family [ inet | inet6 | link | help ]
Packit Service 3880ab
Specify protocol family. 'inet' is IPv4, 'inet6' is IPv6, 'link'
Packit Service 3880ab
means that no networking protocol is involved and 'help' prints usage information.
Packit Service 3880ab
.TP
Packit Service 3880ab
.B \-4
Packit Service 3880ab
Use IPv4. Shortcut for -family inet.
Packit Service 3880ab
.TP
Packit Service 3880ab
.B \-6
Packit Service 3880ab
Use IPv6. Shortcut for -family inet6.
Packit Service 3880ab
.TP
Packit Service 3880ab
.B \-0
Packit Service 3880ab
Use a special family identifier meaning that no networking protocol is involved. Shortcut for -family link.
Packit Service 3880ab
.SH USAGE EXAMPLES
Packit Service 3880ab
.TP
Packit Service 3880ab
.B # rtmon file /var/log/rtmon.log
Packit Service 3880ab
Log to file /var/log/rtmon.log, then run:
Packit Service 3880ab
.TP
Packit Service 3880ab
.B # ip monitor file /var/log/rtmon.log
Packit Service 3880ab
to display logged output from file.
Packit Service 3880ab
.SH SEE ALSO
Packit Service 3880ab
.BR ip (8)
Packit Service 3880ab
.SH AUTHOR
Packit Service 3880ab
.B rtmon
Packit Service 3880ab
was written by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.
Packit Service 3880ab
.PP
Packit Service 3880ab
This manual page was written by Michael Prokop <mika@grml.org>,
Packit Service 3880ab
for the Debian project (but may be used by others).