ip-monitor (8) Linux Manual Page
ip-monitor, rtmon – state monitoring
Synopsis
ip monitor [ all | OBJECT-LIST ] [ file FILENAME ] [ label ] [ all-nsid ] [ dev DEVICE ]
Options
- -t, -timestamp
- Prints timestamp before the event message on the separated line in format:
Timestamp: <Day> <Month> <DD> <hh:mm:ss> <YYYY> <usecs> usec
<EVENT> - -ts, -tshort
- Prints short timestamp before the event message on the same line in format:
[<YYYY>-<MM>-<DD>T<hh:mm:ss>.<ms>] <EVENT>
Description
The ip utility can monitor the state of devices, addresses and routes continuously. This option has a slightly different format. Namely, the monitor command is the first in the command line and then the object list follows: ip monitor [ all | OBJECT-LIST ] [ file FILENAME ] [ label ] [ all-nsid ] [ dev DEVICE ] OBJECT-LIST is the list of object types that we want to monitor. It may contain link, address, route, mroute, prefix, neigh, netconf, rule, nsid and nexthop. If no file argument is given, ip opens RTNETLINK, listens on it and dumps state changes in the format described in previous sections. If the label option is set, a prefix is displayed before each message to show the family of the message. For example: [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
See Also
ip(8)
Author
Original Manpage by Michail Litvak <mci [at] owl.openwall.com>
Manpage revised by Nicolas Dichtel <nicolas.dichtel [at] 6wind.com>
