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
-
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!
-
Time to read
http://wiki.contribs.org/Db_command_tutorial
-
# 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.
-
The abbreviation 'config' doesnt work here.
this should be investigated.. bugzilla is there, thank you..
-
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
-
gbentley
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
-
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.
-
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.