java.lang.Object
org.snmp4j.mp.SnmpConstants
The
SnmpConstants
class holds constants, ObjectIDs and
Message strings used within SNMP4J.- Version:
- 1.8
- Author:
- Frank Fock
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enumeration of the textual convention StorageType defined in SNMPv2-TC MIB. -
Field Summary
Modifier and TypeFieldDescriptionstatic final OID
static final OID
static final int
static final int
static final int
static final OID
static final OID
static String[][]
static final int
static final int
static String[][]
static final OID
static final OID
static final OID
static final OID
static final int
static final int
static final int
static final int
static final int
static final int
static final int
An IOException occurred during request processing.static final int
OIDs returned from a GETNEXT or GETBULK are less or equal than the requested one (which is not allowed by SNMP).static final String[]
static final int
static final int
static final int
static final int
static final int
static final int
A unresolvable REPORT message was received while processing a request.static final int
static final int
static final int
Command responders did not respond within specified timeout interval.static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String[]
static final OID
The total number of retries sent on behalf of requests to this target.static final OID
The number of milliseconds a successful request took from sending the request to receiving the corresponding response with the same msgID for this target.static final OID
The total number of requests that timed out for this target (Counter32).static final OID
The total number of milliseconds this SNMP entity spend waiting for responses on its own requests to this target.static final OID
static final OID
The total number of retries sent on behalf of requests.static final OID
The number of milliseconds a successful request took from sending the request to receiving the corresponding response with the same msgID.static final OID
The total number of requests that timed out (Counter32).static final OID
The total number of milliseconds this SNMP entity spend waiting for responses on its own requests (Counter64).static final OID
The total number of retries ignored by the command responder while processing requests.static final OID
The total number of milliseconds the command responder took to process a request.static final OID
The number of response processings that ended due to an internal timeout before that maximum number of response variables (GETBULK) has been reached.static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static String[][]
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final OID
static final int
static final int
static final int
static final OID
static final OID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getGenericTrapID
(OID oid) Gets the generic trap ID from a notification OID.static OID
getTrapOID
(OID enterprise, int genericID, int specificID) static String
mpErrorMessage
(int status) static String
usmErrorMessage
(int status)
-
Field Details
-
DEFAULT_COMMAND_RESPONDER_PORT
public static final int DEFAULT_COMMAND_RESPONDER_PORT- See Also:
-
DEFAULT_NOTIFICATION_RECEIVER_PORT
public static final int DEFAULT_NOTIFICATION_RECEIVER_PORT- See Also:
-
MIN_PDU_LENGTH
public static final int MIN_PDU_LENGTH- See Also:
-
MILLISECOND_TO_NANOSECOND
public static final int MILLISECOND_TO_NANOSECOND- See Also:
-
HUNDREDTHS_TO_NANOSECOND
public static final int HUNDREDTHS_TO_NANOSECOND- See Also:
-
version1
public static final int version1- See Also:
-
version2c
public static final int version2c- See Also:
-
version3
public static final int version3- See Also:
-
SNMP_ERROR_TIMEOUT
public static final int SNMP_ERROR_TIMEOUTCommand responders did not respond within specified timeout interval.- See Also:
-
SNMP_ERROR_LEXICOGRAPHIC_ORDER
public static final int SNMP_ERROR_LEXICOGRAPHIC_ORDEROIDs returned from a GETNEXT or GETBULK are less or equal than the requested one (which is not allowed by SNMP).- See Also:
-
SNMP_ERROR_REPORT
public static final int SNMP_ERROR_REPORTA unresolvable REPORT message was received while processing a request.- See Also:
-
SNMP_ERROR_IO
public static final int SNMP_ERROR_IOAn IOException occurred during request processing.- See Also:
-
SNMP_ERROR_SUCCESS
public static final int SNMP_ERROR_SUCCESS- See Also:
-
SNMP_ERROR_TOO_BIG
public static final int SNMP_ERROR_TOO_BIG- See Also:
-
SNMP_ERROR_NO_SUCH_NAME
public static final int SNMP_ERROR_NO_SUCH_NAME- See Also:
-
SNMP_ERROR_BAD_VALUE
public static final int SNMP_ERROR_BAD_VALUE- See Also:
-
SNMP_ERROR_READ_ONLY
public static final int SNMP_ERROR_READ_ONLY- See Also:
-
SNMP_ERROR_GENERAL_ERROR
public static final int SNMP_ERROR_GENERAL_ERROR- See Also:
-
SNMP_ERROR_NO_ACCESS
public static final int SNMP_ERROR_NO_ACCESS- See Also:
-
SNMP_ERROR_WRONG_TYPE
public static final int SNMP_ERROR_WRONG_TYPE- See Also:
-
SNMP_ERROR_WRONG_LENGTH
public static final int SNMP_ERROR_WRONG_LENGTH- See Also:
-
SNMP_ERROR_WRONG_ENCODING
public static final int SNMP_ERROR_WRONG_ENCODING- See Also:
-
SNMP_ERROR_WRONG_VALUE
public static final int SNMP_ERROR_WRONG_VALUE- See Also:
-
SNMP_ERROR_NO_CREATION
public static final int SNMP_ERROR_NO_CREATION- See Also:
-
SNMP_ERROR_INCONSISTENT_VALUE
public static final int SNMP_ERROR_INCONSISTENT_VALUE- See Also:
-
SNMP_ERROR_RESOURCE_UNAVAILABLE
public static final int SNMP_ERROR_RESOURCE_UNAVAILABLE- See Also:
-
SNMP_ERROR_COMMIT_FAILED
public static final int SNMP_ERROR_COMMIT_FAILED- See Also:
-
SNMP_ERROR_UNDO_FAILED
public static final int SNMP_ERROR_UNDO_FAILED- See Also:
-
SNMP_ERROR_AUTHORIZATION_ERROR
public static final int SNMP_ERROR_AUTHORIZATION_ERROR- See Also:
-
SNMP_ERROR_NOT_WRITEABLE
public static final int SNMP_ERROR_NOT_WRITEABLE- See Also:
-
SNMP_ERROR_INCONSISTENT_NAME
public static final int SNMP_ERROR_INCONSISTENT_NAME- See Also:
-
SNMP_MP_OK
public static final int SNMP_MP_OK- See Also:
-
SNMP_MP_ERROR
public static final int SNMP_MP_ERROR- See Also:
-
SNMP_MP_UNSUPPORTED_SECURITY_MODEL
public static final int SNMP_MP_UNSUPPORTED_SECURITY_MODEL- See Also:
-
SNMP_MP_NOT_IN_TIME_WINDOW
public static final int SNMP_MP_NOT_IN_TIME_WINDOW- See Also:
-
SNMP_MP_DOUBLED_MESSAGE
public static final int SNMP_MP_DOUBLED_MESSAGE- See Also:
-
SNMP_MP_INVALID_MESSAGE
public static final int SNMP_MP_INVALID_MESSAGE- See Also:
-
SNMP_MP_INVALID_ENGINEID
public static final int SNMP_MP_INVALID_ENGINEID- See Also:
-
SNMP_MP_NOT_INITIALIZED
public static final int SNMP_MP_NOT_INITIALIZED- See Also:
-
SNMP_MP_PARSE_ERROR
public static final int SNMP_MP_PARSE_ERROR- See Also:
-
SNMP_MP_UNKNOWN_MSGID
public static final int SNMP_MP_UNKNOWN_MSGID- See Also:
-
SNMP_MP_MATCH_ERROR
public static final int SNMP_MP_MATCH_ERROR- See Also:
-
SNMP_MP_COMMUNITY_ERROR
public static final int SNMP_MP_COMMUNITY_ERROR- See Also:
-
SNMP_MP_WRONG_USER_NAME
public static final int SNMP_MP_WRONG_USER_NAME- See Also:
-
SNMP_MP_BUILD_ERROR
public static final int SNMP_MP_BUILD_ERROR- See Also:
-
SNMP_MP_USM_ERROR
public static final int SNMP_MP_USM_ERROR- See Also:
-
SNMP_MP_UNKNOWN_PDU_HANDLERS
public static final int SNMP_MP_UNKNOWN_PDU_HANDLERS- See Also:
-
SNMP_MP_UNAVAILABLE_CONTEXT
public static final int SNMP_MP_UNAVAILABLE_CONTEXT- See Also:
-
SNMP_MP_UNKNOWN_CONTEXT
public static final int SNMP_MP_UNKNOWN_CONTEXT- See Also:
-
SNMP_MP_REPORT_SENT
public static final int SNMP_MP_REPORT_SENT- See Also:
-
SNMPv1v2c_CSM_OK
public static final int SNMPv1v2c_CSM_OK- See Also:
-
SNMPv1v2c_CSM_BAD_COMMUNITY_NAME
public static final int SNMPv1v2c_CSM_BAD_COMMUNITY_NAME- See Also:
-
SNMPv1v2c_CSM_BAD_COMMUNITY_USE
public static final int SNMPv1v2c_CSM_BAD_COMMUNITY_USE- See Also:
-
SNMPv3_USM_OK
public static final int SNMPv3_USM_OK- See Also:
-
SNMPv3_USM_ERROR
public static final int SNMPv3_USM_ERROR- See Also:
-
SNMPv3_USM_UNSUPPORTED_SECURITY_LEVEL
public static final int SNMPv3_USM_UNSUPPORTED_SECURITY_LEVEL- See Also:
-
SNMPv3_USM_UNKNOWN_SECURITY_NAME
public static final int SNMPv3_USM_UNKNOWN_SECURITY_NAME- See Also:
-
SNMPv3_USM_ENCRYPTION_ERROR
public static final int SNMPv3_USM_ENCRYPTION_ERROR- See Also:
-
SNMPv3_USM_DECRYPTION_ERROR
public static final int SNMPv3_USM_DECRYPTION_ERROR- See Also:
-
SNMPv3_USM_AUTHENTICATION_ERROR
public static final int SNMPv3_USM_AUTHENTICATION_ERROR- See Also:
-
SNMPv3_USM_AUTHENTICATION_FAILURE
public static final int SNMPv3_USM_AUTHENTICATION_FAILURE- See Also:
-
SNMPv3_USM_PARSE_ERROR
public static final int SNMPv3_USM_PARSE_ERROR- See Also:
-
SNMPv3_USM_UNKNOWN_ENGINEID
public static final int SNMPv3_USM_UNKNOWN_ENGINEID- See Also:
-
SNMPv3_USM_NOT_IN_TIME_WINDOW
public static final int SNMPv3_USM_NOT_IN_TIME_WINDOW- See Also:
-
SNMPv3_USM_UNSUPPORTED_AUTHPROTOCOL
public static final int SNMPv3_USM_UNSUPPORTED_AUTHPROTOCOL- See Also:
-
SNMPv3_USM_UNSUPPORTED_PRIVPROTOCOL
public static final int SNMPv3_USM_UNSUPPORTED_PRIVPROTOCOL- See Also:
-
SNMPv3_USM_ADDRESS_ERROR
public static final int SNMPv3_USM_ADDRESS_ERROR- See Also:
-
SNMPv3_USM_ENGINE_ID_TOO_LONG
public static final int SNMPv3_USM_ENGINE_ID_TOO_LONG- See Also:
-
SNMPv3_USM_SECURITY_NAME_TOO_LONG
public static final int SNMPv3_USM_SECURITY_NAME_TOO_LONG- See Also:
-
SNMPv3_TSM_OK
public static final int SNMPv3_TSM_OK- See Also:
-
SNMPv3_TSM_UNKNOWN_PREFIXES
public static final int SNMPv3_TSM_UNKNOWN_PREFIXES- See Also:
-
SNMPv3_TSM_INVALID_CACHES
public static final int SNMPv3_TSM_INVALID_CACHES- See Also:
-
SNMPv3_TSM_INADEQUATE_SECURITY_LEVELS
public static final int SNMPv3_TSM_INADEQUATE_SECURITY_LEVELS- See Also:
-
SNMP_MD_OK
public static final int SNMP_MD_OK- See Also:
-
SNMP_MD_ERROR
public static final int SNMP_MD_ERROR- See Also:
-
SNMP_MD_UNSUPPORTED_MP_MODEL
public static final int SNMP_MD_UNSUPPORTED_MP_MODEL- See Also:
-
SNMP_MD_UNSUPPORTED_ADDRESS_CLASS
public static final int SNMP_MD_UNSUPPORTED_ADDRESS_CLASS- See Also:
-
SNMP_MD_UNSUPPORTED_SNMP_VERSION
public static final int SNMP_MD_UNSUPPORTED_SNMP_VERSION- See Also:
-
usmNoAuthProtocol
-
usmHMACMD5AuthProtocol
-
usmHMACSHAAuthProtocol
-
usmNoPrivProtocol
-
usmDESPrivProtocol
-
usm3DESEDEPrivProtocol
-
usmAesCfb128Protocol
-
oosnmpUsmAesCfb192Protocol
-
oosnmpUsmAesCfb256Protocol
-
oosnmpUsmAesCfb192ProtocolWith3DESKeyExtension
-
oosnmpUsmAesCfb256ProtocolWith3DESKeyExtension
-
usmStatsUnsupportedSecLevels
-
usmStatsNotInTimeWindows
-
usmStatsUnknownUserNames
-
usmStatsUnknownEngineIDs
-
usmStatsWrongDigests
-
usmStatsDecryptionErrors
-
snmpEngineID
-
snmpUnknownSecurityModels
-
snmpInvalidMsgs
-
snmpUnknownPDUHandlers
-
snmpInPkts
-
snmpInBadVersions
-
snmpInBadCommunityNames
-
snmpInBadCommunityUses
-
snmpInASNParseErrs
-
snmpSilentDrops
-
snmpProxyDrops
-
snmpTrapOID
-
snmpTrapEnterprise
-
snmpTraps
-
coldStart
-
warmStart
-
authenticationFailure
-
linkDown
-
linkUp
-
sysDescr
-
sysObjectID
-
sysUpTime
-
sysContact
-
sysName
-
sysLocation
-
sysServices
-
sysOREntry
-
system
-
snmpUnknownContexts
-
snmpTrapAddress
-
snmpTrapCommunity
-
zeroDotZero
-
snmpTsmInvalidCaches
-
snmpTsmInadequateSecurityLevels
-
snmpTsmUnknownPrefixes
-
snmpTsmInvalidPrefixes
-
snmpTsmConfigurationUsePrefix
-
snmpTlstmSessionOpens
-
snmpTlstmSessionClientCloses
-
snmpTlstmSessionOpenErrors
-
snmpTlstmSessionAccepts
-
snmpTlstmSessionServerCloses
-
snmpTlstmSessionNoSessions
-
snmpTlstmSessionInvalidClientCertificates
-
snmpTlstmSessionUnknownServerCertificate
-
snmpTlstmSessionInvalidServerCertificates
-
snmpTlstmSessionInvalidCaches
-
snmpSshtmSessionOpens
-
snmpSshtmSessionCloses
-
snmpSshtmSessionOpenErrors
-
snmpSshtmSessionUserAuthFailures
-
snmpSshtmSessionNoChannels
-
snmpSshtmSessionNoSubsystems
-
snmpSshtmSessionNoSessions
-
snmpSshtmSessionInvalidCaches
-
snmp4jStatsRequest
-
snmp4jStatsRequestTimeouts
The total number of requests that timed out (Counter32). -
snmp4jStatsRequestRetries
The total number of retries sent on behalf of requests. The first message, thus the request itself is not counted (Counter32). -
snmp4jStatsRequestWaitTime
The total number of milliseconds this SNMP entity spend waiting for responses on its own requests (Counter64). -
snmp4jStatsRequestRuntime
The number of milliseconds a successful request took from sending the request to receiving the corresponding response with the same msgID. Note, for community based SNMP version, only the same request ID is used to correlate request and response. Thus, only for SNMPv3 the counter can distinguish which retry has been successfully responded. -
snmp4jStatsReqTableTimeouts
The total number of requests that timed out for this target (Counter32). -
snmp4jStatsReqTableRetries
The total number of retries sent on behalf of requests to this target. The first message, thus the request itself is not counted. -
snmp4jStatsReqTableWaitTime
The total number of milliseconds this SNMP entity spend waiting for responses on its own requests to this target. -
snmp4jStatsReqTableRuntime
The number of milliseconds a successful request took from sending the request to receiving the corresponding response with the same msgID for this target. Note, for community based SNMP version, only the same request ID is used to correlate request and response. Thus, only for SNMPv3 the counter can distinguish which retry has been successfully responded. -
snmp4jStatsResponseTimeouts
The number of response processings that ended due to an internal timeout before that maximum number of response variables (GETBULK) has been reached. For other request types than GETBULK, an internal timeout would return a SNMP error (e.g. genErr) to the command sender. -
snmp4jStatsResponseIgnoredRetries
The total number of retries ignored by the command responder while processing requests. -
snmp4jStatsResponseProcessTime
The total number of milliseconds the command responder took to process a request. -
snmpSetSerialNo
-
SNMP_TP_ERROR_MESSAGES
-
SNMP_ERROR_MESSAGES
-
MD_ERROR_MESSAGES
-
MP_ERROR_MESSAGES
-
USM_ERROR_MESSAGES
-
-
Constructor Details
-
SnmpConstants
public SnmpConstants()
-
-
Method Details
-
mpErrorMessage
-
usmErrorMessage
-
getGenericTrapID
Gets the generic trap ID from a notification OID.- Parameters:
oid
- an OID.- Returns:
- -1 if the supplied OID is not a generic trap, otherwise a zero or positive value will be returned that denotes the generic trap ID.
-
getTrapOID
-