cluster gateway local

Lists the gateways configured on the data-fabric cluster on which this command is run.

Syntax

CLI
maprcli cluster gateway local
  [ -cluster cluster on which command to be run ]
  [ -format dns/text. default: text ]
REST
Request Type GET
Request URL
http[s]://<host>:<port>/rest/cluster/gateway/local?<parameters>

Parameters

Parameter Description
format (Optional) The output format. Either dns or text. Default: text.
NOTE
  • With the output formatted as DNS, you can copy and paste it as a DNS record in the zone file for your domain. The source data-fabric cluster can locate the gateways by doing a DNS lookup.
  • With the output formatted as text, you can copy and paste that text into the -gateways parameter of the maprcli cluster gateway set command. Running this command is an alternative way of specifying the location of these gateways to the source data-fabric cluster.
cluster (Optional) If you are not on a data-fabric cluster where one or more gateways are configured, provide the name of the cluster.
  • When replicating HPE Ezmeral Data Fabric Database table data to one or more replicas on this cluster, it is a destination data-fabric cluster.
  • When indexing HPE Ezmeral Data Fabric Database table data in one or more Elasticsearch clusters, the current cluster is a source data-fabric cluster where the tables being indexed are located.

Example

Display the list of gateways configured on a data-fabric cluster in text format:

CLI
maprcli cluster gateway local
REST
curl -X GET -u <username> https://abc.sj.us:8443/rest/cluster/gateway/local
Example Output
gatewayinfo
centos23 centos22

Display the list of gateways configured on a data-fabric cluster in DNS format:

CLI
maprcli cluster gateway local -format dns
REST
curl -X GET -u <username> https://abc.sj.us:8443/rest/cluster/gateway/local?format=dns
Example Output
gatewaydnsinfo
; TXT Record addresses
gateway.mycluster IN TXT "centos23 centos22"