Owner's manual

Installing and Configuring the Nomadic Disk
Manager
ServerNet Nomadic Disk User’s Guide425485-001
3-10
Nomadic Disk Manager Configuration Statements
ADD DEFINE Statement
Use the ADD DEFINE statement to configure an alias for a character string. Whenever
the DEFINE name is encountered in a command, the DEFINE is evaluated at that time,
before the command is executed.
user-define-name
is any name that is meaningful to the user that does not conflict with an existing
Manager command. This name must be a valid TACL variable name.
character-string
is any string of characters. No syntax checking is performed when a DEFINE is
added. character-string can be a single command, a string of commands, a
part of a command, or even another DEFINE.
Considerations
An alias can be particularly helpful in those installations where the default GIVE
command (see GIVE Command
on page 7-8) or TAKE command (see TAKE
Command on page 7-19) is not appropriate.
A DEFINE need not be a complete command; it can be a partial command. For
example:
ADD DEFINE LDEV LISTDEV
This DEFINE can be used in several ways:
LDEV
LDEV, SEGMENT ONE
A DEFINE can invoke another DEFINE.
ADD DEFINE LDEV LISTDEV
ADD DEFINE DOSTATUS LDEV; STATUS
The ADD DEFINE statement replaces the earlier ADD COMMAND statement.
ADD COMMAND is still accepted.
ADD DEFINE user-define-name character-string
Caution. No syntax checking is performed on the character string when a DEFINE is added,
so it is possible to create DEFINEs that cause an infinite loop when executed.