This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

How do I determine the port value for my UPS?

Green PC, UPS, Power saving, etc.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
oRAirwolf
Starter
Starter
Posts: 20
Joined: 28 Jun 2013 12:35
Status: Offline

How do I determine the port value for my UPS?

Post by oRAirwolf »

I ordered an APC Back-UPS ES 550VA (BE550G) and I wanted to make sure I could figure out how to configure it when it arrives next Tuesday.

My goal is to have it shut down the NAS server after 1 minute if the power goes out. Nothing fancy.

My understand with this UPS is that I need to use the "usbhid-ups" driver. The part that I am getting hung up on is what port I will need to specify in the port field. This is pretty much my first exposure to a FreeBSD/Linux style environment outside of running a live boot of Ubuntu/Mint/Backtrack etc.

Do I use the "usbconfig" command from an SSH shell to get the port? Here is the current output from that command, which includes a receiver for a wireless keyboard, but does not include the UPS, as I have not received it yet:

Code: Select all

nas4free: ~ # usbconfig
ugen0.1: <UHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen1.1: <UHCI root HUB Intel> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen2.1: <UHCI root HUB Intel> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen3.1: <UHCI root HUB Intel> at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen4.1: <EHCI root HUB Intel> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
ugen2.2: <2.4GHz receiver Shenzhen LogoTech> at usbus2, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
Is the port the "ugenX.X" value or do I need to do something else to obtain this information?

Are there any additional parameters I should be using with this UPS? Is there a way to have the server to boot itself back up after a power failure?

Thanks!
NAS4Free x64 embedded on Corsair Nova 30Gb SSD - Intel Core i7-3770k - 16GB RAM - 4 x 3TB Seagate ST3000DM001 in ZFS RAID-Z Single Parity - Intel Gigabit CT PCI-E NIC - Cyberpower CP1500AVRLCD 1500 VA UPS - Corsair C70 Vengeance Case (OD Green)

OCD-Level list of NAS hardware

User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 306
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

Re: How do I determine the port value for my UPS?

Post by kkd »

try "auto" as port.
boot back the sever never depends on ups but u can check the server bios there must be an option what to after power lost (ie. state back)
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

User avatar
oRAirwolf
Starter
Starter
Posts: 20
Joined: 28 Jun 2013 12:35
Status: Offline

Re: How do I determine the port value for my UPS?

Post by oRAirwolf »

Thanks! I will try that when it comes in.
NAS4Free x64 embedded on Corsair Nova 30Gb SSD - Intel Core i7-3770k - 16GB RAM - 4 x 3TB Seagate ST3000DM001 in ZFS RAID-Z Single Parity - Intel Gigabit CT PCI-E NIC - Cyberpower CP1500AVRLCD 1500 VA UPS - Corsair C70 Vengeance Case (OD Green)

OCD-Level list of NAS hardware

chrisf4lc0n
Advanced User
Advanced User
Posts: 262
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: How do I determine the port value for my UPS?

Post by chrisf4lc0n »

Or try USB :)
Watercooling is just the beginning ;)

ppineda
NewUser
NewUser
Posts: 2
Joined: 28 Sep 2013 23:18
Status: Offline

Re: How do I determine the port value for my UPS?

Post by ppineda »

kkd wrote:try "auto" as port.
boot back the sever never depends on ups but u can check the server bios there must be an option what to after power lost (ie. state back)
Auto did not work for me. This is what I did (Posted in another thread, but thought it would be helpful here too):

I ran usbconfig

nas4free: /dev # usbconfig
ugen0.1: <EHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
ugen1.1: <EHCI root HUB Intel> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
ugen0.2: <product 0x0020 vendor 0x8087> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
ugen1.2: <product 0x0020 vendor 0x8087> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
ugen1.3: <UPS CP600 CPS> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
ugen1.4: <USB Keykoard USB> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
ugen1.5: <USB Mouse Logitech> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON

Saw that I had a UPS on ugen1.3

Then I went to /dev and did a ls -l and saw

lrwxr-xr-x 1 root wheel 9 Sep 28 15:35 ugen0.1 -> usb/0.1.0
lrwxr-xr-x 1 root wheel 9 Sep 28 15:35 ugen0.2 -> usb/0.2.0
lrwxr-xr-x 1 root wheel 9 Sep 28 15:35 ugen1.1 -> usb/1.1.0
lrwxr-xr-x 1 root wheel 9 Sep 28 15:35 ugen1.2 -> usb/1.2.0
lrwxr-xr-x 1 root wheel 9 Sep 28 15:35 ugen1.3 -> usb/1.3.0
lrwxr-xr-x 1 root wheel 9 Sep 28 15:35 ugen1.4 -> usb/1.4.0
lrwxr-xr-x 1 root wheel 9 Sep 28 15:35 ugen1.5 -> usb/1.5.0

That ugen1.3 is mapped to usb/1.3.0

I used usb/1.3.0 as the port and picked driver to be usbhid-ups. That was after I tried a couple of other drivers that were wrong. If it was wrong it threw a error 1 when I tried to save. So it didn't hurt just trying different drivernames.

Then I didn't get the error and I unplugged the UPS and saw it email me when on battery power and shut itself down after 30 seconds. I think I'm going to switch it to shutdown when battery low instead though...

Post Reply

Return to “Other hardware”