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.\" 317d56d374SYoshinobu Inoue.\" $FreeBSD$ 327d56d374SYoshinobu Inoue.\" 33d10910e6SBruce M Simpson.Dd February 28, 2009 347d56d374SYoshinobu Inoue.Dt IFMCSTAT 8 351a484a79SRuslan Ermilov.Os 367d56d374SYoshinobu Inoue.Sh NAME 377d56d374SYoshinobu Inoue.Nm ifmcstat 387d56d374SYoshinobu Inoue.Nd dump multicast group management statistics per interface 397d56d374SYoshinobu Inoue.Sh SYNOPSIS 407d56d374SYoshinobu Inoue.Nm 411048e675SBruce M Simpson.Op Fl i Ar interface 421048e675SBruce M Simpson.Op Fl f Ar address-family 43d508ff40SBruce M Simpson.Op Fl v 44d10910e6SBruce M Simpson.Op Fl K 45aa727a55SBruce M Simpson.Op Fl M Ar core 46aa727a55SBruce M Simpson.Op Fl N Ar system 471048e675SBruce M Simpson.\" 487d56d374SYoshinobu Inoue.Sh DESCRIPTION 497d56d374SYoshinobu InoueThe 5029f225a7SAlexey Zelkin.Nm 511048e675SBruce M Simpsoncommand dumps multicast group information from the kernel. 527d56d374SYoshinobu Inoue.Pp 531048e675SBruce M SimpsonThe following options are supported: 541048e675SBruce M Simpson.Bl -tag -width Fl 551048e675SBruce M Simpson.It Fl i Ar interface 561048e675SBruce M Simpsonspecifies the interface to be displayed. 571a484a79SRuslan Ermilov.Pp 581048e675SBruce M Simpson.It Fl f Ar address-family 59d508ff40SBruce M Simpsonspecifies the address family to be displayed; 60d508ff40SBruce M Simpson.Ar inet , 611048e675SBruce M Simpson.Ar inet6 62d508ff40SBruce M Simpsonand 63d508ff40SBruce M Simpson.Ar link 641048e675SBruce M Simpsonare supported. 65d508ff40SBruce M Simpson.It Fl v 66d508ff40SBruce M Simpsonspecifies that link-layer memberships should be printed; 67d508ff40SBruce M Simpsonthey are suppressed by default. 68d508ff40SBruce M SimpsonIt may not be specified for 69d508ff40SBruce M Simpson.Fl f Ar link . 70d10910e6SBruce M SimpsonSource lists for each group will also be printed. 71d10910e6SBruce M Simpson.Pp 72d10910e6SBruce M SimpsonIf specified twice, and 73d10910e6SBruce M Simpson.Xr kvm 3 74d10910e6SBruce M Simpsonis in use, the IGMP timers for each interface 75d10910e6SBruce M Simpsonand the IGMP source list counters for each group 76d10910e6SBruce M Simpsonwill also be printed. 7760dd8da7SBruce M Simpson.El 7860dd8da7SBruce M Simpson.Pp 7960dd8da7SBruce M SimpsonThe following options are only available if 8060dd8da7SBruce M Simpson.Nm 8160dd8da7SBruce M Simpsonhas been built with support for 82d508ff40SBruce M Simpson.Xr kvm 3 : 8360dd8da7SBruce M Simpson.Bl -tag -width Fl 84d10910e6SBruce M Simpson.It Fl K 85d10910e6SBruce M Simpsonforces the use of 86d10910e6SBruce M Simpson.Xr kvm 3 87d10910e6SBruce M Simpsonto be disabled. 88aa727a55SBruce M Simpson.It Fl M Ar core 89aa727a55SBruce M Simpsonextracts values associated with the name list from the specified core, 90aa727a55SBruce M Simpsoninstead of the default 91aa727a55SBruce M Simpson.Pa /dev/kmem . 92aa727a55SBruce M Simpson.It Fl N Ar system 931048e675SBruce M Simpsonextracts the name list from the specified kernel instead of the 941048e675SBruce M Simpsondefault, which is the kernel image the system has booted from. 955dde2b65SGiorgos Keramidas.El 9660dd8da7SBruce M Simpson.Sh IMPLEMENTATION NOTES 97d508ff40SBruce M SimpsonWhen run with the 98d508ff40SBruce M Simpson.Fl v 99d508ff40SBruce M Simpsonoption, 10060dd8da7SBruce M Simpson.Nm 10160dd8da7SBruce M Simpsonmay print multicast MAC addresses twice if they are 10260dd8da7SBruce M Simpsonreferenced by a layer 3 protocol. 10360dd8da7SBruce M Simpson.Pp 10460dd8da7SBruce M SimpsonWhen run with 10560dd8da7SBruce M Simpson.Xr kvm 3 10660dd8da7SBruce M Simpsonsupport, 10760dd8da7SBruce M Simpsonthe names of all interfaces configured in the system will be 10860dd8da7SBruce M Simpsonprinted in the first column of output, even if no multicast 109d508ff40SBruce M Simpsongroup memberships are present on those interfaces. 110d508ff40SBruce M SimpsonThe output may also be slightly different, as the kernel 111d508ff40SBruce M Simpsondata structures are being traversed with minimal post-processing 112d508ff40SBruce M Simpsonof the output. 113d508ff40SBruce M Simpson.Pp 114d508ff40SBruce M SimpsonWhen built without 115d508ff40SBruce M Simpson.Xr kvm 3 116d508ff40SBruce M Simpsonsupport, the information displayed by 117d508ff40SBruce M Simpson.Nm 118d508ff40SBruce M Simpsonis more limited. 119d508ff40SBruce M SimpsonThis support is recommended for debugging purposes. 120d508ff40SBruce M SimpsonIt requires super-user privilege if used to inspect a running kernel. 121d10910e6SBruce M Simpson.Pp 122d10910e6SBruce M SimpsonThe 123d508ff40SBruce M Simpson.Xr kvm 3 124d10910e6SBruce M Simpsonback-end will be used by default if 125d508ff40SBruce M Simpson.Nm 126d10910e6SBruce M Simpsonis run with super-user privileges, unless the 127d10910e6SBruce M Simpson.Fl K 128d10910e6SBruce M Simpsonoption is specified. 12960dd8da7SBruce M Simpson.Sh SEE ALSO 13060dd8da7SBruce M Simpson.Xr getifaddrs 3 , 13160dd8da7SBruce M Simpson.Xr getifmaddrs 3 , 13260dd8da7SBruce M Simpson.Xr kvm 3 , 13360dd8da7SBruce M Simpson.Xr netstat 8 134