DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Developing SMUX peers for SNMP agents

Objects

MIB objects are modeled by the OT (Object Type) structure:

typedef struct object_type {
	char   *ot_text;      /* OBJECT DESCRIPTOR */
	char   *ot_id;        /* OBJECT IDENTIFIER */
	OID     ot_name;      /*   .. */

OS ot_syntax; /* SYNTAX */

int ot_access; /* ACCESS */ #define OT_NONE 0x00 #define OT_RDONLY 0x01 #define OT_RDWRITE 0x02

int ot_status; /* STATUS */ #define OT_OBSOLETE 0x00 #define OT_MANDATORY 0x01 #define OT_OPTIONAL 0x02 #define OT_DEPRECATED 0x03 ... } object_type, *OT; #define NULLOT ((OT) 0)

There are many routines to manipulate MIB objects; these are described in smux_util(3snmp).
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004