Change Forums configuration property values
Configure Forums by using Jython scripts that are accessed by the wsadmin client. wsadmin scripts use the AdminConfig object to interact with the Forums configuration file. After changing Forums configuration settings, synchronize the nodes and restart the Forums application server.
To change Forums configuration settings.
- Check out the Forums configuration files by :
cd app_server_root/profiles/Dmgr01/bin
./wsadmin.sh -lang jython
execfile("forumsAdmin.py")
ForumsConfigService.checkOutConfig("/tmp", "cell_name")To determine cellname:
print AdminControl.getCell()
- To view a list of the valid Forums configuration settings and their current values:
ForumsConfigService.showConfig()
To change a Forums configuration setting:
ForumsConfigService.updateConfig("property", "value") where property is one of the editable Forums configuration properties and value is the new value of the property. For a complete list of editable properties, see Forums configuration properties.
For example:
ForumsConfigService.updateConfig("task.TrashAutoPurgeJob.trashRetentionInDays", "120")
- After you update the Forums properties with new values, use the ForumsConfigService.showConfig() command to display the list of properties and their updated values.
- Repeat step 3 for each property to change.
What to do next
Check in the configuration files during the same wsadmin session in which they were checked out. See Applying property changes.
Parent topic:
Administer Forums
Related: