Hi all,
   I am really stuck with this problem.  Can anyone please help and tell
me what I am doing wrong.

   If I compile my code and run it, then issue the following commands,
this is what I get:
$ snmpwalk -v1 -cadc -m all localhost:1551 myTable
MYTEST-MIB::FromSide.type1.2.type1.2 = INTEGER: type1(1)
MYTEST-MIB::FromIndex.type1.2.type1.2 = INTEGER: 2
MYTEST-MIB::ToSide.type1.2.type1.2 = INTEGER: type1(1)
MYTEST-MIB::ToIndex.type1.2.type1.2 = INTEGER: 2
MYTEST-MIB::Mode.type1.2.type1.2 = INTEGER: MType1(1)
MYTEST-MIB::State.type1.2.type1.2 = INTEGER: SType1(1)
MYTEST-MIB::Name.type1.2.type1.2 = STRING: Test
MYTEST-MIB::Status.type1.2.type1.2 = INTEGER: active(1) End of MIB

$ snmpset -v1 -cadc -m all localhost:1551 Status.1.2.2.2 = 5
MYTEST-MIB::Status.type1.2.type2.2 = INTEGER: createAndWait(5)

$ snmpwalk -v1 -cadc -m all localhost:1551 myTable MYTEST-MIB::FromSide
= INTEGER: type1(1) MYTEST-MIB::FromSide = INTEGER: type1(1)
Error: OID not increasing: MYTEST-MIB::FromSide  >= MYTEST-MIB::FromSide





My MIB looks like this:
MYTEST-MIB DEFINITIONS ::= BEGIN

IMPORTS
        enterprises
                FROM RFC1155-SMI
        DisplayString, RowStatus
                FROM SNMPv2-TC;

krone                 OBJECT IDENTIFIER ::= { enterprises 2115 }
accessNetworkDevices  OBJECT IDENTIFIER ::= { krone 1 }
mystuff                 OBJECT IDENTIFIER ::= { accessNetworkDevices 6 }


-- the logical connections table

myTable OBJECT-TYPE
        SYNTAX SEQUENCE OF MyEntry
        ACCESS not-accessible
        STATUS mandatory
        DESCRIPTION
        "The connection table lists all logical end-to-end active
connections
        within the MagiX system."
        ::= { mystuff 1 }

myEntry OBJECT-TYPE
        SYNTAX MyEntry
        ACCESS not-accessible
        STATUS mandatory
        DESCRIPTION
        "A connection entry in the table describing its
characteristics."
        INDEX {
                FromSide,
                FromIndex,
                ToSide,
                ToIndex
              }
        ::= { myTable 1 }

MyEntry ::=
        SEQUENCE {
                FromSide
                        INTEGER,
                FromIndex
                        INTEGER,
                ToSide
                        INTEGER,
                ToIndex
                        INTEGER,
                Index
                        INTEGER,
                Mode
                        INTEGER,
                State
                        INTEGER,
                Name
                        DisplayString,
                Status
                        RowStatus
                }

FromSide OBJECT-TYPE
        SYNTAX INTEGER  { type1 (1), type2 (2), type3 (3) }
        ACCESS read-write
        STATUS mandatory
        DESCRIPTION
        ""
        ::= { myEntry 1 }

FromIndex OBJECT-TYPE
        SYNTAX INTEGER
        ACCESS read-write
        STATUS mandatory
        DESCRIPTION
        ""
        ::= { myEntry 2 }

ToSide OBJECT-TYPE
        SYNTAX INTEGER  { type1 (1), type2 (2), type3 (3) }
        ACCESS read-write
        STATUS mandatory
        DESCRIPTION
        ""
        ::= { myEntry 3 }

ToIndex OBJECT-TYPE
        SYNTAX INTEGER
        ACCESS read-write
        STATUS mandatory
        DESCRIPTION
        ""
        ::= { myEntry 4 }

Index OBJECT-TYPE
        SYNTAX INTEGER
        ACCESS read-write
        STATUS mandatory
        DESCRIPTION
        ""
        ::= { myEntry 5 }

Mode OBJECT-TYPE
        SYNTAX INTEGER {
                MType0 (0),
                MType1 (1),
                MType2 (2),
                MType3 (3),
                MType4 (4),
                MType5 (5),
                MType6 (6)
                MType7 (7),
                MType8 (8)
                }
        ACCESS read-write
        STATUS mandatory
        DESCRIPTION
        ""
        ::= { myEntry 6 }

State OBJECT-TYPE
        SYNTAX INTEGER { SType0 (0), SType1 (1), SType2 (2), SType3 (3)
}
        ACCESS read-only
        STATUS mandatory
        DESCRIPTION
        ""
        ::= { myEntry 7 }

Name OBJECT-TYPE
        SYNTAX DisplayString (SIZE (0..15))
        ACCESS read-write
        STATUS mandatory
        DESCRIPTION
        ""
        ::= { myEntry 8 }

Status OBJECT-TYPE
        SYNTAX RowStatus
        ACCESS read-write
        STATUS mandatory
        DESCRIPTION
        "Used to create and delete rows"
        ::= { myEntry 9 }

END



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hurt,
Paul
Sent: Thursday, August 18, 2005 4:42 PM
To: net-snmp-users@lists.sourceforge.net
Subject: Problem with row creation

 
Hi there,
   I have a table where each row has 4 indexes, a name, a mode, and a
row status.  When I do an Snmpset -v1 -c private -m all
myRowStatus.1.1.1.1 = 5

This comes back and works
But if I now do an snmpwalk on my table I get this error:
MYMIB-MIB::INDEX1 = INTEGER: 1
MYMIB-MIB::INDEX1 = INTEGER: 1
Error: OID not increasing: MYMIB-MIB::INDEX1  >= MYMIB-MIB::INDEX1


Can anyone tell me what I am doing wrong in my set code?

Thanks!

Paul Hurt


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices Agile & Plan-Driven Development * Managing Projects & Teams *
Testing & QA Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to