<!-- BEGINELEM -->

 

<!-- ELEM txt="Log to view:

" -->

<!-- LOG_TO_VIEW -->

 

....

 

<!-- SUBMIT -->

 

</font></font>

 

</form>

 

3.2.3 Admin Express directives

The Admin Express directives are HTML comments that are interpreted by the CGI scripts; these directives are used to set form fields and to pull data from the server configuration and log files.

Table 3-2 Admin Express directives

Directive

Description

Example

ACCESS_LOG

Inserts the server log file.

<!-- ACCESS_LOG -->

 

 

 

ADMURL

 

<!-- ADMURL -->

 

 

 

BEGINELEM

Marks the opening of form input elements. This

<!-- BEGINELEM -->

 

is always paired with ENDELEM.

 

 

 

 

CHECK_UPGRADE

 

<!-- CHECK_UPGRADE -->

 

 

 

ELEM

Inserts a text element. This has one argument,

<!-- ELEM txt="Field name

 

txt=, which defines the text to use.

here: " -->

 

 

 

ELEMADD

Inserts a text element. This has one argument,

<!-- ELEMADD txt="Field

 

txt=, which defines the text to use.

name here: " -->

 

 

 

ENDELEM

Marks the ending of form input elements. This is

<!-- ENDELEM -->

 

always paired with BEGINELEM.

 

 

 

 

HELP_BUTTON

Inserts a button to open context-specific help.

<!-- HELP_BUTTON -->

 

 

 

HELPLINK

Inserts a link to the general Admin Express help

<!-- HELPLINK -->

 

file.

 

 

 

 

HIDDEN_ID

 

<!-- HIDDEN_ID -->

 

 

 

ID_TITLE

Inserts the name of the server instance, such as

<!-- ID_TITLE -->

 

admin-servor example (if the Directory Server

 

 

instance name is slapd-example)

 

 

 

 

INCLUDEIFEXISTS

Inserts the contents of the HTML file. The inserted

<!-- INCLUDEIFEXISTS

 

file should include both the text and any HTML

"file.html" -->

 

markup.

 

 

 

 

LOG_TO_VIEW

Inserts a drop-down menu with the types of logs

<!-- LOG_TO_VIEW -->

 

available to view.

 

 

 

 

NUM_TO_VIEW

Inserts a form field to set the number of lines to

<!-- NUM_TO_VIEW -->

 

return.

 

 

 

 

REFRESHINTERVAL

Inserts a form field to set the refresh interval (in

<!-- REFRESHINTERVAL -->

 

seconds) for replication monitoring.

 

 

 

 

SERVHOST

 

<!-- SERVHOST -->

 

 

 

SERVPORT

 

<!-- SERVPORT -->

 

 

 

SHOW_DATA

Inserts the server data from the configuration file,

<!-- SHOW_DATA -->

 

including the port number, installation date, and

 

 

build number.

 

 

 

 

SHOW_URL

 

<!-- SHOW_URL -->

 

 

 

SITEROOT

 

<!-- SITEROOT -->

 

 

 

42 Admin express