FileDocCategorySizeDatePackage
SnmpDefinitions.javaAPI DocJava SE 5 API14401Fri Aug 26 14:55:02 BST 2005com.sun.jmx.snmp

SnmpDefinitions

public interface SnmpDefinitions
Contains SNMP constants related to command and response codes. All members are static and can be used by any application.

This API is a Sun Microsystems internal API and is subject to change without notice.

version
4.28 12/19/03
author
Sun Microsystems, Inc
author
Cisco Systems, Inc.

Fields Summary
public static final int
noAuthNoPriv
Security level. No authentication, no privacy. Value is 0, as defined in RFC 2572.
public static final int
authNoPriv
Security level. Authentication, no privacy. Value is 1, as defined in RFC 2572.
public static final int
authPriv
Security level. Authentication, privacy. Value is 3, as defined in RFC 2572.
public static final int
reportableFlag
Flag that indicates that a report is to be sent. Value is 4, as defined in RFC 2572.
public static final int
authMask
Mask used to isolate authentication information within a message flag.
public static final int
privMask
Mask used to isolate privacy information within a message flag.
public static final int
authPrivMask
Mask used to isolate authentication and privacy information within a message flag.
public static final int
CtxtConsFlag
ASN.1 prefix for encoding PDU types.
public static final byte
snmpVersionOne
Represents the SNMP protocol version: SnmpV1.
public static final byte
snmpVersionTwo
Represents the SNMP protocol version: SnmpV2.
public static final byte
snmpVersionThree
Represents the SNMP protocol version: SnmpV3.
public static final int
pduGetRequestPdu
Represents a GetRequest PDU type (V1 or V2).
public static final int
pduGetNextRequestPdu
Represents a GetNextRequest PDU type (V1 or V2).
public static final int
pduGetResponsePdu
Represents a GetResponse PDU type (V1 or V2).
public static final int
pduSetRequestPdu
Represents a SetRequest PDU type (V1 or V2).
public static final int
pduGetBulkRequestPdu
Represents a GetBulkRequest PDU type (V2 only).
public static final int
pduWalkRequest
Represents a Walk request. A walk uses the getNext request to "walk" through a given MIB.
public static final int
pduV1TrapPdu
Represents a V1Trap PDU type (V1 only).
public static final int
pduV2TrapPdu
Represents a V2Trap PDU type (V2 only).
public static final int
pduInformRequestPdu
Represents an InformRequest PDU type (V2 only).
public static final int
pduReportPdu
Represents a Report PDU type (V2 only).
public static final int
trapColdStart
Code as defined in RFC 1157 for generic trap info in Trap-PDU: coldStart.
public static final int
trapWarmStart
Code as defined in RFC 1157 for generic trap info in Trap-PDU: warmStart.
public static final int
trapLinkDown
Code as defined in RFC 1157 for generic trap info in Trap-PDU: linkDown.
public static final int
trapLinkUp
Code as defined in RFC 1157 for generic trap info in Trap-PDU: linkUp.
public static final int
trapAuthenticationFailure
Code as defined in RFC 1157 for generic trap info in Trap-PDU: authenticationFailure.
public static final int
trapEgpNeighborLoss
Code as defined in RFC 1157 for generic trap info in Trap-PDU: egpNeighborLoss.
public static final int
trapEnterpriseSpecific
Code as defined in RFC 1157 for generic trap info in Trap-PDU: enterpriseSpecific.
public static final int
snmpRspNoError
Error code as defined in RFC 1448 for: noError.
public static final int
snmpRspTooBig
Error code as defined in RFC 1448 for: tooBig.
public static final int
snmpRspNoSuchName
Error code as defined in RFC 1448 for: noSuchName.
public static final int
snmpRspBadValue
Error code as defined in RFC 1448 for: badValue.
public static final int
snmpRspReadOnly
Error code as defined in RFC 1448 for: readOnly.
public static final int
snmpRspGenErr
Error code as defined in RFC 1448 for: genErr.
public static final int
snmpRspNoAccess
Error code as defined in RFC 1448 for: noAccess.
public static final int
snmpRspWrongType
Error code as defined in RFC 1448 for: wrongType.
public static final int
snmpRspWrongLength
Error code as defined in RFC 1448 for: wrongLength.
public static final int
snmpRspWrongEncoding
Error code as defined in RFC 1448 for: wrongEncoding.
public static final int
snmpRspWrongValue
Error code as defined in RFC 1448 for: wrongValue.
public static final int
snmpRspNoCreation
Error code as defined in RFC 1448 for: noCreation.
public static final int
snmpRspInconsistentValue
Error code as defined in RFC 1448 for: inconsistentValue.
public static final int
snmpRspResourceUnavailable
Error code as defined in RFC 1448 for: resourceUnavailable.
public static final int
snmpRspCommitFailed
Error code as defined in RFC 1448 for: commitFailed.
public static final int
snmpRspUndoFailed
Error code as defined in RFC 1448 for: undoFailed.
public static final int
snmpRspAuthorizationError
Error code as defined in RFC 1448 for: authorizationError.
public static final int
snmpRspNotWritable
Error code as defined in RFC 1448 for: notWritable.
public static final int
snmpRspInconsistentName
Error code as defined in RFC 1448 for: inconsistentName.
public static final int
noSuchView
Error that is returned by VACM.
public static final int
noSuchContext
Error that is returned by VACM.
public static final int
noGroupName
Error that is returned by VACM.
public static final int
notInView
Error that is returned by VACM.
public static final int
snmpReqTimeout
Error code specific to the API.

Used if the request PDU exceeds the maxTries limit defined in the {@link com.sun.jmx.snmp.SnmpPeer SnmpPeer} object.

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

Used if the pending request PDU is cancelled.

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

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

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.

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 {@link com.sun.jmx.snmp.SnmpPeer SnmpPeer} object.

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

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

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.

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 {@link com.sun.jmx.snmp.SnmpPeer SnmpPeer} object.

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.

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

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

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

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

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.

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

public static final int
snmpUnknownPrincipal
SNMP V3 Error code specific to the API.

Used if the used principal is unknown.

public static final int
snmpAuthNotSupported
SNMP V3 Error code specific to the API.

Used if authentication is not supported for the current user.

public static final int
snmpPrivNotSupported
SNMP V3 Error code specific to the API.

Used if privacy is not supported for the current user.

public static final int
snmpBadSecurityLevel
SNMP V3 Error code specific to the API.

Used if privacy is not supported for the current user.

public static final int
snmpUsmBadEngineId
SNMP Usm V3 Error code specific to the API.

Used if the authoritative engine Id is not associated to the current user.

public static final int
snmpUsmInvalidTimeliness
SNMP Usm V3 Error code specific to the API.

Used if the timeliness params are invalid.

public static final int
snmpV1SecurityModel
Snmp V1 security model id (1).
public static final int
snmpV2SecurityModel
Snmp V2 security model id (2).
public static final int
snmpUsmSecurityModel
Snmp V3 security model id (3).
public static final int
snmpV1MsgProcessingModel
Snmp V1 msg processing model id (0).
public static final int
snmpV2MsgProcessingModel
Snmp V2 msg processing model id (1).
public static final int
snmpV3MsgProcessingModel
Snmp V3 msg processing model id (3).
public static final int
snmpV1AccessControlModel
Snmp V1 access control model id (0).
public static final int
snmpV2AccessControlModel
Snmp V2 access control model id (1).
public static final int
snmpV3AccessControlModel
Snmp V3 access control model id (3).
Constructors Summary
Methods Summary