ifmcstat.8 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. .\" $KAME: ifmcstat.8,v 1.6 2002/10/31 04:23:43 suz Exp $
  2. .\"
  3. .\" Copyright (c) 2007-2009 Bruce Simpson.
  4. .\" Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
  5. .\" All rights reserved.
  6. .\"
  7. .\" Redistribution and use in source and binary forms, with or without
  8. .\" modification, are permitted provided that the following conditions
  9. .\" are met:
  10. .\" 1. Redistributions of source code must retain the above copyright
  11. .\" notice, this list of conditions and the following disclaimer.
  12. .\" 2. Redistributions in binary form must reproduce the above copyright
  13. .\" notice, this list of conditions and the following disclaimer in the
  14. .\" documentation and/or other materials provided with the distribution.
  15. .\" 3. Neither the name of the project nor the names of its contributors
  16. .\" may be used to endorse or promote products derived from this software
  17. .\" without specific prior written permission.
  18. .\"
  19. .\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
  20. .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  21. .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  22. .\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
  23. .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  24. .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  25. .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  26. .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  27. .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  28. .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  29. .\" SUCH DAMAGE.
  30. .\"
  31. .Dd May 27, 2009
  32. .Dt IFMCSTAT 8
  33. .Os
  34. .Sh NAME
  35. .Nm ifmcstat
  36. .Nd dump multicast group management statistics per interface
  37. .Sh SYNOPSIS
  38. .Nm
  39. .Op Fl i Ar interface
  40. .Op Fl f Ar address-family
  41. .Op Fl v
  42. .Op Fl K
  43. .Op Fl M Ar core
  44. .Op Fl N Ar system
  45. .\"
  46. .Sh DESCRIPTION
  47. The
  48. .Nm
  49. command dumps multicast group information from the kernel.
  50. .Pp
  51. The following options are supported:
  52. .Bl -tag -width Fl
  53. .It Fl i Ar interface
  54. specifies the interface to be displayed.
  55. .It Fl f Ar address-family
  56. specifies the address family to be displayed;
  57. .Ar inet ,
  58. .Ar inet6
  59. and
  60. .Ar link
  61. are supported.
  62. .It Fl v
  63. specifies that link-layer memberships should be printed;
  64. they are suppressed by default.
  65. It may not be specified for
  66. .Fl f Ar link .
  67. Source lists for each group will also be printed.
  68. .Pp
  69. If specified twice, and
  70. .Xr kvm 3
  71. is in use, the control plane timers for each interface
  72. and the source list counters for each group
  73. will also be printed.
  74. .El
  75. .Pp
  76. The following options are only available if
  77. .Nm
  78. has been built with support for
  79. .Xr kvm 3 :
  80. .Bl -tag -width Fl
  81. .It Fl K
  82. attempts to use
  83. .Xr kvm 3
  84. to retrieve the multicast group information.
  85. .It Fl M Ar core
  86. extracts values associated with the name list from the specified core,
  87. instead of the default
  88. .Pa /dev/kmem .
  89. .It Fl N Ar system
  90. extracts the name list from the specified kernel instead of the
  91. default, which is the kernel image the system has booted from.
  92. .El
  93. .Sh IMPLEMENTATION NOTES
  94. .Nm
  95. will always print the embedded scope IDs of IPv6 multicast group
  96. memberships.
  97. This is because memberships are always scoped to an interface.
  98. .Pp
  99. When run with the
  100. .Fl v
  101. option,
  102. .Nm
  103. may print multicast MAC addresses twice if they are
  104. referenced by a layer 3 protocol.
  105. .Pp
  106. When run with
  107. .Xr kvm 3
  108. support,
  109. the names of all interfaces configured in the system will be
  110. printed in the first column of output, even if no multicast
  111. group memberships are present on those interfaces.
  112. The output may also be slightly different, as the kernel
  113. data structures are being traversed with minimal post-processing
  114. of the output.
  115. .Pp
  116. When built without
  117. .Xr kvm 3
  118. support, the information displayed by
  119. .Nm
  120. is more limited.
  121. This support is recommended for debugging purposes.
  122. It requires super-user privilege if used to inspect a running kernel.
  123. .Sh SEE ALSO
  124. .Xr netstat 1 ,
  125. .Xr getifaddrs 3 ,
  126. .Xr getifmaddrs 3 ,
  127. .Xr kvm 3