Table B.2 Tasks You Can Perform with admconfig
Task
|
Description
|
-countA[ccessLogEntries]
|
Count the number of entries in the access log file.
This task should be performed prior to -view A[ccesslogEntries] in order to determine the number of entries that can be viewed in the access log.
|
-viewA[cessLogEntries]
|
View the specified entries in the error log file.
Syntax:
admconfig [options] -viewA[cessLogEntries] \"<start> <stop>\"
Required parameter includes:
<start> The first log entry number to start displaying from.
<stop> The last log entry number to display.
The backslash character is required before the quotes surrounding the two arguments to -viewA[cessLogEntries]. If the backslash is not provided, on UNIX systems the shell will evaluate the quotes and pass the arguments without the quotes to the command line. This will result in only <start> being assigned as the parameter or -viewA[cessLogEntries]. The backslash character before the quotes will prevent the quotes from being evaluated and allow both arguments to be assigned as the parameter to -viewA[cessLogEntries]s.
|
-countE[rrorLogEntries]
|
Count the number of entries in the error log file.
This task should be performed prior to -viewErrorLogEntries in order to determine the number of entries that can be viewed in the error log.
|
-viewE[rrorLogEntries]
|
View the specified entries in the error log file.
Syntax:
admconfig [options] -viewE[rrorLogEntries] \"<start> <stop>\"
Required parameter includes:
<start> The first log entry number to start displaying from.
<stop> The last log entry number to display.
The backslash character is required before the quotes surrounding the two arguments to -viewErrorLogEntries. If not provided, on UNIX systems, the shell will evaluate the quotes and pass the arguments without the quotes to the command line. This will result in only <start> being assigned as the parameter or
-viewErrorLogEntries. The backslash character before the quotes will prevent the quotes from being evaluated and allow both arguments to be assigned as the parameter to
-viewErrorLogEntries.
|
-enableD[SGWAccess]
|
Enable Directory Server Gateway access to the Administration Server.
|
-disableD[SGWAccess]
|
Disable Directory Server Gateway access to the Administration Server.
|
-enablE[ndUserAccess]
|
Enable end user access to the Administration Server.
|
-disableE[ndUserAccess]
|
Disable end user access to the Administration Server.
|
-getAc[cessLog]
|
Get the name of the server access log file
|
-setAc[cessLog]
|
Set the name of the server access log file.
Required parameter includes:
<filename> New server access log file.
|
-getAdd[resses]
|
Get the addresses from which connections are allowed.
|
-setAdd[resses]
|
Set the addresses from which connections are allowed.
Required parameter includes:
<addresses> New addresses from which connections are allowed.
|
-getAdminUI[D]
|
Get the administrator's user name.
|
-setAdminUI[D]
|
Set the administrator's user name
Required parameter includes:
<uid> The new user ID for the administrator.
|
-setAdminP[wd]
|
Set the administrator's password to the specified value.
Required parameter includes:
<password> The new user password for the administrator.
|
-getAdminUs[ers]
|
Get the name of the adminusers file.
|
-setAdminUs[ers]
|
Set the name of the adminusers file.
Required parameter:
<adminusers> New name for the adminusers file.
|
GetCa[cheLifetime]
|
Get the amount of time that the user authentication is cached.
|
-setCa[cheLiftetime]
|
Set the amount of time to cache the user authentication.
Required parameter includes:
<mesc> New cache lifetime in mescs.
|
-getCl[assname]
|
Get the Java classname for the Administration Server.
|
-setCl[assname]
|
Set the Java classname for the Administration Server.
|
-getDe[faultAcceptLanguage]
|
Get the defaultacceptlanguage.
|
-setDe[faultAcceptLanguage]
|
Set the defaultacceptlanguage.
Required parameter:
<language> New default accept language.
|
-getDS[Config]
|
Retrieve the current LDAP server host, port, base DN, and whether the LDAP server is running SSL.
|
-setDS[Config]
|
Set the LDAP server host, port, base DN, and whether the LDAP server is running SSL.
Syntax:
admconfi [options] -setDS[Config] \"<host> <port> <baseDN> <ssl>\"
Required parameter includes:
<host> The LDdAP Server host name.
<port> The LDAP Server port number.
<baseDN> The LDAP Server base DN.
<ssl> "true" | "false" depending on whether to use the Secure Sockets Layer to communicate with the LDAP Server.
The backslash character is required before the quotes surrounding the four arguments to -setDS[Config]. If the backslash is not provided, on Unix systems the shell will evaluate the quotes and pass the arguments without the quotes to the command line. This will result in only <port> being assigned as the parameter or
-setDS[Config]. The backslash character before the quotes will prevent the quotes from being evaluated and allow both arguments to be assigned as the parameter to-setDS[Config].
|
-getU[GDSConfig]
|
Retrieves the current user/group LDAP server information, including the host, port, base DN, and authentication DN.
|
-setU[GDSConfig] [\"<host> <port> <baseDN> <ssl>
<uid> <pwd>\"]
Optional arguments include:
<host> .
The user/group LDAP Server host name.
<port> .
The user/group LDAP Server port number.
<baseDN> .
The user/group LDAP Server base DN.
<ssl> "true" | "false" .
Indicates whether to use the Secure Sockets Layer to communicate with the LDAP Server.
<uid>.
Authentication DN used to bind to LDAP Server.
<pwd> .
Authentication password used to bind to LDAP Server.
|
Sets the user/group LDAP server host, port, baseDN, authentication DN, and authentication password.
You can invoke -setUGDSConfig either with or without parameters. If this task is invoked without any arguments, for example:
% admconfig -server jaffer.mcom.com:22222 -user admin:password
-setUGDSConfig
Then the directory server configuration is reset to the installation defaults. On the other hand, if the task is invoked with all six arguments (all six arguments are required), then they override the installation defaults or the previous values that may have been set.
The backslash character is required before the quotes surrounding the six arguments to -setUGDSConfig. If not used, on Unix systems, the shell will evaluate the quotes and pass the arguments without the quotes toadmconfig. This will result in only <host> being assigned as the parameter to -setUGDSConfig, which will cause the task to fail due to missing arguments.
The backslash character before the quotes will prevent the quotes from being evaluated and allow all arguments to be assigned as the parameter to -setUGDSConfig.
The <host>, <port>, <baseDN>, and <ssl> arguments are used to create the LDAP URL for the ugdsconfig.dirurl attribute. The <uid> argument is used to set the ugdsconfig.binddn attribute, and the <pwd> argument is used to set the ugdsconfig.bindpw attribute.
IMPORTANT NOTE: The space character is used to parse these six arguments. Therefore, none of the arguments may have spaces in them. To support spaces for arguments such as <baseDN>, <uid>, and <pwd>, the parsing function for these three arguments uses a character replacement scheme to allow spaces to be specified. Simply, whenever a space is required, the + character should be used to indicate to the parser to convert the character to space. For example, to specify cn=directory manager as the <uid>, users must type cn=directory+manager. Because the + character is used in place of the space character, the + character cannot be used as an actual value.
|
-getE[rrorLog]
|
Get the name of the server error log file.
|
-setE[rrorLog]
|
Set the name of the server error log file.
Required parameter:
<filename> New server error log file.
|
-getH[osts]
|
Get the hosts from which connections are allowed.
|
-set[Hosts]
|
Set the hosts from which connections are allowed.
Required parameter:
<hosts> New hosts from which connections are allowed.
|
-getO[neACLDir]
|
Get the oneacldir.
|
-setO[neACLDir]
|
Set the oneacldir.
Required parameter:
<directory> New ACL directory.
|
-getPo[rt]
|
Get the current Administration Server port number.
|
-setPo[rt]
|
Set the Administration Server port number.
Required parameter:
<port> New server port number.
|
-getSe[rverAddress]
|
Get the current Administration Server address.
|
-setSe[rverAddress]
|
Set the Administration Server address.
Required parameter:
<address> New server address.
|
-getSu[iteSpotUser]
|
Get the user name that the server is currently running as.
|
-setSu[iteSpotUser]
|
Set the user name that the server should run as.
Required parameter include:
<user> New user name that the server should run as.
|
-r[estart]
|
Restart the Administration Server.
|
-st[op]
|
Stop the Administration Server.
|