02.10.2015 Views

Tungsten Replicator 2.2 Manual

Tungsten Replicator 2.2 Manual - VMware

Tungsten Replicator 2.2 Manual - VMware

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Command-line Tools<br />

trepctl services [ -full ] [ -json ]<br />

For example:<br />

shell> trepctl services<br />

Processing services command...<br />

NAME<br />

VALUE<br />

---- -----<br />

appliedLastSeqno: 2541<br />

appliedLatency : 0.48<br />

role<br />

: master<br />

serviceName : alpha<br />

serviceType : local<br />

started<br />

: true<br />

state<br />

: ONLINE<br />

Finished services command...<br />

For more information on the fields displayed, see Section D.2, “Generated Field Reference”.<br />

For a replicator with multiple services, the information is output for each configured service:<br />

shell> trepctl services<br />

Processing services command...<br />

NAME<br />

VALUE<br />

---- -----<br />

appliedLastSeqno: 44<br />

appliedLatency : 0.692<br />

role<br />

: master<br />

serviceName : alpha<br />

serviceType : local<br />

started<br />

: true<br />

state<br />

: ONLINE<br />

NAME<br />

VALUE<br />

---- -----<br />

appliedLastSeqno: 40<br />

appliedLatency : 0.57<br />

role<br />

: slave<br />

serviceName : beta<br />

serviceType : remote<br />

started<br />

: true<br />

state<br />

: ONLINE<br />

NAME<br />

VALUE<br />

---- -----<br />

appliedLastSeqno: 41<br />

appliedLatency : 0.06<br />

role<br />

: slave<br />

serviceName : gamma<br />

serviceType : remote<br />

started<br />

: true<br />

state<br />

: ONLINE<br />

Finished services command...<br />

The information can be reported in JSON format by using the -json option to the command:<br />

shell> trepctl services -json<br />

[<br />

{<br />

"serviceType" : "local",<br />

"appliedLatency" : "0.48",<br />

"serviceName" : "alpha",<br />

"appliedLastSeqno" : "2541",<br />

"started" : "true",<br />

"role" : "master",<br />

"state" : "ONLINE"<br />

}<br />

]<br />

The information is output as an array of objects, one object for each service identified.<br />

If the -full option is added, the JSON output includes full details of the service, similar to that output by the trepctl status command, but<br />

for each configured service:<br />

shell> trepctl services -json -full<br />

[<br />

{<br />

"masterConnectUri" : "",<br />

"rmiPort" : "10000",<br />

"clusterName" : "default",<br />

"currentTimeMillis" : "1370256230198",<br />

"state" : "ONLINE",<br />

"maximumStoredSeqNo" : "2541",<br />

"minimumStoredSeqNo" : "0",<br />

215

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!