Running administrative commands
Use administrative commands to run tasks on the server.
About this task
Administrative commands interact with HCL Connections applications through scripts. These scripts use the AdminControl object in the wsadmin client to interact with the applications. Each script uses managed beans (MBeans) to set administration properties.
When you use administrative commands to change administration properties, you do not have to check out any files nor restart the server for the changes to take effect.
When an administrative command is started, a SOAP request is made to the target HCL Connections application. The number of seconds that the wsadmin client waits for a response to a SOAP request is specified in the com.ibm.SOAP.requestTimeout property in the soap.client.props file. The file is stored in the following directory: WAS_HOME\profiles\PROFILE_NAME\properties.
If a command takes longer to complete than the value of the com.ibm.SOAP.requestTimeout property, an error is displayed in the wsadmin client and any value that is returned from the command is lost. The command continues to be processed by the application but the connection to the client is lost. This fact is important to note because some commands take a long time to run. For example, in a system with many Activities, the ActivityService.fetchActivities() command can take a long time to complete. You can monitor the status of these operations by scanning the SystemOut.log file for success and failure messages.
To increase the time interval that passes before a request fails, edit the com.ibm.SOAP.requestTimeout property in the soap.client.props file. This property is a configuration property so you must restart the server for your changes to take effect.
To use administrative commands, complete the following steps:
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.
- Edit administrative properties and run administrative tasks by using administrative commands. These commands are documented in the individual application sections of the product documentation.