ofysctl [-Dttydevice] [-?hvqausiobefrtnlBQ] [-S [-E]] [-T[hh:mm:ss,day]] [-N[hh:mm,day]] [-Ls]
ofysctl manages Socomec/Sicon Ofys UPS.
ofysctl allows to check the status of the UPS, and to set a power-on timer, a stand-by timeout, to test the battery and to silent the buzzer.
It assumes the UPS is connected to a serial port. Default port device is chosen at compile time, usually /dev/ttyS0. A different port may be specified in OFYSTTY environment variable or through the -D command line option.
See README file in the documentation directory for informations anout the serial cable.
One letter parameters can be specified separately or grouped together with one leading dash.
Show summary of options.
Specify that the UPS device is connected to ttydevice. Default is chosen at compile time, usually /dev/ttyS0. This option overrides the value specified in OFYSTTY environment variable.
Increase verbosity.
Decrese verbosity
Display all available infomations. Implies -usiobefrtnl options.
Display UPS version. This is a string provided by the device.
Display UPS status. It includes informations about the input voltage and the inverter status.
Display input voltage.
Display battery voltage.
Display battery charge.
Display UPS internal temperature. Since version 3.0 of the UPS firmware this value is fixed to 27° C.
Display input frequency.
Display output frequency (50 or 60 Hz).
Display UPS clock (hh:mm:ss,day of the week). Set this value with -T option.
Display scheduled power-on time (hh:mm,day of the week). Set this value with -N option.
Display stant-by delay time. This is the time the UPS waits before going in stan-by mode after receiving the shutdown command (-S option). Set this value with -L option.
Set UPS clock. Syncronizes it with system clock, if no value given; otherwise uses hh:mm:ss,day, where the four values are respectively hours, minutes, seconds and the day of the week in numerical form (1=Monday, 7=Sunday).
Set power-on time. When the UPS clock matches power-on time, the UPS changes from stand-by mode to operating mode. The UPS power-on time is clear if no value is given on the command line, otherwise uses [hh:mm,day], where the three values are respectively hours, minutes and the day of the week in numerical form (1=Monday, 7=Sunday).
Set stand-by delay time to s. This is the time the UPS waits before going in stan-by mode after receiving the shutdown command (-S option).
Battery test. Go in battery mode for a few seconds.
Silent buzzer. Effective in battery mode or in case of low battery charge.
Go to stand-by after the progammed delay (see -l and -L option). If the delay is 0, go stand-by immediately. To make the UPS go back on-line when the power comes back, see -L option. WARNING: all appliances connected to the UPS output will be turned off!!!!
Used with -S option makes the UPS go back on-line when the power comes back.
If defined, ofysctl will use that tty device instead of the default one. It is overridden by the -D option.