Red Squirrel

No Lifer
May 24, 2003
69,498
13,185
126
www.anyf.ca
I have an Ultra 100va/600Watt UPS and trying to get the software working properly in linux. The problem is, it outputs this:

Thu Jun 16 21:37:01 EDT 2005
Copyright(c) Powercom Co., Ltd., all rights reserved.
UPSMON V0.91a program start!
UPSMON: The UPS serial port use /dev/ttyS0.
UPSMON: Ac Fail count down is seted 10 secs.
UPSMON: UPS shutdown delay time is seted 5 mins and 0 secs.
Check UPS type.....
Copyright(c) Powercom Co., Ltd., all rights reserved.
UPSMON V0.91a program start!
UPSMON: The UPS serial port use /dev/ttyS0.
UPSMON: Ac Fail count down is seted 10 secs.
UPSMON: UPS shutdown delay time is seted 5 mins and 0 secs.
Check UPS type.....


Then the rest of the output is no longer made through the > or >> buffer, but directly on the OS screen. How can I capture it all into the >> buffer? When I run it directly it will output all that, then show the prompt, and any other output is done on top of the prompt. So it seems once it's initialized, it leaves the buffer and any other output is seperate.

It does generate a log file though, but I rather have it go where all my other logs go - and there's not much config to it, just a command to start it, I specify the UPS shutdown delay, OS shutdown delay, and port, and that's it. I'll let it charge overnight and unplug it tomorow to test the shut down proceedure.
 

Red Squirrel

No Lifer
May 24, 2003
69,498
13,185
126
www.anyf.ca
Another problem with the UPS that I noticed, probably a setting of some sort, if the power goes out (tested by unplugging it) it will beep, normal, but when I plug it back in it continues beeping until I push the button. Any way to make it not do that? I think it has to do with the ups shut off option, it does not cancel the shut off even if the power is restored.