Koozali.org formerly Contribs.org

nuts ups

Offline hasan

nuts ups
« on: April 08, 2008, 02:23:43 PM »
Hello All,
I have configure my apc usb ups on my smeserver ,
when I do
upsc UPS@localhost
it gives the following output
battery.charge.low: 10
battery.charge.warning: 50
battery.date: 2007/10/01
battery.mfr.date: 2007/10/01
battery.runtime: 1613
battery.runtime.low: 120
battery.type: PbAc
battery.voltage: 13.4
battery.voltage.nominal: 12.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: 255.0
input.voltage.nominal: 230
output.voltage.nominal: 2300.0
ups.beeper.status: disabled
ups.delay.shutdown: -1
ups.firmware: 853.m3.I
ups.firmware.aux: m3
ups.load: 30.0
ups.mfr: American Power Conversion
ups.mfr.date: 2007/10/01
ups.model: Back-UPS ES 650Y-IN
ups.power.nominal: 552
ups.serial: BB0740000947
ups.status: OL CHRG
ups.test.result: No test initiated



Can anyone tell me how to enable the beeper status of my ups.

Thanks in advance

My software is not having any bugs,
It just does some random calculations intelligently :-)

Re: nuts ups
« Reply #1 on: April 09, 2008, 08:53:01 AM »
try :

Code: [Select]
upsrw -s ups.beeper.status  UPS@localhost
Username (root): admin
Password: adminpassw
Enter new value for  ups.beeper.status: 1

or
Code: [Select]
upscmd -u admin UPS@localhost beeper.on


« Last Edit: April 09, 2008, 08:59:52 AM by thomasch »

Offline hasan

Re: nuts ups
« Reply #2 on: April 09, 2008, 03:21:56 PM »
Thanks alot Thomasch,

I followed the same code as you listed but i received the following error

Code: [Select]
[root@server ~]# upsrw -s ups.beeper.status  UPS@localhost
Username (root): admin
Password:
Enter new value for ups.beeper.status: 1
Set variable failed: Access denied
[root@server ~]#

Also when I did teh other command it returned:

Code: [Select]
[root@server ~]# upscmd -u admin UPS@localhost beeper.on
Password:
Instant command failed: Access denied
[root@server ~]#

Please see to it if I am missing something,

Thanks

My software is not having any bugs,
It just does some random calculations intelligently :-)

Offline Stefano

  • *
  • 10,782
  • Skype account: maghissimo
    • Smeserver italian community
Re: nuts ups
« Reply #3 on: April 09, 2008, 03:41:39 PM »
Hi..

try this way:

1) create a new dir
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/ups/upsd.users
cd /etc/e-smith/templates-custom/etc/ups/upsd.users

2) create a new fragment
Code: [Select]
pico upssetup

with this content:
Code: [Select]
[setup]
        password = a_password_of_your_choice
        allowfrom = localhost
        actions = SET
        instcmds = ALL

then ^X and Y to save

3) expand template
Code: [Select]
expand-template /etc/ups/upsd.users

4) restart nut
Code: [Select]
service nut restart

5) change ups setup
Code: [Select]
upsrw -s ups.beeper.status  UPS@localhost
Username (root): setup
Password: your_password
Enter new value for ups.beeper.status: enabled

HTH
Ciao

Stefano
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia

Offline hasan

Re: nuts ups
« Reply #4 on: April 09, 2008, 04:04:21 PM »
Hello nenonano,
           I tried that it really worked, great job  :P

Thank you very much ....
My software is not having any bugs,
It just does some random calculations intelligently :-)

Re: nuts ups
« Reply #5 on: October 26, 2008, 01:28:29 AM »
Hi,
 I seem to be having a issue changing one of the variable. Can anyone through some light on it..

]# upsc UPS@localhost
battery.charge: 100
battery.voltage: 26.7
battery.voltage.nominal: 24
driver.name: belkinunv
driver.parameter.pollinterval: 2
driver.parameter.port: /dev/ttyS0
driver.version: 2.2.0-
driver.version.internal: 0.06
input.frequency: 49.9
input.frequency.nominal: 50
input.sensitivity: normal
input.transfer.high: 264
input.transfer.low: 187
input.voltage: 244.1
input.voltage.maximum: 244.7
input.voltage.minimum: 241.8
input.voltage.nominal: 230
output.frequency: 49.9
output.voltage: 243.6
ups.beeper.status: enabled
ups.delay.restart: 0
ups.delay.shutdown: 0
ups.firmware: 0
ups.load: 31
ups.model: F6C800xxUNV 
ups.power.nominal: 800
ups.status: OL CHRG
ups.test.result: test passed
ups.type: OFFLINE

Want to change the ups.delay.shutdown value

and when I do this:

upsrw -s ups.delay.shutdown=60 UPS@localhost
Username (root): setup
Password:
Set variable failed: Read-only variable

Can anyone help me???


Re: nuts ups
« Reply #6 on: October 26, 2008, 02:43:55 AM »
Did you read the how-to? I assume so. It will tell you the procedure.
http://wiki.contribs.org/Uninterruptable_Power_Supply#Modifying_UPS_Parameters

Quote
Set variable failed: Read-only variable
Perhaps it is.

what did the following command tell you?
Code: [Select]
upsrw ups
If it is not in the list, I expect is not writable.
SME since 2003