1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
|
/* -- DO NOT EDIT --
* Generated by smidump version 0.4.3:
* smidump -f scli \
* --scli-include='historyControlEntry' RMON-MIB
*
* Derived from RMON-MIB:
* Remote network monitoring devices, often called
* monitors or probes, are instruments that exist for
* the purpose of managing a network. This MIB defines
* objects for managing remote network monitoring devices.
*
* Revision 2000-05-11 00:00:
* Reformatted into SMIv2 format.
*
* This version published as RFC 2819.
*
* Revision 1995-02-01 00:00:
* Bug fixes, clarifications and minor changes based on
* implementation experience, published as RFC1757 [18].
*
* Two changes were made to object definitions:
*
* 1) A new status bit has been defined for the
* captureBufferPacketStatus object, indicating that the
* packet order within the capture buffer may not be identical to
* the packet order as received off the wire. This bit may only
* be used for packets transmitted by the probe. Older NMS
* applications can safely ignore this status bit, which might be
* used by newer agents.
*
* 2) The packetMatch trap has been removed. This trap was never
* actually 'approved' and was not added to this document along
* with the risingAlarm and fallingAlarm traps. The packetMatch
* trap could not be throttled, which could cause disruption of
* normal network traffic under some circumstances. An NMS should
* configure a risingAlarm threshold on the appropriate
* channelMatches instance if a trap is desired for a packetMatch
* event. Note that logging of packetMatch events is still
* supported--only trap generation for such events has been
* removed.
*
* In addition, several clarifications to individual object
* definitions have been added to assist agent and NMS
* implementors:
*
* - global definition of 'good packets' and 'bad packets'
*
* - more detailed text governing conceptual row creation and
* modification
*
* - instructions for probes relating to interface changes and
* disruptions
*
* - clarification of some ethernet counter definitions
*
* - recommended formula for calculating network utilization
*
* - clarification of channel and captureBuffer behavior for some
* unusual conditions
*
* - examples of proper instance naming for each table
*
* Revision 1991-11-01 00:00:
* The original version of this MIB, published as RFC1271.
*
* $Id: rmon-mib.h 1787 2006-02-21 20:45:55Z schoenw $
*/
#ifndef _RMON_MIB_H_
#define _RMON_MIB_H_
#include "gsnmp.h"
G_BEGIN_DECLS
/*
* Tables to map enumerations to strings and vice versa.
*/
#define RMON_MIB_ENTRYSTATUS_VALID 1
#define RMON_MIB_ENTRYSTATUS_CREATEREQUEST 2
#define RMON_MIB_ENTRYSTATUS_UNDERCREATION 3
#define RMON_MIB_ENTRYSTATUS_INVALID 4
extern GNetSnmpEnum const rmon_mib_enums_EntryStatus[];
/*
* Tables to map notifications to strings and vice versa.
*/
#define RMON_MIB_RISINGALARM 1,3,6,1,2,1,16,0,1
#define RMON_MIB_FALLINGALARM 1,3,6,1,2,1,16,0,2
extern GNetSnmpIdentity const rmon_mib_notifications[];
/*
* C type definitions for RMON-MIB::historyControlEntry.
*/
#define RMON_MIB_HISTORYCONTROLINDEX (1 << 0)
#define RMON_MIB_HISTORYCONTROLDATASOURCE (1 << 1)
#define RMON_MIB_HISTORYCONTROLBUCKETSREQUESTED (1 << 2)
#define RMON_MIB_HISTORYCONTROLBUCKETSGRANTED (1 << 3)
#define RMON_MIB_HISTORYCONTROLINTERVAL (1 << 4)
#define RMON_MIB_HISTORYCONTROLOWNER (1 << 5)
#define RMON_MIB_HISTORYCONTROLSTATUS (1 << 6)
typedef struct {
gint32 historyControlIndex; /* ro */
guint32 *historyControlDataSource; /* rw ObjectIdentifier */
#define RMON_MIB_HISTORYCONTROLDATASOURCEMINLENGTH 0
#define RMON_MIB_HISTORYCONTROLDATASOURCEMAXLENGTH 128
guint16 _historyControlDataSourceLength;
gint32 *historyControlBucketsRequested; /* rw */
gint32 *historyControlBucketsGranted; /* ro */
gint32 *historyControlInterval; /* rw [Seconds] */
guchar *historyControlOwner; /* rw RMON-MIB::OwnerString */
#define RMON_MIB_HISTORYCONTROLOWNERMINLENGTH 0
#define RMON_MIB_HISTORYCONTROLOWNERMAXLENGTH 127
guint16 _historyControlOwnerLength;
gint32 *historyControlStatus; /* rw RMON-MIB::EntryStatus */
} rmon_mib_historyControlEntry_t;
extern void
rmon_mib_get_historyControlTable(GNetSnmp *s, rmon_mib_historyControlEntry_t ***historyControlEntry, gint64 mask);
extern void
rmon_mib_free_historyControlTable(rmon_mib_historyControlEntry_t **historyControlEntry);
extern rmon_mib_historyControlEntry_t *
rmon_mib_new_historyControlEntry(void);
extern void
rmon_mib_get_historyControlEntry(GNetSnmp *s, rmon_mib_historyControlEntry_t **historyControlEntry, gint32 historyControlIndex, gint64 mask);
extern void
rmon_mib_set_historyControlEntry(GNetSnmp *s, rmon_mib_historyControlEntry_t *historyControlEntry, gint64 mask);
extern void
rmon_mib_free_historyControlEntry(rmon_mib_historyControlEntry_t *historyControlEntry);
G_END_DECLS
#endif /* _RMON_MIB_H_ */
|