Getting a list of forumsAdded by IBM on February 11, 2013 | Version 1 (Original)
|Use administrative commands to retrieve lists of forums that you can subsequently manipulate programmatically.
Before you begin
To run administrative commands, you must use the wsadmin client. See Starting the wsadmin client
Parent topic: Retrieving forum content
Starting the wsadmin client
Filtering lists of forums
- Start the wsadmin client from the following directory of the system on which you installed the Deployment Manager:
is the WebSphere
® Application Server installation directory and dm_profile_root
is the Deployment Manager profile directory, typically dmgr01.
You must start the client from this directory or subsequent commands that you enter do not execute correctly. For more information, see Starting the wsadmin client
- Start the Forums Jython script interpreter using the following command:
If prompted to specify a service to connect to, type 1 to pick 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 using a local file path, you must pick the node where the file is stored.
- Use the following commands to retrieve the forums in your organization:
Lists forums by forumID, for example:
Retrieves the forum with the specified name, for example: