Blame mibs/ietf/SFLOW-MIB

Packit 022b05
SFLOW-MIB DEFINITIONS ::= BEGIN
Packit 022b05
Packit 022b05
IMPORTS
Packit 022b05
Packit 022b05
MODULE-IDENTITY, OBJECT-TYPE, Integer32, enterprises
Packit 022b05
        FROM SNMPv2-SMI
Packit 022b05
SnmpAdminString
Packit 022b05
        FROM SNMP-FRAMEWORK-MIB
Packit 022b05
OwnerString
Packit 022b05
        FROM RMON-MIB
Packit 022b05
InetAddressType, InetAddress
Packit 022b05
        FROM INET-ADDRESS-MIB
Packit 022b05
MODULE-COMPLIANCE, OBJECT-GROUP
Packit 022b05
        FROM SNMPv2-CONF;
Packit 022b05
Packit 022b05
sFlowMIB  MODULE-IDENTITY
Packit 022b05
  LAST-UPDATED "200105150000Z"   -- May 15, 2001
Packit 022b05
  ORGANIZATION "InMon Corp."
Packit 022b05
  CONTACT-INFO
Packit 022b05
Packit 022b05
Packit 022b05
Packit 022b05
         "Peter Phaal
Packit 022b05
          InMon Corp.
Packit 022b05
          http://www.inmon.com/
Packit 022b05
Packit 022b05
          Tel:  +1-415-661-6343
Packit 022b05
          Email: peter_phaal@inmon.com"
Packit 022b05
  DESCRIPTION
Packit 022b05
          "The MIB module for managing the generation and transportation
Packit 022b05
           of sFlow data records."
Packit 022b05
Packit 022b05
  --
Packit 022b05
  -- Revision History
Packit 022b05
  --
Packit 022b05
  REVISION    "200105150000Z"     -- May 15, 2001
Packit 022b05
  DESCRIPTION
Packit 022b05
          "Version 1.2
Packit 022b05
Packit 022b05
           Brings MIB into SMI v2 compliance."
Packit 022b05
Packit 022b05
  REVISION    "200105010000Z"      -- May 1, 2001
Packit 022b05
  DESCRIPTION
Packit 022b05
           "Version 1.1
Packit 022b05
Packit 022b05
            Adds sFlowDatagramVersion."
Packit 022b05
  ::= { enterprises 4300 1 }
Packit 022b05
Packit 022b05
sFlowAgent OBJECT IDENTIFIER ::= { sFlowMIB 1 }
Packit 022b05
Packit 022b05
sFlowVersion OBJECT-TYPE
Packit 022b05
     SYNTAX      SnmpAdminString
Packit 022b05
     MAX-ACCESS  read-only
Packit 022b05
     STATUS      current
Packit 022b05
     DESCRIPTION
Packit 022b05
       "Uniquely identifies the version and implementation of this MIB.
Packit 022b05
        The version string must have the following structure:
Packit 022b05
           <MIB Version>;<Organization>;<Software Revision>
Packit 022b05
        where:
Packit 022b05
           <MIB Version>  must be '1.2', the version of this MIB.
Packit 022b05
           <Organization> the name of the organization responsible
Packit 022b05
                            for the agent implementation.
Packit 022b05
           <Revision>     the specific software build of this agent.
Packit 022b05
Packit 022b05
        As an example, the string '1.2;InMon Corp.;2.1.1' indicates
Packit 022b05
        that this agent implements version '1.2' of the SFLOW MIB, that
Packit 022b05
        it was developed by 'InMon Corp.' and that the software build
Packit 022b05
        is '2.1.1'.
Packit 022b05
Packit 022b05
        The MIB Version will change with each revision of the SFLOW
Packit 022b05
Packit 022b05
Packit 022b05
Packit 022b05
        MIB.
Packit 022b05
Packit 022b05
        Management entities must check the MIB Version and not attempt
Packit 022b05
        to manage agents with MIB Versions greater than that for which
Packit 022b05
        they were designed.
Packit 022b05
Packit 022b05
        Note: The sFlow Datagram Format has an independent version
Packit 022b05
              number which may change independently from <MIB Version>.
Packit 022b05
              <MIB Version> applies to the structure and semantics of
Packit 022b05
              the SFLOW MIB only."
Packit 022b05
     DEFVAL { "1.2;;" }
Packit 022b05
     ::= { sFlowAgent 1 }
Packit 022b05
Packit 022b05
sFlowAgentAddressType OBJECT-TYPE
Packit 022b05
     SYNTAX      InetAddressType
