plcstat(1)
π plcstat β Qualcomm Atheros AR7x00 Link Statistics π
okay bestie, welcome to plcstat(1) from the Qualcomm Atheros Open Powerline Toolkit β yes that whole toolkit, we're getting into it. π¦
SYNOPSIS
plcstat [options] [device] [...]
DESCRIPTION
The Atheros Device Statistics Utility goes and polls a device, then prints out network and link statistics in a bunch of different formats that are suitable for other programs to snack on. π Heads up tho: this is a work in progress, so user feedback is genuinely encouraged β slide into the comments, they want to hear from you.
Also real talk: link statistics are only valid between one powerline device and another. That's the whole vibe.
This program is part of the Qualcomm Atheros Powerline Toolkit. If you want the overview and the installation instructions, go read the plc man page. π
COMMENTS
So this program is literally identical to the legacy program int6kstat, except it uses version 1 of the VS_NW_INFO Atheros vendor-specific message. Older firmware versions may not recognize this message version β not their fault, they're just old. π
OPTIONS β¨
-Cβ Clear device link statistics usingVS_LNK_STATS. The stats get read and cleared, then displayed. Which stats get read and displayed depends on options-d,-pand-s, but bestie β all link statistics are cleared. Every single one. π§Ή-ddirection β Return statistics for the specified direction usingVS_LNK_STATS. Direction can be0=tx,1=rx,2=both, or the strings"rx","tx"or"both". Pick your fighter.-eβ Redirects stderr messages to stdout. By convention, status and error messages go on stderr while the primary program output goes on stdout β this option puts all output on stdout, for when that's what you want. π«Ά-iβ Select the host Ethernet interface. All requests are sent via this host interface, and only responses received via this host interface are recognized. The default interface iseth1, because most people useeth0as their principle network connection. However β if the environment stringPLCis defined, it takes precedence over the default interface. And this option then takes precedence over either default. Precedence chain, periodt. π-lcount β Define the number of times that the command will be repeated for each device specified. Normally you'll repeat operations on one device only.-mβ Displays network membership information, as seen by one device, usingVS_NW_INFO. Want the complete network topology seen by the local host instead? Use option-t.-ppeernode β Ethernet hardware address of the peer node forVS_LNK_STATS. This option is required for all Link ID values except0xFC. The default is00:00:00:00:00:00.-qβ Enter quiet mode. Progress messages are suppressed. π€«-slinkid β The Link ID forVS_LNK_STATS. Link ID values range from0through255, but not all values are accepted by the device firmware (rude, honestly). Values may be expressed in decimal, in binary prefixed with"0b", or in hexadecimal prefixed by"0x". Many valid values can also be expressed by name β the valid ones are listed and explained under LINKID. The default Link ID is0xFC.-tβ Display network topology usingVS_SW_VERandVS_NW_INFOmessages. This is similar to option-mbut gives you the complete network topology plus device hardware and firmware version. Topology is relative to the queried powerline device(s) given on the command line. If no device is given explicitly, then it is tried to determine all local devices (you can also uselocalinstead). However, this can fail if you have the local powerline device(s) not directly connected but via a switch which does not broadcast the Qualcomm Atheros vendor specific Local Management Address (LMA) to all ports. π-vβ Enter verbose mode. All Ethernet frames sent or received by the program are displayed on stdout. Every. Single. Frame. π-wseconds β Defines the number of seconds to wait before repeating command line options. This option has no effect unless option-lis also specified with a non-zero value.-?,--helpβ Print program help summary on stdout. This option takes precedence over other options on the command line.-!,--versionβ Print program version information on stdout. This option takes precedence over other options on the command line. Use this one when you're sending screen dumps to Atheros Technical Support so they know exactly which version of the Linux Toolkit you're using. π
ARGUMENTS
- device β The MAC address of some powerline device. More than one address may be specified. If more than one address is specified then operations are performed on each device in turn. The default address is
local. See DEVICES for information about symbolic device addresses.
LINKID π₯
0x00,CSMA-CAP0β Display CSMA statistics for CAP0 traffic using a single peer node. The peer node MAC address must be specified using option-p.0x01,CSMA-CAP1β Display CSMA statistics for CAP1 traffic using a single peer node. The peer node MAC address must be specified using option-p.0x02,CSMA-CAP2β Display CSMA statistics for CAP2 traffic using a single peer node. The peer node MAC address must be specified using option-p.0x03,CSMA-CAP3β Display CSMA statistics for CAP3 traffic using a single peer node. The peer node MAC address must be specified using option-p.0xF8,CSMA-PEERβ Display CSMA statistics for all traffic using a single peer node. The peer node MAC address must be specified using option-p.0xFC,CSMA-ALLβ Display CSMA statistics for all traffic with all peer nodes. A peer node MAC address is not needed and will be ignored if provided. This value is the default for option-s. β
DEVICES π
Powerline devices use Ethernet Media Access Control (MAC) addresses. A MAC address is a 48-bit value entered as 12 hexadecimal digits, in upper, lower or mixed character case. Octets may be separated with colons for clarity. For example, "00b052000001", "00:b0:52:00:00:01" and "00b052:000001" are all valid and equivalent β same address, three fits. π
The following MAC addresses are special and may be entered by name instead of number.
allβ Same as"broadcast".broadcastβ A synonym for the Ethernet broadcast address,FF:FF:FF:FF:FF:FF. All devices, whether local, remote or foreign, recognize messages sent to this address. A remote device is any device at the far end of a powerline connection. A foreign device is any device not manufactured by Atheros.localβ A synonym for the Qualcomm Atheros vendor specific Local Management Address (LMA),00:B0:52:00:00:01. All local Atheros devices recognize this address, but remote and foreign devices do not. A remote device is any device at the far end of a powerline connection. A foreign device is any device not manufactured by Atheros.
REFERENCES
See the Qualcomm Atheros HomePlug AV Firmware Technical Reference Manual for more information. π
DISCLAIMER
Atheros HomePlug AV Vendor Specific Management Message Entry structure and content is proprietary to Qualcomm Atheros, Ocala FL USA. Consequently, public information may not be available. Qualcomm Atheros reserves the right to modify message structure and content in future firmware releases without any obligation to notify or compensate users of this program. Not a drill, bestie. π
EXAMPLES
None. π
SEE ALSO
plc(1), plcrate(1), plcstat(1), plctool(1)
CREDITS
Charles Maier
okay that's the whole page, you ate that π this shipped as part of open-plc-utils-0.0.3, dated November 2013 β iconic behavior, no cap. go poll some devices, bestie. π¦β¨
π¦ where this page comes from
- alpine 3.24: open-plc-utils-doc 0_git20250712-r1 Β· BSD-3-Clause-Clear
- debian bookworm: plc-utils-extra 0.0.6+git20230504.1ba7d5a0-1 Β· BSD-3
- debian trixie: plc-utils-extra 0.0.6+git20250517.7fb8ac5-1 Β· BSD-3
- ubuntu noble: plc-utils-extra 0.0.6+git20230504.1ba7d5a0-1 Β· BSD-3
- ubuntu questing: plc-utils-extra 0.0.6+git20250517.7fb8ac5-1
- ubuntu resolute: plc-utils-extra 0.0.6+git20250712.46c3506-1 Β· BSD-3
- ubuntu stonking: plc-utils-extra 0.0.6+git20250712.46c3506-1 Β· BSD-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms