Koozali.org: home of the SME Server

Nut Help with Tripp Lite Smart 1500LCD

Offline jdc0730

  • **
  • 29
  • +0/-0
Nut Help with Tripp Lite Smart 1500LCD
« on: May 29, 2008, 12:40:26 AM »
I just purchased a Tripp Lite Smart 1500 LCD to replace my aging Belkin.  The only way I can get Nut to see the UPS is to specify the product ID in the ups.conf file (done through a custom-template).  That solved part of the problem.  It is only able to see and connect to the UPS if I launch both upsdrvctl and upsd with the "-u root" option.  Obviously a permissions problem, but I am not sure where to look.  My setup worked fine with the Belkin.  Any help would be appreciated.

Jeff

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: Nut Help with Tripp Lite Smart 1500LCD
« Reply #1 on: May 29, 2008, 07:21:25 AM »
You need to be more specific about your setup.

Is the UPS hooked up via serial or USB?

...The only way I can get Nut to see the UPS is to specify the product ID in the ups.conf file (done through a custom-template)...

You shouldn't need to create a custom template, NUT has db settings for most all UPS settings.

Please show the output of (remove your passwords):

config show nut

In life, you must either "Push, Pull or Get out of the way!"

Offline jdc0730

  • **
  • 29
  • +0/-0
Re: Nut Help with Tripp Lite Smart 1500LCD
« Reply #2 on: May 29, 2008, 01:15:05 PM »
It is connected via USB so it is using "usbhid-ups" as the driver, port is not set.  However, nut is unable to find it without the productid=2007.  I didn't see anything in the template that would set productid.  I had initially tried vendorid=09ae, but that did not work.  Only the combination of productid=2007 and using -u root is allowing the UPS to be found and connected to.

config show nut
nut=service
    MasterPass=4FiDslUBYnpbQJZ/1i6FVySiQHmNEg+Okh6VYDdDgMh1oYQuRnIcCSrPIJs8uxjlCLEAU1H1habg
    Model=usbhid-ups
    SlavePass=g/D56fOZZ3kY1PLINqY2x0dNLx2ncrwN9/Gp+wlr+9dzfw+R+SQ9IIGoD7QQVM/eBkRoMuTbJGka
    status=enabled


lsusb
Bus 008 Device 001: ID 0000:0000  
Bus 007 Device 001: ID 0000:0000 
Bus 006 Device 002: ID 09ae:2007 Tripp Lite
Bus 006 Device 001: ID 0000:0000 
Bus 005 Device 001: ID 0000:0000 
Bus 004 Device 001: ID 0000:0000 
Bus 003 Device 001: ID 0000:0000 
Bus 002 Device 001: ID 0000:0000 
Bus 001 Device 001: ID 0000:0000 


/etc/e-smith/templates-custom/etc/ups/ups.conf/UPS-2
   productid=2007


Steps I tried:
1. upsdrvctl start UPS - "No Matching HID".
2. upsdrvctl -u root start UPS - "No Matching HID"
3. Added productid=2007 to /etc/ups/ups.conf.
4. upsdrvctl start UPS - "No Matching HID".
5. upsdrvctl -u root start UPS - "Detected a UPS..."
6. upsd -d root - "Connected to"
7. upsc UPS - confirm connection

Jeff


Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: Nut Help with Tripp Lite Smart 1500LCD
« Reply #3 on: May 29, 2008, 03:11:01 PM »
You possibly checked this already but http://www.networkupstools.org/compat/stable.html

you should be useing the tripplite_usb driver.......

disreguard this post. I didn't see the correct model number :???: :???:
« Last Edit: May 29, 2008, 03:12:41 PM by mercyh »

Offline jdc0730

  • **
  • 29
  • +0/-0
Re: Nut Help with Tripp Lite Smart 1500LCD
« Reply #4 on: May 29, 2008, 07:39:38 PM »
I believe I have isolated the problem, but I need to confirm when I get home.  The current version of nut used within SME (2.2.0)apparently does not have the productid for the Tripp Lite 1500 LCD in the hotplug map.  The latest version 2.2.2 does.  As a consequence, the permissions are not be adjusted when the UPS is plugged in resulting in an inability for the "nut" user to access it.   I will update the usermap file and see if that resolves the issue.

Offline imcintyre

  • *
  • 609
  • +0/-0
Re: Nut Help with Tripp Lite Smart 1500LCD
« Reply #5 on: May 29, 2008, 09:16:10 PM »
jdc0730

I have a belkin that I have never been able to get to work right. If you still have it, would you post your setup here?

Ian

Offline jdc0730

  • **
  • 29
  • +0/-0
Re: Nut Help with Tripp Lite Smart 1500LCD
« Reply #6 on: May 29, 2008, 09:24:09 PM »
jdc0730

I have a belkin that I have never been able to get to work right. If you still have it, would you post your setup here?

Ian

My previous one was a Belkin Universal something.  I don't know the model number.  When I used with a serial cable, it was Model = belkinunv and port = /dev/ttyS0 (I believe, don't quote me).  That old box when away and when I moved to a new box, I switch to USB and just used the usbhid-ups driver.  Never had a problem. 

Offline jdc0730

  • **
  • 29
  • +0/-0
Re: Nut Help with Tripp Lite Smart 1500LCD
« Reply #7 on: May 29, 2008, 11:31:44 PM »
I believe I have isolated the problem, but I need to confirm when I get home.  The current version of nut used within SME (2.2.0)apparently does not have the productid for the Tripp Lite 1500 LCD in the hotplug map.  The latest version 2.2.2 does.  As a consequence, the permissions are not be adjusted when the UPS is plugged in resulting in an inability for the "nut" user to access it.   I will update the usermap file and see if that resolves the issue.

Just confirming that this was in fact the problem.  I added the appropriate entry to the /etc/hotplug/usb/libhidups.usermap file and replugged the UPS and it is working fine.  Still requires the productid in /etc/ups/ups.conf so if I have missed a variable that can be set, let me know.  Otherwise, the custom-template is doing the trick.

Thanks all!
Jeff