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:
- Connecting to the statistical API port.
- Querying running Gateway daemons for statistics in the connection
manager resource group.
- Obtaining values for these statistics.
- 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