export(8rpc)Exports binding information for an interface identifier or object UUIDs or both to a server entry; if the specified entry does not exist, creates the entry Synopsis
rpccp export entry-name Options
-i if_id The interface identifier takes the following form: interface-uuid,major-version.minor-version The version numbers are optional, but if you omit a version number, the value defaults to 0. The UUID is a hexadecimal string and the version numbers are decimal strings, for example: -i ec1eeb60-5943-11c9-a309-08002b102989,3.11 Leading zeros in version numbers are ignored.
-o object-uuid The UUID is a hexadecimal string, for example: -o 3c6b8f60-5945-11c9-a236-08002b102989
-b string_binding The value has the form of an RPC string binding, without an object UUID. The binding information contains an RPC protocol sequence, a network address, and sometimes an endpoint within brackets (rpc-prot-seq:network-addr[endpoint]). For a well-known endpoint, include the endpoint in the string binding, for example: -b ncadg_ip_udp:63.0.2.17[5347] For a dynamic endpoint, omit the endpoint from the string binding, for example: -b ncacn_ip_tcp:16.20.15.25 Note that depending on your system, string binding delimiters such as brackets ([ ]) may need to be preceded by an escape symbol (\) or put within quotation marks (' ' or " "). Requirements vary from system to system, and you must conform to the usage rules of a system.
-s syntax Arguments
entry-name For an entry in the local cell, you can omit the cell name and specify only the cell-relative name.
Description Minimally, the command requires the name of the entry and either an identifier and binding string or an object. If the specified entry does not exist, the export command tries to create the entry.
Privileges Required
Notes
Examples
# file to export Calendar 1.1 at installation time rpccp export \ The following example shows the use of a user-defined environment variable as an interface identifier, to facilitate entering an export command interactively (in this case, from inside the control program). The initial two shell commands set up an environment variable Calendar_1_1, which represents the interface identifier of an RPC interface. The rpccp command then starts the control program, and the export command exports the Calendar interface and two string bindings to the server entry /.:/LandS/anthro/Cal_host_2 in the local cell, as follows:
$ Calendar_1_1=ec1eeb60-5943-11c9-a309-08002b102989,1.1 The following example shows the use of user-defined environment variables for object UUIDs to facilitate entering an export command interactively (in this case, from inside the control program). The initial shell commands set up the environment variables LUKE_CAL and JOSH_CAL, which represent personal calendars that are accessible as objects to an RPC server. The rpccp command then starts the control program, and the export command exports the two objects to the server's entry /.:/LandS/anthro/Cal_host_2 in the local cell:
$ LUKE_CAL=30dbeea0-fb6c-11c9-8eea-08002b0f4528
Related Information
|