xref: /freebsd/usr.sbin/ifmcstat/ifmcstat.8 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
11048e675SBruce M Simpson.\"	$KAME: ifmcstat.8,v 1.6 2002/10/31 04:23:43 suz Exp $
233841545SHajimu UMEMOTO.\"
3d508ff40SBruce M Simpson.\" Copyright (c) 2007-2009 Bruce Simpson.
433841545SHajimu UMEMOTO.\" Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
533841545SHajimu UMEMOTO.\" All rights reserved.
67d56d374SYoshinobu Inoue.\"
77d56d374SYoshinobu Inoue.\" Redistribution and use in source and binary forms, with or without
833841545SHajimu UMEMOTO.\" modification, are permitted provided that the following conditions
933841545SHajimu UMEMOTO.\" are met:
1033841545SHajimu UMEMOTO.\" 1. Redistributions of source code must retain the above copyright
1133841545SHajimu UMEMOTO.\"    notice, this list of conditions and the following disclaimer.
1233841545SHajimu UMEMOTO.\" 2. Redistributions in binary form must reproduce the above copyright
1333841545SHajimu UMEMOTO.\"    notice, this list of conditions and the following disclaimer in the
1433841545SHajimu UMEMOTO.\"    documentation and/or other materials provided with the distribution.
1533841545SHajimu UMEMOTO.\" 3. Neither the name of the project nor the names of its contributors
1633841545SHajimu UMEMOTO.\"    may be used to endorse or promote products derived from this software
1733841545SHajimu UMEMOTO.\"    without specific prior written permission.
1833841545SHajimu UMEMOTO.\"
1933841545SHajimu UMEMOTO.\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
2033841545SHajimu UMEMOTO.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2133841545SHajimu UMEMOTO.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2233841545SHajimu UMEMOTO.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
2333841545SHajimu UMEMOTO.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2433841545SHajimu UMEMOTO.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2533841545SHajimu UMEMOTO.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2633841545SHajimu UMEMOTO.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2733841545SHajimu UMEMOTO.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2833841545SHajimu UMEMOTO.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2933841545SHajimu UMEMOTO.\" SUCH DAMAGE.
307d56d374SYoshinobu Inoue.\"
3129dc7bc6SBruce M Simpson.Dd May 27, 2009
327d56d374SYoshinobu Inoue.Dt IFMCSTAT 8
331a484a79SRuslan Ermilov.Os
347d56d374SYoshinobu Inoue.Sh NAME
357d56d374SYoshinobu Inoue.Nm ifmcstat
367d56d374SYoshinobu Inoue.Nd dump multicast group management statistics per interface
377d56d374SYoshinobu Inoue.Sh SYNOPSIS
387d56d374SYoshinobu Inoue.Nm
391048e675SBruce M Simpson.Op Fl i Ar interface
401048e675SBruce M Simpson.Op Fl f Ar address-family
41d508ff40SBruce M Simpson.Op Fl v
42d10910e6SBruce M Simpson.Op Fl K
43aa727a55SBruce M Simpson.Op Fl M Ar core
44aa727a55SBruce M Simpson.Op Fl N Ar system
451048e675SBruce M Simpson.\"
467d56d374SYoshinobu Inoue.Sh DESCRIPTION
477d56d374SYoshinobu InoueThe
4829f225a7SAlexey Zelkin.Nm
491048e675SBruce M Simpsoncommand dumps multicast group information from the kernel.
507d56d374SYoshinobu Inoue.Pp
511048e675SBruce M SimpsonThe following options are supported:
521048e675SBruce M Simpson.Bl -tag -width Fl
531048e675SBruce M Simpson.It Fl i Ar interface
541048e675SBruce M Simpsonspecifies the interface to be displayed.
551048e675SBruce M Simpson.It Fl f Ar address-family
56d508ff40SBruce M Simpsonspecifies the address family to be displayed;
57d508ff40SBruce M Simpson.Ar inet ,
581048e675SBruce M Simpson.Ar inet6
59d508ff40SBruce M Simpsonand
60d508ff40SBruce M Simpson.Ar link
611048e675SBruce M Simpsonare supported.
62d508ff40SBruce M Simpson.It Fl v
63d508ff40SBruce M Simpsonspecifies that link-layer memberships should be printed;
64d508ff40SBruce M Simpsonthey are suppressed by default.
65d508ff40SBruce M SimpsonIt may not be specified for
66d508ff40SBruce M Simpson.Fl f Ar link .
67d10910e6SBruce M SimpsonSource lists for each group will also be printed.
68d10910e6SBruce M Simpson.Pp
69d10910e6SBruce M SimpsonIf specified twice, and
70d10910e6SBruce M Simpson.Xr kvm 3
7129dc7bc6SBruce M Simpsonis in use, the control plane timers for each interface
7229dc7bc6SBruce M Simpsonand the source list counters for each group
73d10910e6SBruce M Simpsonwill also be printed.
7460dd8da7SBruce M Simpson.El
7560dd8da7SBruce M Simpson.Pp
7660dd8da7SBruce M SimpsonThe following options are only available if
7760dd8da7SBruce M Simpson.Nm
7860dd8da7SBruce M Simpsonhas been built with support for
79d508ff40SBruce M Simpson.Xr kvm 3 :
8060dd8da7SBruce M Simpson.Bl -tag -width Fl
81d10910e6SBruce M Simpson.It Fl K
8229dc7bc6SBruce M Simpsonattempts to use
83d10910e6SBruce M Simpson.Xr kvm 3
8429dc7bc6SBruce M Simpsonto retrieve the multicast group information.
85aa727a55SBruce M Simpson.It Fl M Ar core
86aa727a55SBruce M Simpsonextracts values associated with the name list from the specified core,
87aa727a55SBruce M Simpsoninstead of the default
88aa727a55SBruce M Simpson.Pa /dev/kmem .
89aa727a55SBruce M Simpson.It Fl N Ar system
901048e675SBruce M Simpsonextracts the name list from the specified kernel instead of the
911048e675SBruce M Simpsondefault, which is the kernel image the system has booted from.
925dde2b65SGiorgos Keramidas.El
9360dd8da7SBruce M Simpson.Sh IMPLEMENTATION NOTES
9429dc7bc6SBruce M Simpson.Nm
9529dc7bc6SBruce M Simpsonwill always print the embedded scope IDs of IPv6 multicast group
9629dc7bc6SBruce M Simpsonmemberships.
9729dc7bc6SBruce M SimpsonThis is because memberships are always scoped to an interface.
9829dc7bc6SBruce M Simpson.Pp
99d508ff40SBruce M SimpsonWhen run with the
100d508ff40SBruce M Simpson.Fl v
101d508ff40SBruce M Simpsonoption,
10260dd8da7SBruce M Simpson.Nm
10360dd8da7SBruce M Simpsonmay print multicast MAC addresses twice if they are
10460dd8da7SBruce M Simpsonreferenced by a layer 3 protocol.
10560dd8da7SBruce M Simpson.Pp
10660dd8da7SBruce M SimpsonWhen run with
10760dd8da7SBruce M Simpson.Xr kvm 3
10860dd8da7SBruce M Simpsonsupport,
10960dd8da7SBruce M Simpsonthe names of all interfaces configured in the system will be
11060dd8da7SBruce M Simpsonprinted in the first column of output, even if no multicast
111d508ff40SBruce M Simpsongroup memberships are present on those interfaces.
112d508ff40SBruce M SimpsonThe output may also be slightly different, as the kernel
113d508ff40SBruce M Simpsondata structures are being traversed with minimal post-processing
114d508ff40SBruce M Simpsonof the output.
115d508ff40SBruce M Simpson.Pp
116d508ff40SBruce M SimpsonWhen built without
117d508ff40SBruce M Simpson.Xr kvm 3
118d508ff40SBruce M Simpsonsupport, the information displayed by
119d508ff40SBruce M Simpson.Nm
120d508ff40SBruce M Simpsonis more limited.
121d508ff40SBruce M SimpsonThis support is recommended for debugging purposes.
122d508ff40SBruce M SimpsonIt requires super-user privilege if used to inspect a running kernel.
12360dd8da7SBruce M Simpson.Sh SEE ALSO
124*5c0e8d8aSSergey Kandaurov.Xr netstat 1 ,
12560dd8da7SBruce M Simpson.Xr getifaddrs 3 ,
12660dd8da7SBruce M Simpson.Xr getifmaddrs 3 ,
127*5c0e8d8aSSergey Kandaurov.Xr kvm 3
128