ampstat(1)
β¨ NAME β¨
ampstat - Qualcomm Atheros AR7x00 Link Statistics π
π¦ SYNOPSIS
ampstat [options] [device] [device] [...]
π DESCRIPTION
Okay so the Atheros Device Statistics Utility basically pokes a device and spits out network and link stats in a bunch of formats other programs can actually use. π§ It's still a work in progress, so bestie, user feedback is highly encouraged! π«Ά
Quick heads up: link statistics are only valid between one powerline device and another, so don't expect them to make sense otherwise. π
This program is part of the Qualcomm Atheros Powerline Toolkit. For an overview and installation instructions, check out the plc man page. β¨
π¦ COMMENTS
This program is identical to the legacy program int6kstat, but it uses version 1 of the Qualcomm Atheros VS_NW_INFO Atheros vendor-specific message. π
Older firmware versions may not recognize this message version. So if things look off, it might be the firmware, not you. π
βοΈ OPTIONS β¨
-Cβ Clear the device link statistics usingVS_LNK_STATS. The stats get read and cleared, then displayed. Which stats get read and shown depends on-d,-pand-s, but all link statistics are cleared no matter what. π§Ή-d directionβ Grab the statistics for a specific direction usingVS_LNK_STATS. You can pass0(tx),1(rx),2(both), or just"rx","tx"or"both". Pick your fighter! π-eβ Redirects stderr messages to stdout. Normally status and error messages go to stderr while the main output goes to stdout, but this option sends everything to stdout for when you need it all in one place. π¬-iβ Selects the host Ethernet interface. All requests go out through this interface, and only responses that come back through it get recognized. The default iseth1, because most people useeth0as their main network connection. πΈ However, if the environment variablePLCis defined, it takes precedence over that default. And if you use this option, it wins over both defaults. π-l countβ Sets how many times the command gets repeated for each device you list. Usually you'll only repeat stuff on one device, so don't stress. π-mβ Displays network membership info as seen by one device, usingVS_NW_INFO. If you want the full network topology from the local host's point of view, use-tinstead. π-p peernodeβ The Ethernet hardware address of the peer node forVS_LNK_STATS. This is required for every Link ID value except0xFC. The default is00:00:00:00:00:00. π«§-qβ Enters quiet mode, which suppresses progress messages. Shh, it's a secret. π€«-s linkidβ The Link ID forVS_LNK_STATS. Link IDs range from0through255, but the device firmware doesn't accept every value. You can write values in decimal, binary with a0bprefix, or hexadecimal with a0xprefix. Lots of valid values also have names, and those are listed and explained under LINKID. The default Link ID is0xFC. π’-tβ Displays network topology usingVS_SW_VERandVS_NW_INFOmessages. It's similar to-m, but it gives you the complete topology plus each device's hardware and firmware version. Topology is always relative to the local host (or local hosts, if there are several). Powerline devices on the command line don't get used for this one. πΊοΈ
Older QCA powerline devices may fail to respond to this option. If that happens, tryint6kstatorplcstatinstead. π
-vβ Enters verbose mode. Every Ethernet frame the program sends or receives gets displayed on stdout. Very detailed, very main-character. π-w secondsβ Sets how many seconds to wait before repeating the command line options. This does nothing unless-lis also set to a non-zero value. β³-?,--helpβ Prints the program help summary on stdout. This one beats every other option on the command line. π-!,--versionβ Prints the program version info on stdout. This one also beats every other option on the command line. If you're sending screen dumps to Atheros Technical Support, use this so they know exactly which version of the Linux Toolkit you're running. πΈ
π ARGUMENTS β¨
deviceβ The MAC address of a powerline device. You can list more than one, and if you do, the operations run on each device in turn. The default islocal. For symbolic device addresses, see DEVICES. π§Έ
π LINKID β¨
These are the named Link IDs you can pass to -s. π«
0x00,CSMA-CAP0β Shows CSMA stats for CAP0 traffic using a single peer node. You have to specify the peer node MAC address with-p. π£0x01,CSMA-CAP1β Shows CSMA stats for CAP1 traffic using a single peer node. You have to specify the peer node MAC address with-p. π΅0x02,CSMA-CAP2β Shows CSMA stats for CAP2 traffic using a single peer node. You have to specify the peer node MAC address with-p. π©΅0x03,CSMA-CAP3β Shows CSMA stats for CAP3 traffic using a single peer node. You have to specify the peer node MAC address with-p. π0xF8,CSMA-PEERβ Shows CSMA stats for all traffic using a single peer node. You have to specify the peer node MAC address with-p. π©·0xFC,CSMA-ALLβ Shows CSMA stats for all traffic with all peer nodes. You don't need a peer node MAC address here, and if you give one anyway it gets ignored. This is the default for-s. π
πΊοΈ DEVICES β¨
Powerline devices use Ethernet Media Access Control (MAC) addresses. A MAC address is a 48-bit value written as 12 hexadecimal digits, in upper, lower or mixed case. You can separate the octets with colons if you want it to look cleaner. For example, 00b052000001, 00:b0:52:00:00:01 and 00b052:000001 are all valid and equivalent. Iconic. π«Ά
These special MAC addresses can be entered by name instead of by number:
allβ Same asbroadcast. π£broadcastβ A synonym for the Ethernet broadcast address,FF:FF:FF:FF:FF:FF. Every device recognizes messages sent here, whether it's local, remote or foreign. 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 don't. 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 β¨
Check out the Qualcomm Atheros HomePlug AV Firmware Technical Reference Manual for more info. π
β οΈ DISCLAIMER β¨
Atheros HomePlug AV Vendor Specific Management Message Entry structure and content is proprietary to Qualcomm Atheros, Ocala FL USA. That means public info may not be available. Qualcomm Atheros reserves the right to change message structure and content in future firmware releases, without any obligation to notify or compensate users of this program. Rude, but that's the deal. π
π§ͺ EXAMPLES β¨
None. π₯²
π SEE ALSO β¨
plc(1), amplist(1), amprate(1), ampstat(1), amptone(1), amptool(1) π
π― CREDITS β¨
Charles Maier π
Source: open-plc-utils-0.0.3, last updated November 2013. Bye bestie, stay iconic! π¦π β¨
π¦ 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 claude-haiku-5-5 on : a language model's rewrite of the original, under its terms