Interface SnmpConstants

All Known Implementing Classes:
AsnInteger, AsnNull, AsnObject, AsnObjectId, AsnOctets, AsnPrimitive, AsnUnsInteger, AsnUnsInteger64

public interface SnmpConstants
This interface contains most of the constants used in the stack.
Version:
$Revision: 3.10 $ $Date: 2006/03/23 14:54:10 $
Author:
Birgit Arkesteijn
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
     
    static final byte
    The GetRequest PDU type.
    static final byte
    The GetReport PDU type.
    static final byte
    The Response PDU type.
    static final byte
    The GetBulkRequest PDU type.
    static final byte
    The GetNextRequest PDU type.
    static final byte
    The InformRequest PDU type.
    static final byte
     
    static final byte
    IPv4 address only
    static final byte
    for OSI NSAP addresses (see RFC 1442, is obsoleted by RFC 2578).
    static final byte
     
    static final byte
     
    static final byte
    an unsigned 32-bit quantity (see RFC 1902, is obsoleted by SNMPv2-SMI).
    static final byte
     
    static final byte
    The SetRequest PDU type.
    static final byte
    an unsigned 32-bit quantity.
    static final byte
    Users is has no access privileges.
    static final byte
    The object does not manifest a type, length, and value that is consistent with that required for the variable.
    static final byte
    Any of the assignments failed and all other assignments were undone.
    static final byte
    A general decoding exception occured whilst decoding the response.
    static final byte
    A specific decoding exception occured whilst decoding the response.
    static final byte
    A specific decoding exception occured whilst decoding the response.
    static final byte
    The value of an object cannot be retrieved for reasons not covered by any of other errors.
    static final byte
    The variable binding's name specifies a variable which does not exist but can not be created under the present circumstances (even though it could be created under other circumstances).
    static final byte
    The variable binding's value field specifies a value that could under other circumstances be held by the variable, but is presently inconsistent or otherwise unable to be assigned to the variable.
    static final byte
    The variable binding's name specifies an existing or non-existent variable to which this request is/would be denied access because it is/would not be in the appropriate MIB view.
    static final byte
    The variable binding's name specifies a variable which does not exist and could not ever be created (even though some variables sharing the same OBJECT IDENTIFIER prefix might under some circumstances be able to be created).
    static final byte
    No error in the PDU response.
    static final byte
    The object is not available or the object's name does not exactly match.
    static final byte
    There are no variables which share the same OBJECT IDENTIFIER prefix as the variable binding's name, and which are able to be created or modified no matter what new value is specified.
    static final byte
    The object can not be set, only read.
    static final byte
    The assignment of the value specified by the variable binding's value field to the specified variable requires the allocation of a resource which is presently unavailable.
    static final byte
    The size of the generated response PDU would exceed a local limitation.
    static final byte
    Any of the assignments failed and all other assignments were undone, but is was not possible to undo all the assignments.
    static final byte
    Otherwise, if the variable binding's value field contains an ASN.1 encoding which is inconsistent with that field's ASN.1 tag.
    static final byte
    The variable binding's value field specifies a length which is inconsistent with that required for all variables which share the same OBJECT IDENTIFIER prefix as the variable binding's name.
    static final byte
    The variable binding's value field specifies a type which is inconsistent with that required for all variables which share the same OBJECT IDENTIFIER prefix as the variable binding's name.
    static final byte
    The variable binding's value field specifies a value which could under no circumstances be assigned to the variable.
    static final byte
    Value for the GenericTrap field in SNMPv1 Trap.
    static final byte
    Value for the GenericTrap field in SNMPv1 Trap.
    static final byte
    Value for the GenericTrap field in SNMPv1 Trap.
    static final byte
    Value for the GenericTrap field in SNMPv1 Trap.
    static final byte
    Value for the GenericTrap field in SNMPv1 Trap.
    static final byte
    Value for the GenericTrap field in SNMPv1 Trap.
    static final byte
    Value for the GenericTrap field in SNMPv1 Trap.
    static final byte
    Indicated an attempt to reference an object identifier that is beyond the end of the MIB at the agent.
    static final byte
    Indicated that this object does not exists for this operation.
    static final byte
    Indicated the agent does not implement the object referred to by this object identifier.
    static final byte
    The version number for SNMPv1.
    static final byte
    The version number for SNMPv2c.
    static final byte
    The version number for SNMPv3.
    static final byte
     
    static final byte
     
    static final byte
    The SNMPv1 Trap PDU type.
    static final byte
    The SNMPv2 (and SNMPv3) Trap PDU type.
    static final String
     
  • Field Details

    • version_id

      static final String version_id
      See Also:
    • ASN_BOOLEAN

      static final byte ASN_BOOLEAN
      See Also:
    • ASN_INTEGER

      static final byte ASN_INTEGER
      See Also:
    • ASN_BIT_STR

      static final byte ASN_BIT_STR
      See Also:
    • ASN_OCTET_STR

      static final byte ASN_OCTET_STR
      See Also:
    • ASN_NULL

      static final byte ASN_NULL
      See Also:
    • ASN_OBJECT_ID

      static final byte ASN_OBJECT_ID
      See Also:
    • ASN_SEQUENCE

      static final byte ASN_SEQUENCE
      See Also:
    • ASN_SET

      static final byte ASN_SET
      See Also:
    • ASN_UNIVERSAL

      static final byte ASN_UNIVERSAL
      See Also:
    • ASN_APPLICATION

      static final byte ASN_APPLICATION
      See Also:
    • ASN_CONTEXT

      static final byte ASN_CONTEXT
      See Also:
    • ASN_PRIVATE

      static final byte ASN_PRIVATE
      See Also:
    • ASN_PRIMITIVE

      static final byte ASN_PRIMITIVE
      See Also:
    • ASN_CONSTRUCTOR

      static final byte ASN_CONSTRUCTOR
      See Also:
    • ASN_LONG_LEN

      static final byte ASN_LONG_LEN
      See Also:
    • ASN_EXTENSION_ID

      static final byte ASN_EXTENSION_ID
      See Also:
    • ASN_BIT8

      static final byte ASN_BIT8
      See Also:
    • INTEGER

      static final byte INTEGER
      See Also:
    • STRING

      static final byte STRING
      See Also:
    • OBJID

      static final byte OBJID
      See Also:
    • NULLOBJ

      static final byte NULLOBJ
      See Also:
    • IPADDRESS

      static final byte IPADDRESS
      IPv4 address only
      See Also:
    • COUNTER

      static final byte COUNTER
      See Also:
    • GAUGE

      static final byte GAUGE
      See Also:
    • TIMETICKS

      static final byte TIMETICKS
      See Also:
    • OPAQUE

      static final byte OPAQUE
      See Also:
    • COUNTER64

      static final byte COUNTER64
      See Also:
    • NSAP_ADDRESS

      static final byte NSAP_ADDRESS
      for OSI NSAP addresses (see RFC 1442, is obsoleted by RFC 2578).
      See Also:
    • OBSOLETED_RFC1442_UINTEGER32

      static final byte OBSOLETED_RFC1442_UINTEGER32
      an unsigned 32-bit quantity (see RFC 1902, is obsoleted by SNMPv2-SMI).

      Was called UINTEGER32. Renamed it in version 4_13.

      See Also:
    • SMI_V2_UINTEGER32

      static final byte SMI_V2_UINTEGER32
      an unsigned 32-bit quantity. This equals GAUGE. (see SNMPv2-SMI).
      See Also:
    • SNMP_TRAP_COLDSTART

      static final byte SNMP_TRAP_COLDSTART
      Value for the GenericTrap field in SNMPv1 Trap.
      See Also:
    • SNMP_TRAP_WARMSTART

      static final byte SNMP_TRAP_WARMSTART
      Value for the GenericTrap field in SNMPv1 Trap.
      See Also:
    • SNMP_TRAP_LINKDOWN

      static final byte SNMP_TRAP_LINKDOWN
      Value for the GenericTrap field in SNMPv1 Trap.
      See Also:
    • SNMP_TRAP_LINKUP

      static final byte SNMP_TRAP_LINKUP
      Value for the GenericTrap field in SNMPv1 Trap.
      See Also:
    • SNMP_TRAP_AUTHFAIL

      static final byte SNMP_TRAP_AUTHFAIL
      Value for the GenericTrap field in SNMPv1 Trap.
      See Also:
    • SNMP_TRAP_EGPNEIGHBORLOSS

      static final byte SNMP_TRAP_EGPNEIGHBORLOSS
      Value for the GenericTrap field in SNMPv1 Trap.
      See Also:
    • SNMP_TRAP_ENTERPRISESPECIFIC

      static final byte SNMP_TRAP_ENTERPRISESPECIFIC
      Value for the GenericTrap field in SNMPv1 Trap.
      See Also:
    • SNMP_VAR_NOSUCHOBJECT

      static final byte SNMP_VAR_NOSUCHOBJECT
      Indicated the agent does not implement the object referred to by this object identifier. Used in varbind list in response to SNMPv2c, SNMPv3 getRequest.
      See Also:
    • SNMP_VAR_NOSUCHINSTANCE

      static final byte SNMP_VAR_NOSUCHINSTANCE
      Indicated that this object does not exists for this operation. Used in varbind list in response to SNMPv2c, SNMPv3 getRequest.
      See Also:
    • SNMP_VAR_ENDOFMIBVIEW

      static final byte SNMP_VAR_ENDOFMIBVIEW
      Indicated an attempt to reference an object identifier that is beyond the end of the MIB at the agent. Used in varbind list in response to SNMPv2c, SNMPv3 getRequest or getBulkRequest.
      See Also:
    • SNMP_ERR_NOERROR

      static final byte SNMP_ERR_NOERROR
      No error in the PDU response. Used in SNMPv1, SNMPv2c, SNMPv3.
      See Also:
    • SNMP_ERR_TOOBIG

      static final byte SNMP_ERR_TOOBIG
      The size of the generated response PDU would exceed a local limitation. Used in SNMPv1, SNMPv2c, SNMPv3.
      See Also:
    • SNMP_ERR_NOSUCHNAME

      static final byte SNMP_ERR_NOSUCHNAME
      The object is not available or the object's name does not exactly match. Only used in SNMPv1.
      See Also:
    • SNMP_ERR_BADVALUE

      static final byte SNMP_ERR_BADVALUE
      The object does not manifest a type, length, and value that is consistent with that required for the variable. Only used in response to SNMPv1 SetRequest.
      See Also:
    • SNMP_ERR_READONLY

      static final byte SNMP_ERR_READONLY
      The object can not be set, only read. Only used in response to SNMPv1 SetRequest.
      See Also:
    • SNMP_ERR_GENERR

      static final byte SNMP_ERR_GENERR
      The value of an object cannot be retrieved for reasons not covered by any of other errors. Used in SNMPv1, SNMPv2c, SNMPv3.
      See Also:
    • SNMP_ERR_NOACCESS

      static final byte SNMP_ERR_NOACCESS
      The variable binding's name specifies an existing or non-existent variable to which this request is/would be denied access because it is/would not be in the appropriate MIB view. Used in response to SNMPv2c, SNMPv3 SetRequest.
      See Also:
    • SNMP_ERR_WRONGTYPE

      static final byte SNMP_ERR_WRONGTYPE
      The variable binding's value field specifies a type which is inconsistent with that required for all variables which share the same OBJECT IDENTIFIER prefix as the variable binding's name. Used in response to SNMPv2c, SNMPv3 SetRequest.
      See Also:
    • SNMP_ERR_WRONGLENGTH

      static final byte SNMP_ERR_WRONGLENGTH
      The variable binding's value field specifies a length which is inconsistent with that required for all variables which share the same OBJECT IDENTIFIER prefix as the variable binding's name. Used in response to SNMPv2c, SNMPv3 SetRequest.
      See Also:
    • SNMP_ERR_WRONGENCODING

      static final byte SNMP_ERR_WRONGENCODING
      Otherwise, if the variable binding's value field contains an ASN.1 encoding which is inconsistent with that field's ASN.1 tag. Used in response to SNMPv2c, SNMPv3 SetRequest.
      See Also:
    • SNMP_ERR_WRONGVALUE

      static final byte SNMP_ERR_WRONGVALUE
      The variable binding's value field specifies a value which could under no circumstances be assigned to the variable. Used in response to SNMPv2c, SNMPv3 SetRequest.
      See Also:
    • SNMP_ERR_NOCREATION

      static final byte SNMP_ERR_NOCREATION
      The variable binding's name specifies a variable which does not exist and could not ever be created (even though some variables sharing the same OBJECT IDENTIFIER prefix might under some circumstances be able to be created). Used in response to SNMPv2c, SNMPv3 SetRequest.
      See Also:
    • SNMP_ERR_INCONSISTENTVALUE

      static final byte SNMP_ERR_INCONSISTENTVALUE
      The variable binding's value field specifies a value that could under other circumstances be held by the variable, but is presently inconsistent or otherwise unable to be assigned to the variable. Used in response to SNMPv2c, SNMPv3 SetRequest.
      See Also:
    • SNMP_ERR_RESOURCEUNAVAILABLE

      static final byte SNMP_ERR_RESOURCEUNAVAILABLE
      The assignment of the value specified by the variable binding's value field to the specified variable requires the allocation of a resource which is presently unavailable. Used in response to SNMPv2c, SNMPv3 SetRequest.
      See Also:
    • SNMP_ERR_COMMITFAILED

      static final byte SNMP_ERR_COMMITFAILED
      Any of the assignments failed and all other assignments were undone. Used in response to SNMPv2c, SNMPv3 SetRequest.
      See Also:
    • SNMP_ERR_UNDOFAILED

      static final byte SNMP_ERR_UNDOFAILED
      Any of the assignments failed and all other assignments were undone, but is was not possible to undo all the assignments. Used in response to SNMPv2c, SNMPv3 SetRequest.
      See Also:
    • SNMP_ERR_AUTHORIZATIONERR

      static final byte SNMP_ERR_AUTHORIZATIONERR
      Users is has no access privileges. Used in SNMPv2c, SNMPv3.
      See Also:
    • SNMP_ERR_NOTWRITABLE

      static final byte SNMP_ERR_NOTWRITABLE
      • There are no variables which share the same OBJECT IDENTIFIER prefix as the variable binding's name, and which are able to be created or modified no matter what new value is specified.
      • The variable binding's name specifies a variable which exists but can not be modified no matter what new value is specified.
      Used in response to SNMPv2c, SNMPv3 SetRequest.
      See Also:
    • SNMP_ERR_INCONSISTENTNAME

      static final byte SNMP_ERR_INCONSISTENTNAME
      The variable binding's name specifies a variable which does not exist but can not be created under the present circumstances (even though it could be created under other circumstances). Used in response to SNMPv2c, SNMPv3 SetRequest.
      See Also:
    • SNMP_ERR_DECODING_EXC

      static final byte SNMP_ERR_DECODING_EXC
      A general decoding exception occured whilst decoding the response.
      See Also:
    • SNMP_ERR_DECODINGASN_EXC

      static final byte SNMP_ERR_DECODINGASN_EXC
      A specific decoding exception occured whilst decoding the response. The response PDU being decoded has a sub length wrong (not overall length necessarily), so the asn sequence can't get created.
      See Also:
    • SNMP_ERR_DECODINGPKTLNGTH_EXC

      static final byte SNMP_ERR_DECODINGPKTLNGTH_EXC
      A specific decoding exception occured whilst decoding the response. The received overall response PDU is shorter than the PDU header says it is.
      See Also:
    • SNMP_VERSION_1

      static final byte SNMP_VERSION_1
      The version number for SNMPv1.
      See Also:
    • SNMP_VERSION_2c

      static final byte SNMP_VERSION_2c
      The version number for SNMPv2c.
      See Also:
    • SNMP_VERSION_3

      static final byte SNMP_VERSION_3
      The version number for SNMPv3.
      See Also:
    • GET_REQ_MSG

      static final byte GET_REQ_MSG
      The GetRequest PDU type.
      See Also:
    • GETNEXT_REQ_MSG

      static final byte GETNEXT_REQ_MSG
      The GetNextRequest PDU type.
      See Also:
    • GET_RSP_MSG

      static final byte GET_RSP_MSG
      The Response PDU type.
      See Also:
    • SET_REQ_MSG

      static final byte SET_REQ_MSG
      The SetRequest PDU type.
      See Also:
    • TRP_REQ_MSG

      static final byte TRP_REQ_MSG
      The SNMPv1 Trap PDU type.
      See Also:
    • GETBULK_REQ_MSG

      static final byte GETBULK_REQ_MSG
      The GetBulkRequest PDU type.
      See Also:
    • INFORM_REQ_MSG

      static final byte INFORM_REQ_MSG
      The InformRequest PDU type.
      See Also:
    • TRPV2_REQ_MSG

      static final byte TRPV2_REQ_MSG
      The SNMPv2 (and SNMPv3) Trap PDU type.
      See Also:
    • GET_RPRT_MSG

      static final byte GET_RPRT_MSG
      The GetReport PDU type.
      See Also:
    • CONS_SEQ

      static final byte CONS_SEQ
      See Also: