home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / manage / snmp / cmu-snmp1.0 / man / snmpnetstat.1 < prev    next >
Encoding:
Text File  |  1989-09-19  |  6.5 KB  |  207 lines

  1. .\* /***********************************************************
  2. .\"     Copyright 1989 by Carnegie Mellon University
  3. .\" 
  4. .\"                       All Rights Reserved
  5. .\" 
  6. .\" Permission to use, copy, modify, and distribute this software and its 
  7. .\" documentation for any purpose and without fee is hereby granted, 
  8. .\" provided that the above copyright notice appear in all copies and that
  9. .\" both that copyright notice and this permission notice appear in 
  10. .\" supporting documentation, and that the name of CMU not be
  11. .\" used in advertising or publicity pertaining to distribution of the
  12. .\" software without specific, written prior permission.  
  13. .\" 
  14. .\" CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  15. .\" ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  16. .\" CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  17. .\" ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  18. .\" WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  19. .\" ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  20. .\" SOFTWARE.
  21. .\" ******************************************************************/
  22. .\" Copyright (c) 1983 The Regents of the University of California.
  23. .\" All rights reserved.
  24. .\"
  25. .\" Redistribution and use in source and binary forms are permitted
  26. .\" provided that the above copyright notice and this paragraph are
  27. .\" duplicated in all such forms and that any documentation,
  28. .\" advertising materials, and other materials related to such
  29. .\" distribution and use acknowledge that the software was developed
  30. .\" by the University of California, Berkeley.  The name of the
  31. .\" University may not be used to endorse or promote products derived
  32. .\" from this software without specific prior written permission.
  33. .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  34. .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  35. .\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  36. .\"
  37. .\"    @(#)netstat.1    6.8 (Berkeley) 9/20/88
  38. .\"
  39. .TH SNMPNETSTAT 1 "September 17, 1989"
  40. .UC 5
  41. .SH NAME
  42. snmpnetstat \- show network status using SNMP
  43. .SH SYNOPSIS
  44. .B snmpnetstat
  45. .I host community
  46. .B \-an
  47. ]
  48. .br
  49. .B snmpnetstat
  50. .I host community
  51. .B \-inrs
  52. ]
  53. .br
  54. .B snmpnetstat
  55. .I host community
  56. .B \-n
  57. ] [
  58. .B \-I
  59. .I interface
  60. ]
  61. .I interval
  62. .br
  63. .B snmpnetstat
  64. .I host community
  65. .B \-p
  66. .I protocol
  67. ]
  68. .SH DESCRIPTION
  69. The
  70. .I snmpnetstat 
  71. command symbolically displays the values of various network-related
  72. information retrieved from a remote system using the SNMP protocol.
  73. There are a number of output formats,
  74. depending on the options for the information presented.
  75. The first form of the command displays a list of active sockets.
  76. The second form presents the values of other network-related
  77. information according to the option selected.
  78. Using the third form, with an 
  79. .I interval
  80. specified,
  81. .I snmpnetstat
  82. will continuously display the information regarding packet
  83. traffic on the configured network interfaces.
  84. The fourth form displays statistics about the named protocol.
  85. .PP
  86. The
  87. .I host
  88. specification may be either a host name or an internet address
  89. specified in "dot notation"
  90. .PP
  91. The
  92. .I community
  93. specifies the community name for the transaction with the remote system.
  94. .PP
  95. The options have the following meaning:
  96. .TP
  97. .B \-a
  98. With the default display,
  99. show the state of all sockets; normally sockets used by
  100. server processes are not shown.
  101. .TP
  102. .B \-i
  103. Show the state of all of the interfaces.
  104. .TP
  105. .BI \-I " interface"
  106. Show information only about this interface;
  107. used with an
  108. .I interval
  109. as described below.
  110. .TP
  111. .B \-n
  112. Show network addresses as numbers (normally 
  113. .I snmpnetstat
  114. interprets addresses and attempts to display them
  115. symbolically).
  116. This option may be used with any of the display formats.
  117. .TP
  118. .BI \-p " protocol"
  119. Show statistics about 
  120. .IR protocol ,
  121. which is either a well-known name for a protocol or an alias for it.  Some
  122. protocol names and aliases are listed in the file 
  123. .IR /etc/protocols .
  124. A null response typically means that there are no interesting numbers to 
  125. report.
  126. The program will complain if
  127. .I protocol
  128. is unknown or if there is no statistics routine for it.
  129. .TP
  130. .B \-s
  131. Show per-protocol statistics.
  132. .TP
  133. .B \-r
  134. Show the routing tables.
  135. When
  136. .B \-s
  137. is also present, show routing statistics instead.
  138. .PP
  139. The default display, for active sockets, shows the local
  140. and remote addresses, protocol,
  141. and the internal state of the protocol.
  142. Address formats are of the form ``host.port'' or ``network.port''
  143. if a socket's address specifies a network but no specific host address.
  144. When known the host and network addresses are displayed symbolically
  145. according to the data bases
  146. .I /etc/hosts
  147. and
  148. .IR /etc/networks ,
  149. respectively.  If a symbolic name for an address is unknown, or if
  150. the 
  151. .B \-n
  152. option is specified, the address is printed numerically, according
  153. to the address family.
  154. For more information regarding 
  155. the Internet ``dot format,''
  156. refer to 
  157. .IR inet (3N).
  158. Unspecified,
  159. or ``wildcard'', addresses and ports appear as ``*''.  
  160. .PP
  161. The interface display provides a table of cumulative
  162. statistics regarding packets transferred, errors, and collisions.
  163. The network addresses of the interface
  164. and the maximum transmission unit (``mtu'') are also displayed.
  165. .PP
  166. The routing table display indicates the available routes and
  167. their status.  Each route consists of a destination host or network
  168. and a gateway to use in forwarding packets.  The flags field shows
  169. the state of the route (``U'' if ``up''), whether the route
  170. is to a gateway (``G''), whether the route was created dynamically
  171. by a redirect (``D''), and whether the route has been modified
  172. by a redirect (``M'').  Direct routes are created for each
  173. interface attached to the local host;
  174. the gateway field for such entries shows the address of the outgoing interface.
  175. The interface entry indicates the network
  176. interface utilized for the route.
  177. .PP
  178. When 
  179. .I snmpnetstat
  180. is invoked with an
  181. .I interval
  182. argument, it displays a running count of statistics related to
  183. network interfaces.  This display consists of a
  184. column for the primary interface
  185. and a column summarizing
  186. information for all interfaces.
  187. The primary interface may be replaced with another interface with the
  188. .I \-I
  189. option.
  190. The first line of each screen of information contains a summary since the
  191. system was last rebooted.  Subsequent lines of output show values
  192. accumulated over the preceding interval.
  193. .SH SEE ALSO
  194. iostat(1),
  195. vmstat(1),
  196. hosts(5),
  197. networks(5),
  198. protocols(5),
  199. services(5),
  200. RFC1067
  201. .SH BUGS
  202. The notion of errors is ill-defined.
  203.