Changes

From SME Server
Jump to navigationJump to search
Line 42: Line 42:  
     status=disabled
 
     status=disabled
   −
In most cases, complex entries are used in preference to simple entries. The complex entries allow additional properties to be stored for an entry, which enhances the system's flexibility.
  −
Access from the command line
     −
You can access configuration database entries from the command line using the config command, as shown above, or the db command. The config command provides a shorthand for accessing the configuration database. The following commands are equivalent:
+
In den meisten Fällen werden die komplexeren Einträge gegenüber den einfachen Einträgen bevorzugt, weil damit zusätzliche Eigenschaften gespeichert werden können, um die Flexibilität des Gesamtsystems zu erhöhen.
   −
[root@gsxdev1 ~]# config show LocalIP
  −
LocalIP=192.168.1.100
     −
[root@gsxdev1 ~]# db configuration show LocalIP
+
====Zugriff von der Kommandozeile====
LocalIP=192.168.1.100
     −
    Note: The term configuration database is used both to refer to the "master" configuration database and to refer collectively to the set of configuration databases, which includes the individual accounts, networks, and configuration databases.
+
Sie können auf die Konfigurations-Datenbank von der SME Server Shell aus über die Kommandozeile zugreifen, in dem Sie die Befehle ''config'' oder ''db'' verwenden. Dabei ist der ''config''-Befehl die abgekürzte Form. Folgende Befehle sind äquivalent:
 +
[root@gsxdev1 ~]# config show LocalIP
 +
LocalIP=192.168.1.100
   −
The db allows you to access all of the databases. For example to show the details of the admin entry from accounts
+
[root@gsxdev1 ~]# db configuration show LocalIP
 +
LocalIP=192.168.1.100
   −
[root@gsxdev1 ~]# db accounts show admin
+
{{DrawBoxNote/de|Inhalt=Der Begriff ''Konfigurations-Datenbank'' wird mehrfach benutzt. Er beschreibt sowohl die ''Master''-Konfiguration des Gesamtsystems als auch die Zusammenfassung mehrerer Konfigurations-Datenbanken, in denen die einzelnen Benutzerkonten, Netzwerkeinstellungen usw. enthalten sind.}}
admin=system
+
 
 +
Sie können auch mit dem ''db''-Befel auf die Konfigurations-Datenbanken zugreifen. Um beispielsweise Details für das Benutzerkonto ''admin'' anzeigen zu lassen, geben Sie ein:
 +
[root@gsxdev1 ~]# db accounts show admin
 +
admin=system
 
     EmailForward=local
 
     EmailForward=local
 
     FirstName=Local
 
     FirstName=Local
Line 69: Line 70:  
     VPNClientAccess=no
 
     VPNClientAccess=no
   −
Documentation for the db command is displayed if you run it without providing any arguments:
+
Die Dokumentation für den ''db''-Befehl wird Ihnen angezeigt, wenn Sie den ''db''-Befel ohne weitere Argumente benutzen:
 
+
[root@gsxdev1 ~]# db
[root@gsxdev1 ~]# db
+
usage:
usage:
   
     /sbin/e-smith/db dbfile keys
 
     /sbin/e-smith/db dbfile keys
 
     /sbin/e-smith/db dbfile print [key]
 
     /sbin/e-smith/db dbfile print [key]
Line 88: Line 88:  
     /sbin/e-smith/db dbfile delprop key prop1 [prop2] [prop3] ...
 
     /sbin/e-smith/db dbfile delprop key prop1 [prop2] [prop3] ...
   −
Access via the Perl API
+
====Zugriff über die Perl API====
   −
You can also access configuration database entries programmatically using the esmith::ConfigDB and related Perl modules, which are abstractions for the esmith::DB module.
+
Sie können auch mit Perl-Programmen auf die Konfigurations-Datenbanken zugreifen, wenn Sie ''esmith::ConfigDB'' und zugehörige Perl Module verwenden, which are abstractions for the esmith::DB module.
    
For example, we can retrieve and show the admin account details like this:
 
For example, we can retrieve and show the admin account details like this:
1,346

edits

Navigation menu