RTMON(8) System Manager's Manual RTMON(8)NAME
rtmon - listens to and monitors RTnetlink
SYNOPSIS
rtmon [ options ] file FILE [ all | LISTofOBJECTS ]
DESCRIPTION
This manual page documents briefly the rtmon command.
rtmon listens on netlink socket and monitors routing table changes.
rtmon can be started before the first network configuration command is issued. 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:
-Version
Print version and exit.
help Show summary of options.
file FILE [ all | LISTofOBJECTS ]
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.
-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
# rtmon file /var/log/rtmon.log
Log to file /var/log/rtmon.log, then run:
# ip monitor file /var/log/rtmon.log
to display logged output from file.
SEE ALSO ip(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).
RTMON(8)
Check Out this Related Man Page
IP-MONITOR(8) Linux IP-MONITOR(8)NAME
ip-monitor, rtmon - state monitoring
SYNOPSIS
ip monitor [ all | LISTofOBJECTS ]
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 | LISTofOBJECTS ]
OBJECT-LIST is the list of object types that we want to monitor. It may contain link, address and route. If no file argument is given, ip
opens RTNETLINK, listens on it and dumps state changes in the format described in previous sections.
If a file name is given, it does not listen on RTNETLINK, but opens the file containing RTNETLINK messages saved in binary format and dumps
them. Such a history file can be generated with the rtmon utility. This utility has a command line syntax similar to ip monitor. Ide-
ally, rtmon should be started before the first network configuration command is issued. F.e. 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.
SEE ALSO ip(8)AUTHOR
Original Manpage by Michail Litvak <mci@owl.openwall.com>
iproute2 20 Dec 2011 IP-MONITOR(8)
Hello all expert network administrator, i truly new to networking. Please help me in this problem. /etc/hostname.rl1(Wired Internal interface) inet 10.0.0.1 255.255.255.0 none
/etc/hostname.ral0 : inet 10.0.1.1 255.255.255.0 and others option as well.
/etc/dhcpd.conf : share-network local {... (82 Replies)
I have a log file monitor script that checks through a log file for a string. I use awk to search the log file, starting at the last checked line, for the specified string and then output the count and the last row number checked. The part of the script that does all the work is here:
set --... (6 Replies)
I have run into a wall troubleshooting a Centos 5 networking issue. Hoping someone can assist.
I've got a box with two vlans trunked over bond0
bond0 Link encap:Ethernet HWaddr 00:22:64:C1:D6:60
inet6 addr: fe80::222:64ff:fec1:d660/64 Scope:Link ... (0 Replies)
hello all,
so i'm working on a script, and part of it is to display the log info of the current logged on users,
1- full name
2- last log-in time
3- source ip address
i used who command to find the user ID then grep the full name and the last log in time.
but i can't find a command... (6 Replies)
I have written below script which monitors a log file and if log file is not writting for 2 intervels then admin should be notified.
================
sh=`date | awk '{print $4}' | cut -d ":" -f1`
sm=`date | awk '{print $4}' | cut -d ":" -f2`
lh=`ls -l /opt/Heartbeat.log | awk '{print $8}' |... (5 Replies)
AM in need of some plugin/script that can monitor HP-UX file "/var/opt/resmon/log/event.log" .
Have written a scrip in sh shell that is working fine for syslog.log and mail.log as having standard format, have interrogated that to Nagios and is working as I required .
But same script failed to... (3 Replies)
Hello, i tried to enable IPv6 networking and after service network restart i seen these messages:
FATAL: Error inserting ipv6 (/lib/modules/2.6.18-348.16.1.el5.028stab108.1/kernel/net/ipv6/ipv6.ko): Device or resource busy
CRITICAL : Kernel is not compiled with IPv6 support
Bringing up... (6 Replies)
Hello -
I am running a script that is outputting to a log. Let call it output.log
I would like to monitor that log until the line "Build Successful" is found.
I think I would need to use the grep command.
How would I do that in a loop?
Thanks
Marty (1 Reply)