The
get-configuration task returns the configuration settings
of a specified Record Store instance.
A Record Store instance has a default configuration that you can retrieve and save. You can modify the configuration and use it to configure a new Record Store or reconfigure an existing Record Store instance.
The syntax for this task is:
recordstore-cmd get-configuration -a RecordStoreInstanceName -f FileName.xml [-h HostName] [-l true|false] [-n] [-p PortNumber]
where:
-a (or --instanceName) specifies the name of a Record Store instance. Required.
-f (or --file) specifies the XML file name where you want to save the configuration settings. Omitting this option sends the XML for the configuration settings to stdout. Optional.
-h (or --host) specifies the host where the CAS Service is running. If the flag is omitted, the default is the value of the
com.endeca.itl.cas.server.hostproperty incommandline.properties. If the property is not set, the value then defaults to localhost. Optional.-l (or --isPortSsl) specifies whether to communicate with the service using an HTTPS connection. A value of true uses HTTPS and treats the
com.endeca.itl.cas.server.portproperty as an SSL port. A value of false uses HTTP and treatscom.endeca.itl.cas.server.portas a non-SSL port. Specify false if you enabled redirects from a non-SSL port to an SSL port. Optional.-n (or --normalize) specifies whether to normalize the configuration settings. Specifying this option returns all default configuration settings and their associated default values. Omitting this option returns only user-specified settings. Optional.
-p (or --port) specifies the port of the CAS Service. If the flag is omitted, the default is the value of the
com.endeca.itl.cas.server.portproperty incommandline.properties. If the property is not set, the value then defaults to 8500. Optional.
To get the configuration of a Record Store:
Example 31. Example of getting the configuration of a Record store
This Windows example gets the configuration for a Record Store named RS1:
recordstore-cmd.bat get-configuration -a RS1 -f config.xml -n
The command output of the example above is stored in
config.xml and is also shown here:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<recordStoreConfiguration xmlns="http://recordstore.itl.endeca.com/">
<btreePageSize>100</btreePageSize>
<changePropertyNames/>
<cleanerInterval>1.0</cleanerInterval>
<dataDirectory>C:\Endeca\CAS\workspace\state\RS1\data</dataDirectory>
<generationRetentionTime>168.0</generationRetentionTime>
<idPropertyName>Endeca.Id</idPropertyName>
<ignoreInvalidRecords>false</ignoreInvalidRecords>
<indexWriteFlushInterval>50000</indexWriteFlushInterval>
<jdbmSettings/>
<mergeBufferSize>131072</mergeBufferSize>
<writeBufferSize>104857600</writeBufferSize>
<recordCompressionEnabled>false</recordCompressionEnabled>
</recordStoreConfiguration>

