00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef _agentpp_agentx_mib_h
00027 #define _agentpp_agentx_mib_h
00028
00029 #include <agent_pp/mib.h>
00030 #include <agent_pp/mib_complex_entry.h>
00031 #include <agent_pp/snmp_textual_conventions.h>
00032 #include <agent_pp/notification_originator.h>
00033
00034
00035
00036 #define oidAgentppAgentXExtSrcAddrValidation "1.3.6.1.4.1.4976.3.1.2.2.1.0"
00037
00038
00039 #define oidAgentppAgentXExtSrcAddrTag "1.3.6.1.4.1.4976.3.1.2.2.2.1.2"
00040 #define colAgentppAgentXExtSrcAddrTag "2"
00041 #define oidAgentppAgentXExtSrcAddrRowStatus "1.3.6.1.4.1.4976.3.1.2.2.2.1.3"
00042 #define colAgentppAgentXExtSrcAddrRowStatus "3"
00043
00044
00045
00046 #define oidAgentppAgentXExtSrcAddrEntry "1.3.6.1.4.1.4976.3.1.2.2.2.1"
00047 #define nAgentppAgentXExtSrcAddrTag 0
00048 #define cAgentppAgentXExtSrcAddrTag 2
00049 #define nAgentppAgentXExtSrcAddrRowStatus 1
00050 #define cAgentppAgentXExtSrcAddrRowStatus 3
00051
00052
00053
00054
00055
00056 #include "agentx_def.h"
00057
00058
00059 #ifdef AGENTPP_NAMESPACE
00060 namespace Agentpp {
00061 #endif
00062
00063
00064
00065
00066
00067
00089 class AGENTXPP_DECL agentppAgentXExtSrcAddrValidation: public MibLeaf
00090 {
00091
00092 public:
00093 agentppAgentXExtSrcAddrValidation();
00094 virtual ~agentppAgentXExtSrcAddrValidation();
00095
00096 static agentppAgentXExtSrcAddrValidation* instance;
00097
00098 virtual long get_state();
00099 virtual void set_state(long);
00100 virtual int prepare_set_request(Request*, int&);
00101 enum labels {
00102 e_enabled = 1,
00103 e_disabled = 2 };
00104
00105
00106
00107 };
00108
00109
00110
00111
00112
00113
00126 class AGENTXPP_DECL agentppAgentXExtSrcAddrTag: public MibLeaf
00127 {
00128
00129 public:
00130 agentppAgentXExtSrcAddrTag(const Oidx&);
00131 virtual ~agentppAgentXExtSrcAddrTag();
00132
00133 virtual MibEntryPtr clone();
00134 virtual NS_SNMP OctetStr get_state();
00135 virtual int prepare_set_request(Request*, int&);
00136
00137
00138
00139 };
00140
00141
00142
00143
00153 class AGENTXPP_DECL agentppAgentXExtSrcAddrRowStatus: public snmpRowStatus
00154 {
00155
00156 public:
00157 agentppAgentXExtSrcAddrRowStatus(const Oidx&);
00158 virtual ~agentppAgentXExtSrcAddrRowStatus();
00159
00160 virtual MibEntryPtr clone();
00161 virtual long get_state();
00162 virtual int prepare_set_request(Request*, int&);
00163 enum labels {
00164 e_active = 1,
00165 e_notInService = 2,
00166 e_notReady = 3,
00167 e_createAndGo = 4,
00168 e_createAndWait = 5,
00169 e_destroy = 6 };
00170
00171
00172
00173 };
00174
00175
00176
00177
00178
00192 class AGENTXPP_DECL agentppAgentXExtSrcAddrEntry: public MibTable
00193 {
00194
00195 public:
00196 agentppAgentXExtSrcAddrEntry();
00197 virtual ~agentppAgentXExtSrcAddrEntry();
00198
00199 static agentppAgentXExtSrcAddrEntry* instance;
00200
00201 virtual int prepare_set_request(Request*, int&);
00202 virtual void row_activated(MibTableRow*, const Oidx&, MibTable*);
00203 virtual void row_deactivated(MibTableRow*, const Oidx&, MibTable*);
00204
00205
00206 };
00207
00208
00209 #ifdef _SNMPv3
00210 #endif
00211
00212
00213
00214 class AGENTXPP_DECL agentpp_agentx_mib: public MibGroup
00215 {
00216 public:
00217 agentpp_agentx_mib();
00218 virtual ~agentpp_agentx_mib() { }
00219
00220
00221 };
00222
00223
00224 #ifdef AGENTPP_NAMESPACE
00225 }
00226 #endif
00227
00228
00229
00230
00231
00232 #endif