Retrieves SNMP multiplexing (SMUX) peer entries from the /etc/snmpd.peers file or the local snmpd.peers file.
SNMP Library (libsnmp.a)
#include <isode/snmp/smux.h> struct smuxEntry *getsmuxEntrybyname (name) char *name; struct smuxEntry *getsmuxEntrybyidentity (identity) OID identity;
The getsmuxEntrybyname and getsmuxEntrybyidentity subroutines read the snmpd.peers file and retrieve information about the SMUX peer. The sample peers file is /etc/snmpd.peers. However, these subroutines can also retrieve the information from a copy of the file that is kept in the local directory. The snmpd.peers file contains entries for the SMUX peers defined for the network. Each SMUX peer entry should contain:
The getsmuxEntrybyname subroutine searches the file for the specified name. The getsmuxEntrybyidentity subroutine searches the file for the specified object identifier.
|name||Points to a character string that names the SMUX peer.|
|identity||Specifies the object identifier for a SMUX peer.|
If either subroutine finds the specified SMUX entry, that subroutine returns a structure containing the entry. Otherwise, a null entry is returned.
These subroutines are part of the SNMP Application Programming Interface in the TCP/IP facility.
|/etc/snmpd.peers||Contains the SMUX peer definitions for the network.|
List of Network Manager Programming References.
SNMP Overview for Programmers in AIX Version 4 Communications Programming Concepts.