The get-write-generation task returns the ID of the write generation.
The syntax for this task is:
recordstore-cmd get-write-generation -aRecordStoreName-x id [-h HostName] [-l true|false] [-pPortNumber]
where:
-a(or--instanceName) specifies the name of a Record Store instance. Required.-h(or--host) specifies the host where the CAS Service is running. If the flag is omitted, the default is the value of thecom.endeca.itl.cas.server.hostproperty incommandline.properties. If the property is not set, the value then defaults tolocalhost. Optional.-l(or--isPortSsl) specifies whether to communicate with the service using an HTTPS connection. A value oftrueuses HTTPS and treats thecom.endeca.itl.cas.server.portproperty as an SSL port. A value offalseuses HTTP and treatscom.endeca.itl.cas.server.portas a non-SSL port. Specifyfalseif you enabled redirects from a non-SSL port to an SSL port. Optional.-p(or--port) specifies the port of the CAS Service. If the flag is omitted, the default is the value of thecom.endeca.itl.cas.server.portproperty incommandline.properties. If the property is not set, the value then defaults to8500. Optional.-x(or--transaction) specifies the active transaction ID to use. The transaction must be aREAD_WRITEtype. Required.
Example 34. Example of getting the write-generation ID
recordstore-cmd get-write-generation -a RS1 -x 5 Write generation: 2
The output of the get-write-generation task shows that Generation 2 is the current write generation.

