Registers a section of the Management Information Base (MIB) tree with the Simple Network Management Protocol (SNMP) agent.
#include <isode/snmp/smux.h>
int smux_register (subtree, priority, operation)
OID subtree; int priority; int operation;
The smux_register subroutine registers the section of the MIB tree for which the SMUX peer is responsible with the SNMP agent. Using the smux_register subroutine, the SMUX peer informs the SNMP agent of both the level of responsibility the SMUX peer has and the sections of the MIB tree for which it is responsible. The level of responsibility (priority) the SMUX peer sends determines which requests it can answer. Lower priority numbers correspond to higher priority.
If a tree is registered more than once, the SNMP agent sends requests to the registered SMUX peer with the highest priority. If the priority is set to -1, the SNMP agent attempts to give the SMUX peer the highest available priority. The operation parameter defines whether the MIB tree is added with readOnly or readWrite permissions, or if it should be deleted from the list of register trees. The SNMP agent returns an acknowledgment of the registration. The acknowledgment indicates the success of the registration and the actual priority received.
The values returned by this subroutine are OK on success and NOTOK on failure.
If the subroutine is unsuccessful, the smux_errno global variable is set to one of the following values:
This subroutine is part of the SNMP Application Programming Interface in the TCP/IP facility.
The smux_close subroutine, smux_error subroutine, smux_init subroutine, smux_response subroutine, smux_simple_open subroutine, smux_trap subroutine, smux_wait subroutine.
List of Network Manager Programming References.
RFC1227, SNMP MUX Protocol and MIB.
SNMP Overview for Programmers in AIX Version 4.3 Communications Programming Concepts.