Smile CDR v2024.08.PRE
On this page:

43.11.1smileutil: Module Config Properties Export

 

The module-config-properties-export command uses the Module Config Endpoint functionality in the JSON Admin Endpoints.

It takes a target URL, optional node ID, base URL and in order to make a call to the module config endpoint and to write the results to an output file.

The command will write output similar to the following for the Master node:

################################################################################
# 	 Master
################################################################################
node.id=Master

################################################################################
# 	 admin_json
################################################################################
module.admin_json.type=ADMIN_JSON
module.admin_json.requires.SECURITY_IN_UP=local_security
module.admin_json.config.cors.origins=*
module.admin_json.config.context_path=/
module.admin_json.config.threadpool.max=10
module.admin_json.config.sessions.timeout.mins=30
module.admin_json.config.threadpool.min=5
module.admin_json.config.sessions.scavenger.interval.millis=60000
module.admin_json.config.port=9000

See Module Config Endpoint for a description of the functionality invoked by this feature.

bin/smileutil module-config-properties-export --target http://my-ip:9000 --output /path/to/export.properties --basic-auth myuser:mypassword --node-id my-node-id

43.11.2Options

 
  • -o [output file] (or --output [output file]) – (required) This required argument tells the tool which file path to right the module properties to, for example /tmp/module-export.properties
  • -t [base URL] (or --target [base URL]) – (required) This argument should point to the base URL of the target FHIR server endpoint.
  • -b [username:password] (or --basic-auth [username:password]) – (required) If specified, provides a username and password that will be supplied to the server in an HTTP Basic Authorization header in the form of "username:password". If the value supplied is "PROMPT", smileutil will prompt the user to enter credentials interactively.
  • -n [node ID] (or --node-id [node-id]) – (optional) This optional argument tells the tool which Node ID to use. So for example, it will lead to this module properties URL, for example: href="http://localhost:9000/module-config/{node-id}/properties