Koozali.org: home of the SME Server

NUTS problem

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
NUTS problem
« on: August 18, 2007, 06:35:26 PM »
Dear all,

I just configured the nuts exactly like in
http://wiki.contribs.org/NutUPS

I have a APC Smart 1500

when i take a look at the systeminformation i see this:

Code: [Select]
USB Devices - American Power Conversion Back-UPS Pro 500/1000/1500
- Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
 

but in the console:

[code][root@studenten-srv ~]# config show nut
nut=service
    Device=/dev/ttyS0
    MasterPass=586951484295191
    Model=apcsmart
    SlavePass=443788280838891
    Type=7
    status=enabled
[root@studenten-srv ~]#

Code: [Select]
[root@studenten-srv ~]# /etc/rc7.d/S15nut start
Starting upsdrvctl:
Broadcast message from nut (Sat Aug 18 12:33:11 2007):

UPS UPS@localhost is unavailable
Network UPS Tools (version 2.0.5) - APC Smart protocol driver
        Driver version 1.99.8, command table version 2.0
Unable to detect an APC Smart protocol UPS on port /dev/ttyS0
Check the cabling, port name or model name and try again
Network UPS Tools - UPS driver controller 2.0.5
Driver failed to start (exit status=1)
                                                           [FAILED]
Starting upsd: Network UPS Tools upsd 2.0.5
Can't bind TCP port number 3493: Address already in use
                                                           [FAILED]
Starting UPS monitor (master):                             [  OK  ]
[root@studenten-srv ~]#
Broadcast message from nut (Sat Aug 18 12:33:44 2007):

Communications with UPS UPS@localhost lost

Broadcast message from nut (Sat Aug 18 12:33:49 2007):

UPS UPS@localhost is unavailable
[root@studenten-srv ~]#



Does anybody know what i'm doing wrong?


Kind regards[/code]
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: NUTS problem
« Reply #1 on: August 18, 2007, 07:09:01 PM »
Dear all,

I just configured the nuts exactly like in
http://wiki.contribs.org/NutUPS
There are a couple of options (USB and serial) in that article.  If you followed every command in order then you didn't do it right.  The first part of the article sets it up as a USB UPS (default settings) and the second part changes it to a serial USB.


Quote
Does anybody know what i'm doing wrong?


Kind regards
You misunderstood the instructions.  The only thing you needed to do was "config setprop nut status enabled".  USB devices should work by just enabling nut.  That article needs to be clearer IMHO.

First you should remove your settings and revert back to the default settings as the defaults work with most APC USB UPS's.  I have that EXACT UPS and it works fine.

config setprop nut Model newhidups
config delprop nut Device
config delprop nut Model
config delprop nut Type
signal-event post-upgrade
signal-event reboot

NOTE: Those 3 commands in the middle are delprop (as in delete property).
In life, you must either "Push, Pull or Get out of the way!"

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Re: NUTS problem
« Reply #2 on: August 18, 2007, 07:29:56 PM »
That was stupid ...... I HAVE TO READ THE INSTRUCTIONS>>>>>>


I'm very sorry about that.

Now it works fine thank you
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Re: NUTS problem
« Reply #3 on: August 18, 2007, 07:53:49 PM »
Does anybody know how i can configure a client?

it asks for the UPS name and i do not know that name

I'm using winnutclient

Configuration file:

Code: [Select]
[Connection]
Server address=192.168.1.4
Port=3493
UPS name=
Delay=1000
[Colors]
Clocks Color=0x0000FFFF
Panel Color=0x00C0C0C0


What should i fill in in the ups name?


Code: [Select]
[root@studenten-srv ~]# upsc UPS@localhost
battery.charge: 81
battery.charge.low: 10
battery.charge.warning: 50
battery.mfr.date: 2005/02/28
battery.runtime: 540
battery.runtime.low: 120
battery.temperature: 35
battery.type: PbAc
battery.voltage: 27.3
battery.voltage.nominal: 24.0
driver.name: newhidups
driver.parameter.port: /var/lib/ups/hiddev0
driver.version: 2.0.5
driver.version.data: APC/CyberPower HID 0.9
driver.version.internal: 0.30
input.voltage: 121.6
output.voltage: 121.6
output.voltage.nominal: 120.0
ups.beeper.status: enabled
ups.delay.shutdown: -1
ups.firmware: 600.3.D
ups.firmware.aux: 1.5
ups.load: 58.5
ups.mfr: American Power Conversion
ups.mfr.date: 2005/02/28
ups.model: Smart-UPS 1000
ups.serial: AS0510110277
ups.status: OL CHRG
ups.test.result: No test initiated
[root@studenten-srv ~]#
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: NUTS problem
« Reply #4 on: August 18, 2007, 08:11:28 PM »
Did you try?:

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

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: NUTS problem
« Reply #5 on: August 18, 2007, 08:13:28 PM »
That was stupid ...... I HAVE TO READ THE INSTRUCTIONS>>>>>>


I'm very sorry about that.

Now it works fine thank you
No problem.  I updated the article to clarify the difference between default and optional settings.
In life, you must either "Push, Pull or Get out of the way!"

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Re: NUTS problem
« Reply #6 on: August 18, 2007, 08:17:00 PM »
cool, it works.  :-D :-D :-D


I tried big names like the driver name, and serial number and ups1 ups01

but indeed ups only works.


THanks


ps. what is your favorite program to shutdown windows clients in case on batery?
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline haymann

  • *
  • 212
  • +0/-0
Re: NUTS problem
« Reply #7 on: August 31, 2007, 06:51:09 AM »
No problem.  I updated the article to clarify the difference between default and optional settings.
Thanks for updating that, it is much clearer to me now. It would have saved me some time setting mine up:)

Offline dany_it

  • *
  • 15
  • +0/-0
Re: NUTS problem
« Reply #8 on: November 23, 2007, 06:32:08 PM »
I've have a similar problem with a APC SMART-UPS 750.

I've tried to type
Code: [Select]
config setprop nut status enabled
But it seem to don't work:

Code: [Select]
upsc UPS@localhost
Error: Driver not connected

Nut configuration is:

Code: [Select]
config show nut
nut=service
    MasterPass=914786031792523
    Model=usbhid-ups
    SlavePass=262189897836908
    status=enabled

I've another Sme (version 7.0, not 7.2) with the same UPS and the configuration works fine, with the Model: newhidups

I've tried to change the Model with:
Code: [Select]
config setprop nut Model newhidupsbut when I reconfigure and reboot the server it isn't saved and the configuration was the previuos.

Can you help me?

Thank you!

Bye,
Daniele.

PS: sorry for my bad english...!