com.sun.jaw.snmp.common
Interface SnmpDefinitions

All Known Subinterfaces:
SnmpHandlerIf
All Known Implementing Classes:
AdaptorServerImpl, SnmpMessage, SnmpPduPacket, SnmpStatusException, SnmpRequest, SnmpSession, SnmpParameters

public abstract interface SnmpDefinitions

An interface that contains SNMP constants related to command and response codes. All members are static and can be used by any application.


Field Summary
static int CtxtConsFlag
          ASN.1 prefix for encoding PDU types.
static int pduGetBulkRequestPdu
          Represents a GetBulkRequest PDU type (V2 only).
static int pduGetNextRequestPdu
          Represents a GetNextRequest PDU type (V1 or V2).
static int pduGetRequestPdu
          Represents a GetRequest PDU type (V1 or V2).
static int pduGetResponsePdu
          Represents a GetResponse PDU type (V1 or V2).
static int pduInformRequestPdu
          Represents a InformRequest PDU type (V2 only).
static int pduReportPdu
          Represents a Report PDU type (V2 only).
static int pduSetRequestPdu
          Represents a SetRequest PDU type (V1 or V2).
static int pduTrapPdu
          Represents a Trap PDU type (V1 or V2).
static int pduV2TrapPdu
          Represents a V2Trap PDU type (V2 only).
static int pduWalkRequest
          Represents a Walk request.
static int snmpReqAborted
          Error code specific to the API.
static int snmpReqEncodingError
          Error code specific to the API.
static int snmpReqHandleTooBig
          Error code specific to the API.
static int snmpReqInternalError
          Error code specific to the API.
static int snmpReqPacketOverflow
          Error code specific to the API.
static int snmpReqRefireAfterVbFix
          Error code specific to the API.
static int snmpReqSocketIOError
          Error code specific to the API.
static int snmpReqTimeout
          Error code specific to the API.
static int snmpReqTooBigImpossible
          Error code specific to the API.
static int snmpReqUnknownError
          Error code specific to the API.
static int snmpRspAuthorizationError
          Error code as defined in RFC 1448 for: authorizationError.
static int snmpRspBadValue
          Error code as defined in RFC 1448 for: badValue.
static int snmpRspCommitFailed
          Error code as defined in RFC 1448 for: commitFailed.
static int snmpRspDecodingError
          Error code specific to the API.
static int snmpRspEndOfTable
          Error code specific to the API.
static int snmpRspGenErr
          Error code as defined in RFC 1448 for: genError.
static int snmpRspInconsistentName
          Error code as defined in RFC 1448 for: inconsistentName.
static int snmpRspInconsistentValue
          Error code as defined in RFC 1448 for: inconsistentValue.
static int snmpRspNoAccess
          Error code as defined in RFC 1448 for: noAccess.
static int snmpRspNoCreation
          Error code as defined in RFC 1448 for: noCreation.
static int snmpRspNoError
          Error code as defined in RFC 1448 for: noError.
static int snmpRspNoSuchName
          Error code as defined in RFC 1448 for: noSuchName.
static int snmpRspNotWritable
          Error code as defined in RFC 1448 for: notWritable.
static int snmpRspReadOnly
          Error code as defined in RFC 1448 for: readOnly.
static int snmpRspResourceUnavailable
          Error code as defined in RFC 1448 for: resourceUnavailable.
static int snmpRspTooBig
          Error code as defined in RFC 1448 for: tooBig.
static int snmpRspUndoFailed
          Error code as defined in RFC 1448 for: undoFailed.
static int snmpRspWrongEncoding
          Error code as defined in RFC 1448 for: wrongEncoding.
static int snmpRspWrongLength
          Error code as defined in RFC 1448 for: wrongLength.
static int snmpRspWrongType
          Error code as defined in RFC 1448 for: wrongType.
static int snmpRspWrongValue
          Error code as defined in RFC 1448 for: wrongValue.
static byte snmpVersionOne
          Represents the SNMP protocol version: SnmpV1.
static byte snmpVersionTwo
          Represents the SNMP protocol version: SnmpV2.
