Koozali.org: home of the SME Server

[SOLVED] Remove UPS slave settings

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
[SOLVED] Remove UPS slave settings
« on: April 25, 2014, 03:52:07 PM »
Hi All - from the wiki ;

Configuring as a slave
Set configuration values:
config setprop nut SlaveUPS UPS@192.168.33.11
config setprop nut Master no

How do I reverse the above i.e. remove the settings altogether so its as before I setup the slave?

I know I can do ;

# /usr/sbin/upsmon -c stop

but obviously the service starts again at reboot and sends errors as the Master is now not present!

Thanks!
« Last Edit: April 28, 2014, 12:21:23 PM by gbentley »
"If you don't know what you want, you end up with a lot you don't."

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: UPS Question: remove slave settings
« Reply #1 on: April 25, 2014, 04:30:17 PM »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Re: UPS Question: remove slave settings
« Reply #2 on: April 28, 2014, 12:20:42 PM »
# db configuration show nut
nut=service
    Device=/dev/ttyS0
    Master=no
    MasterPass=770159464186640
    Model=apcsmart
    SlavePass=234348277224018
    SlaveUPS=UPS@192.168.1.1
    status=enabled

# db configuration getprop nut status
enabled

# db configuration delete nut
# db configuration show nut
#

The abbreviation 'config' doesnt work here.
"If you don't know what you want, you end up with a lot you don't."

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: [SOLVED] Remove UPS slave settings
« Reply #3 on: April 28, 2014, 12:47:13 PM »
Quote
The abbreviation 'config' doesnt work here.

this should be investigated.. bugzilla is there, thank you..

Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0
Re: [SOLVED] Remove UPS slave settings
« Reply #4 on: April 28, 2014, 02:13:18 PM »
See wiki http://wiki.contribs.org/Useful_Commands#db_command Note Box

Use of 'config' is a shorthand version for 'db configuration' and therefore only works with the configuration database 
--
qui scribit bis legit

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: UPS Question: remove slave settings
« Reply #5 on: April 28, 2014, 02:28:52 PM »
gbentley

Quote
The abbreviation 'config' doesnt work here.

Works OK for me.
Perhaps you are logging in as a user other than root, & path statements are not correctly set, so the link is not being found.
Go to bugzilla
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: [SOLVED] Remove UPS slave settings
« Reply #6 on: April 28, 2014, 02:46:32 PM »
Set configuration values:
config setprop nut SlaveUPS UPS@192.168.33.11
config setprop nut Master no

How do I reverse the above i.e. remove the settings altogether so its as before I setup the slave?

config delprop nut SlaveUPS
config delprop nut Master

Once you get this working, please enhance the information in the wiki, so that future users don't need to re-discover what you are learning.

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: [SOLVED] Remove UPS slave settings
« Reply #7 on: April 28, 2014, 07:25:59 PM »
For those who don't know how to have permissions to edit the wiki http://wiki.contribs.org/Help:Contents#How_to_get_a_wiki_account.3F


Like charlie said it is important to add our experiences and our knowledge to the wiki. If you have a doubt you can ask here that someone read what you wrote in order  to correct your wiki syntax for example.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!