Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Guide: Powerware 5110 UPS monitoring/auto shutdown in Ubuntu 10.04 Lucid

  1. #1
    Join Date
    May 2008
    Beans
    110

    Lightbulb Guide: Powerware 5110 UPS monitoring/auto shutdown in Ubuntu 12.04

    The information in this thread has been moved to https://help.ubuntu.com/community/Po...5110UPSin12.04

    A thread for discussion of the wiki page only can be found here http://ubuntuforums.org/showthread.p...7#post12062077

    Thread closed.


    Guide: Powerware 5110 UPS monitoring/auto shutdown in Ubuntu 12.04 Precise

    NOTE: I take no responsibility if you stuff something up doing this. So long as you have a moderate grasp of Ubuntu/Linux and editing configuration files - then this guide will be very straightforward. Make sure you read carefully and take things slowly.

    I'm going to skip the small talk - you can read over that here (where I stole the commands from):


    That out of the way - here's everything you need to do to get your Powerware 5110 UPS up and running/able to be monitored in Ubuntu 10.04 Lucid.

    Note: Updated this guide to read for Ubuntu 12.04 as I just tested it and it works fine!

    Also note that if you are dual booting with Windows7 or Windows Vista, I believe there is some kind of driver bug whereby your PC may shut down upon Windows startup with the 5110 plugged in via USB.

    There is however a firmware update available from Eaton- or if you recently bought the UPS you should be OK (check the USB F/W version on the side of it, so long as it is higher than 0.5 you should be fine).

    Now, onto the guide...

    The steps...

    This looks like a lot of work - but it will take you a few minutes only!

    Code:
    $ sudo apt-get install nut
    Code:
    $ gksu gedit /etc/nut/ups.conf
    Quote Originally Posted by Insert this text

    [Powerware5110]
    driver = bcmxcp_usb
    port = auto
    Code:
    $ gksu gedit /etc/udev/rules.d/99_nut-serialups.rules
    Quote Originally Posted by Insert this text

    KERNEL=="ttyS0", GROUP="nut"
    Code:
    $ sudo udevadm control --reload-rules
    $ sudo udevadm trigger
    $ sudo upsdrvctl start
    This should output...

    Quote Originally Posted by Output

    Network UPS Tools - UPS driver controller 2.4.3
    Network UPS Tools - BCMXCP UPS driver 0.23 (2.4.3)
    USB communication subdriver 0.18
    Code:
    $ gksu gedit /etc/nut/upsd.conf
    Quote Originally Posted by Insert this text

    ACL all 0.0.0.0/0
    ACL localhost 127.0.0.1/32
    ACCEPT localhost
    REJECT all
    Code:
    $ gksu gedit /etc/nut/upsd.users
    Quote Originally Posted by Insert this text

    [local_mon]
    password = YOUR_PASSWORD_HERE
    allowfrom = localhost
    upsmon master
    Code:
    $ gksu gedit /etc/nut/upsmon.conf
    Quote Originally Posted by Insert this text

    MONITOR Powerware5110@localhost 1 local_mon YOUR_PASSWORD_HERE master
    POWERDOWNFLAG /etc/killpower
    SHUTDOWNCMD "/sbin/shutdown -h now"
    Code:
    $ sudo chown root:nut /etc/nut/*
    $ sudo chmod 640 /etc/nut/*
    Code:
    $ gksu gedit /etc/default/nut
    Quote Originally Posted by Insert this text

    START_UPSD=yes
    START_UPSMON=yes
    Code:
    $ gksu gedit /etc/nut/nut.conf
    Quote Originally Posted by Insert this text

    MODE=standalone
    Code:
    $ sudo /etc/init.d/nut start
    Code:
    $ sudo upsc Powerware5110
    Quote Originally Posted by Output
    ambient.temperature.high: 1
    battery.charge.low: 22
    battery.voltage: 26.9
    device.mfr: Eaton
    device.model: POWERWARE UPS 1500i
    device.serial:
    device.type: ups
    driver.name: bcmxcp_usb
    driver.parameter.pollinterval: 2
    driver.parameter.port: auto
    driver.version: 2.4.3
    driver.version.internal: 0.23
    input.frequency: 49.9
    input.frequency.high: 55
    input.frequency.low: 45
    input.frequency.nominal: 50
    input.transfer.boost.high: 216
    input.transfer.high: 280
    input.transfer.low: 186
    input.transfer.trim.low: 260
    input.voltage: 238
    input.voltage.nominal: 240
    output.current: 0.7
    output.current.nominal: 3.8
    output.frequency: 49.9
    output.phases: 1
    output.voltage: 238
    output.voltage.nominal: 240
    ups.beeper.status: enabled
    ups.firmware: Cont:00.50 Inve:01.50
    ups.load: 18.4
    ups.mfr: Eaton
    ups.model: POWERWARE UPS 1500i
    ups.power.nominal: 1500
    ups.serial:
    ups.status: OL
    Monitoring your UPS from now on...

    Simply run the last command:

    Code:
    $ sudo upsc Powerware5110
    Which will net you the output with all your UPS information. Do with that what you will - feed it into some PHP page with SQL and run LAMP so you can have a live monitor/log of the UPS statistics, output it to a text file, feed it into conky, whatever! This is Linux - your skills are the limit limit
    Last edited by nothingspecial; June 29th, 2012 at 09:22 AM.

  2. #2
    Join Date
    Mar 2009
    Location
    Adelaide, South Australia
    Beans
    2
    Distro
    Ubuntu 9.10 Karmic Koala

    Smile Re: Guide: Powerware 5110 UPS monitoring/auto shutdown in Ubuntu 10.04 Lucid

    ive just tested under 9.10 x64 and works just fine Thankyou for your help

  3. #3
    Join Date
    Oct 2006
    Beans
    3

    Re: Guide: Powerware 5110 UPS monitoring/auto shutdown in Ubuntu 10.04 Lucid

    Nice guide. Thanks!
    Works on Ubuntu Server 10.04 x86_64, with my Powerware 5110 1000i .

  4. #4
    Join Date
    May 2009
    Location
    Australia
    Beans
    109
    Distro
    Ubuntu 10.04 Lucid Lynx

    Smile Re: Guide: Powerware 5110 UPS monitoring/auto shutdown in Ubuntu 10.04 Lucid

    Thanks Menthu_Rae youre an absolute legend.

    This guide worked for me on Ubuntu 10.04 x64 headless server using Eaton Powerware 5110 UPS 500Va

  5. #5
    Join Date
    Dec 2005
    Beans
    30

    Re: Guide: Powerware 5110 UPS monitoring/auto shutdown in Ubuntu 10.04 Lucid

    I used this guide to get status on my Eaton 5110 700VA, running Ubuntu x64 10.10 server.

    One thing though, the info displayed... what should you look for, what info is worth keeping track on both during power and when you loose power.

    Some info I would like to check is current power usage(watt), battery status if its fully charged or not. Estimated time it will last if power goes. And when power goes out keep track of battery status.
    Is this info possible to get from upsc?

  6. #6
    Join Date
    Dec 2005
    Beans
    30

    Re: Guide: Powerware 5110 UPS monitoring/auto shutdown in Ubuntu 10.04 Lucid

    This is what my ups show by the way:
    # upsc Powerware5110
    ambient.temperature.high: 1
    battery.charge.low: 11
    battery.voltage: 13.5
    device.mfr: Eaton
    device.model: POWERWARE UPS 700i
    device.serial: `Ô>
    device.type: ups
    driver.name: bcmxcp_usb
    driver.parameter.pollinterval: 2
    driver.parameter.port: auto
    driver.version: 2.4.3
    driver.version.internal: 0.23
    input.frequency: 49.9
    input.frequency.high: 55
    input.frequency.low: 45
    input.frequency.nominal: 50
    input.transfer.boost.high: 207
    input.transfer.high: 275
    input.transfer.low: 178
    input.transfer.trim.low: 250
    input.voltage: 234
    input.voltage.nominal: 230
    output.current: 0.4
    output.current.nominal: 1.8
    output.frequency: 49.9
    output.phases: 1
    output.voltage: 234
    output.voltage.nominal: 230
    ups.beeper.status: enabled
    ups.firmware: Cont:00.50 Inve:01.50
    ups.load: 22.2
    ups.mfr: Eaton
    ups.model: POWERWARE UPS 700i
    ups.power.nominal: 700
    ups.serial: `Ô>
    ups.status: OL

  7. #7
    Join Date
    Aug 2007
    Beans
    78

    Re: Guide: Powerware 5110 UPS monitoring/auto shutdown in Ubuntu 10.04 Lucid

    Thanks for this excellent guide, works like a charm!

    However, does anyone know what the numbers actually tell me? I want to write a small program that monitors the UPS minutely, and when the battery level goes below a threshold runs a custom script. But... what number tells me the battery level? Or if the UPS is running from battery?

    Thanks in advance!

  8. #8
    Join Date
    Oct 2006
    Location
    Sydney, Australia
    Beans
    17
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Guide: Powerware 5110 UPS monitoring/auto shutdown in Ubuntu 10.04 Lucid

    This worked for me on 11.04. Thanks.

  9. #9
    Join Date
    Apr 2006
    Location
    Ontario, Canada
    Beans
    77
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Guide: Powerware 5110 UPS monitoring/auto shutdown in Ubuntu 10.04 Lucid

    This stopped working on Natty.

    I get the following errors:

    Code:
    $ sudo upsdrvctl start
    Network UPS Tools - UPS driver controller 2.6.0
    Network UPS Tools - Generic HID driver 0.35 (2.6.0)
    USB communication driver 0.31
    Using subdriver: CyberPower HID 0.3
    libusb_get_report: error sending control message: Operation not permitted
    Can't initialize data from HID UPS
    Driver failed to start (exit status=1)
    Code:
    $ sudo /etc/init.d/nut start
     * Starting Network UPS Tools                                            [ OK ] 
                                                                                   
    Broadcast Message from nutmon@forester                                         
            (somewhere) at 13:30 ...                                               
                                                                                   
    Communications with UPS GS-UPS@localhost lost                                  
                                                                                   
                                                                                   
    Broadcast Message from nutmon@forester                                         
            (somewhere) at 13:30 ...                                               
                                                                                   
    UPS GS-UPS@localhost is unavailable

    My config files are as follows:

    ups.conf
    Code:
    [GS-UPS]
    driver = usbhid-ups
    port = auto
    desc = "Geek Squad UPS"
    upsd.conf
    Code:
    LISTEN 127.0.0.1
    LISTEN 192.168.1.20
    upsd.users
    Code:
    [ups-master]
    password = pass
    actions = SET
    instcmds = ALL
    upsmon master 
    
    [ups-user]
    password = pass
    upsmon slave
    upsmon.conf
    Code:
    MONITOR GS-UPS@localhost 1 ups-master pass master
    SHUTDOWNCMD "/sbin/shutdown -h +0"
    RUN_AS_USER nutmon
    nut.conf
    Code:
    MODE=netserver
    /etc/default/nut
    Code:
    START_UPSD=yes
    START_UPSMON=yes

  10. #10
    Join Date
    Apr 2006
    Location
    Ontario, Canada
    Beans
    77
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Guide: Powerware 5110 UPS monitoring/auto shutdown in Ubuntu 10.04 Lucid

    anyone able to help out with this issue?

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •