C ctgstat1 statistics API sample

This sample shows how Gateway daemon statistics can be obtained by C clients.

The statistics sample program is written in C and can be found in the <install_path>/samples/c/stats directory.

The ctgstat1 C sample program demonstrates the following functions:
  1. Connecting to the statistical API port.
  2. Querying running Gateway daemons for statistics in the connection manager resource group.
  3. Obtaining values for these statistics.
  4. Retrieving and displaying information about the Gateway daemon running time and the total number of requests made.

To build the sample program on Windows, run the supplied command file ctgstat1mak.cmd.

To build the sample program on UNIX and Linux, change to this directory and issue the following command:
make -f samp.mak
To build the sample program on Linux on POWER® using the IBM® XL C compiler, change to this directory and issue the following command:
make -f samp.mak COMPILER=XL

Information Information

Feedback


Timestamp icon Last updated: Tuesday, 19 November 2013


https://ut-ilnx-r4.hursley.ibm.com/tg_latest/help/topic/com.ibm.cics.tg.doc//progde/Ctgstat1c.html