Purpose
A dcecp object that compares and expands DCE names
Synopsis
name compare name name
name expand name
name get string_binding
name help [operation | -verbose ]
name operations
name parse name
Arguments
rpc_prot_seq:network_addr |
Description
The name object resolves, compares, and parses DCE names and string bindings.
Errors
A representative list of errors that might be returned is not shown here. Refer to the IBM DCE for AIX, Version 2.2: Problem Determination Guide for complete descriptions of all error messages.
Operations
Compares two names. The syntax is as follows:
name compare name name
The compare operation compares two names given as arguments and returns 1 if both syntactically refer to the same name. Otherwise, it returns 0.
Privileges Required
No special privileges are needed to use the name compare command.
Examples
dcecp> name compare /.:/sales/east east Error: Incomplete name dcecp> dcecp> name compare /.:/sales/east /.../org_cell/sales/east 1 dcecp> |
Expands a simple DCE name to a global name. The syntax is as follows:
name expand name
The expand operation takes a single name as an argument and returns the canonical form of the name. This operation has the effect of converting /.: to /.../ cellname.
Privileges Required
No special privileges are needed to use the name expand command.
Examples
dcecp> name expand /.:/sales /.../org_cell/sales dcecp> |
Returns a hostname given a full or partial string binding. The syntax is as follows:
name get string_binding
The get operation returns host name identified by a specified string binding. The string_binding argument is a single string binding; you cannot supply multiple bindings in one operation.
Privileges Required
No special privileges are needed to use the name get command.
Examples
dcecp> name get ncan_ip_tcp:15.21.248.170 hosts/goober dcecp> |
Returns help information about the name object and its operations. The syntax is as follows:
name help [operation | -verbose]
Options
Used without an argument or option, the name help operation returns brief information about each name operation. The optional operation argument is the name of the operation about which you want detailed information. Alternatively, you can use the -verbose option for more detailed information about the name object itself.
Privileges Required
No special privileges are needed to use the name help command.
Examples
dcecp> name help compare Compares two names syntactically. expand Returns the canonical form of a name. get Gets host name from a partial or full string binding. parse Parses name into cell name and residual name. help Prints a summary of command-line options. operations Returns a list of the valid operations for this command. dcecp> |
Returns a list of the operations supported by the name object. The syntax is as follows:
name operations
The list of available operations is in alphabetical order except for help and operations, which are listed last.
Privileges Required
No special privileges are needed to use the name operations command.
Examples
dcecp> name operations compare expand get parse help operations dcecp> |
Divides a name into a cell name and a residual name. The syntax is as follows:
name parse name
The parse operation parses a name into a cell name and a residual name. The argument is a single DCE name. The operation returns a list of two elements: cell name and residual name. A name not beginning with a / (slash) is considered to be a name in the local cell.
Privileges Required
No special privileges are needed to use the name parse command.
Examples
dcecp> name parse hosts/goober /.../pokey hosts/goober dcecp> |
Related Information