Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: hasan 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
-
try :
upsrw -s ups.beeper.status UPS@localhost
Username (root): admin
Password: adminpassw
Enter new value for ups.beeper.status: 1
or
upscmd -u admin UPS@localhost beeper.on
-
Thanks alot Thomasch,
I followed the same code as you listed but i received the following error
[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:
[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
-
Hi..
try this way:
1) create a new dir
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
pico upssetup
with this content:
[setup]
password = a_password_of_your_choice
allowfrom = localhost
actions = SET
instcmds = ALL
then ^X and Y to save
3) expand template
expand-template /etc/ups/upsd.users
4) restart nut
service nut restart
5) change ups setup
upsrw -s ups.beeper.status UPS@localhost
Username (root): setup
Password: your_password
Enter new value for ups.beeper.status: enabled
HTH
Ciao
Stefano
-
Hello nenonano,
I tried that it really worked, great job :P
Thank you very much ....
-
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???
-
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
Set variable failed: Read-only variable
Perhaps it is.
what did the following command tell you?
upsrw ups
If it is not in the list, I expect is not writable.