egctl(1) | General Commands Manual | egctl(1) |
egctl - EnerGenie EG-PMS-LAN control utility
egctl NAME [S1 S2 S3 S4]
egctl is a program to control the state of EnerGenie Programmable surge protector with LAN interface. It uses native EG-PMS-LAN data exchange protocol version 2.0 or 2.1, not HTTP. When executed with the only argument it dumps the state of the specified device. If all five arguments are specified, it changes the state of the device and dumps the new state.
Configuration file is a table of devices. Each device is described on a separate line; fields on each line are separated by tabs or spaces. Lines starting with '#' are comments, blank lines are ignored.
Device | Protocol |
EG-PMS-LAN | pms20 |
EG-PMS2-LAN | pms21 |
Suppose a user has two EG-PMS-LAN devices configured as follows:
In order to control them using the utility the user needs to create a configuration file like the following:
Now she can get the status of the devices with commands
and switch the state of the AC power sockets with a command like
This program cannot modify the internal schedule of the device.
Written by Vitaly Sinilin <vs@kp4.ru>
EnerGenie is a registered trademark of Gembird Holding B.V.
19 August 2014 | egctl |