IBM Support

SDK Sample - Retrieving the Content Manager service version

Technote (FAQ)


How to get the version or build number of Content Manager.


When testing if Content Manager service is responding by typing in the Test URI http://Server:Port/p2pd/servlet
in a browser, you may get result like this:

IBM Cognos
Content Manager
Build: 10.2.5003.5
Start time: Monday, August 18, 2014 10:17:52 AM EDT
Current time: Monday, August 18, 2007 10:20:38 AM EDT
State: Running

If you want to get the build number shown above via SDK instead of a browser, the code snippet below should be used.

Issue a simple call to the content manager service and retrieve the build info from the BiBusHeader object.

cmService = cmServiceLocator.getcontentManagerService(endPoint);

//issue a call using cmService, such as logon() or query(),eg:

BaseClass[] bc = cmService.query(
new SearchPathMultipleObject("~"),
new PropEnum[]{}, new Sort[]{}, new QueryOptions());

BiBusHeader CMbibus = (BiBusHeader)
((Stub)cmService).getHeaderObject("", "biBusHeader");

String cc= CMbibus.getTracking().getProviders()[0].getBuild();

String cc has the build number.
However it only shows 10.2 rather than the full 10.2.1587.0.
Unfortunately, there is no way to retrieve the complete build version number.
This information is recorded in cogserver.log at startup.
You could parse this file if you have access to it.

Cross reference information
Segment Product Component Platform Version Edition
Business Analytics Cognos Business Intelligence Software Development Kit
Business Analytics Cognos Business Intelligence Software Development Kit Windows 10.2, 10.1, 8.4.1, 8.4, 8.3

Historical Number


Document information

More support for: Cognos Business Intelligence
Software Development Kit

Software version: 8.3, 8.4, 8.4.1, 10.1, 10.2

Operating system(s): Windows

Reference #: 1371252

Modified date: 18 August 2014

Translate this page: