Sends the open protocol data unit (PDU) to the Simple Network Management Protocol (SNMP) daemon.
#include <isode/snmp/smux.h>
int smux_simple_open (identity, description, commname, commlen)
OID identity;
char * description;
char * commname;
int commlen;
Following the smux_init command, the smux_simple_open subroutine alerts the SNMP daemon that incoming messages are expected. Communication with the SNMP daemon is accomplished by sending an open PDU to the SNMP daemon. The smux_simple_open subroutine uses the identity object-identifier parameter to identify the SNMP multiplexing (SMUX) peer that is starting to communicate. The description parameter describes the SMUX peer. The commname and the commlen parameters supply the password portion of the open PDU. The commname parameter is the password used to authenticate the SMUX peer. The SNMP daemon finds the password in the /etc/snmpd.conf file. The SMUX peer can store the password in the /etc/snmpd.peers file. The commlen parameter specifies the length of the commname parameter value.
The subroutine returns an integer value of OK on success or NOTOK on failure.
If the subroutine is
unsuccessful, the smux_errno global variable is set 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_register subroutine, smux_response subroutine, smux_trap subroutine, smux_wait subroutine.
List of Network Manager Programming References.
RFC 1227, SNMP MUX Protocol and MIB.
SNMP Overview for Programmers in AIX 5L Version 5.1 Communications Programming Concepts.