Retrieves SNMP multiplexing (SMUX) peer entries from the /etc/snmpd.peers file or the local snmpd.peers file.
SNMP Library (libsnmp.a)
struct smuxEntry *getsmuxEntrybyname ( name)
struct smuxEntry *getsmuxEntrybyidentity ( 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 5L Version 5.1 Communications Programming Concepts.