1 11 13 package com.sun.jmx.snmp; 14 15 16 17 28 29 public interface SnmpDefinitions { 30 36 public static final int noAuthNoPriv = 0; 37 38 44 public static final int authNoPriv = 1; 45 46 52 public static final int authPriv = 3; 53 54 60 public static final int reportableFlag = 4; 61 62 67 public static final int authMask = 1; 68 71 public static final int privMask = 2; 72 77 public static final int authPrivMask = 3; 78 79 82 public final static int CtxtConsFlag = 128|32 ; 83 84 87 final public static byte snmpVersionOne = 0 ; 88 89 92 final public static byte snmpVersionTwo = 1 ; 93 94 95 100 final public static byte snmpVersionThree = 3 ; 101 102 105 public final static int pduGetRequestPdu = CtxtConsFlag|0 ; 106 107 110 public final static int pduGetNextRequestPdu = CtxtConsFlag|1 ; 111 112 115 public final static int pduGetResponsePdu = CtxtConsFlag|2 ; 116 117 120 public final static int pduSetRequestPdu = CtxtConsFlag|3 ; 121 122 125 public final static int pduGetBulkRequestPdu = CtxtConsFlag|5 ; 126 127 131 public final static int pduWalkRequest = 0xFD ; 132 133 136 public final static int pduV1TrapPdu = CtxtConsFlag|4 ; 137 138 141 public final static int pduV2TrapPdu = CtxtConsFlag|7 ; 142 143 146 public final static int pduInformRequestPdu = CtxtConsFlag|6 ; 147 148 151 public final static int pduReportPdu = CtxtConsFlag|8 ; 152 153 154 159 public static final int trapColdStart = 0 ; 160 161 164 public static final int trapWarmStart = 1 ; 165 166 169 public static final int trapLinkDown = 2 ; 170 171 174 public static final int trapLinkUp = 3 ; 175 176 179 public static final int trapAuthenticationFailure = 4 ; 180 181 184 public static final int trapEgpNeighborLoss = 5 ; 185 186 189 public static final int trapEnterpriseSpecific = 6 ; 190 191 192 197 final public static int snmpRspNoError = 0; 198 199 202 final public static int snmpRspTooBig = 1; 203 204 207 final public static int snmpRspNoSuchName = 2; 208 209 212 final public static int snmpRspBadValue = 3; 213 214 217 final public static int snmpRspReadOnly = 4; 218 219 222 final public static int snmpRspGenErr = 5; 223 224 227 final public static int snmpRspNoAccess = 6; 228 229 232 final public static int snmpRspWrongType = 7; 233 234 237 final public static int snmpRspWrongLength = 8; 238 239 242 final public static int snmpRspWrongEncoding = 9; 243 244 247 final public static int snmpRspWrongValue = 10; 248 249 252 final public static int snmpRspNoCreation = 11; 253 254 257 final public static int snmpRspInconsistentValue = 12; 258 259 262 final public static int snmpRspResourceUnavailable = 13; 263 264 267 final public static int snmpRspCommitFailed = 14; 268 269 272 final public static int snmpRspUndoFailed = 15; 273 274 277 final public static int snmpRspAuthorizationError = 16; 278 279 282 final public static int snmpRspNotWritable = 17; 283 284 287 final public static int snmpRspInconsistentName = 18; 288 289 294 final public static int noSuchView = 19; 295 296 301 final public static int noSuchContext = 20; 302 303 308 final public static int noGroupName = 21; 309 310 315 final public static int notInView = 22; 316 317 324 final public static int snmpReqTimeout = (0xE0) ; 325 326 330 final public static int snmpReqAborted = (0xE1) ; 331 332 336 final public static int snmpRspDecodingError = (0xE2) ; 337 338 343 final public static int snmpReqEncodingError = (0xE3) ; 344 345 350 final public static int snmpReqPacketOverflow = (0xE4) ; 351 352 356 final public static int snmpRspEndOfTable = (0xE5) ; 357 358 363 final public static int snmpReqRefireAfterVbFix = (0xE6) ; 364 365 371 final public static int snmpReqHandleTooBig = (0xE7) ; 372 373 378 final public static int snmpReqTooBigImpossible = (0xE8) ; 379 380 384 final public static int snmpReqInternalError = (0xF0) ; 385 386 390 final public static int snmpReqSocketIOError = (0xF1) ; 391 392 397 final public static int snmpReqUnknownError = (0xF2) ; 398 399 403 final public static int snmpWrongSnmpVersion = (0xF3) ; 404 405 411 final public static int snmpUnknownPrincipal = (0xF4); 412 413 419 final public static int snmpAuthNotSupported = (0xF5); 420 421 427 final public static int snmpPrivNotSupported = (0xF6); 428 429 435 final public static int snmpBadSecurityLevel = (0xF9); 436 437 443 final public static int snmpUsmBadEngineId = (0xF7); 444 445 451 final public static int snmpUsmInvalidTimeliness = (0xF8); 452 453 454 459 final public static int snmpV1SecurityModel = 1; 460 465 final public static int snmpV2SecurityModel = 2; 466 471 final public static int snmpUsmSecurityModel = 3; 472 477 final public static int snmpV1MsgProcessingModel = snmpVersionOne; 478 483 final public static int snmpV2MsgProcessingModel = snmpVersionTwo; 484 489 final public static int snmpV3MsgProcessingModel = snmpVersionThree; 490 491 496 final public static int snmpV1AccessControlModel = snmpVersionOne; 497 498 503 final public static int snmpV2AccessControlModel = snmpVersionTwo; 504 505 510 final public static int snmpV3AccessControlModel = snmpVersionThree; 511 } 512 | Popular Tags |