HP-UX CMGR A.02.00 Administrator's and Developer's Guide
DescriptionAttribute
Variable name string. The cmgr command logically replaces instances of
$name in the template with the current contents of the value attribute as
they are encountered during template processing.
name
The minimum value for the prompt argument to allow cmgr to prompt for
this variable. The cmgr command always prompts if the value attribute is
null when it encounters a variable replacement. Default level is 1.
prompt_level
The value to be assigned to the variable when a replacement opportunity
has been encountered in a template. The user can also set the value from
the cmgr command line or prompt.
value
Specifies the validation function to perform when the value attribute for
this element is initially assigned or changed. If not specified, the “default”
function is used.
validate
The cmgr command executes the validation function when the element's value attribute
is initially assigned or changed. The variable element handler returns the same value
as the validation routine. If a variable validation fails, cmgr terminates.
The following predefined validate functions are available:
DescriptionValue
Equivalent to performing a regular expression validation with the regular
expression as specified by the value of the cmgr-default-regex template
variable. If cmgr-default-regexdoes not exist or its value is null, default
checks to ensure that value contains only the following characters:
“a-z”, “A-Z”, “0-9”,”-“,”_”, “.”, "," , " ", ":", "/",
"(", ")"
“default”
Performs a Perl match operation for value against the regular expression.
“regexp ('regular
expression', ‘err
message’)”
Ensures that the following is true:
x <= value <= y
“range(x,y, ‘error
msg’)”
Accept any value.
“noop”
Checks whether the IP address is valid.
“ipVerify('ipaddress')”
Checks whether the user is configured on the system.
“userExists()”
Checks whether the group is configured on the system.
“groupExists()”
Ensures value is the name of an existing compartment definition in /etc/
cmpt file.
“cmptExists”
28 Building a Template