Packit 022b05
     MAX-ACCESS  read-only
Packit 022b05
     STATUS      current
Packit 022b05
     DESCRIPTION
Packit 022b05
       "The address type of the address associated with this agent.
Packit 022b05
        Only ipv4 and ipv6 types are supported."
Packit 022b05
     ::= { sFlowAgent 2 }
Packit 022b05
Packit 022b05
sFlowAgentAddress OBJECT-TYPE
Packit 022b05
     SYNTAX      InetAddress
Packit 022b05
     MAX-ACCESS  read-only
Packit 022b05
     STATUS      current
Packit 022b05
     DESCRIPTION
Packit 022b05
       "The IP address associated with this agent.  In the case of a
Packit 022b05
        multi-homed agent, this should be the loopback address of the
Packit 022b05
        agent.  The sFlowAgent address must provide SNMP connectivity
Packit 022b05
        to the agent.  The address should be an invariant that does not
Packit 022b05
        change as interfaces are reconfigured, enabled, disabled,
Packit 022b05
        added or removed.  A manager should be able to use the
Packit 022b05
        sFlowAgentAddress as a unique key that will identify this
Packit 022b05
        agent over extended periods of time so that a history can
Packit 022b05
        be maintained."
Packit 022b05
    ::= { sFlowAgent 3 }
Packit 022b05
Packit 022b05
sFlowTable OBJECT-TYPE
Packit 022b05
     SYNTAX      SEQUENCE OF SFlowEntry
Packit 022b05
     MAX-ACCESS  not-accessible
Packit 022b05
     STATUS      current
Packit 022b05
     DESCRIPTION
Packit 022b05
       "A table of the sFlow samplers within a device."
Packit 022b05
     ::= { sFlowAgent 4 }
Packit 022b05
Packit 022b05
sFlowEntry OBJECT-TYPE
Packit 022b05
     SYNTAX      SFlowEntry
Packit 022b05
Packit 022b05
Packit 022b05
Packit 022b05
     MAX-ACCESS  not-accessible
Packit 022b05
     STATUS      current
Packit 022b05
     DESCRIPTION
Packit 022b05
       "Attributes of an sFlow sampler."
Packit 022b05
     INDEX { sFlowDataSource }
Packit 022b05
     ::= { sFlowTable 1 }
Packit 022b05
Packit 022b05
SFlowEntry ::= SEQUENCE {
Packit 022b05
     sFlowDataSource               OBJECT IDENTIFIER,
Packit 022b05
     sFlowOwner                    OwnerString,
Packit 022b05
     sFlowTimeout                  Integer32,
Packit 022b05
     sFlowPacketSamplingRate       Integer32,
Packit 022b05
     sFlowCounterSamplingInterval  Integer32,
Packit 022b05
     sFlowMaximumHeaderSize        Integer32,
Packit 022b05
     sFlowMaximumDatagramSize      Integer32,
Packit 022b05
     sFlowCollectorAddressType     InetAddressType,
Packit 022b05
     sFlowCollectorAddress         InetAddress,
Packit 022b05
     sFlowCollectorPort            Integer32,
Packit 022b05
     sFlowDatagramVersion          Integer32
Packit 022b05
}
Packit 022b05
Packit 022b05
sFlowDataSource OBJECT-TYPE
Packit 022b05
     SYNTAX      OBJECT IDENTIFIER
Packit 022b05
     MAX-ACCESS  read-only
Packit 022b05
     STATUS      current
Packit 022b05
     DESCRIPTION
Packit 022b05
       "Identifies the source of the data for the sFlow sampler.
Packit 022b05
       The following data source types are currently defined:
Packit 022b05
Packit 022b05
       - ifIndex.
Packit 022b05
       DataSources of this traditional form are called 'port-based'.
Packit 022b05
       Ideally the sampling entity will perform sampling on all flows
Packit 022b05
       originating from or destined to the specified interface.
Packit 022b05
       However, if the switch architecture only permits input or
Packit 022b05
       output sampling then the sampling agent is permitted to only
Packit 022b05
       sample input flows input or output flows.  Each packet must
Packit 022b05
       only be considered once for sampling, irrespective of the
Packit 022b05
       number of ports it will be forwarded to.
Packit 022b05
Packit 022b05
       Note: Port 0 is used to indicate that all ports on the device
Packit 022b05
             are represented by a single data source.
Packit 022b05
             - sFlowPacketSamplingRate applies to all ports on the
