![]() | |
Sun Java System Portal Server 6 2005Q1 Technical Reference Guide |
Chapter 16
sendrdmThis chapter contains the following sections
Description
The sendrdm command provides a mechanism for a CGI or command-line based search. An RDM (resource description manager) request is sent in SOIF format to the Search server. This command is normally run in a search-enabled Sun Java System Portal Server instance directory, which is the /server-instance-directory/deployment_uri directory. This is the deployment URI path you selected at install time. If you chose the default Portal Server install, this is the /var/opt/SUNWps/https-servername/portal directory. Where the value of the servername is the default Portal Server instance name--the fully qualified name of your Portal Server.
Note
For the default installation, set the environment variable LD_LIBRARY_PATH to PortalServer-base/lib.
SyntaxThe syntax of the sendrdm command is:
sendrdm [-dv] [-t n] [-u uri] RDM-in [RDM-out]
OptionsThe following table contains a summary of the sendrdm command options. It contains two columns: the first column lists the possible options; the second column gives a brief description. The command supports the following options (listed in alphabetical order):
ExampleThe following example imports from a Compass Server 3.01x using /rdm/incoming as the URI with the timeout set to one hour. As root, in the /var/opt/SUNWps/https-servername/portal directory, type:
PortalServer-base/lib/sendrdm -t 3600 -u /rdm/incoming rdmquery.soif result.soif
The content of rdmquery.soif is:
@RDMHEADER { -
catalog-service-id{48}: x-catalog://frankie.sesta.com:89/Compass-2
rdm-type{10}: rd-request
rdm-version{3}: 1.0
rdm-query-language{8}: gatherer
}
@RDMQUERY { -
scope{3}: all
}