plcsnif.1 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. .TH plcsnif 1 "Mar 2014" "plc-utils-2.1.6" "Qualcomm Atheros Powerline Toolkit"
  2. .SH NAME
  3. plcsnif - Qualcomm Atheros AR7x00 Powerline Traffic Sniffer
  4. .SH SYNOPSIS
  5. .BR plcsnif
  6. .RI [ options ]
  7. .SH DESCRIPTION
  8. Enable or disable powerline packet sniffing on the local powerline device.
  9. Special PIB settings are required for this feature to work and special tools are required to interpret the output.
  10. This program is not for general Atheros customers.
  11. .PP
  12. This program is part of the Qualcomm Atheros Powerline Toolkit.
  13. See the \fBAPT\fR man page for an overview and installation instructions.
  14. .SH COMMENTS
  15. Enabling the sniffer mode on Atheros Powerline Devices will introduce high processor overheads on the device and flood the local Ethernet subnet with traffic destined for the local host.
  16. This may affect both local Ethernet and powerline data rates.
  17. Do not enable sniffer mode on powerline devices connected to operational powerline or Ethernet networks recklessly.
  18. .SH OPTIONS
  19. .TP
  20. .RB - d
  21. Dump sniffer data on the console.
  22. Sniffer data is printed as one or more hexadecimal fields seperated by one space.
  23. The first field is direction displayed as two hex digits.
  24. The next field is powerline device system time displayed as 16 hex digits.
  25. The next field is powerline beacon time displayed as 8 hex digits.
  26. The next field is frame control displayed as 32 hex digits.
  27. The last field is the beacon body displayed as 272 hex digits.
  28. .TP
  29. -\fBm \fImode\fR
  30. Enable, disable or inspect the powerline packet sniffer mode on the local powerline device.
  31. Valid modes are \fB0\fR=\fBoff\fR, \fB1\fR=\fBon\fR and \fB2\fR=\fBinspect\fR.
  32. .TP
  33. -\fBi\fR \fIinterface\fR
  34. Select the host Ethernet interface.
  35. All requests are sent via this host interface and only reponses received via this host interface are recognized.
  36. The default interface is \fBeth1\fR because most people use \fBeth0\fR as their principle network connection; however, if environment string "PLC" is defined then it takes precedence over the default interface.
  37. This option then takes precedence over either default.
  38. .TP
  39. .RB - q
  40. Suppresses normal progress and status messages.
  41. .TP
  42. .RB - v
  43. Print additional information on stdout.
  44. .TP
  45. -\fB?\fR, --\fBhelp\fR
  46. Print program help summary on stdout.
  47. This option takes precedence over other options on the command line.
  48. .TP
  49. -\fB!\fR, --\fBversion\fR
  50. Print program version information on stdout.
  51. This option takes precedence over other options on the command line.
  52. Use this option when sending screen dumps to Atheros Technical Support so that they know exactly which version of the Linux Toolkit you are using.
  53. .SH ARGUMENTS
  54. .TP
  55. .IR device
  56. The Ethernet hardware address of some powerline device.
  57. More than one address may be specified.
  58. If more than one address is specified then operations are performed on each device in turn.
  59. The default address is \fBlocal\fR.
  60. See \fBDEVICES\fR for information about symbolic device addresses.
  61. .SH DEVICES
  62. Powerline devices use Ethernet hardware addresses.
  63. Hardware addresses are 12 hexadecimal digits in upper, lower or mixed case.
  64. Individual octets may be separated by colons, for clarity, but not all octets need to be seperated.
  65. For example, "00b052000001", "00:b0:52:00:00:01" and "00b052:000001" are valid and equivalent.
  66. .PP
  67. The following addresses are special and may be expressed by name instead of number.
  68. .TP
  69. .BR all
  70. Equivalent to "broadcast", described next.
  71. .TP
  72. .BR broadcast
  73. A synonym for the standard Ethernet broadcast address, \fBFF:FF:FF:FF:FF:FF\fR.
  74. All devices, whether local, remote or foreign will respond to this address.
  75. .TP
  76. .BR local
  77. A synonym for the Qualcomm Atheros vendor specific Local Management Address (LMA), \fB00:B0:52:00:00:01\fR.
  78. All local Atheros devices will recognize this address but remote and foreign devices will not.
  79. A remote device is any device at the far end of a powerline connection.
  80. A foreign device is any device not manufactured by Atheros.
  81. .SH DISCLAIMER
  82. Atheros HomePlug AV Vendor Specific Management Message structure and content is proprietary to Qualcomm Atheros, Ocala FL USA.
  83. Consequently, public information is not available.
  84. Qualcomm Atheros reserves the right to modify message structure or content in future firmware releases without any obligation to notify or compensate users of this program.
  85. .PP
  86. This program is provided for engineering purposes only and is not required for normal powerline device operation.
  87. Qualcomm Atheros shall not be responsible for any adverse consequences resulting from the use of this program in an operational environment by anyone for any reason.
  88. .SH EXAMPLES
  89. The following example enables the sniffer mode on all local powerline devices connected to interface \fBeth1\fR because the program default address is \fB00:B0:52:00:00:01\fR.
  90. Remote powerline devices are not affected.
  91. If you only want to enable sniffer mode on one local powerline device then specify the address on the command line.
  92. .PP
  93. # plcsnif -m 1 -i eth1
  94. eth1 00:07:CB:E0:00:68 SNIFFER ON
  95. eth1 00:B0:52:DA:DA:01 SNIFFER ON
  96. .PP
  97. The program will return immediately but VS_SNIFFER.IND messages are continuously sent to the local host, in background, until the device is reset or the sniffer mode is diabled.
  98. You can use a packet sniffer, such as Wireshare, or run program \fBHPAV\fR or \fBsnif\fR in another console window, to observe the messages.
  99. Be sure to select the correct Ethernet interface.
  100. .PP
  101. The next example disables the sniffer mode on the local device \fB00:B0:52:DA:DA:01\fR connected to interface \fBeth1\fR.
  102. .PP
  103. # plcsnif -i eth1 -m 0 00:B0:52:DA:DA:01
  104. eth1 00:B0:52:DA:DA:01 SNIFFER OFF
  105. .PP
  106. The following example queries local devices to report their sniffer state.
  107. Observe that each local device, in this case, is in a different state.
  108. .PP
  109. # plcsnif -m 2 -i eth1
  110. eth1 00:07:CB:E0:00:68 SNIFFER ON
  111. eth1 00:B0:52:DA:DA:01 SNIFFER OFF
  112. .PP
  113. The following example disables the sniffer state on all local powerline devices connected to interface \fBeth1\fR.
  114. The \fBlocal\fR keyword is shorthand for \fB00:B0:52:00:00:001\fR as in the DEVICES section.
  115. It is the default device address.
  116. .PP
  117. # plcsnif -m 0 -i eth1 local
  118. eth1 00:07:CB:E0:00:68 SNIFFER OFF
  119. eth1 00:B0:52:DA:DA:01 SNIFFER OFF
  120. .PP
  121. The following example prints sniffer data on the console.
  122. The fields in this example are direction, system time, beacon time, frame control and beacon data.
  123. Observe that data is displayed in little-endian format.
  124. .PP
  125. # plcsnif -d
  126. 00\ 030A6B2A06000000\ 1E0D0000\ F0AFF7F428F200F500F800F600000000\ B0F2E695666B8301000100020501060001FD3480CB020502450381CB030600B0520002EC06031E0D00FF0700B0520201807B00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000CCCCCCCC
  127. 00\ 68C2772A06000000\ 5B0D0000\ F014B00129F500F800F600F100000000\ B0F2E695666B8301000100020501060001FD3480CB020502450381CB030600B0520002EC06035B0D00FF0700B0520201817B00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000CCCCCCCC
  128. 00\ 9C7A842A06000000\ 640D0000\ F048680E29F800F600F100F100000000\ B0F2E695666B8301000100020501060001FD3480CB020502450381CB030600B0520002EC0603640D00FF0700B0520201827B00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000CCCCCCCC
  129. 00\ 8D32912A06000000\ 270D0000\ F039201B29F600F100F100F300000000\ B0F2E695666B8301000100020501060001FD3480CB020502450381CB030600B0520002EC0603270D00FF0700B0520201837B00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000CCCCCCCC
  130. 00\ F5EA9D2A06000000\ 630D0000\ F0A1D82729F100F100F300F400000000\ B0F2E695666B8301000100020501060001FD3480CB020502450381CB030600B0520002EC0603630D00FF0700B0520201847B00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000CCCCCCCC
  131. .SH SEE ALSO
  132. .BR arpc ( 1 ),
  133. .BR hpav ( 1 )
  134. .SH CREDITS
  135. Charles Maier <cmaier@qca.qualcomm.com>