Commit cbe195dc authored by Nicolas Dichtel's avatar Nicolas Dichtel Committed by Stephen Hemminger

ip: update man pages and usage() for 'ip monitor'

Sync with the current code.
Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
parent 743a00a7
...@@ -29,7 +29,10 @@ int prefix_banner; ...@@ -29,7 +29,10 @@ int prefix_banner;
static void usage(void) static void usage(void)
{ {
fprintf(stderr, "Usage: ip monitor [ all | LISTofOBJECTS ]\n"); fprintf(stderr, "Usage: ip monitor [ all | LISTofOBJECTS ] [ FILE ]\n");
fprintf(stderr, "LISTofOBJECTS := link | address | route | mroute | prefix |\n");
fprintf(stderr, " neigh | netconf\n");
fprintf(stderr, "FILE := file FILENAME\n");
exit(-1); exit(-1);
} }
......
.TH IP\-MONITOR 8 "20 Dec 2011" "iproute2" "Linux" .TH IP\-MONITOR 8 "13 Dec 2012" "iproute2" "Linux"
.SH "NAME" .SH "NAME"
ip-monitor, rtmon \- state monitoring ip-monitor, rtmon \- state monitoring
.SH "SYNOPSIS" .SH "SYNOPSIS"
...@@ -6,8 +6,8 @@ ip-monitor, rtmon \- state monitoring ...@@ -6,8 +6,8 @@ ip-monitor, rtmon \- state monitoring
.ad l .ad l
.in +8 .in +8
.ti -8 .ti -8
.BR "ip monitor" " [ " all " |" .BR "ip " " [ ip-OPTIONS ] " "monitor" " [ " all " |"
.IR LISTofOBJECTS " ]" .IR LISTofOBJECTS " ] [ file " FILENAME " ]
.sp .sp
.SH DESCRIPTION .SH DESCRIPTION
...@@ -20,12 +20,13 @@ Namely, the ...@@ -20,12 +20,13 @@ Namely, the
command is the first in the command line and then the object list follows: command is the first in the command line and then the object list follows:
.BR "ip monitor" " [ " all " |" .BR "ip monitor" " [ " all " |"
.IR LISTofOBJECTS " ]" .IR LISTofOBJECTS " ] [ file " FILENAME " ]
.I OBJECT-LIST .I OBJECT-LIST
is the list of object types that we want to monitor. is the list of object types that we want to monitor.
It may contain It may contain
.BR link ", " address " and " route "." .BR link ", " address ", " route ", " mroute ", " prefix ", "
.BR neigh " and " netconf "."
If no If no
.B file .B file
argument is given, argument is given,
...@@ -34,7 +35,9 @@ opens RTNETLINK, listens on it and dumps state changes in the format ...@@ -34,7 +35,9 @@ opens RTNETLINK, listens on it and dumps state changes in the format
described in previous sections. described in previous sections.
.P .P
If a file name is given, it does not listen on RTNETLINK, If a
.I FILENAME
is given, it does not listen on RTNETLINK,
but opens the file containing RTNETLINK messages saved in binary format but opens the file containing RTNETLINK messages saved in binary format
and dumps them. Such a history file can be generated with the and dumps them. Such a history file can be generated with the
.B rtmon .B rtmon
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment