HP-UX SNAplus2 R7 APPC Application Suite User's Guide
ANAME
Using ANAME
aname DEL -u UserName
To delete a record with a specified user name and group name, enter:
aname DEL -u UserName -g GroupName
For more information, see Section 4.2.9, Summary of Supported ANAME Commands.
4.2.5 Viewing Names in the ANAME Database
You can use the query function to view a single record or multiple records in the
ANAME
database.
For example, to view the record of a group called TechDept, enter:
aname QRY -g TechDept
To view all the records for a particular user name, enter:
aname QRY -u UserName
To view all the records that match a specific user name and group name, enter:
aname QRY -u UserName -g GroupName
To view all the records that match a specific group name and TP name, enter:
aname QRY -g GroupName -t TPName
Notes
• If you specify only one field, the program returns entries that match on this field and
have no other fields set, in preference to entries that match on this field and also have
other fields set. For example, if you specify only the user name, and there are records
for the specified user name both with and without a group name specified, this command
returns only the records that have no group name specified.
• If you specify a TP name, the program returns entries that contain this TP name, and
also entries that have no TP name specified.
• When searching the database for a specific value, only TP names are case sensitive.
Matches for the other three fields are found by alphabetic value only.
To view multiple records that contain a common field value, use wildcard searches. (For more information about
wildcards, see Section 4.2.8, Wildcards.) For example, to view all the records for user names that begin with the
letter “A”, enter:
aname QRY -u "A*"
For more information, see Section 4.2.9, Summary of Supported ANAME Commands.
4.2.6 Using the Help Option
To obtain help on how to use all
ANAME commands, enter one of the following commands:
aname ?
aname -h
aname -help
To obtain help on a specific command, include the function name in the command. For example, to get help for
the Register function, enter one of the following commands:
32