Google

SNMP::Var

SNMP::SNMPVar provides access methods for various information of returned SNMP PDU.

Super Class:

Object

Methods:

type()
Return an integer indicates a type. It must be one of the following values.
  • Integer(2)
  • Octet String(4)
  • Null(5)
  • Object Identifier(6)
  • IpAddress(64)
  • Counter32(65)
  • Gauge32(66)
  • TimeTicks(67)
  • Opaque(68)
  • Counter64(70)
  • noSuchObject(128)
  • noSuchInstance(129)
  • endOfMibView(130)
oid()
Return an OID, an array of integer.
value()
Return a value of the variable. ASN.1 type - Ruby type mapping is below:
  • Counter32, Gauge32, Integer -- unsigned integer
  • Integer -- integer
  • Octet String -- string
  • Object Identifier -- array of integer

Nobuhiko Tsuruoka
Last modified: Thu Jul 6 18:28:07 JST 2000