SNMP Subagent Programmer's Guide
Agent/Subagent Compatibility
1-12 119728—SNMP Subagent Programmer’s Guide
Introduction to Subagent Programming
•
Management function mgmt_poll() for NonStop subagents contains three, not two,
arguments. The third argument, used during nowaited operations, indicates the size
of the message from the NonStop agent; the value of this argument is returned by
Guardian procedure AWAITIO[X].
•
The management function mgmt_init_env() passes a NonStop agent process name
instead of an agent socket address.
•
The header file named tdmporth must be included globally before any other Toolkit
header files.
•
C compiler pragmas may need to change.
Agent/Subagent Compatibility
Subagents developed with the first release (D20 version) of the Toolkit interoperate with
D22 or later versions of the NonStop agent. Subagents developed with the second
release (D21 version, July 24, 1995) of the Toolkit interoperate with D22 NonStop
agent IPM AAD (July 28, 1995) or later versions of the NonStop agent.
Installing the Toolkit
When you use the Install utility, the Subagent Toolkit files are installed to two
subvolumes:
The sample files include a TACL routine for each of the sample subagents. These
routines automate the creation of executable subagents from sample source code. The
TACL routines refer to file names as follows:
•
Names of sample files are unqualified. Sample files are expected to be in your
current subvolume.
•
GDMOC, the run-time libraries, and the header files are expected to be in
subvolume ZSNMPSDK on the same volume as the sample files.
If your files are in different locations, change the file names in the TACL routines before
invoking them.
$<dsv>.ZSNMPSDK MIB compiler (GDMOC)
Run-time libraries (PEERLBTO and PEERLIBO)
Run-time header files
$<dsv>.ZSNMPDKX Sample subagent files