Editing configuration files
You can edit configuration files either by using the wsadmin client or by editing the files directly.
About this task
To edit a configuration file, you must check it out first.
Each configuration file is an XML that is paired with an XSD file. The XML file contains configuration settings and the corresponding XSD files is used to validate the XML file.
Procedure
- Start the
wsadmin client by completing the following steps:
-
Use the following command to access the configuration files:
execfile("application_py_file")
where application_py_file is one of the following values:- HCL Connections-wide: connectionsConfig.py
- Activities: activitiesAdmin.py
- Blogs: blogsAdmin.py
- Bookmarks: dogearAdmin.py
- Communities: communitiesAdmin.py
- Files: filesAdmin.py
- Forums: forumsAdmin.py
- Home page: homepageAdmin.py
- News: newsAdmin.py
- Profiles: profilesAdmin.py
- Search: searchAdmin.py
- Wikis: wikisAdmin.py
- Metrics: metricsAdmin.py
If you are prompted to specify a service to connect to, type 1 to select the first node in the list. Most commands can run on any node. If the command writes or reads information to or from a file by using a local file path, you must select the node where the file is stored. This information is not used by the wsadmin client when you are making configuration changes.
- Check out the configuration file for an application by
using the following command:
service_name.checkOutConfig("working_directory", "cell_name")
where:- service_name is one of the following values:
- HCL Connections-wide: LCConfigService
- Activities: ActivitiesConfigService
- Blogs: The configuration settings for Blogs are not in a configuration file, so you do not have to edit a file. Unlike the other applications, when you edit Blogs configuration properties, the changes are written directly to the Blogs database.
- Bookmarks: DogearCellConfig
- Communities: CommunitiesConfigService
- Files: FilesConfigService
- Forums: ForumsConfigService
- News: NewsCellConfig
- Profiles: ProfilesConfigService
- Search: SearchCellConfig
- Wikis: WikisConfigService
- Metrics: MetricsConfigService
- working_directory is
the temporary working directory to which configuration files are copied.
The files are kept in this working directory while you edit them. Notes:
- When you specify a path to the working directory on a system that is running Microsoft® Windows®, use a forward slash for the directory. For example: "C:/temp".
- AIX®, and Linux® only: The directory must grant write permissions or the command fails.
- cell_name is the
name of the WebSphere® Application
Server cell that hosts the HCL Connections
application. If you do not know the cell name, display it by typing
the following command in the wsadmin client: print AdminControl.getCell()Note: This input parameter is case-sensitive.
For example:- Common HCL Connections properties:LCConfigService.checkOutConfig("C:/temp","foo01Cell01") LCConfigService.checkOutNotificationConfig("C:/temp","foo01Cell01") LCConfigService.checkOutOpensocialConfig("C:/temp","fooCell01")
- The events-config.xml file:LCConfigService.checkOutEventsConfig("/temp","foo01Cell01")
This command is part of the LCConfig service and checks out the events-config.xml file. For more information, see Editing the events-config.xml file.
- Activities: ActivitiesConfigService.checkOutConfig("/temp","foo01Cell01")
- Bookmarks: DogearCellConfig.checkOutConfig("C:/temp","foo01Cell01")
- Communities: CommunitiesConfigService.checkOutConfig("/temp","foo01Cell01")
- Files: FilesConfigService.checkOutConfig("C:/temp","foo01Cell01")
- Forums: ForumsConfigService.checkOutConfig("C:/temp","foo01Cell01")
- Metrics: MetricsConfigService.checkOutConfig("/temp","foo01Cell01")
- News repository: NewsCellConfig.checkOutConfig("/temp","foo01Cell01")
- Profiles: ProfilesConfigService.checkOutConfig("C:/temp","foo01Cell01")
- Search: SearchCellConfig.checkOutConfig("/temp","foo01Cell01")Note: The HomepageCellConfig.checkOutConfig command is superseded by the SearchCellConfig.checkOutConfig command.
- Wikis: WikisConfigService.checkOutConfig("C:/temp","foo01Cell01")
- service_name is one of the following values:
- Optional: To see the current values of the
configuration properties, use the following command:
where service_name is one of the service names that are defined in step 4.service_name.showConfig()
- Edit the configuration properties that you want to change.
Some properties must be edited by using the wsadmin client; others
can be edited only by editing the configuration XML file directly.
For example:
service_name.updateConfig("property_name","new_value")
For more information about the configuration properties that you can edit, see the documentation for the individual application sections.
- To force users' browsers to pick up the changes to the configuration, update the value of the version stamp configuration property. For more information, see Required post-customization step.
- Check in the configuration files: service_name.checkInConfig()where service_name is one of the service names that are defined in step 4. You do not have to complete this step for the Blogs application. To check in the events-config.xml file, use the LCConfigService.checkInEventsConfig() command.Note: You must check in the file during the same wsadmin session in which you checked it out.
-
Deploy the changes by synchronizing the nodes: synchAllNodes()
-
To exit the wsadmin client, type
exit
at the prompt. - Stop and restart the servers that host the HCL Connections applications.Note: If you changed Blogs configuration settings only, you do not have to restart the servers.