Remote Statistics Interface API Overview

The Remote Statistics Interface (RSI) is an application programming interface (API) that is available for developing programs that access the statistics available from one or more xmtopas daemons.

Learn the procedure to use the RSI Interface API through the sample programs. The sample programs, and others, are also provided in the machine-readable. The sample programs can be found in the /usr/samples/perfmgr directory.

Use the RSI Interface API to write programs that access one or more xmtopas daemons. It allows you to develop programs that print, post-process, or otherwise manipulate the raw statistics provided by the xmtopas daemons. Such programs are known as Data-Consumer programs. AIX Version 7.1 Technical Reference: Communications, Volume 2 must be installed to see the RSi subroutines

Makefile

The include files are based on the define directives, which must be properly set. They are defined with the -D preprocessor flag.
  • _AIX® specifies the include files to generate code for AIX®.
  • _BSD required for proper BSD compatibility.
An example of a Makefile that helps to build a sample program follows:
LIBS = -L./ -lbsd -lSpmi
CC = cc
CFLAGS = -D_BSD -DRSIv6 -D_AIX®
all:: RsiCons RsiCons1 chmon

RsiCons: RsiCons.c
      $(CC) -o RsiCons RsiCons.c $(CFLAGS) $(LIBS)

RsiCons1: RsiCons1.c
      $(CC) -o RsiCons1 RsiCons1.c $(CFLAGS) $(LIBS)

chmon: chmon.c $
      $(CC) -o chmon chmon.c $(CFLAGS) $(LIBS) -lcurses
If the system that is used to compile does not support ANSI function prototypes, include the -D_NO_PROTO flag.