RTMON(8)

๐Ÿ“ฆ
version 7.3.0 ยท 2 versions
  • 7.3.0 ยท alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 6.1.0 ยท debian bookworm, ubuntu jammy, ubuntu noble
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

๐ŸŽ€ RTMON(8) ๐ŸŽ€ โ€” System Manager's Manual

โœจ NAME โœจ

okay so rtmon is the bestie that listens to and monitors RTnetlink ๐Ÿฆ‹

๐Ÿ’œ SYNOPSIS ๐Ÿ’œ

rtmon [ OPTIONS ] file FILE [ all | OBJECTS ]

OPTIONS := { f[amily] { inet | inet6 | link | help } | -4 | -6 | -0 |
        -V[ersion] }

OBJECTS := [ link ] [ address ] [ route ]

๐ŸŒธ DESCRIPTION ๐ŸŒธ

okay so this manual page briefly documents the rtmon command ๐Ÿ’…

rtmon listens on the netlink socket and monitors routing table changes, no cap ๐Ÿ”ฅ

rtmon can be started before the first network configuration command is issued. Main character timing ๐Ÿ‘‘ For example, if you insert:

rtmon file /var/log/rtmon.log

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 โœจ

๐Ÿ“ OPTIONS ๐Ÿ“

rtmon supports the following options, bestie:

  • -Version โ€” Print version and exit ๐Ÿ’–
  • help โ€” Show summary of options ๐Ÿ™ˆ
  • file FILE [ all | OBJECTS ] โ€” Log output to FILE. OBJECTS 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 ๐Ÿฆ‹
  • -family [ inet | inet6 | link | help ] โ€” Specify protocol family. 'inet' is IPv4, 'inet6' is IPv6, 'link' means that no networking protocol is involved, and 'help' prints usage information ๐ŸŒˆ
  • -4 โ€” Use IPv4. Shortcut for -family inet ๐Ÿ’…
  • -6 โ€” Use IPv6. Shortcut for -family inet6 โœจ
  • -0 โ€” Use a special family identifier meaning that no networking protocol is involved. Shortcut for -family link ๐Ÿซถ

๐Ÿงš USAGE EXAMPLES ๐Ÿงš

Log to the file first, bestie:

# rtmon file /var/log/rtmon.log

Then run this to display the logged output from the file ๐Ÿ’œ

# ip monitor file /var/log/rtmon.log

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

ip(8) ip-monitor(8) ๐Ÿ‘‘

๐Ÿ’– AUTHOR ๐Ÿ’–

rtmon was written by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> ๐ŸŽ€

This manual page was written by Michael Prokop <mika@grml.org>, for the Debian project (but may be used by others) ๐Ÿซถ


Bye bestie, this page is from System Manager's Manual, RTMON(8) ๐ŸŒธ Source and date were lost in the vibe check, so just vibe with it โœจ๐Ÿ’