How do I export and import Service configurations for AM (All versions) using Amster or ssoadm?
The purpose of this article is to provide information on exporting and importing your Service configuration for AM using Amster or ssoadm. These options are used when making changes to your service configuration file. Additionally, exporting the service configuration is commonly used by Administrators and Support to validate configuration settings.
3 readers recommend this article
Overview
You can use the following approaches to export and import service configurations:
- Recording facility - the recording facility can be used to export the AM configuration by specifying the configExport properties. See How do I record troubleshooting information in AM (All versions)? for further information.
- Amster
- ssoadm (deprecated)
Amster
You can use Amster to export and import configurations as detailed in:
With Amster, it is also possible to import a Service configuration that was created in a different version of AM. For example, you can export a configuration from AM 6 and import it into AM 6.5.
Note
If you have custom modules, you must ensure you have installed and registered the custom module first as detailed in How do I import Service configurations in AM (All versions) using Amster when there are custom modules?
ssoadm
You can export and import service configuration using ssoadm as follows:
Note
You cannot import a Service configuration that was created in a different version of AM using ssoadm.
Export
You can export your Service configurations using the following ssoadm command:
$ ./ssoadm export-svc-cfg -u [adminID] -f [passwordfile] -e [secretkey] -o [outputfile]replacing [adminID], [passwordfile], [secretkey] and [outputfile] with appropriate values, where [secretkey] can be any value and is used to encrypt passwords from the configuration. You must then use the same key when importing the configuration through ssoadm import-svc-cfg.
Import
You can import your Service configurations using the following ssoadm command:
$ ./ssoadm import-svc-cfg -u [adminID] -f [passwordfile] -e [secretkey] -X [XMLfile]replacing [adminID], [passwordfile], [secretkey] and [XMLfile] with appropriate values, where [secretkey] is the same value you used when you exported the configuration.
Restart the web application container in which AM runs to update the configuration.
Known issues
The following known issues may prevent you from exporting or importing Service configurations using ssoadm:
- AM 6.5.2.x: OPENAM-15370 (ssoadm import-svc-cfg fails with Unable to obtain Server URL). This is fixed in AM 6.5.3.
- AM 6.5: OPENAM-15371 (ssoadm import-svc-cfg fails with unable to recognize the data store type error). This is fixed in AM 6.5.3.
See Also
How do I collect all the data required for troubleshooting AM and Agents (All versions)?
Related Training
N/A
Related Issue Tracker IDs
N/A