{"id":3280,"date":"2022-12-20T17:02:14","date_gmt":"2022-12-20T20:02:14","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/ipmonitor-man8\/"},"modified":"2022-12-20T17:02:14","modified_gmt":"2022-12-20T20:02:14","slug":"ipmonitor-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/ipmonitor-man8\/","title":{"rendered":"IP&minus;MONITOR (man8)"},"content":{"rendered":"<h1 align=\"center\">IP\u2212MONITOR<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">ip-monitor, rtmon \u2212 state monitoring<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip monitor<\/b> [ <b>all<\/b> | <i>OBJECT-LIST<\/i> ] [ <b>file<\/b> <i>FILENAME<\/i> ] [ <b>label<\/b> ] [ <b>all-nsid<\/b> ] [ <b>dev<\/b> <i>DEVICE<\/i> ]<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212t<\/b>, <b>\u2212timestamp<\/b><\/p>\n<p style=\"margin-left:22%;\">Prints timestamp before the event message on the separated line in format: <br \/> Timestamp: <Day> <Month> <DD> <hh:mm:ss> <YYYY> <usecs> usec <br \/> <EVENT><\/p>\n<p style=\"margin-left:11%;\"><b>\u2212ts<\/b>, <b>\u2212tshort<\/b><\/p>\n<p style=\"margin-left:22%;\">Prints short timestamp before the event message on the same line in format: <br \/> [<YYYY>&#8211;<MM>&#8211;<DD>T<hh:mm:ss>.<ms>] <EVENT><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>ip<\/b> utility can monitor the state of devices, addresses and routes continuously. This option has a slightly different format. Namely, the <b>monitor<\/b> command is the first in the command line and then the object list follows:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ip monitor<\/b> [ <b>all<\/b> | <i>OBJECT-LIST<\/i> ] [ <b>file<\/b> <i>FILENAME<\/i> ] [ <b>label<\/b> ] [ <b>all-nsid<\/b> ] [ <b>dev<\/b> <i>DEVICE<\/i> ]<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>OBJECT-LIST<\/i> is the list of object types that we want to monitor. It may contain <b>link<\/b>, <b>address<\/b>, <b>route<\/b>, <b>mroute<\/b>, <b>prefix<\/b>, <b>neigh<\/b>, <b>netconf<\/b>, <b>rule<\/b>, <b>nsid<\/b> and <b>nexthop<\/b>. If no <b>file<\/b> argument is given, <b>ip<\/b> opens RTNETLINK, listens on it and dumps state changes in the format described in previous sections.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the <b>label<\/b> option is set, a prefix is displayed before each message to show the family of the message. For example:<\/p>\n<p style=\"margin-left:14%; margin-top: 1em\">[NEIGH]10.16.0.112 dev eth0 lladdr 00:04:23:df:2f:d0 REACHABLE [LINK]3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN group default <br \/> link\/ether 52:54:00:12:34:57 brd ff:ff:ff:ff:ff:ff<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the <b>all-nsid<\/b> option is set, the program listens to all network namespaces that have a nsid assigned into the network namespace were the program is running. A prefix is displayed to show the network namespace where the message originates. Example:<\/p>\n<p style=\"margin-left:14%; margin-top: 1em\">[nsid 0]10.16.0.112 dev eth0 lladdr 00:04:23:df:2f:d0 REACHABLE<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the <b>file<\/b> option is given, the program does not listen on RTNETLINK, but opens the given file, and dumps its contents. The file should contain RTNETLINK messages saved in binary format. Such a file can be generated with the <b>rtmon<\/b> utility. This utility has a command line syntax similar to <b>ip monitor<\/b>. Ideally, <b>rtmon<\/b> should be started before the first network configuration command is issued. F.e. if you insert:<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\">rtmon file \/var\/log\/rtmon.log<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">in a startup script, you will be able to view the full history later.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Nevertheless, it is possible to start <b>rtmon<\/b> at any time. It prepends the history with the state snapshot dumped at the moment of starting.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the <b>dev<\/b> option is given, the program prints only events related to this device.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ip<\/b>(8)<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Original Manpage by Michail Litvak <mci@owl.openwall.com> <br \/> Manpage revised by Nicolas Dichtel <nicolas.dichtel@6wind.com><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  ip-monitor, rtmon \u2212 state monitoring <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,413,4],"class_list":["post-3280","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-ip-monitor","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3280"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3280\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}