Packit 022b05
               device capable of packet sampling.
Packit 022b05
             - sFlowCounterSamplingInterval applies to all ports.
Packit 022b05
Packit 022b05
       - smonVlanDataSource.<V>
Packit 022b05
       A dataSource of this form refers to a 'Packet-based VLAN'
Packit 022b05
       and is called a 'VLAN-based' dataSource.  <V> is the VLAN
Packit 022b05
Packit 022b05
Packit 022b05
Packit 022b05
       ID as defined by the IEEE 802.1Q standard.  The
Packit 022b05
       value is between 1 and 4094 inclusive, and it represents
Packit 022b05
       an 802.1Q VLAN-ID with global scope within a given
Packit 022b05
       bridged domain.
Packit 022b05
       Sampling is performed on all packets received that are part
Packit 022b05
       of the specified VLAN (no matter which port they arrived on).
Packit 022b05
       Each packet will only be considered once for sampling,
Packit 022b05
       irrespective of the number of ports it will be forwarded to.
Packit 022b05
Packit 022b05
       - entPhysicalEntry.<N>
Packit 022b05
       A dataSource of this form refers to a physical entity within
Packit 022b05
       the agent (e.g., entPhysicalClass = backplane(4)) and is called
Packit 022b05
       an 'entity-based' dataSource.
Packit 022b05
       Sampling is performed on all packets entering the resource (e.g.
Packit 022b05
       If the backplane is being sampled, all packets transmitted onto
Packit 022b05
       the backplane will be considered as single candidates for
Packit 022b05
       sampling irrespective of the number of ports they ultimately
Packit 022b05
       reach).
Packit 022b05
Packit 022b05
       Note: Since each DataSource operates independently, a packet
Packit 022b05
             that crosses multiple DataSources may generate multiple
Packit 022b05
             flow records."
Packit 022b05
     ::= { sFlowEntry 1 }
Packit 022b05
Packit 022b05
sFlowOwner OBJECT-TYPE
Packit 022b05
     SYNTAX      OwnerString
Packit 022b05
     MAX-ACCESS  read-write
Packit 022b05
     STATUS      current
Packit 022b05
     DESCRIPTION
Packit 022b05
       "The entity making use of this sFlow sampler.  The empty string
Packit 022b05
        indicates that the sFlow sampler is currently unclaimed.
Packit 022b05
        An entity wishing to claim an sFlow sampler must make sure
Packit 022b05
        that the sampler is unclaimed before trying to claim it.
Packit 022b05
        The sampler is claimed by setting the owner string to identify
Packit 022b05
        the entity claiming the sampler.  The sampler must be claimed
Packit 022b05
        before any changes can be made to other sampler objects.
Packit 022b05
Packit 022b05
        In order to avoid a race condition, the entity taking control
Packit 022b05
        of the sampler must set both the owner and a value for
Packit 022b05
        sFlowTimeout in the same SNMP set request.
Packit 022b05
Packit 022b05
        When a management entity is finished using the sampler,
Packit 022b05
        it should set its value back to unclaimed.  The agent
Packit 022b05
        must restore all other entities this row to their
Packit 022b05
        default values when the owner is set to unclaimed.
Packit 022b05
Packit 022b05
        This mechanism provides no enforcement and relies on the
Packit 022b05
        cooperation of management entities in order to ensure that
Packit 022b05
Packit 022b05
Packit 022b05
Packit 022b05
        competition for a sampler is fairly resolved."
Packit 022b05
     DEFVAL { "" }
Packit 022b05
     ::= { sFlowEntry 2 }
Packit 022b05
Packit 022b05
sFlowTimeout OBJECT-TYPE
Packit 022b05
     SYNTAX      Integer32
Packit 022b05
     MAX-ACCESS  read-write
Packit 022b05
     STATUS      current
Packit 022b05
     DESCRIPTION
Packit 022b05
       "The time (in seconds) remaining before the sampler is released
Packit 022b05
        and stops sampling.  When set, the owner establishes control
Packit 022b05
        for the specified period.  When read, the remaining time in the
Packit 022b05
        interval is returned.
Packit 022b05
Packit 022b05
        A management entity wanting to maintain control of the sampler
Packit 022b05
        is responsible for setting a new value before the old one
Packit 022b05
        expires.
Packit 022b05
Packit 022b05
        When the interval expires, the agent is responsible for
Packit 022b05
        restoring all other entities in this row to their default
Packit 022b05
        values."
