APCUPS for Solaris

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

APCUPS for Solaris

Pickering, Roger (NIH/NIAAA) [E]

I need to be able to connect my Solaris server to my APC Smart UPS, but my Solaris server doesn’t have a serial port and the Power Chute software doesn’t support the USB port in Solaris.

 

I’ve tried several times to compile your code with USB support, but I get an incredible amount of errors:

 

"/opt/csw/apc/apcupsd-3.14.14/include/struct.h", line 206: warning: no explicit type given

"/opt/csw/apc/apcupsd-3.14.14/include/struct.h", line 206: syntax error before or at: {

"/opt/csw/apc/apcupsd-3.14.14/include/struct.h", line 206: warning: syntax error:  empty declaration

"/opt/csw/apc/apcupsd-3.14.14/include/struct.h", line 207: parameter not in identifier list: bool

"/opt/csw/apc/apcupsd-3.14.14/include/struct.h", line 207: syntax error before or at: is_onbatt_msg

"/opt/csw/apc/apcupsd-3.14.14/include/struct.h", line 207: parameter not in identifier list: is_onbatt_msg

"/opt/csw/apc/apcupsd-3.14.14/include/struct.h", line 207: warning: no explicit type given

"/opt/csw/apc/apcupsd-3.14.14/include/struct.h", line 207: syntax error before or at: {

"/opt/csw/apc/apcupsd-3.14.14/include/struct.h^Cgmake[3]: *** Deleting file '.obj/apcerror.o'

 

I’m running Solaris 10 on a SUN Fire, x4250.  The UPS is a SmartUPS 1000. 

 

Roger P. Pickering | Staff Scientist
Laboratory of Epidemiology and Biometry

Division of Intramural Clinical and Biological Research

National Institute on Alcohol Abuse and Alcoholism

National Institutes of Health
5635 Fishers Lane, Room 3071, Bethesda, MD 20892-9304

Phone: 301-443-2535     Fax 301-443-1400

 

Description: cid:image002.png@01CE36B4.03770CF0

 


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Apcupsd-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
Reply | Threaded
Open this post in threaded view
|

Re: APCUPS for Solaris

Ted Mittelstaedt-5
Hi Roger:

According to the following:

http://docs.oracle.com/cd/E19253-01/817-0547/gbzzj/index.html

You can use a USB to Serial dongle.  I wrote an exhaustive article
on these here:

http://www.portlandiacloudservices.com/usb-to-rs232-serial-port-adapters-clones-counterfeits/

Beware there's a lot of trash out there.

Ted

On 12/5/2016 11:08 AM, Pickering, Roger (NIH/NIAAA) [E] wrote:

> I need to be able to connect my Solaris server to my APC Smart UPS, but
> my Solaris server doesn’t have a serial port and the Power Chute
> software doesn’t support the USB port in Solaris.
>
>
>
> I’ve tried several times to compile your code with USB support, but I
> get an incredible amount of errors:
>
>
>
> "/opt/csw/apc/apcupsd-3.14.14/include/struct.h", line 206: warning: no
> explicit type given
>
> "/opt/csw/apc/apcupsd-3.14.14/include/struct.h", line 206: syntax error
> before or at: {
>
> "/opt/csw/apc/apcupsd-3.14.14/include/struct.h", line 206: warning:
> syntax error:  empty declaration
>
> "/opt/csw/apc/apcupsd-3.14.14/include/struct.h", line 207: parameter not
> in identifier list: bool
>
> "/opt/csw/apc/apcupsd-3.14.14/include/struct.h", line 207: syntax error
> before or at: is_onbatt_msg
>
> "/opt/csw/apc/apcupsd-3.14.14/include/struct.h", line 207: parameter not
> in identifier list: is_onbatt_msg
>
> "/opt/csw/apc/apcupsd-3.14.14/include/struct.h", line 207: warning: no
> explicit type given
>
> "/opt/csw/apc/apcupsd-3.14.14/include/struct.h", line 207: syntax error
> before or at: {
>
> "/opt/csw/apc/apcupsd-3.14.14/include/struct.h^Cgmake[3]: *** Deleting
> file '.obj/apcerror.o'
>
>
>
> I’m running Solaris 10 on a SUN Fire, x4250.  The UPS is a SmartUPS 1000.
>
>
>
> *Roger P. Pickering***|/Staff Scientist
> /Laboratory of Epidemiology and Biometry
>
> Division of Intramural Clinical and Biological Research
>
> National Institute on Alcohol Abuse and Alcoholism
>
> National Institutes of Health
> 5635 Fishers Lane, Room 3071, Bethesda, MD 20892-9304/_
> _/Phone:301-443-2535     Fax 301-443-1400
>
>
>
> Description: cid:image002.png@01CE36B4.03770CF0
>
>
>
>
>
> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/xeonphi
>
>
>
> _______________________________________________
> Apcupsd-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/apcupsd-users
>

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Apcupsd-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/apcupsd-users