pdnDot1dTrafficProfileNextIndex

PDN-BRIDGE-EXT-MIB · .1.3.6.1.4.1.1795.2.24.2.58.1.2.1

Object

This object is used to establish the next unused 
index (pdnDot1dTrafficProfileIndex) for the 
pdnDot1dTrafficProfileTable.
          
This object is used to assist the manager in
selecting a value for pdnDot1dTrafficProfileIndex.  
Because this object is of syntax TestAndIncr (see the
SNMPv2-TC document, RFC 2579), it can also be used
to avoid race conditions with multiple managers
trying to create rows in the table.
          
If the result of the SET for 
pdnDot1dTrafficProfileIndex is not success, this means
the value has been changed from index (i.e. another 
manager used the value), so a new value is required.
          
The algorithm is:
done = false
while done == false
   index = GET (pdnDot1dTrafficProfileNextIndex.0)
   SET (pdnDot1dTrafficProfileNextIndex.0=index)
   if (set failed)
      done = false
   else
      pdnDot1dTrafficProfileRowStatus.index=createAndGo
      SET (pdnDot1dTrafficProfileRowStatus.index)
      if (set failed)
         done = false
      else
         done = true
         other error handling
          
This description was modeled from RFC2494, 
DS0BUNDLE-MIB.

Context

MIB
PDN-BRIDGE-EXT-MIB
OID
.1.3.6.1.4.1.1795.2.24.2.58.1.2.1
Type
scalar
Access
readwrite
Status
current
Parent
pdnDot1dTrafficProfile
Groups
1

Scalars have one instance, identified by the .0 suffix.

Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'PDN-BRIDGE-EXT-MIB' -M '/opt/observium/mibs/paradyne:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'PDN-BRIDGE-EXT-MIB::pdnDot1dTrafficProfileNextIndex.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'PDN-BRIDGE-EXT-MIB' -M '/opt/observium/mibs/paradyne:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'PDN-BRIDGE-EXT-MIB::pdnDot1dTrafficProfileNextIndex'

Syntax

Source
SNMPv2-TCTestAndIncr
Base type
Integer32
Type Description
Represents integer-valued information used for atomic
operations.  When the management protocol is used to specify
that an object instance having this syntax is to be
modified, the new value supplied via the management protocol
must precisely match the value presently held by the
instance.  If not, the management protocol set operation
fails with an error of `inconsistentValue'.  Otherwise, if
the current value is the maximum value of 2^31-1 (2147483647
decimal), then the value held by the instance is wrapped to
zero; otherwise, the value held by the instance is
incremented by one.  (Note that regardless of whether the
management protocol set operation succeeds, the variable-
binding in the request and response PDUs are identical.)
          
The value of the ACCESS clause for objects having this
syntax is either `read-write' or `read-create'.  When an
instance of a columnar object having this syntax is created,
any value may be supplied via the management protocol.
          
When the network management portion of the system is re-
initialized, the value of every object instance having this
syntax must either be incremented from its value prior to
the re-initialization, or (if the value prior to the re-
initialization is unknown) be set to a pseudo-randomly
generated value.

Values & Constraints

Type Constraints
range: 0..2147483647