glite-sd-query

glite-sd-query — Performs a lookup for a service

Synopsis

glite-sd-query [ -h ] [ -q ] [ -v ] [ -n NAME ] [ -t TYPE ] [ -s SITE ] [ -d PARAM=VALUE ] [ -x ] [ -e ] [ -a ] [ --host ] [ --xml ]

DESCRIPTION

glite-sd-query is a command-line tool for querying information on a given service, or query services matching a given type, site or name.

OPTIONS

If no options are used, glite-sd-query will list all services that it has knowledge about.

-h

Print a short help message on parameters and usage, and exit.

-q

Quiet operation.

-v

Increases the verbosity level.

-n NAME

Specify the name of the service to be queried. As names are unique, only one service will be returned.

-t TYPE

Specify the type of service to be queried. There might be more than one service corresponding to the given type. For a list of possible types see http://infnforge.cnaf.infn.it/glueinfomodel/index.php/V12/ServiceType

-s SITE

Query services at a given site. This option can be used together with the type option.

--host HOST

Query services which are running on a given host.

-d PARAM=VALUE

Query services which match the given data. Only used if services are querued by type. This option can be used multiple times.

-x

Show extended information about the services.

-e

Print endpoints only.

-a

Do an associated services query. Used when at least one -d is specified.

--xml

Print out a services.xml-style xml document to standard output.

ENVIRONMENT VARIABLES

GLITE_SD_PLUGIN - sets the type of service discovery implementation to be used. It is a comma separated list of the available plugins (file, bdii, rgma, ...).

Example: export GLITE_SD_PLUGIN=rgma,bdii,file

GLITE_SD_SITE - can be used to set the local site, to be used to find a service nearby.

Example: export GLITE_SD_SITE=cern.ch

GLITE_SD_VO - can be used to set the default VO, to be used to find a friendly service.

Example: export GLITE_SD_VO=EGEE

ADDITIONAL PLUGIN SPECIFIC OPTIONS

FILE

GLITE_LOCATION is used to look up the default configuration file at GLITE_LOCATION/etc/services.xml. $HOME/.glite/etc/services.xml is also tested and it overrides the default settings.

BDII

LCG_GFAL_INFOSYS is used to set the host and port of the BDII service.

Example: export LCG_GFAL_INFOSYS='lxb1386.cern.ch:2170'

RGMA

Using the host's default R-GMA configuration.