Blame man/man8/rtmon.8

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