Koozali.org: home of the SME Server

config setprop

Offline ltwally

  • ***
  • 108
  • +0/-0
config setprop
« on: February 12, 2007, 09:01:10 PM »
I'm really new to SME / E-Smith, and have already ran accross a half-dozen "config setprop" commands that I've written down.

Does anyone know of a repository of these commands?  The man page for config was relatively useless to me, and google was for once clueless.

Thanks in advance.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: config setprop
« Reply #1 on: February 13, 2007, 02:11:08 AM »
Quote from: "ltwally"
I'm really new to SME / E-Smith, and have already ran accross a half-dozen "config setprop" commands that I've written down.

Does anyone know of a repository of these commands?


There isn't any definitive list, since the available list depends on what packages you have installed, and changes from time to time as features are added, changed or removed in the software.

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: config setprop
« Reply #2 on: February 13, 2007, 06:46:23 AM »
Quote from: "ltwally"
I'm really new to SME / E-Smith, and have already ran accross a half-dozen "config setprop" commands that I've written down.

Does anyone know of a repository of these commands?  The man page for config was relatively useless to me, and google was for once clueless.

Thanks in advance.


You could start a list in the manual/wiki.

The databases live in /home/e-smith/db

To see what properties are set do "db db_name show"

Go into /etc/e-smith/templates and pull the templates apart and you will find more properties.

Maybe just list the properties and others will add what they do and where.
Regards,
William

IF I give advise.. It's only if it was me....

Offline raem

  • *
  • 3,972
  • +4/-0
Re: config setprop
« Reply #3 on: February 13, 2007, 09:07:04 AM »
ltwally

>...config setprop... commands....

The configuration database is one of the main databases in /home/e-smith/db.
The command you are actually using is db
At the command prompt do
db
to get the usage syntax, one example is:
/sbin/e-smith/db dbfile setprop key prop1 val1
although you can leave out the /sbin/e-smith/ part

for the configuration db this will work
db configuration show
or
db configuration show | more
(press Enter or space to scroll down the listing)

In sme as a lot of work is done with the configuration db there is a shortcut which does the same as the above commands

config show
or
config show | more

Using the above command you will see all the various entries in the configuration database
You can then do something like
config show qpsmtpd
to see particulars of the qpsmtpd service entries in the configuration database
You can do the same for all the other services & settings listed in the configuration database eg
config show smtpd
config show spamassassin

Then you can apply the syntax from the db command to manipulate those entries eg the "config setprop ...." you referred to originally.

Then you can apply the above concepts to the other databases in /home/e-smith/db
although there is no shortcut command for those.
eg
db accounts show
db accounts show | more

db spamassassin show | more
db yum_repositories show | more

etc etc etc
Then apply the db syntax to those databases as required.

Read various How Tos and forum posts for many examples of practical usage to set config properties.
Also read the Dev Guide for further details.
...

Offline lucho115

  • ****
  • 209
  • +0/-0
    • http://www.elac.com.ar
config setprop
« Reply #4 on: February 14, 2007, 03:49:12 PM »
OK thats OK, but how i know the proper that i can use, for iexample:

config setprop qpsmtpd BccMode bcc

how i know that the BccMode can be "cc" or "Bcc" and no "CC" or "Copy" or others, where i find this info?

thks

Offline raem

  • *
  • 3,972
  • +4/-0
config setprop
« Reply #5 on: February 14, 2007, 04:08:48 PM »
lucho115

Charlie & William answered that.

"There isn't any definitive list, since the available list depends on what packages you have installed, and changes from time to time as features are added, changed or removed in the software."

"Go into /etc/e-smith/templates and pull the templates apart and you will find more properties."

The best indication you will get is by looking in the databases at the currently used settings, but there will also be additional details in the code so you have to look on the server in templates & code.

To keep up with the development work and new feature annoucements, such as new db properties etc, subscribe yourself to the devinfo mail list and read all the behind the scenes development discussions.
http://lists.contribs.org/mailman/listinfo
For example to see all the coding bits & pieces that went in to sme7, go back about 2-3 years & start reading, as that is when the initial sme7 development work started.

Also there are a lot of "instructional gems" in the bugzilla entries, so start reading & searching those.
http://bugs.contribs.org/
...

Offline lucho115

  • ****
  • 209
  • +0/-0
    • http://www.elac.com.ar
config setprop
« Reply #6 on: February 14, 2007, 05:11:24 PM »
ok, thks

Offline Jean-Philippe Pialasse

  • *
  • 2,774
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
config setprop
« Reply #7 on: February 14, 2007, 11:20:16 PM »
that's a good point that is shown here.

I'am ok  with Charlie when saying it is impossible to list all properties as they can depends on contribs that are added, but it would be great to add such information for the base package.

Many asks are due to configuration that administrators don't even imagine that it is possible without customize a template or whatever.


Since to be able to know all  properties there is only a solution it is to search into template (some programers set a default value if the properti is not defined explicitly in the db).


a wiki page for properties of core package would be great thing !!!!

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
config setprop
« Reply #8 on: February 15, 2007, 01:10:17 AM »
then start one
but be prepared to spend the rest of your life maintaining it

what i think is more useful and achievable is to document how to tweak a specific feature
see the tech manual for examples eg Nut UPS

Offline Jean-Philippe Pialasse

  • *
  • 2,774
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
config setprop
« Reply #9 on: February 15, 2007, 01:12:21 PM »
Quote from: "snoble"
then start one
but be prepared to spend the rest of your life maintaining it

sounds like to be the slave of my mind :)


Quote from: "snoble"

what i think is more useful and achievable is to document how to tweak a specific feature
see the tech manual for examples eg Nut UPS

that is another way to organize the problem, and reference the properties :)