Koozali.org: home of the SME Server

Short UPS Question [SOLVED]

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Short UPS Question [SOLVED]
« on: March 13, 2012, 11:16:53 AM »
Hi All,

I have come to add another SME to the mix and plugged mains into our UPS, an APC SmartUPS 700 - this is already setup and working. From the UPS howto, on the additional SME I have ;

config setprop nut SlaveUPS UPS@192.168.1.1  (IP of Master)
config setprop nut Master no
signal-event post-upgrade
signal-event reboot

Now, when I ask for info by doing ;

upsc UPS@192.168.1.1

I get a screen full of info including battery charge states etc

Is that it? Nothing more to do? Im only asking because a

# config show nut

nut=service
    Master=no
    MasterPass=380717439666973
    Model=usbhid-ups
    SlavePass=728986054554372
    SlaveUPS=UPS@192.168.1.1
    status=disabled

That last status line bothered me??

Any comments / feedback / words of wisdom apprecaited :)



« Last Edit: March 13, 2012, 01:28:47 PM by gbentley »
"If you don't know what you want, you end up with a lot you don't."

Offline TerryF

  • grumpy old man
  • *
  • 1,848
  • +6/-0
Re: Short UPS Question
« Reply #1 on: March 13, 2012, 12:18:27 PM »
You need to enable nut..

config setprop nut status enabled
signal-event post-upgrade signal-event reboot

See here
--
qui scribit bis legit

Offline elmarconi

  • ****
  • 139
  • +0/-0
Re: Short UPS Question
« Reply #2 on: March 13, 2012, 12:55:15 PM »
You need to enable nut..

Code: [Select]
config setprop nut status enabled
signal-event post-upgrade; signal-event reboot

See here

I wouldn't reboot.

Code: [Select]
config setprop nut status enabled
service nut start

That should do the job.


...

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Re: Short UPS Question
« Reply #3 on: March 13, 2012, 01:05:18 PM »
Edit: sorry, my fault - missed post-upgrade step - duh!

I know you can expand the templates by hand but anyways all sorted ... for future ref of setting up a slave to another sme with an APC on ttyS0 ;


config setprop nut Device /dev/ttyS0
config setprop nut Model apcsmart
config setprop nut status enabled
config setprop nut SlaveUPS UPS@192.168.1.1
config setprop nut Master no
expand-template /etc/sysconfig/ups
expand-template /etc/ups/ups.conf
expand-template /etc/ups/upssched.conf
expand-template /etc/ups/upsmon.conf
expand-template /etc/ups/upsd.users
expand-template /etc/ups/upsd.conf
service nut start
config show nut
upsc UPS@192.168.1.1
« Last Edit: March 13, 2012, 01:36:43 PM by gbentley »
"If you don't know what you want, you end up with a lot you don't."