skip to main content
Troubleshooting the OpenAccess SDK Clients : Getting Version Information
 

Getting Version Information

Each component of the OpenAccess SDK can provide version information such as the release date and version. For the following components, you can use the whatmain tool, shipped with the OpenAccess SDK, to get the version information:
ODBC Client
ADO Client
OpenAccess SDK Server
Note: The whatmain tool is not supported for getting version information for the JDBC or ADO.NET Clients.
The whatmain tool resides in the server_installdir/bin directory (on Windows) and the client_installdir/tools directory (On UNIX/Linux), where server_installdir is the OpenAccess SDK Server installation directory and client_installdir is the OpenAccess SDK Client installation directory.
The whatmain tool has the following syntax:
whatmain [option] file...
where:
option is one of the following flags:
-m shows only MODULE version information. This is the default.
-a shows information for all components, including internal revision information.
-v shows information in verbose mode.
-w means that the information is displayed after each scanned file.
-s stops after finding the first occurrence of patt in each file.
-p<patt>, -p'<patt>', or -p"<patt>" specifies an alternate pattern.
file is a component library file. On Windows, this file has an extension of .dll or .exe; on UNIX/Linux, this file has an extension of .so.

Example on Windows

If you execute the following whatmain command in the directory containing the file:
whatmain oasoa.exe
The result appears, showing MODULE information for the specified file:

Example on UNIX

If you execute the following command:
bash-3.00$ whatmain -a libcmgss_api.so
The result appears, showing all information for the specified file, including internal revision information:
scanning libcmgss_api.so
IMGSS.h $Revision: #1 $ $Date: 2016/01/21 $
             MODULE Build ID : 0043
             MODULE Name : GSSAPI Authentication Module
             MODULE Release Date : Aug 24 2016
             MODULE Version : 8.1.0.0043
             PLATFORM : Solaris
             ascii.h $Revision: #1 $ $Date: 2016/01/21 $
             convlib.c $Revision: #1 $ $Date: 2016/01/21 $
             convlib.h $Revision: #1 $ $Date: 2016/01/21 $
             crsecmgr.h $Revision: #1 $ $Date: 2016/01/21 $
             errlib.c $Revision: #1 $ $Date: 2016/01/21 $
             errlib.h $Revision: #1 $ $Date: 2016/01/21 $