The
generateDimensionValueId task generates Ids given a
dimension name and a dimension specification. In general, you should rarely
need to run this task because CAS generates dimension value Ids as part of
writing MDEX output. In cases where you need to create dimension value
configuration before the data ingest process, you can run this task manually.
The syntax for this task is:
cas-cmd generateDimensionValueId -d dimensionname [-h HostName] [-l true|false] -m managername [-p PortNumber]
Where:
-d(or--dimension) specifies the name of the dimension that you want to generate Ids for. 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.-m(or--dimension_value_id_manager) specifies name of the Dimension Value Id Manager that is generating the Ids. Required.-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, in(on Windows) or<install path>\CAS\workspace\conf(on UNIX). If the property is not set, the value then defaults to<install path>/CAS/workspace/conf8500. Optional.-s(or--spec) specifies the dimension value specification that you want to get the Ids of. Required.
To generate dimension value Ids:
Example 14. Example of generating dimension value Ids
This example creates a Dimension Value Id Manager named
dvalmgr:
C:\Endeca\CAS\<version>\bin>cas-cmd.bat generateDimensionValueId -m dvalmgr -d Region -s Bordeaux Generated id: 1

