PreviousNext

Importing Binding Information from a Profile Entry in CDS

Application client programs can automatically import server binding information from CDS and use it in their quest to find and communicate with a server. But occasionally, an administrator might want to import a binding. In the case where a client lacks access to CDS, it could still communicate with the server if you supplied the client with a valid binding.

You can use an rpcprofile import operation to return a server's binding information. You must specify an interface using the -interface option as shown in the following example.

dcecp> rpcprofile import /.:/subsys/applications/wards_profile \

> -interface {458ffcbe-98c1-11cd-88bc-0000c08adf56 1.0}

{ncacn_ip_tcp 130.105.1.202}

{ncacn_ip_tcp 130.105.1.227}

dcecp>

You can use other options such as -version and -object to further specify a binding. Use the -max option to limit the number of bindings returned as shown in the following example.

dcecp> rpcprofile import /.:/subsys/applications/wards_profile \

> -interface {458ffcbe-98c1-11cd-88bc-0000c08adf56 1.0} \

> -max 1

{ncacn_ip_tcp 130.105.1.202}

dcecp>