Hi everybody,

I'm trying to create a new row in a table of QoS Profiles. To understand
what I do, here is the extract of the MIB concerning my table :

    rbQoSProfileConfigTable    OBJECT-TYPE
>         SYNTAX        SEQUENCE  OF  RbQoSProfileConfigEntry
>         MAX-ACCESS    not-accessible
>         STATUS        current
>         DESCRIPTION
>             "A table of QoS Profiles."
>         ::=  { rbQoSProfiles  1 }
>
>     rbQoSProfileConfigEntry    OBJECT-TYPE
>         SYNTAX        RbQoSProfileConfigEntry
>         MAX-ACCESS    not-accessible
>         STATUS        current
>         DESCRIPTION
>             "An entry in the QoS Profiles Table. Includes parameters of the
> relevant QoS Profile."
>         INDEX        {  rbQoSProfileIdx  }
>         ::=  { rbQoSProfileConfigTable 1 }
>
>     RbQoSProfileConfigEntry  ::=  SEQUENCE {
>         rbQoSProfileIdx          Unsigned32,
>         rbQoSProfileName          DisplayString,
>         rbQoSProfileID          Unsigned32,
>         rbQoSProfileType          INTEGER,
>         rbQoSProfileParam1      Unsigned32,
>         rbQoSProfileParam2      Unsigned32,
>         rbQoSProfileParamTime   INTEGER,
>         rbAQoSProfileRowStatus  RowStatus
>         }
>
>
>     rbQoSProfileIdx    OBJECT-TYPE
>         SYNTAX            Unsigned32
>         MAX-ACCESS        read-only
>         STATUS            current
>         DESCRIPTION
>                 "The index of the relevant QoS Profile Entry."
>         ::=  {  rbQoSProfileConfigEntry  1  }
>

>     rbQoSProfileName    OBJECT-TYPE
>         SYNTAX            DisplayString  ( SIZE ( 1 .. 32  ) )
>         MAX-ACCESS        read-write
>         STATUS            current
>         DESCRIPTION
>                 "QoS Profile Name - unique per Device."
>         ::=  {  rbQoSProfileConfigEntry  2  }
>
>     rbQoSProfileID    OBJECT-TYPE
>         SYNTAX            Unsigned32
>         MAX-ACCESS        read-only
>         STATUS            current
>         DESCRIPTION
>                 "The QoS Profile ID assigned by the Device - unique per
> Device."
>         ::=  {  rbQoSProfileConfigEntry  3  }
>
>     rbQoSProfileType OBJECT-TYPE
>       SYNTAX   INTEGER  { rbCG (0),  rbRT ( 1 ) , rbNRT ( 2 ) , rbBE ( 3 )
> }
>       MAX-ACCESS  read-write
>       STATUS   current
>       DESCRIPTION
>         "The QoS Profile Type:
>          CG - (Continuing Grant) service is tailored for carrying constant
> bit-rate (CBR) real-time services characterized by fixed size data packets
> on a periodic basis such as VoIP or E1/T1.
>          RT (Real-Time) polling service is designed to meet the needs of
> Real Time Variable Bit Rate like services characterized by requirements for
> guaranteed rate and delay such as streaming video or audio.
>          NRT (Non-Real-Time) polling service is designed to meet the needs
> of Non Real Time Variable Bit Rate services, such as file transfer and
> Internet access,
>          that are characterized by requirement for a guaranteed rate, but
> can tolerate longer delays and are rather insensitive to jitter.
>          BE (Best Effort) service is for services where neither throughput
> nor delay guarantees are provided."
>       ::=  {  rbQoSProfileConfigEntry  4  }
>
>     rbQoSProfileParam1    OBJECT-TYPE
>         SYNTAX            Unsigned32
>         MAX-ACCESS        read-write
>         STATUS            current
>         DESCRIPTION
>                 "For QOS Profile type RT-VR or NRT-VR, this parameter is
> CIR (1-12000 in Kbps).
>                  For QoS Profile type CG this parameter is the Packet Size
> (64-1550 in bytes including 4 bytes CRC and 4 bytes VLAN tag).
>                  For QoS Profile type BE this parameter is not applicable."
>
>         ::=  {  rbQoSProfileConfigEntry  5  }
>
>     rbQoSProfileParam2    OBJECT-TYPE
>         SYNTAX            Unsigned32
>         MAX-ACCESS        read-write
>         STATUS            current
>         DESCRIPTION
>                 "For QOS Profile type BE or NRT-VR, this parameter is MIR
> (1-12000 in Kbps).
>                  For QoS Profile type CG this parameter is the Sample
> Interval (5-100 in milliseconds in steps of 5).
>                  For QoS Profile type RT-VR this parameter is not
> applicable."
>         ::=  {  rbQoSProfileConfigEntry  6  }
>
>     rbQoSProfileParamTime    OBJECT-TYPE
>         SYNTAX            INTEGER { short ( 1 ) , medium ( 2 ) , long ( 3 )
> }
>         MAX-ACCESS        read-write
>         STATUS            current
>         DESCRIPTION
>                 "The CT  (Committed Time) parameter defines the time window
> over which the information rate is averaged to ensure compliance with the
> CIR or MIR parameter.
>                  This parameter is not applicable for QoS Profile Type CG."
>
>         ::=  {  rbQoSProfileConfigEntry  7  }
>
>     rbAQoSProfileRowStatus    OBJECT-TYPE
>         SYNTAX            RowStatus
>         MAX-ACCESS        read-write
>         STATUS            current
>         DESCRIPTION
>                 "Control for creating and deleting entries.  Entries may be
> modified while active.
>                  active (1) - means that the entry is available for use by
> the managed device and relevant parameters
>                  may be modified;
>                  createAndGo (4) is used for creating a new entry and to
> have its status automatically set to active;
>                  destroy (6) is used for deleting an existing entry."
>         ::=  {  rbQoSProfileConfigEntry  8  }
>

Firstly, to create a new row, I have to call the parameter
rbGetNewQoSProfileID to know what's the next free ID in the table.

Then I can set the parameters of the row (32, returned by snmpget on
rbGetNewQoSProfileID) :

snmpset -c private -v 2c 10.0.0.1 rbAQoSProfileRowStatus.32 i 4
> rbQoSProfileType.32 i 1 rbQoSProfileName.32 s test rbQoSProfileParamTime.32
> i 1 rbQoSProfileParam1.32 u 1000
>

And it worked, the result was :

RAINBOW-SERVICE-MIB::rbAQoSProfileRowStatus.32 = INTEGER: createAndGo(4)
> RAINBOW-SERVICE-MIB::rbAQoSProfileType.32 = INTEGER: rbRT(1)
> RAINBOW-SERVICE-MIB::rbAQoSProfileName.32 = STRING: test
> RAINBOW-SERVICE-MIB::rbAQoSProfileParamTime.32 = INTEGER: short(1)
> RAINBOW-SERVICE-MIB::rbAQoSProfileParam1.32 = Gauge32: 1000
>

But then I tried to set another row and now I can't :/ I don't know why, I
do exactly the same thing and it doesn't work :

snmpset -c private -v 2c 10.0.0.1 rbAQoSProfileRowStatus.39 i 4
> rbQoSProfileType.39 i 1 rbQoSProfileName.39 s test rbQoSProfileParamTime.39
> i 1 rbQoSProfileParam1.39 u 1000
> Error in packet.
> Reason: undoFailed
> Failed object: RAINBOW-SERVICE-MIB::rbAQoSProfileParam1.39
>

Can someone help me ?

Thank you

François
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to