getsmuxEntrybyname or getsmuxEntrybyidentity Subroutine

Purpose

Retrieves SNMP multiplexing (SMUX) peer entries from the /etc/snmpd.peers file or the local snmpd.peers file.

Library

SNMP Library (libsnmp.a)

Syntax

#include <isode/snmp/smux.h>
   
struct smuxEntry *getsmuxEntrybyname ( name)
char *name;
   
struct smuxEntry *getsmuxEntrybyidentity ( identity)
OID identity;

Description

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.

These subroutines are part of the SNMP Application Programming Interface in the TCP/IP facility.

Parameters

name Points to a character string that names the SMUX peer.
identity Specifies the object identifier for a SMUX peer.

Return Values

If either subroutine finds the specified SMUX entry, that subroutine returns a structure containing the entry. Otherwise, a null entry is returned.

Files

/etc/snmpd.peers Contains the SMUX peer definitions for the network.

Related Information

List of Network Manager Programming References.

SNMP Overview for Programmers in AIX Version 6.1 Communications Programming Concepts.

[ Top of Page | Previous Page | Next Page | Index | Feedback ]