static int snmpWrongSnmpVersion
          Error code specific to the API.
static int trapAuthenticationFailure
          Code as defined in RFC 1157 for generic trap info in Trap-PDU: authenticationFailure.
static int trapColdStart
          Code as defined in RFC 1157 for generic trap info in Trap-PDU: coldStart.
static int trapEgpNeighborLoss
          Code as defined in RFC 1157 for generic trap info in Trap-PDU: egpNeighborLoss.
static int trapEnterpriseSpecific
          Code as defined in RFC 1157 for generic trap info in Trap-PDU: enterpriseSpecific.
static int trapLinkDown
          Code as defined in RFC 1157 for generic trap info in Trap-PDU: linkDown.
static int trapLinkUp
          Code as defined in RFC 1157 for generic trap info in Trap-PDU: linkUp.
static int trapWarmStart
          Code as defined in RFC 1157 for generic trap info in Trap-PDU: warmStart.
 

Field Detail

CtxtConsFlag

public static final int CtxtConsFlag
ASN.1 prefix for encoding PDU types.

snmpVersionOne

public static final byte snmpVersionOne
Represents the SNMP protocol version: SnmpV1.

snmpVersionTwo

public static final byte snmpVersionTwo
Represents the SNMP protocol version: SnmpV2.

pduGetRequestPdu

public static final int pduGetRequestPdu
Represents a GetRequest PDU type (V1 or V2).

pduGetNextRequestPdu

public static final int pduGetNextRequestPdu
Represents a GetNextRequest PDU type (V1 or V2).

pduGetResponsePdu

public static final int pduGetResponsePdu
Represents a GetResponse PDU type (V1 or V2).

pduSetRequestPdu

public static final int pduSetRequestPdu
Represents a SetRequest PDU type (V1 or V2).

pduTrapPdu

public static final int pduTrapPdu
Represents a Trap PDU type (V1 or V2).

pduGetBulkRequestPdu

public static final int pduGetBulkRequestPdu
Represents a GetBulkRequest PDU type (V2 only).

pduInformRequestPdu

public static final int pduInformRequestPdu
Represents a InformRequest PDU type (V2 only).

pduV2TrapPdu

public static final int pduV2TrapPdu
Represents a V2Trap PDU type (V2 only).

pduReportPdu

public static final int pduReportPdu
Represents a Report PDU type (V2 only).

pduWalkRequest

public static final int pduWalkRequest
Represents a Walk request. A walk uses the getNext request to "walk" through a given MIB.

trapColdStart

public static final int trapColdStart
Code as defined in RFC 1157 for generic trap info in Trap-PDU: coldStart.

trapWarmStart

public static final int trapWarmStart
Code as defined in RFC 1157 for generic trap info in Trap-PDU: warmStart.

trapLinkDown

public static final int trapLinkDown
Code as defined in RFC 1157 for generic trap info in Trap-PDU: linkDown.

trapLinkUp

public static final int trapLinkUp
Code as defined in RFC 1157 for generic trap info in Trap-PDU: linkUp.

trapAuthenticationFailure

public static final int trapAuthenticationFailure
Code as defined in RFC 1157 for generic trap info in Trap-PDU: authenticationFailure.

trapEgpNeighborLoss

public static final int trapEgpNeighborLoss
Code as defined in RFC 1157 for generic trap info in Trap-PDU: egpNeighborLoss.

trapEnterpriseSpecific

public static final int trapEnterpriseSpecific
Code as defined in RFC 1157 for generic trap info in Trap-PDU: enterpriseSpecific.

snmpRspNoError

public static final int snmpRspNoError
Error code as defined in RFC 1448 for: noError.

snmpRspTooBig

public static final int snmpRspTooBig
Error code as defined in RFC 1448 for: tooBig.

snmpRspNoSuchName

public static final int snmpRspNoSuchName
Error code as defined in RFC 1448 for: noSuchName.

snmpRspBadValue

public static final int snmpRspBadValue
Error code as defined in RFC 1448 for: badValue.

snmpRspReadOnly

