Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: gbentley on April 25, 2014, 03:52:07 PM

Title: [SOLVED] Remove UPS slave settings
Post by: gbentley 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!
Title: Re: UPS Question: remove slave settings
Post by: janet on April 25, 2014, 04:30:17 PM
Time to read
http://wiki.contribs.org/Db_command_tutorial
Title: Re: UPS Question: remove slave settings
Post by: gbentley 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.
Title: Re: [SOLVED] Remove UPS slave settings
Post by: Stefano on April 28, 2014, 12:47:13 PM
Quote
The abbreviation 'config' doesnt work here.

this should be investigated.. bugzilla is there, thank you..
Title: Re: [SOLVED] Remove UPS slave settings
Post by: TerryF 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 
Title: Re: UPS Question: remove slave settings
Post by: janet 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
Title: Re: [SOLVED] Remove UPS slave settings
Post by: CharlieBrady 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.
Title: Re: [SOLVED] Remove UPS slave settings
Post by: stephdl 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.