plcotst(1)

πŸ’… plcotst β€” PLC One-Time Self-Test Manager πŸ’…

okay so real quick bestie: this is the plcotst page from the Qualcomm Atheros Open Powerline Toolkit, and it's literally the manager for the PLC One-Time Self-Test feature. buckle up, it's actually so good 🫢


✨ SYNOPSIS ✨

plcotst [options] [device] [device] [...]

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea: this thing manages the PLC One-Time Self-Test feature on Atheros powerline devices. Normally the selftest runs once, on startup, at the factory β€” iconic, one-time-only behavior, very main character. But plot twist: you can also configure it and run it again with this utility. πŸ’…

The selftest results get stored by the firmware, and yes, you can read them back with this utility too. Here's the vibe check on how it decides what to do:

  • If you pass configuration options on the command line, the selftest gets configured.
  • Otherwise, selftest results are read or cleared. periodt.

This program is part of the Qualcomm Atheros Powerline Toolkit. Peep the plc man page for an overview and the installation instructions β€” iykyk. 🌈


πŸ’– OPTIONS πŸ’–

  • -c version β€” the configuration version number, bestie. Permitted values are 0 through 255. The default is 0. This option applies to both selftest configuration and selftest results, so it's doing double duty, no cap.
  • -C β€” clear the stored selftest results. This option clears stored selftest results. It implies selftest results and supercedes options -d, -f, -m, -r and -R, if present on the command line. so if you put both, -C wins, sorry not sorry.
  • -d seconds β€” delay the selftest after reboot. Permitted delay times are 0 through UINT_MAX seconds. The default is 0 seconds. This option implies selftest configuration and supercedes option -C, if present on the command line. ⏰
  • -e β€” redirects stderr messages to stdout. By convention, status and error messages are printed on stderr while primary program output is printed on stdout. This option prints all output on stdout in cases where this is desired. merge the streams, slay. 🌊
  • -f count β€” run the flash memory selftest count times. Valid values are 0 through UINT_MAX. The default is 0, which effectively suppresses the test. This option implies selftest configuration and supercedes option -C, if present on the command line.
  • -m count β€” run the memory selftest count times. Valid values are 0 through UINT_MAX. The default is 0, which suppresses effectively the test. This option implies selftest configuration and supercedes option -C, if present on the command line.
  • -q β€” suppresses status messages on stderr. shhh, quiet hours 🀫
  • -r flag β€” run selftest after reboot. Permitted values are 0 through 255. Expected values are 0 for false and 1 for true. The default is 1. Heads up though: if the memory test count and the flash test count are both 0, no testing will occur when the time comes. This option implies selftest configuration and supercedes option -C, if present on the command line. 😭
  • -R flag β€” reset the device after selftest. Permitted values are 0 through 255. Expected values are 0 for false and 1 for true. The default is 0. This option applies to selftest configuration only and supercedes option -C, if present on the command line. πŸ”„
  • -t timeout β€” read timeout in milliseconds. Values range from 0 through UINT_MAX. This is the maximum time allowed for a response. The default is shown in brackets on the program menu. ⏳
  • -v β€” print additional information on stdout. In particular, this option dumps incoming and outgoing packets, which can be saved as text files for reference. very demure, very forensic. πŸ”
  • -?,--help β€” print the program help summary on stdout. This option takes precedence over other options on the command line. it's giving "I'm the boss here". πŸ‘‘
  • -!,--version β€” print program version information on stdout. This option takes precedence over other options on the command line. 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. fr fr, they need the receipts. πŸ“Έ

πŸŽ€ ARGUMENTS πŸŽ€

  • device β€” the Ethernet hardware address of some powerline device. More than one address may be specified on the command line. If more than one address is specified, then operations are performed on each device in turn. The default address is local. as explained in the DEVICES section.

🌸 EXAMPLES 🌸

This first one prints stored test results for the local device on stdout, because no options are specified on the command line. baby's first invocation πŸ’–

# plcotst

The next example prints stored test results for remote device 00:B0:52:BA:BE:DE and clears them afterwards.

# plcotst -C

The next example configures the PLC selftest to wait 5 seconds before execution, because option -d is present. It also configures the selftest to reset the device after execution, because option -R is present. πŸ¦‹

# plcotst -d 5 -R

⭐ REFERENCES ⭐

See the Qualcomm Atheros Powerline Firmware Technical Reference Manual for more information about firmware selftest. πŸ“š


πŸ’€ DISCLAIMER πŸ’€

None.

(yeah, that's the whole thing. nothing. zero. nada. the disclaimer said "no thoughts, head empty" and honestly? respect. πŸ™ˆ)


πŸ‘‘ SEE ALSO πŸ‘‘


🧚 CREDITS 🧚

  • Charles Maier

and that's the whole page bestie, we ate and left no crumbs πŸ“βœ¨

open-plc-utils-0.0.3 β€” November 2013, that's the version and date this page came from, so when you cite it you know exactly which era of the toolkit you're living in πŸ’œ