Packit 022b05
     DEFVAL { 0 }
Packit 022b05
     ::= { sFlowEntry 3 }
Packit 022b05
Packit 022b05
sFlowPacketSamplingRate OBJECT-TYPE
Packit 022b05
     SYNTAX      Integer32
Packit 022b05
     MAX-ACCESS  read-write
Packit 022b05
     STATUS      current
Packit 022b05
     DESCRIPTION
Packit 022b05
       "The statistical sampling rate for packet sampling from this
Packit 022b05
        source.
Packit 022b05
Packit 022b05
        Set to N to sample 1/Nth of the packets in the monitored flows.
Packit 022b05
        An agent should choose its own algorithm introduce variance
Packit 022b05
        into the sampling so that exactly every Nth packet is not
Packit 022b05
        counted.  A sampling rate of 1 counts all packets.  A sampling
Packit 022b05
        rate of 0 disables sampling.
Packit 022b05
Packit 022b05
        The agent is permitted to have minimum and maximum allowable
Packit 022b05
        values for the sampling rate.  A minimum rate lets the agent
Packit 022b05
        designer set an upper bound on the overhead associated with
Packit 022b05
        sampling, and a maximum rate may be the result of hardware
Packit 022b05
        restrictions (such as counter size).  In addition not all values
Packit 022b05
        between the maximum and minimum may be realizable as the
Packit 022b05
        sampling rate (again because of implementation considerations).
Packit 022b05
Packit 022b05
        When the sampling rate is set the agent is free to adjust the
Packit 022b05
        value so that it lies between the maximum and minimum values
Packit 022b05
Packit 022b05
Packit 022b05
Packit 022b05
        and has the closest achievable value.
Packit 022b05
Packit 022b05
        When read, the agent must return the actual sampling rate it
Packit 022b05
        will be using (after the adjustments previously described).  The
Packit 022b05
        sampling algorithm must converge so that over time the number
Packit 022b05
        of packets sampled approaches 1/Nth of the total number of
Packit 022b05
        packets in the monitored flows."
Packit 022b05
     DEFVAL { 0 }
Packit 022b05
     ::= { sFlowEntry 4 }
Packit 022b05
Packit 022b05
sFlowCounterSamplingInterval OBJECT-TYPE
Packit 022b05
  SYNTAX      Integer32
Packit 022b05
     MAX-ACCESS  read-write
Packit 022b05
     STATUS      current
Packit 022b05
     DESCRIPTION
Packit 022b05
       "The maximum number of seconds between successive samples of the
Packit 022b05
        counters associated with this data source.  A sampling interval
Packit 022b05
        of 0 disables counter sampling."
Packit 022b05
     DEFVAL { 0 }
Packit 022b05
     ::= { sFlowEntry 5 }
Packit 022b05
Packit 022b05
sFlowMaximumHeaderSize OBJECT-TYPE
Packit 022b05
     SYNTAX      Integer32
Packit 022b05
     MAX-ACCESS  read-write
Packit 022b05
     STATUS      current
Packit 022b05
     DESCRIPTION
Packit 022b05
       "The maximum number of bytes that should be copied from a
Packit 022b05
        sampled packet.  The agent may have an internal maximum and
Packit 022b05
        minimum permissible sizes.  If an attempt is made to set this
Packit 022b05
        value outside the permissible range then the agent should
Packit 022b05
        adjust the value to the closest permissible value."
Packit 022b05
     DEFVAL { 128 }
Packit 022b05
     ::= { sFlowEntry 6 }
Packit 022b05
Packit 022b05
sFlowMaximumDatagramSize OBJECT-TYPE
Packit 022b05
     SYNTAX      Integer32
Packit 022b05
     MAX-ACCESS  read-write
Packit 022b05
     STATUS      current
Packit 022b05
     DESCRIPTION
Packit 022b05
        "The maximum number of data bytes that can be sent in a single
Packit 022b05
         sample datagram.  The manager should set this value to avoid
Packit 022b05
         fragmentation of the sFlow datagrams."
Packit 022b05
     DEFVAL { 1400 }
Packit 022b05
     ::= { sFlowEntry 7 }
Packit 022b05
Packit 022b05
sFlowCollectorAddressType OBJECT-TYPE
Packit 022b05
     SYNTAX      InetAddressType
Packit 022b05
     MAX-ACCESS  read-write
Packit 022b05
Packit 022b05
Packit 022b05
Packit 022b05
     STATUS      current
Packit 022b05
     DESCRIPTION
