egctl(1)
π egctl β the EnerGenie EG-PMS-LAN/WLAN control utility π
okay bestie, gather round, because this is the manual page for egctl β that's the general commands girlie from section 1 of the manual, and she's here to make your surge protector do tricks. π¦
β¨ NAME β¨
egctl β EnerGenie EG-PMS-LAN/WLAN control utility. no cap, that's literally her whole job description.
πΈ SYNOPSIS πΈ
egctl NAME [S1 S2 S3 S4]
π DESCRIPTION π
egctl is a program that controls the state of an EnerGenie Programmable surge protector with a LAN/WLAN interface. she talks the device's native data exchange protocol, not HTTP β so she's speaking the device's love language directly, no middleman, no web drama. π
the way she works is lowkey elegant: run her with only one argument and she dumps the state of the device you named. run her with all five arguments and she changes the state of the device and dumps the new state. she does both. she's an overachiever like that. π
π OPTIONS π
NAMEβ the name of the device you wanna control, exactly as it is specified in the configuration file. heads up bestie: this name has no relation to the IP address or the domain name. it's just a nickname, it's giving pet name energy, it's not a network address. πSnβ the action to perform on the n-th socket. the possible values are:on,off,toggleandleft.
quick translation of the socket actions:onturns it on,offturns it off,toggleflips whatever it currently is, andleftmeans leave it exactly as it is, don't touch, hands off. β
π CONFIGURATION π
the configuration file is a table of devices. each device gets described on a separate line, and the fields on each line are separated by tabs or spaces. lines starting with # are comments, and blank lines are ignored. very chill of her, honestly.
here's what each field means, in order:
- the first field β name of device. it's a string that gets used to address the device in the utility commands. it is not necessary to be the same as Server name in the web interface. so call it whatever, she won't judge. π«Ά
- the second field β protocol. the supported protocols are:
pms20,pms21, andpmswlan. - the third field β IP address of device.
- the fourth field β TCP port of device. (that's the Power Manager client port in the web interface, iykyk.)
- the fifth field β optional plain-text password.
π SUPPORTED DEVICES π
EG-PMS-LANβ protocolpms20EG-PM2-LANβ protocolpms21EG-PMS2-LANβ protocolpms21EG-PMS-WLANβ protocolpmswlan
π₯ EXAMPLES π₯
okay so imagine a user has two EG-PMS-LAN devices configured like this:
192.168.0.10, port5000, passwordhackme192.168.10.10, port5001, passwordhackmesoftly
in order to control them using the utility, the user needs to create a configuration file like the following:
eg1 pms20 192.168.0.10 5000 hackme
eg2 pms20 192.168.10.10 5001 hackmesoftly
now she can get the status of the devices with commands
egctl eg1
egctl eg2
and switch the state of the AC power sockets with a command like
egctl eg1 on left left off
periodt. π
that last one turns socket 1 on, leaves sockets 2 and 3 alone, and turns socket 4 off. iconic behaviour.
π§ FILES π§
~/.egtabβ user's configuration file/etc/egtabβ system-wide configuration file
π BUGS π
this program cannot modify the internal schedule of the device. that's it, that's the limitation, she simply does not have that power and we respect her boundaries. π
π AUTHOR π
written by Vitaly Sinilin <vs@kp4.ru>
β TRADEMARKS β
EnerGenie is a registered trademark of Gembird Holding B.V. β protecting the brand name, as she should. π
and that's the whole vibe check, bestie π this was egctl from 2 Jan 2023, manual page for the General Commands Manual, and honestly? she ate. go forth and toggle your sockets. πΈβ¨π
π¦ where this page comes from
- ubuntu resolute: egctl 1:0.3-2 Β· MIT
- ubuntu stonking: egctl 1:0.3-2 Β· MIT
- Copyright (c) 2014, 2017, 2023 Vitaly Sinilin <vs@kp4.ru>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms