1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

NAS and UPS

Discussion in 'Cisco/Linksys Network Storage Devices' started by leijona, Jan 21, 2009.

  1. leijona

    leijona Addicted to LI Member

    Hello again,
    is there a way to manage a UPS from NAS via USB and shutdown the device before the UPS runs out from battery ?
     
  2. dsc68

    dsc68 Addicted to LI Member

    Not using the standard firmware. The USB ports only recognise storage devices.

    One option is to use a separate PC to monitor the UPS and shutdown the NAS by issuing the appropriate commands either via the web interface or over telnet/ssh using the JAC firmware.
     
  3. kkbass

    kkbass Guest

    Is there any way to add support to a custom firmware like JAC, or has someone already done UPS support? I would be more than willing to give up one of the USB ports to have it shutdown properly from the UPS. I do not always have another machine running in the house to have it issue a proper shutdown.
     
  4. dush

    dush Addicted to LI Member

    first you'll (most likely) need the evdev module for USB event device support.
    type "find /lib -name evdev.ko" in a terminal and hit enter (without quotes). if a filename shows up insmod it. if nothing shows up you'll have to request it from jac (or request the source code since you'll need the toolchain for the next part).

    next you'll have to find the right userspace tool for your ups. I'm using one from APC which uses the tool apcupsd in linux. build it against the toolchain and upload it to your nas device.

    if you don't know how to do this you'll have to wait for someone else to build it :)
     
  5. jac_goudsmit

    jac_goudsmit Super Moderator Staff Member Member

    This is an embedded device with limited ROM space. No unused kernel modules are stored in the ROM filesystem, so don't bother looking, it's not there.

    If you want the source code, send me an email at jac at goudsm dot it. Unfortunately I have no experience with UPS support under Linux so I'm afraid I can't assist you any further...

    ===Jac
     

Share This Page