1 /* 2 * This Java file has been generated by smidump 0.4.5. Do not edit! 3 * It is intended to be used within a Java AgentX sub-agent environment. 4 * 5 * $Id: Snmp.java 4432 2006-05-29 16:21:11Z strauss $ 6 */ 7 8 /** 9 This class represents a Java AgentX (JAX) implementation of 10 the scalar group snmp defined in SNMPv2-MIB. 11 12 @version 1 13 @author smidump 0.4.5 14 @see AgentXGroup, AgentXScalars 15 */ 16 17 import java.util.Vector; 18 import java.util.Enumeration; 19 import jax.AgentXOID; 20 import jax.AgentXVarBind; 21 import jax.AgentXSetPhase; 22 import jax.AgentXResponsePDU; 23 import jax.AgentXScalars; 24 25 public class Snmp extends AgentXScalars 26 { 27 28 private final static long[] SnmpOID = {1, 3, 6, 1, 2, 1, 11}; 29 30 protected AgentXOID SnmpInPktsOID; 31 protected final static long[] SnmpInPktsName = {1, 3, 6, 1, 2, 1, 11, 1, 0}; 32 protected long snmpInPkts = 0; 33 protected AgentXOID SnmpOutPktsOID; 34 protected final static long[] SnmpOutPktsName = {1, 3, 6, 1, 2, 1, 11, 2, 0}; 35 protected long snmpOutPkts = 0; 36 protected AgentXOID SnmpInBadVersionsOID; 37 protected final static long[] SnmpInBadVersionsName = {1, 3, 6, 1, 2, 1, 11, 3, 0}; 38 protected long snmpInBadVersions = 0; 39 protected AgentXOID SnmpInBadCommunityNamesOID; 40 protected final static long[] SnmpInBadCommunityNamesName = {1, 3, 6, 1, 2, 1, 11, 4, 0}; 41 protected long snmpInBadCommunityNames = 0; 42 protected AgentXOID SnmpInBadCommunityUsesOID; 43 protected final static long[] SnmpInBadCommunityUsesName = {1, 3, 6, 1, 2, 1, 11, 5, 0}; 44 protected long snmpInBadCommunityUses = 0; 45 protected AgentXOID SnmpInASNParseErrsOID; 46 protected final static long[] SnmpInASNParseErrsName = {1, 3, 6, 1, 2, 1, 11, 6, 0}; 47 protected long snmpInASNParseErrs = 0; 48 protected AgentXOID SnmpInTooBigsOID; 49 protected final static long[] SnmpInTooBigsName = {1, 3, 6, 1, 2, 1, 11, 8, 0}; 50 protected long snmpInTooBigs = 0; 51 protected AgentXOID SnmpInNoSuchNamesOID; 52 protected final static long[] SnmpInNoSuchNamesName = {1, 3, 6, 1, 2, 1, 11, 9, 0}; 53 protected long snmpInNoSuchNames = 0; 54 protected AgentXOID SnmpInBadValuesOID; 55 protected final static long[] SnmpInBadValuesName = {1, 3, 6, 1, 2, 1, 11, 10, 0}; 56 protected long snmpInBadValues = 0; 57 protected AgentXOID SnmpInReadOnlysOID; 58 protected final static long[] SnmpInReadOnlysName = {1, 3, 6, 1, 2, 1, 11, 11, 0}; 59 protected long snmpInReadOnlys = 0; 60 protected AgentXOID SnmpInGenErrsOID; 61 protected final static long[] SnmpInGenErrsName = {1, 3, 6, 1, 2, 1, 11, 12, 0}; 62 protected long snmpInGenErrs = 0; 63 protected AgentXOID SnmpInTotalReqVarsOID; 64 protected final static long[] SnmpInTotalReqVarsName = {1, 3, 6, 1, 2, 1, 11, 13, 0}; 65 protected long snmpInTotalReqVars = 0; 66 protected AgentXOID SnmpInTotalSetVarsOID; 67 protected final static long[] SnmpInTotalSetVarsName = {1, 3, 6, 1, 2, 1, 11, 14, 0}; 68 protected long snmpInTotalSetVars = 0; 69 protected AgentXOID SnmpInGetRequestsOID; 70 protected final static long[] SnmpInGetRequestsName = {1, 3, 6, 1, 2, 1, 11, 15, 0}; 71 protected long snmpInGetRequests = 0; 72 protected AgentXOID SnmpInGetNextsOID; 73 protected final static long[] SnmpInGetNextsName = {1, 3, 6, 1, 2, 1, 11, 16, 0}; 74 protected long snmpInGetNexts = 0; 75 protected AgentXOID SnmpInSetRequestsOID; 76 protected final static long[] SnmpInSetRequestsName = {1, 3, 6, 1, 2, 1, 11, 17, 0}; 77 protected long snmpInSetRequests = 0; 78 protected AgentXOID SnmpInGetResponsesOID; 79 protected final static long[] SnmpInGetResponsesName = {1, 3, 6, 1, 2, 1, 11, 18, 0}; 80 protected long snmpInGetResponses = 0; 81 protected AgentXOID SnmpInTrapsOID; 82 protected final static long[] SnmpInTrapsName = {1, 3, 6, 1, 2, 1, 11, 19, 0}; 83 protected long snmpInTraps = 0; 84 protected AgentXOID SnmpOutTooBigsOID; 85 protected final static long[] SnmpOutTooBigsName = {1, 3, 6, 1, 2, 1, 11, 20, 0}; 86 protected long snmpOutTooBigs = 0; 87 protected AgentXOID SnmpOutNoSuchNamesOID; 88 protected final static long[] SnmpOutNoSuchNamesName = {1, 3, 6, 1, 2, 1, 11, 21, 0}; 89 protected long snmpOutNoSuchNames = 0; 90 protected AgentXOID SnmpOutBadValuesOID; 91 protected final static long[] SnmpOutBadValuesName = {1, 3, 6, 1, 2, 1, 11, 22, 0}; 92 protected long snmpOutBadValues = 0; 93 protected AgentXOID SnmpOutGenErrsOID; 94 protected final static long[] SnmpOutGenErrsName = {1, 3, 6, 1, 2, 1, 11, 24, 0}; 95 protected long snmpOutGenErrs = 0; 96 protected AgentXOID SnmpOutGetRequestsOID; 97 protected final static long[] SnmpOutGetRequestsName = {1, 3, 6, 1, 2, 1, 11, 25, 0}; 98 protected long snmpOutGetRequests = 0; 99 protected AgentXOID SnmpOutGetNextsOID; 100 protected final static long[] SnmpOutGetNextsName = {1, 3, 6, 1, 2, 1, 11, 26, 0}; 101 protected long snmpOutGetNexts = 0; 102 protected AgentXOID SnmpOutSetRequestsOID; 103 protected final static long[] SnmpOutSetRequestsName = {1, 3, 6, 1, 2, 1, 11, 27, 0}; 104 protected long snmpOutSetRequests = 0; 105 protected AgentXOID SnmpOutGetResponsesOID; 106 protected final static long[] SnmpOutGetResponsesName = {1, 3, 6, 1, 2, 1, 11, 28, 0}; 107 protected long snmpOutGetResponses = 0; 108 protected AgentXOID SnmpOutTrapsOID; 109 protected final static long[] SnmpOutTrapsName = {1, 3, 6, 1, 2, 1, 11, 29, 0}; 110 protected long snmpOutTraps = 0; 111 protected AgentXOID SnmpEnableAuthenTrapsOID; 112 protected final static long[] SnmpEnableAuthenTrapsName = {1, 3, 6, 1, 2, 1, 11, 30, 0}; 113 protected int snmpEnableAuthenTraps = 0; 114 protected int undo_snmpEnableAuthenTraps = 0; 115 protected AgentXOID SnmpSilentDropsOID; 116 protected final static long[] SnmpSilentDropsName = {1, 3, 6, 1, 2, 1, 11, 31, 0}; 117 protected long snmpSilentDrops = 0; 118 protected AgentXOID SnmpProxyDropsOID; 119 protected final static long[] SnmpProxyDropsName = {1, 3, 6, 1, 2, 1, 11, 32, 0}; 120 protected long snmpProxyDrops = 0; Snmp()121 public Snmp() 122 { 123 oid = new AgentXOID(SnmpOID); 124 data = new Vector(); 125 SnmpInPktsOID = new AgentXOID(SnmpInPktsName); 126 data.addElement(SnmpInPktsOID); 127 SnmpOutPktsOID = new AgentXOID(SnmpOutPktsName); 128 data.addElement(SnmpOutPktsOID); 129 SnmpInBadVersionsOID = new AgentXOID(SnmpInBadVersionsName); 130 data.addElement(SnmpInBadVersionsOID); 131 SnmpInBadCommunityNamesOID = new AgentXOID(SnmpInBadCommunityNamesName); 132 data.addElement(SnmpInBadCommunityNamesOID); 133 SnmpInBadCommunityUsesOID = new AgentXOID(SnmpInBadCommunityUsesName); 134 data.addElement(SnmpInBadCommunityUsesOID); 135 SnmpInASNParseErrsOID = new AgentXOID(SnmpInASNParseErrsName); 136 data.addElement(SnmpInASNParseErrsOID); 137 SnmpInTooBigsOID = new AgentXOID(SnmpInTooBigsName); 138 data.addElement(SnmpInTooBigsOID); 139 SnmpInNoSuchNamesOID = new AgentXOID(SnmpInNoSuchNamesName); 140 data.addElement(SnmpInNoSuchNamesOID); 141 SnmpInBadValuesOID = new AgentXOID(SnmpInBadValuesName); 142 data.addElement(SnmpInBadValuesOID); 143 SnmpInReadOnlysOID = new AgentXOID(SnmpInReadOnlysName); 144 data.addElement(SnmpInReadOnlysOID); 145 SnmpInGenErrsOID = new AgentXOID(SnmpInGenErrsName); 146 data.addElement(SnmpInGenErrsOID); 147 SnmpInTotalReqVarsOID = new AgentXOID(SnmpInTotalReqVarsName); 148 data.addElement(SnmpInTotalReqVarsOID); 149 SnmpInTotalSetVarsOID = new AgentXOID(SnmpInTotalSetVarsName); 150 data.addElement(SnmpInTotalSetVarsOID); 151 SnmpInGetRequestsOID = new AgentXOID(SnmpInGetRequestsName); 152 data.addElement(SnmpInGetRequestsOID); 153 SnmpInGetNextsOID = new AgentXOID(SnmpInGetNextsName); 154 data.addElement(SnmpInGetNextsOID); 155 SnmpInSetRequestsOID = new AgentXOID(SnmpInSetRequestsName); 156 data.addElement(SnmpInSetRequestsOID); 157 SnmpInGetResponsesOID = new AgentXOID(SnmpInGetResponsesName); 158 data.addElement(SnmpInGetResponsesOID); 159 SnmpInTrapsOID = new AgentXOID(SnmpInTrapsName); 160 data.addElement(SnmpInTrapsOID); 161 SnmpOutTooBigsOID = new AgentXOID(SnmpOutTooBigsName); 162 data.addElement(SnmpOutTooBigsOID); 163 SnmpOutNoSuchNamesOID = new AgentXOID(SnmpOutNoSuchNamesName); 164 data.addElement(SnmpOutNoSuchNamesOID); 165 SnmpOutBadValuesOID = new AgentXOID(SnmpOutBadValuesName); 166 data.addElement(SnmpOutBadValuesOID); 167 SnmpOutGenErrsOID = new AgentXOID(SnmpOutGenErrsName); 168 data.addElement(SnmpOutGenErrsOID); 169 SnmpOutGetRequestsOID = new AgentXOID(SnmpOutGetRequestsName); 170 data.addElement(SnmpOutGetRequestsOID); 171 SnmpOutGetNextsOID = new AgentXOID(SnmpOutGetNextsName); 172 data.addElement(SnmpOutGetNextsOID); 173 SnmpOutSetRequestsOID = new AgentXOID(SnmpOutSetRequestsName); 174 data.addElement(SnmpOutSetRequestsOID); 175 SnmpOutGetResponsesOID = new AgentXOID(SnmpOutGetResponsesName); 176 data.addElement(SnmpOutGetResponsesOID); 177 SnmpOutTrapsOID = new AgentXOID(SnmpOutTrapsName); 178 data.addElement(SnmpOutTrapsOID); 179 SnmpEnableAuthenTrapsOID = new AgentXOID(SnmpEnableAuthenTrapsName); 180 data.addElement(SnmpEnableAuthenTrapsOID); 181 SnmpSilentDropsOID = new AgentXOID(SnmpSilentDropsName); 182 data.addElement(SnmpSilentDropsOID); 183 SnmpProxyDropsOID = new AgentXOID(SnmpProxyDropsName); 184 data.addElement(SnmpProxyDropsOID); 185 } 186 get_snmpInPkts()187 public long get_snmpInPkts() 188 { 189 return snmpInPkts; 190 } 191 get_snmpOutPkts()192 public long get_snmpOutPkts() 193 { 194 return snmpOutPkts; 195 } 196 get_snmpInBadVersions()197 public long get_snmpInBadVersions() 198 { 199 return snmpInBadVersions; 200 } 201 get_snmpInBadCommunityNames()202 public long get_snmpInBadCommunityNames() 203 { 204 return snmpInBadCommunityNames; 205 } 206 get_snmpInBadCommunityUses()207 public long get_snmpInBadCommunityUses() 208 { 209 return snmpInBadCommunityUses; 210 } 211 get_snmpInASNParseErrs()212 public long get_snmpInASNParseErrs() 213 { 214 return snmpInASNParseErrs; 215 } 216 get_snmpInTooBigs()217 public long get_snmpInTooBigs() 218 { 219 return snmpInTooBigs; 220 } 221 get_snmpInNoSuchNames()222 public long get_snmpInNoSuchNames() 223 { 224 return snmpInNoSuchNames; 225 } 226 get_snmpInBadValues()227 public long get_snmpInBadValues() 228 { 229 return snmpInBadValues; 230 } 231 get_snmpInReadOnlys()232 public long get_snmpInReadOnlys() 233 { 234 return snmpInReadOnlys; 235 } 236 get_snmpInGenErrs()237 public long get_snmpInGenErrs() 238 { 239 return snmpInGenErrs; 240 } 241 get_snmpInTotalReqVars()242 public long get_snmpInTotalReqVars() 243 { 244 return snmpInTotalReqVars; 245 } 246 get_snmpInTotalSetVars()247 public long get_snmpInTotalSetVars() 248 { 249 return snmpInTotalSetVars; 250 } 251 get_snmpInGetRequests()252 public long get_snmpInGetRequests() 253 { 254 return snmpInGetRequests; 255 } 256 get_snmpInGetNexts()257 public long get_snmpInGetNexts() 258 { 259 return snmpInGetNexts; 260 } 261 get_snmpInSetRequests()262 public long get_snmpInSetRequests() 263 { 264 return snmpInSetRequests; 265 } 266 get_snmpInGetResponses()267 public long get_snmpInGetResponses() 268 { 269 return snmpInGetResponses; 270 } 271 get_snmpInTraps()272 public long get_snmpInTraps() 273 { 274 return snmpInTraps; 275 } 276 get_snmpOutTooBigs()277 public long get_snmpOutTooBigs() 278 { 279 return snmpOutTooBigs; 280 } 281 get_snmpOutNoSuchNames()282 public long get_snmpOutNoSuchNames() 283 { 284 return snmpOutNoSuchNames; 285 } 286 get_snmpOutBadValues()287 public long get_snmpOutBadValues() 288 { 289 return snmpOutBadValues; 290 } 291 get_snmpOutGenErrs()292 public long get_snmpOutGenErrs() 293 { 294 return snmpOutGenErrs; 295 } 296 get_snmpOutGetRequests()297 public long get_snmpOutGetRequests() 298 { 299 return snmpOutGetRequests; 300 } 301 get_snmpOutGetNexts()302 public long get_snmpOutGetNexts() 303 { 304 return snmpOutGetNexts; 305 } 306 get_snmpOutSetRequests()307 public long get_snmpOutSetRequests() 308 { 309 return snmpOutSetRequests; 310 } 311 get_snmpOutGetResponses()312 public long get_snmpOutGetResponses() 313 { 314 return snmpOutGetResponses; 315 } 316 get_snmpOutTraps()317 public long get_snmpOutTraps() 318 { 319 return snmpOutTraps; 320 } 321 get_snmpEnableAuthenTraps()322 public int get_snmpEnableAuthenTraps() 323 { 324 return snmpEnableAuthenTraps; 325 } 326 set_snmpEnableAuthenTraps(AgentXSetPhase phase, int value)327 public int set_snmpEnableAuthenTraps(AgentXSetPhase phase, int value) 328 { 329 switch (phase.getPhase()) { 330 case AgentXSetPhase.TEST_SET: 331 break; 332 case AgentXSetPhase.COMMIT: 333 undo_snmpEnableAuthenTraps = snmpEnableAuthenTraps; 334 snmpEnableAuthenTraps = value; 335 break; 336 case AgentXSetPhase.UNDO: 337 snmpEnableAuthenTraps = undo_snmpEnableAuthenTraps; 338 break; 339 case AgentXSetPhase.CLEANUP: 340 break; 341 default: 342 return AgentXResponsePDU.PROCESSING_ERROR; 343 } 344 return AgentXResponsePDU.NO_ERROR; 345 } get_snmpSilentDrops()346 public long get_snmpSilentDrops() 347 { 348 return snmpSilentDrops; 349 } 350 get_snmpProxyDrops()351 public long get_snmpProxyDrops() 352 { 353 return snmpProxyDrops; 354 } 355 getScalar(AgentXOID pos, AgentXOID oid)356 public AgentXVarBind getScalar(AgentXOID pos, AgentXOID oid) 357 { 358 if ((pos == null) || (pos.compareTo(oid) != 0)) 359 return new AgentXVarBind(oid, AgentXVarBind.NOSUCHOBJECT); 360 else { 361 if (pos == SnmpInPktsOID) 362 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 363 get_snmpInPkts()); 364 if (pos == SnmpOutPktsOID) 365 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 366 get_snmpOutPkts()); 367 if (pos == SnmpInBadVersionsOID) 368 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 369 get_snmpInBadVersions()); 370 if (pos == SnmpInBadCommunityNamesOID) 371 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 372 get_snmpInBadCommunityNames()); 373 if (pos == SnmpInBadCommunityUsesOID) 374 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 375 get_snmpInBadCommunityUses()); 376 if (pos == SnmpInASNParseErrsOID) 377 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 378 get_snmpInASNParseErrs()); 379 if (pos == SnmpInTooBigsOID) 380 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 381 get_snmpInTooBigs()); 382 if (pos == SnmpInNoSuchNamesOID) 383 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 384 get_snmpInNoSuchNames()); 385 if (pos == SnmpInBadValuesOID) 386 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 387 get_snmpInBadValues()); 388 if (pos == SnmpInReadOnlysOID) 389 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 390 get_snmpInReadOnlys()); 391 if (pos == SnmpInGenErrsOID) 392 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 393 get_snmpInGenErrs()); 394 if (pos == SnmpInTotalReqVarsOID) 395 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 396 get_snmpInTotalReqVars()); 397 if (pos == SnmpInTotalSetVarsOID) 398 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 399 get_snmpInTotalSetVars()); 400 if (pos == SnmpInGetRequestsOID) 401 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 402 get_snmpInGetRequests()); 403 if (pos == SnmpInGetNextsOID) 404 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 405 get_snmpInGetNexts()); 406 if (pos == SnmpInSetRequestsOID) 407 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 408 get_snmpInSetRequests()); 409 if (pos == SnmpInGetResponsesOID) 410 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 411 get_snmpInGetResponses()); 412 if (pos == SnmpInTrapsOID) 413 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 414 get_snmpInTraps()); 415 if (pos == SnmpOutTooBigsOID) 416 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 417 get_snmpOutTooBigs()); 418 if (pos == SnmpOutNoSuchNamesOID) 419 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 420 get_snmpOutNoSuchNames()); 421 if (pos == SnmpOutBadValuesOID) 422 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 423 get_snmpOutBadValues()); 424 if (pos == SnmpOutGenErrsOID) 425 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 426 get_snmpOutGenErrs()); 427 if (pos == SnmpOutGetRequestsOID) 428 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 429 get_snmpOutGetRequests()); 430 if (pos == SnmpOutGetNextsOID) 431 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 432 get_snmpOutGetNexts()); 433 if (pos == SnmpOutSetRequestsOID) 434 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 435 get_snmpOutSetRequests()); 436 if (pos == SnmpOutGetResponsesOID) 437 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 438 get_snmpOutGetResponses()); 439 if (pos == SnmpOutTrapsOID) 440 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 441 get_snmpOutTraps()); 442 if (pos == SnmpEnableAuthenTrapsOID) 443 return new AgentXVarBind(oid, AgentXVarBind.INTEGER, 444 get_snmpEnableAuthenTraps()); 445 if (pos == SnmpSilentDropsOID) 446 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 447 get_snmpSilentDrops()); 448 if (pos == SnmpProxyDropsOID) 449 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, 450 get_snmpProxyDrops()); 451 } 452 return new AgentXVarBind(oid, AgentXVarBind.NOSUCHOBJECT); 453 } 454 setScalar(AgentXSetPhase phase, AgentXOID pos, AgentXVarBind inVb)455 public int setScalar(AgentXSetPhase phase, AgentXOID pos, 456 AgentXVarBind inVb) 457 { 458 if ((pos == null) || (pos.compareTo(inVb.getOID()) != 0)) 459 return AgentXResponsePDU.INCONSISTENT_NAME; 460 else { 461 if (pos == SnmpEnableAuthenTrapsOID) 462 return set_snmpEnableAuthenTraps(phase, inVb.intValue()); 463 } 464 return AgentXResponsePDU.NOT_WRITABLE; 465 } 466 getNextScalar(AgentXOID pos, AgentXOID oid)467 public AgentXVarBind getNextScalar(AgentXOID pos, AgentXOID oid) 468 { 469 if ((pos == null) || (pos.compareTo(oid) <= 0)) 470 return new AgentXVarBind(oid, AgentXVarBind.ENDOFMIBVIEW); 471 else { 472 if (pos == SnmpInPktsOID) 473 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 474 get_snmpInPkts()); 475 if (pos == SnmpOutPktsOID) 476 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 477 get_snmpOutPkts()); 478 if (pos == SnmpInBadVersionsOID) 479 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 480 get_snmpInBadVersions()); 481 if (pos == SnmpInBadCommunityNamesOID) 482 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 483 get_snmpInBadCommunityNames()); 484 if (pos == SnmpInBadCommunityUsesOID) 485 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 486 get_snmpInBadCommunityUses()); 487 if (pos == SnmpInASNParseErrsOID) 488 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 489 get_snmpInASNParseErrs()); 490 if (pos == SnmpInTooBigsOID) 491 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 492 get_snmpInTooBigs()); 493 if (pos == SnmpInNoSuchNamesOID) 494 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 495 get_snmpInNoSuchNames()); 496 if (pos == SnmpInBadValuesOID) 497 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 498 get_snmpInBadValues()); 499 if (pos == SnmpInReadOnlysOID) 500 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 501 get_snmpInReadOnlys()); 502 if (pos == SnmpInGenErrsOID) 503 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 504 get_snmpInGenErrs()); 505 if (pos == SnmpInTotalReqVarsOID) 506 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 507 get_snmpInTotalReqVars()); 508 if (pos == SnmpInTotalSetVarsOID) 509 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 510 get_snmpInTotalSetVars()); 511 if (pos == SnmpInGetRequestsOID) 512 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 513 get_snmpInGetRequests()); 514 if (pos == SnmpInGetNextsOID) 515 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 516 get_snmpInGetNexts()); 517 if (pos == SnmpInSetRequestsOID) 518 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 519 get_snmpInSetRequests()); 520 if (pos == SnmpInGetResponsesOID) 521 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 522 get_snmpInGetResponses()); 523 if (pos == SnmpInTrapsOID) 524 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 525 get_snmpInTraps()); 526 if (pos == SnmpOutTooBigsOID) 527 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 528 get_snmpOutTooBigs()); 529 if (pos == SnmpOutNoSuchNamesOID) 530 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 531 get_snmpOutNoSuchNames()); 532 if (pos == SnmpOutBadValuesOID) 533 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 534 get_snmpOutBadValues()); 535 if (pos == SnmpOutGenErrsOID) 536 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 537 get_snmpOutGenErrs()); 538 if (pos == SnmpOutGetRequestsOID) 539 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 540 get_snmpOutGetRequests()); 541 if (pos == SnmpOutGetNextsOID) 542 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 543 get_snmpOutGetNexts()); 544 if (pos == SnmpOutSetRequestsOID) 545 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 546 get_snmpOutSetRequests()); 547 if (pos == SnmpOutGetResponsesOID) 548 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 549 get_snmpOutGetResponses()); 550 if (pos == SnmpOutTrapsOID) 551 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 552 get_snmpOutTraps()); 553 if (pos == SnmpEnableAuthenTrapsOID) 554 return new AgentXVarBind(pos, AgentXVarBind.INTEGER, 555 get_snmpEnableAuthenTraps()); 556 if (pos == SnmpSilentDropsOID) 557 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 558 get_snmpSilentDrops()); 559 if (pos == SnmpProxyDropsOID) 560 return new AgentXVarBind(pos, AgentXVarBind.COUNTER32, 561 get_snmpProxyDrops()); 562 } 563 return new AgentXVarBind(pos, AgentXVarBind.ENDOFMIBVIEW); 564 } 565 566 } 567 568