public static final int snmpRspReadOnly
Error code as defined in RFC 1448 for: readOnly.

snmpRspGenErr

public static final int snmpRspGenErr
Error code as defined in RFC 1448 for: genError.

snmpRspNoAccess

public static final int snmpRspNoAccess
Error code as defined in RFC 1448 for: noAccess.

snmpRspWrongType

public static final int snmpRspWrongType
Error code as defined in RFC 1448 for: wrongType.

snmpRspWrongLength

public static final int snmpRspWrongLength
Error code as defined in RFC 1448 for: wrongLength.

snmpRspWrongEncoding

public static final int snmpRspWrongEncoding
Error code as defined in RFC 1448 for: wrongEncoding.

snmpRspWrongValue

public static final int snmpRspWrongValue
Error code as defined in RFC 1448 for: wrongValue.

snmpRspNoCreation

public static final int snmpRspNoCreation
Error code as defined in RFC 1448 for: noCreation.

snmpRspInconsistentValue

public static final int snmpRspInconsistentValue
Error code as defined in RFC 1448 for: inconsistentValue.

snmpRspResourceUnavailable

public static final int snmpRspResourceUnavailable
Error code as defined in RFC 1448 for: resourceUnavailable.

snmpRspCommitFailed

public static final int snmpRspCommitFailed
Error code as defined in RFC 1448 for: commitFailed.

snmpRspUndoFailed

public static final int snmpRspUndoFailed
Error code as defined in RFC 1448 for: undoFailed.

snmpRspAuthorizationError

public static final int snmpRspAuthorizationError
Error code as defined in RFC 1448 for: authorizationError.

snmpRspNotWritable

public static final int snmpRspNotWritable
Error code as defined in RFC 1448 for: notWritable.

snmpRspInconsistentName

public static final int snmpRspInconsistentName
Error code as defined in RFC 1448 for: inconsistentName.

snmpReqTimeout

public static final int snmpReqTimeout
Error code specific to the API.

Used if the request PDU exceeds the maxRetries limit defined in the SnmpPeer object.


snmpReqAborted

public static final int snmpReqAborted
Error code specific to the API.

Used if the pending request PDU is cancelled.


snmpRspDecodingError

public static final int snmpRspDecodingError
Error code specific to the API.

Used if the response to the request PDU fails at decoding time.

A voir: SnmpRequest::processResponse ne throws jamais SnmpStatusException ??


snmpReqEncodingError

public static final int snmpReqEncodingError
Error code specific to the API.

Used if the request PDU does not retreive the community string at authentication encoding time.


snmpReqPacketOverflow

public static final int snmpReqPacketOverflow
Error code specific to the API.

Used if the request PDU does not fit in the maxSnmpPktSize limit defined in the SnmpPeer object.


snmpRspEndOfTable

public static final int snmpRspEndOfTable
Error code specific to the API.

Used for the last variable returned by a Walk request PDU.


snmpReqRefireAfterVbFix

public static final int snmpReqRefireAfterVbFix
Error code specific to the API.

Used if the request PDU is retried after a noSuchName error fixed. This is an internal temporary status...

hide ??


snmpReqHandleTooBig

public static final int snmpReqHandleTooBig
Error code specific to the API.

Used if the size of the request PDU varBindList exceeds the maxVarbindLimit limit defined in the SnmpPeer object.


snmpReqTooBigImpossible

public static final int snmpReqTooBigImpossible
Error code specific to the API.

Used if the request PDU fails with a tooBig error status but its varBindList contains just one element.


snmpReqInternalError

public static final int snmpReqInternalError
Error code specific to the API.

Used if an internal error occurs when processing the request PDU.


snmpReqSocketIOError

public static final int snmpReqSocketIOError
Error code specific to the API.

Used if an I/O error occurs when sending the request PDU.


snmpReqUnknownError

public static final int snmpReqUnknownError
Error code specific to the API.

Used if the request PDU fails at encoding time or sending time for a reason not covered by the previous error codes.


snmpWrongSnmpVersion

public static final int snmpWrongSnmpVersion
Error code specific to the API.

Not used ???