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
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092 #ifndef snmp_group_h_
00093 #define snmp_group_h_
00094
00095
00096 #include <string.h>
00097
00098 #include <agent_pp/agent++.h>
00099 #include <agent_pp/mib.h>
00100
00101
00102 #define oidSnmpGroup "1.3.6.1.2.1.11"
00103 #define oidSnmpInPkts "1.3.6.1.2.1.11.1.0"
00104 #define oidSnmpOutPkts "1.3.6.1.2.1.11.2.0"
00105 #define oidSnmpInBadVersions "1.3.6.1.2.1.11.3.0"
00106 #define oidSnmpInBadCommunityNames "1.3.6.1.2.1.11.4.0"
00107 #define oidSnmpInBadCommunityUses "1.3.6.1.2.1.11.5.0"
00108 #define oidSnmpInASNParseErrs "1.3.6.1.2.1.11.6.0"
00109 #define oidSnmpInTooBigs "1.3.6.1.2.1.11.8.0"
00110 #define oidSnmpInNoSuchNames "1.3.6.1.2.1.11.9.0"
00111 #define oidSnmpInBadValues "1.3.6.1.2.1.11.10.0"
00112 #define oidSnmpInReadOnlys "1.3.6.1.2.1.11.11.0"
00113 #define oidSnmpInGenErrs "1.3.6.1.2.1.11.12.0"
00114 #define oidSnmpInTotalReqVars "1.3.6.1.2.1.11.13.0"
00115 #define oidSnmpInTotalSetVars "1.3.6.1.2.1.11.14.0"
00116 #define oidSnmpInGetRequests "1.3.6.1.2.1.11.15.0"
00117 #define oidSnmpInGetNexts "1.3.6.1.2.1.11.16.0"
00118 #define oidSnmpInSetRequests "1.3.6.1.2.1.11.17.0"
00119 #define oidSnmpInGetResponses "1.3.6.1.2.1.11.18.0"
00120 #define oidSnmpInTraps "1.3.6.1.2.1.11.19.0"
00121 #define oidSnmpOutTooBigs "1.3.6.1.2.1.11.20.0"
00122 #define oidSnmpOutNoSuchNames "1.3.6.1.2.1.11.21.0"
00123 #define oidSnmpOutBadValues "1.3.6.1.2.1.11.22.0"
00124 #define oidSnmpOutGenErrs "1.3.6.1.2.1.11.24.0"
00125 #define oidSnmpOutGetRequests "1.3.6.1.2.1.11.25.0"
00126 #define oidSnmpOutGetNexts "1.3.6.1.2.1.11.26.0"
00127 #define oidSnmpOutSetRequests "1.3.6.1.2.1.11.27.0"
00128 #define oidSnmpOutGetResponses "1.3.6.1.2.1.11.28.0"
00129 #define oidSnmpOutTraps "1.3.6.1.2.1.11.29.0"
00130 #define oidSnmpEnableAuthenTraps "1.3.6.1.2.1.11.30.0"
00131 #define oidSnmpSilentDrops "1.3.6.1.2.1.11.31.0"
00132 #define oidSnmpProxyDrops "1.3.6.1.2.1.11.32.0"
00133
00134 #define enableAuthTraps 1
00135 #define disableAuthTraps 2
00136
00137 #ifdef AGENTPP_NAMESPACE
00138 namespace Agentpp {
00139 #endif
00140
00141
00142 class AGENTPP_DECL snmpInPkts: public MibLeaf {
00143
00144 public:
00145 snmpInPkts(): MibLeaf(oidSnmpInPkts, READONLY, new NS_SNMP Counter32(0)) { }
00146
00147 virtual void get_request(Request*, int);
00148 virtual boolean is_volatile() { return TRUE; }
00149 };
00150
00151
00152 class AGENTPP_DECL snmpOutPkts: public MibLeaf {
00153
00154 public:
00155 snmpOutPkts(): MibLeaf(oidSnmpOutPkts, READONLY, new NS_SNMP Counter32(0)) { }
00156
00157 virtual void get_request(Request*, int);
00158 virtual boolean is_volatile() { return TRUE; }
00159 };
00160
00161
00162 class AGENTPP_DECL snmpInBadVersions: public MibLeaf {
00163
00164 public:
00165 snmpInBadVersions(): MibLeaf(oidSnmpInBadVersions, READONLY,
00166 new NS_SNMP Counter32(0)) { }
00167
00168 virtual void get_request(Request*, int);
00169 virtual boolean is_volatile() { return TRUE; }
00170 };
00171
00172
00173 class AGENTPP_DECL snmpInBadCommunityNames: public MibLeaf {
00174
00175 public:
00176 snmpInBadCommunityNames(): MibLeaf(oidSnmpInBadCommunityNames,
00177 READONLY,
00178 new NS_SNMP Counter32(0)) { }
00179
00180 virtual void get_request(Request*, int);
00181 virtual boolean is_volatile() { return TRUE; }
00182 };
00183
00184
00185 class AGENTPP_DECL snmpInBadCommunityUses: public MibLeaf {
00186
00187 public:
00188 snmpInBadCommunityUses(): MibLeaf(oidSnmpInBadCommunityUses,
00189 READONLY,
00190 new NS_SNMP Counter32(0)) { }
00191
00192 virtual void get_request(Request*, int);
00193 virtual boolean is_volatile() { return TRUE; }
00194 };
00195
00196
00197 class AGENTPP_DECL snmpInASNParseErrs: public MibLeaf {
00198
00199 public:
00200 snmpInASNParseErrs(): MibLeaf(oidSnmpInASNParseErrs,
00201 READONLY,
00202 new NS_SNMP Counter32(0)) { }
00203
00204 virtual void get_request(Request*, int);
00205 virtual boolean is_volatile() { return TRUE; }
00206 };
00207
00208
00209 class AGENTPP_DECL snmpInTooBigs: public MibLeaf {
00210
00211 public:
00212 snmpInTooBigs(): MibLeaf(oidSnmpInTooBigs,
00213 READONLY,
00214 new NS_SNMP Counter32(0)) { }
00215
00216 virtual void get_request(Request*, int);
00217 virtual boolean is_volatile() { return TRUE; }
00218 };
00219
00220
00221 class AGENTPP_DECL snmpInNoSuchNames: public MibLeaf {
00222
00223 public:
00224 snmpInNoSuchNames(): MibLeaf(oidSnmpInNoSuchNames,
00225 READONLY,
00226 new NS_SNMP Counter32(0)) { }
00227
00228 virtual void get_request(Request*, int);
00229 virtual boolean is_volatile() { return TRUE; }
00230 };
00231
00232
00233 class AGENTPP_DECL snmpInBadValues: public MibLeaf {
00234
00235 public:
00236 snmpInBadValues(): MibLeaf(oidSnmpInBadValues,
00237 READONLY,
00238 new NS_SNMP Counter32(0)) { }
00239
00240 virtual void get_request(Request*, int);
00241 virtual boolean is_volatile() { return TRUE; }
00242 };
00243
00244
00245 class AGENTPP_DECL snmpInReadOnlys: public MibLeaf {
00246
00247 public:
00248 snmpInReadOnlys(): MibLeaf(oidSnmpInReadOnlys,
00249 READONLY,
00250 new NS_SNMP Counter32(0)) { }
00251
00252 virtual void get_request(Request*, int);
00253 virtual boolean is_volatile() { return TRUE; }
00254 };
00255
00256
00257 class AGENTPP_DECL snmpInGenErrs: public MibLeaf {
00258
00259 public:
00260 snmpInGenErrs(): MibLeaf(oidSnmpInGenErrs,
00261 READONLY,
00262 new NS_SNMP Counter32(0)) { }
00263
00264 virtual void get_request(Request*, int);
00265 virtual boolean is_volatile() { return TRUE; }
00266 };
00267
00268
00269 class AGENTPP_DECL snmpInTotalReqVars: public MibLeaf {
00270
00271 public:
00272 snmpInTotalReqVars(): MibLeaf(oidSnmpInTotalReqVars,
00273 READONLY,
00274 new NS_SNMP Counter32(0)) { }
00275
00276 virtual void get_request(Request*, int);
00277 virtual boolean is_volatile() { return TRUE; }
00278 };
00279
00280
00281 class AGENTPP_DECL snmpInTotalSetVars: public MibLeaf {
00282
00283 public:
00284 snmpInTotalSetVars(): MibLeaf(oidSnmpInTotalSetVars,
00285 READONLY,
00286 new NS_SNMP Counter32(0)) { }
00287
00288 virtual void get_request(Request*, int);
00289 virtual boolean is_volatile() { return TRUE; }
00290 };
00291
00292
00293 class AGENTPP_DECL snmpInGetRequests: public MibLeaf {
00294
00295 public:
00296 snmpInGetRequests(): MibLeaf(oidSnmpInGetRequests,
00297 READONLY,
00298 new NS_SNMP Counter32(0)) { }
00299
00300 virtual void get_request(Request*, int);
00301 virtual boolean is_volatile() { return TRUE; }
00302 };
00303
00304
00305 class AGENTPP_DECL snmpInGetNexts: public MibLeaf {
00306
00307 public:
00308 snmpInGetNexts(): MibLeaf(oidSnmpInGetNexts,
00309 READONLY,
00310 new NS_SNMP Counter32(0)) { }
00311
00312 virtual void get_request(Request*, int);
00313 virtual boolean is_volatile() { return TRUE; }
00314 };
00315
00316
00317 class AGENTPP_DECL snmpInSetRequests: public MibLeaf {
00318
00319 public:
00320 snmpInSetRequests(): MibLeaf(oidSnmpInSetRequests,
00321 READONLY,
00322 new NS_SNMP Counter32(0)) { }
00323
00324 virtual void get_request(Request*, int);
00325 virtual boolean is_volatile() { return TRUE; }
00326 };
00327
00328
00329 class AGENTPP_DECL snmpInGetResponses: public MibLeaf {
00330
00331 public:
00332 snmpInGetResponses(): MibLeaf(oidSnmpInGetResponses,
00333 READONLY,
00334 new NS_SNMP Counter32(0)) { }
00335
00336 virtual void get_request(Request*, int);
00337 virtual boolean is_volatile() { return TRUE; }
00338 };
00339
00340
00341 class AGENTPP_DECL snmpInTraps: public MibLeaf {
00342
00343 public:
00344 snmpInTraps(): MibLeaf(oidSnmpInTraps,
00345 READONLY,
00346 new NS_SNMP Counter32(0)) { }
00347
00348 virtual void get_request(Request*, int);
00349 virtual boolean is_volatile() { return TRUE; }
00350 };
00351
00352
00353 class AGENTPP_DECL snmpOutTooBigs: public MibLeaf {
00354
00355 public:
00356 snmpOutTooBigs(): MibLeaf(oidSnmpOutTooBigs,
00357 READONLY,
00358 new NS_SNMP Counter32(0)) { }
00359
00360 virtual void get_request(Request*, int);
00361 virtual boolean is_volatile() { return TRUE; }
00362 };
00363
00364
00365 class AGENTPP_DECL snmpOutNoSuchNames: public MibLeaf {
00366
00367 public:
00368 snmpOutNoSuchNames(): MibLeaf(oidSnmpOutNoSuchNames,
00369 READONLY,
00370 new NS_SNMP Counter32(0)) { }
00371
00372 virtual void get_request(Request*, int);
00373 virtual boolean is_volatile() { return TRUE; }
00374 };
00375
00376
00377 class AGENTPP_DECL snmpOutBadValues: public MibLeaf {
00378
00379 public:
00380 snmpOutBadValues(): MibLeaf(oidSnmpOutBadValues,
00381 READONLY,
00382 new NS_SNMP Counter32(0)) { }
00383
00384 virtual void get_request(Request*, int);
00385 virtual boolean is_volatile() { return TRUE; }
00386 };
00387
00388
00389 class AGENTPP_DECL snmpOutGenErrs: public MibLeaf {
00390
00391 public:
00392 snmpOutGenErrs(): MibLeaf(oidSnmpOutGenErrs,
00393 READONLY,
00394 new NS_SNMP Counter32(0)) { }
00395
00396 virtual void get_request(Request*, int);
00397 virtual boolean is_volatile() { return TRUE; }
00398 };
00399
00400
00401 class AGENTPP_DECL snmpOutGetRequests: public MibLeaf {
00402
00403 public:
00404 snmpOutGetRequests(): MibLeaf(oidSnmpOutGetRequests,
00405 READONLY,
00406 new NS_SNMP Counter32(0)) { }
00407
00408 virtual void get_request(Request*, int);
00409 virtual boolean is_volatile() { return TRUE; }
00410 };
00411
00412
00413 class AGENTPP_DECL snmpOutGetNexts: public MibLeaf {
00414
00415 public:
00416 snmpOutGetNexts(): MibLeaf(oidSnmpOutGetNexts,
00417 READONLY,
00418 new NS_SNMP Counter32(0)) { }
00419
00420 virtual void get_request(Request*, int);
00421 virtual boolean is_volatile() { return TRUE; }
00422 };
00423
00424
00425 class AGENTPP_DECL snmpOutSetRequests: public MibLeaf {
00426
00427 public:
00428 snmpOutSetRequests(): MibLeaf(oidSnmpOutSetRequests,
00429 READONLY,
00430 new NS_SNMP Counter32(0)) { }
00431
00432 virtual void get_request(Request*, int);
00433 virtual boolean is_volatile() { return TRUE; }
00434 };
00435
00436
00437 class AGENTPP_DECL snmpOutGetResponses: public MibLeaf {
00438
00439 public:
00440 snmpOutGetResponses(): MibLeaf(oidSnmpOutGetResponses,
00441 READONLY,
00442 new NS_SNMP Counter32(0)) { }
00443
00444 virtual void get_request(Request*, int);
00445 virtual boolean is_volatile() { return TRUE; }
00446 };
00447
00448
00449 class AGENTPP_DECL snmpOutTraps: public MibLeaf {
00450
00451 public:
00452 snmpOutTraps(): MibLeaf(oidSnmpOutTraps,
00453 READONLY,
00454 new NS_SNMP Counter32(0)) { }
00455
00456 virtual void get_request(Request*, int);
00457 virtual boolean is_volatile() { return TRUE; }
00458 };
00459
00460 class AGENTPP_DECL snmpSilentDrops: public MibLeaf {
00461
00462 public:
00463 snmpSilentDrops(): MibLeaf(oidSnmpSilentDrops,
00464 READONLY,
00465 new NS_SNMP Counter32(0)) { }
00466
00467 virtual void get_request(Request*, int);
00468 virtual boolean is_volatile() { return TRUE; }
00469 };
00470
00471
00472 class AGENTPP_DECL snmpProxyDrops: public MibLeaf {
00473
00474 public:
00475 snmpProxyDrops(): MibLeaf(oidSnmpProxyDrops,
00476 READONLY,
00477 new NS_SNMP Counter32(0)) { }
00478
00479 virtual void get_request(Request*, int);
00480 virtual boolean is_volatile() { return TRUE; }
00481 };
00482
00483
00499 class AGENTPP_DECL snmpEnableAuthenTraps: public MibLeaf {
00500
00501 public:
00502 snmpEnableAuthenTraps();
00503 virtual ~snmpEnableAuthenTraps();
00504
00505 static snmpEnableAuthenTraps* instance;
00506 long get_state();
00507 virtual boolean value_ok(const Vbx&);
00508 };
00509
00510
00511
00512
00513
00514
00515
00516
00517
00518 class AGENTPP_DECL snmpGroup: public MibGroup {
00519
00520 public:
00521 snmpGroup();
00522 };
00523 #ifdef AGENTPP_NAMESPACE
00524 }
00525 #endif
00526
00527 #endif