Simple Network Management Protocol (SNMP) Subagent APIs

The SNMP Subagent APIs are:

Note: These functions use header (include) files from the library QSYSINC, which is optionally installable. Make sure QSYSINC is installed on your system before using any of the functions. All of the SNMP subagent APIs use header file qtossapi.h. You can see this source in source file H, member name QTOSSAPI, in the QSYSINC library.

The Simple Network Management Protocol (SNMP) subagent APIs can be used to dynamically extend the management information base (MIB) that the system SNMP agent is aware of. The MIB is extended, without any change to the SNMP agent itself, while the iSeries is running. Dynamically added MIB subtrees (as defined and supported by a program known as a subagent) provide this capability. You may now extend the remote and automated system management capabilities of the iSeries within the SNMP framework. So, for example, you could define an SNMP MIB group for your RPG and SQL application, and then use SNMP protocol data units (PDUs), such as get and set, to determine status information or to make changes in control variables.

The term Distributed Protocol Interface (DPI) packet is used throughout this information. The DPI is an extension to SNMP agents that permit users to dynamically add, delete, or replace management variables in the local MIB without requiring recompilation of the SNMP agent.

The diagram below shows typical DPI API call sequences that are used to accomplish the SNMP subagent functions that are listed.

(A) Subagent initiation
(B) Subagent registration (loop for multiple subtrees)
(C) Normal processing loop for a subagent, starting with a wait for a (get, getnext, set...) packet from the SNMP agent (other may be an unregister or close packet)
(D) A common call sequence that might be consolidated
(E) Subagent initiated trap
(F) Subagent termination

A loop around mkDPIset() represents building a packet with multiple varbinds.

DPI API Call Sequences--Example

DPI API Call Sequences--Example


Top | UNIX-Type APIs | APIs by category