The
importDimensionValueIdMappings task imports dimension
value Id mappings from a CSV file into a Dimension Value Id Manager. The
restore process completely replaces all dimension value Id mappings stored in
the Dimension Value Id Manager.
The syntax for this task is:
cas-cmd importDimensionValueIdMappings [-h HostName] [-l true|false] -m dvalmgr [-p PortNumber] -f mappings.csv
Where:
-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. 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.-f(or--file_name) specifies the path of the CSV file, which must be accessible to the CAS Service process (not just accessible to the host running the CAS Service). This requirement has implications for files that reside on mapped network drives. For details, see the following note. Required.
Note
For Windows, you should specify network drives by universal naming convention (UNC) syntax rather than by using the letter of a mapped drive. For UNIX, you can specify mounted or local drives using standard file path syntax.
Examples of local folders on Windows:
Examples of syntax for network drives:
To import dimension value Id mappings:
Example 17. Examples of importing dimension value Id mappings
This Windows example imports mappings from a local drive:
C:\Endeca\CAS\<version>\bin>cas-cmd.bat importDimensionValueIdMappings -m dvalmgr -f C:\temp\mappings.csv Successfully imported mappings from C:\temp\mappings.csv
This Windows example imports mappings from a mapped network drive:
C:\Endeca\CAS\<version>\bin>cas-cmd.bat importDimensionValueIdMappings -m dvalmgr -f \\jsmith-t60\tmp\mappings.csv Successfully imported mappings from \\jsmith-t60\tmp\mappings.csv