Packit 022b05
       "The type of sFlowCollectorAddress."
Packit 022b05
     DEFVAL { ipv4 }
Packit 022b05
     ::= { sFlowEntry 8 }
Packit 022b05
Packit 022b05
sFlowCollectorAddress OBJECT-TYPE
Packit 022b05
     SYNTAX      InetAddress
Packit 022b05
     MAX-ACCESS  read-write
Packit 022b05
     STATUS      current
Packit 022b05
     DESCRIPTION
Packit 022b05
       "The IP address of the sFlow collector.
Packit 022b05
        If set to 0.0.0.0 all sampling is disabled."
Packit 022b05
     DEFVAL { "0.0.0.0" }
Packit 022b05
     ::= { sFlowEntry 9 }
Packit 022b05
Packit 022b05
sFlowCollectorPort OBJECT-TYPE
Packit 022b05
     SYNTAX      Integer32
Packit 022b05
     MAX-ACCESS  read-write
Packit 022b05
     STATUS      current
Packit 022b05
     DESCRIPTION
Packit 022b05
       "The destination port for sFlow datagrams."
Packit 022b05
     DEFVAL { 6343 }
Packit 022b05
     ::= { sFlowEntry 10 }
Packit 022b05
Packit 022b05
sFlowDatagramVersion OBJECT-TYPE
Packit 022b05
     SYNTAX      Integer32
Packit 022b05
     MAX-ACCESS  read-write
Packit 022b05
     STATUS      current
Packit 022b05
     DESCRIPTION
Packit 022b05
       "The version of sFlow datagrams that should be sent.
Packit 022b05
Packit 022b05
        When set to a value not support by the agent, the agent should
Packit 022b05
        adjust the value to the highest supported value less than the
Packit 022b05
        requested value, or return an error if no such values exist."
Packit 022b05
     DEFVAL { 4 }
Packit 022b05
     ::= { sFlowEntry 11 }
Packit 022b05
Packit 022b05
 --
Packit 022b05
 -- Compliance Statements
Packit 022b05
 --
Packit 022b05
Packit 022b05
sFlowMIBConformance OBJECT IDENTIFIER ::= { sFlowMIB 2 }
Packit 022b05
sFlowMIBGroups      OBJECT IDENTIFIER ::= { sFlowMIBConformance 1 }
Packit 022b05
sFlowMIBCompliances OBJECT IDENTIFIER ::= { sFlowMIBConformance 2 }
Packit 022b05
Packit 022b05
sFlowCompliance MODULE-COMPLIANCE
Packit 022b05
     STATUS      current
Packit 022b05
Packit 022b05
Packit 022b05
Packit 022b05
     DESCRIPTION
Packit 022b05
       "Compliance statements for the sFlow Agent."
Packit 022b05
Packit 022b05
     MODULE -- this module
Packit 022b05
         MANDATORY-GROUPS { sFlowAgentGroup }
Packit 022b05
         OBJECT     sFlowAgentAddressType
Packit 022b05
         SYNTAX     InetAddressType { ipv4(1) }
Packit 022b05
         DESCRIPTION
Packit 022b05
           "Agents need only support ipv4."
Packit 022b05
Packit 022b05
         OBJECT sFlowCollectorAddressType
Packit 022b05
         SYNTAX InetAddressType { ipv4(1) }
Packit 022b05
         DESCRIPTION
Packit 022b05
           "Agents need only support ipv4."
Packit 022b05
Packit 022b05
     ::= { sFlowMIBCompliances 1 }
Packit 022b05
Packit 022b05
sFlowAgentGroup OBJECT-GROUP
Packit 022b05
     OBJECTS { sFlowVersion, sFlowAgentAddressType, sFlowAgentAddress,
Packit 022b05
               sFlowDataSource, sFlowOwner, sFlowTimeout,
Packit 022b05
               sFlowPacketSamplingRate, sFlowCounterSamplingInterval,
Packit 022b05
               sFlowMaximumHeaderSize, sFlowMaximumDatagramSize,
Packit 022b05
               sFlowCollectorAddressType, sFlowCollectorAddress,
Packit 022b05
               sFlowCollectorPort, sFlowDatagramVersion }
Packit 022b05
      STATUS current
Packit 022b05
      DESCRIPTION
Packit 022b05
        "A collection of objects for managing the generation and
Packit 022b05
         transportation of sFlow data records."
Packit 022b05
       ::= { sFlowMIBGroups 1 }
Packit 022b05
Packit 022b05
END