135 lines
3.2 KiB
HTML
135 lines
3.2 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of RTMON</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>RTMON</H1>
|
|
Section: Maintenance Commands (8)<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
rtmon - listens to and monitors RTnetlink
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>rtmon</B>
|
|
|
|
[ options ] file FILE [ all | LISTofOBJECTS ]
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
This manual page documents briefly the
|
|
<B>rtmon</B>
|
|
|
|
command.
|
|
<P>
|
|
|
|
<B>rtmon</B>
|
|
|
|
listens on
|
|
<I>netlink</I>
|
|
|
|
socket and monitors routing table changes.
|
|
<P>
|
|
<I>rtmon</I>
|
|
|
|
can be started before the first network configuration command is issued.
|
|
For example if you insert:
|
|
<P>
|
|
<B>rtmon file /var/log/rtmon.log</B>
|
|
|
|
<P>
|
|
in a startup script, you will be able to view the full history later.
|
|
Certainly, it is possible to start rtmon at any time. It prepends the history with the state snapshot dumped at the moment of starting.
|
|
<P>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<I>rtmon supports the following options:</I>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-Version</B>
|
|
|
|
<DD>
|
|
Print version and exit.
|
|
<DT id="2"><B>help</B>
|
|
|
|
<DD>
|
|
Show summary of options.
|
|
<DT id="3"><B>file FILE [ all | LISTofOBJECTS ]</B>
|
|
|
|
<DD>
|
|
Log output to FILE. LISTofOBJECTS is the list of object types that we
|
|
want to monitor. It may contain 'link', 'address', 'route'
|
|
and 'all'. 'link' specifies the network device, 'address' the protocol
|
|
(IP or IPv6) address on a device, 'route' the routing table entry
|
|
and 'all' does what the name says.
|
|
<DT id="4"><B>-family [ inet | inet6 | link | help ]</B>
|
|
|
|
<DD>
|
|
Specify protocol family. 'inet' is IPv4, 'inet6' is IPv6, 'link'
|
|
means that no networking protocol is involved and 'help' prints usage information.
|
|
<DT id="5"><B>-4</B>
|
|
|
|
<DD>
|
|
Use IPv4. Shortcut for -family inet.
|
|
<DT id="6"><B>-6</B>
|
|
|
|
<DD>
|
|
Use IPv6. Shortcut for -family inet6.
|
|
<DT id="7"><B>-0</B>
|
|
|
|
<DD>
|
|
Use a special family identifier meaning that no networking protocol is involved. Shortcut for -family link.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>USAGE EXAMPLES</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="8"><B># rtmon file /var/log/rtmon.log</B>
|
|
|
|
<DD>
|
|
Log to file /var/log/rtmon.log, then run:
|
|
<DT id="9"><B># ip monitor file /var/log/rtmon.log</B>
|
|
|
|
<DD>
|
|
to display logged output from file.
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+ip">ip</A></B>(8)
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
<B>rtmon</B>
|
|
|
|
was written by Alexey Kuznetsov <<A HREF="mailto:kuznet@ms2.inr.ac.ru">kuznet@ms2.inr.ac.ru</A>>.
|
|
<P>
|
|
|
|
This manual page was written by Michael Prokop <<A HREF="mailto:mika@grml.org">mika@grml.org</A>>,
|
|
for the Debian project (but may be used by others).
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="10"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="11"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="12"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="13"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="14"><A HREF="#lbAF">USAGE EXAMPLES</A><DD>
|
|
<DT id="15"><A HREF="#lbAG">SEE ALSO</A><DD>
|
|
<DT id="16"><A HREF="#lbAH">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:15 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|