Previous Page Contents Page Next Page

4.2 Using ANAME

The ANAME database contains all of the names that are available on the ANAME network.

The four fields that are contained in a record in the database are as follows:

User name

Specify this value when you register with ANAME. Your user name should be an easy-to-remember, unique nickname for the fully qualified LU name that identifies you to others in the ANAME network.

Fully qualified LU name

The fully qualified LU name associated with this particular record. SNAP-IX takes this from the name of the local LU that you are using with the ANAME application. This is normally the default LU associated with the local node (the control point LU), unless you have set the APPCLLU environment variable to specify a particular local LU. Alternatively, if you are logged in as the System Administrator, you can use the -f LUname option on the command line to specify a particular local LU name.

Group name

Optionally, specify this value when you register with ANAME. There are no restrictions on the number of instances of the same group name or on the number of users registered as members of one group. Several users can register with the same group name. Typically, all members of a department or team register as part of a particular group.

Transaction program (TP) name

Optionally, specify this value when you register with ANAME. This field identifies the TPs associated with a fully qualified LU name. There are no restrictions on the number of instances of the same TP name or the number of users registered with one TP name.

Note

Commands for ANAME functions can be entered in either uppercase or lowercase. For example, to register a user name, you can use either the REG or reg command.

Names registered with ANAME should be values that are easy to remember and will not change over time. When selecting names to register with ANAME, consider how the names will be used as the ANAME network grows and changes. Follow these rules and conventions:

4.2.1 Adding a Record

It is not necessary to enter information in all four fields when adding a record. What you enter depends on your situation.

For more information, see Summary of Supported ANAME Commands.

4.2.2 Ensuring Name Resolution

The ANAME application must be able to locate the ANAMED target program to access the name-to-PLU mapping (to locate the PLU). You can accomplish this in one of two ways:

4.2.3 Character Sets

Valid characters for all fields in ANAME include uppercase and lowercase A-Z, the numbers 0-9, and the special characters listed in Additional Valid Characters for All Fields in ANAME.

Additional Valid Characters for All Fields in ANAME

Blank , Comma
" Double quote - Hyphen
# Number sign / Front slash
$ Dollar sign : Colon
% Percent sign ; Semicolon
& Ampersand < Less than sign
' Single quote = Equal sign
( Left Parentheses > Greater than sign
) Right parentheses @ At sign
+ Plus sign _ Underscore

Several non-alphanumeric characters have restrictions, as follows:

4.2.4 Removing a Name from the ANAME Database

The delete function enables you to remove a record or records from the ANAME database. Records are removed only if the fully qualified LU name in the record matches the LU that you are currently using with the source program. For example, to delete all the records with the specified user name and the source program's current fully qualified LU name, enter:

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 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 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 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:

aname REG ?
aname REG  -h
aname REG -help

For more information, see Summary of Supported ANAME Commands.

4.2.7 Duplicating a User Name

A System Administrator can duplicate a UserName that is already registered by entering the following command:

aname reg -d -u UserName

This command can be used to associate an existing user name with resources on local systems and those resources on remote systems. This enables a remote user to request any of the resources on the local node by using a single user name. The ANAMED target program then determines which LU handles requests for the resource.

4.2.8 Wildcards

Because some Solaris shells do wildcard expansion on the command line, it is important to remember to put quotation marks (") around wildcard commands. The following set of wildcards is recognized by ANAME:

Full wildcard

Use the asterisk (*) to view or delete all records in a particular field. For example, "*" indicates all user names.

Partial wildcard

Use the asterisk (*) following a value to indicate that you want to view or delete all the values that contain the characters you specify. For example, "J*" indicates all the values that begin with the letter J.

Placeholder wildcard

Use the question mark (?) to indicate a placeholder. A question mark between characters causes a search on the specified characters and any unspecified character that falls in between. For example, "J??n" would match values such as John , Jean, and Joan.

4.2.9 Summary of Supported ANAME Commands

Supported ANAME Commands, summarizes the commands that enable you to control the ANAME database. Use each command with at least one of the flags shown in Options and Parameters Used with ANAME Commands.

You can enter the following commands in uppercase or lowercase:

Supported ANAME Commands

ANAME CommandDescription

register or reg or r

Registers a name in the ANAME database.

delete or del or d

Removes a name from the ANAME database.

query or qry or q

Enables you to view records in the ANAME database. You may use wildcards to broaden the query criteria.

Options and Parameters Used with ANAME Commands, summarizes the options and parameters that you can use with the ANAME commands.

Options and Parameters Used with ANAME Commands

ANAME Option/Parameter Description

-u username

Specifies a user name.

-g groupname

Specifies a group name.

-t tpname

Specifies a TP name.

-f LUname

Specifies an LU name. Only the System Administrator (as defined in the .anamed initialization file) has authorization to use this option.

-d

Duplicates a user record with a different LU name. Only the System Administrator (as defined in the .anamed initialization file) has authorization to use this option.

-h, -help , or -?

Provides help for the command.

-s RemoteSystemID

Identifies the LU on which ANAMED is running. By default, the RemoteSystemID is the LU identified in the CPI-C side information record stored on each machine. The RemoteSystemID can be either a CPI-C symbolic destination name or a fully qualified LU name .

-a UserID

Specifies the user ID to be sent to the partner computer. This option should be used if conversation-level security is required for the link.

-p password

Specifies the user's password. This option is required if the option is used. Only use this option if conversation-level security is active on the link.
Previous Page Contents Page Top of Page Next page