Problem with row creation (Please help)

This is a discussion on Problem with row creation (Please help) within the SNMP Users forums, part of the Networking and Network Related category; Hi all, I am really stuck with this problem. Can anyone please help and tell me what I am doing ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-19-2005
Hurt, Paul
 
Posts: n/a
Default Problem with row creation (Please help)

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 =3D INTEGER: type1(1)
MYTEST-MIB::FromIndex.type1.2.type1.2 =3D INTEGER: 2
MYTEST-MIB::ToSide.type1.2.type1.2 =3D INTEGER: type1(1)
MYTEST-MIB::ToIndex.type1.2.type1.2 =3D INTEGER: 2
MYTEST-MIB::Mode.type1.2.type1.2 =3D INTEGER: MType1(1)
MYTEST-MIB::State.type1.2.type1.2 =3D INTEGER: SType1(1)
MYTEST-MIB::Name.type1.2.type1.2 =3D STRING: Test
MYTEST-MIB::Status.type1.2.type1.2 =3D INTEGER: active(1) End of MIB

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

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





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

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

krone OBJECT IDENTIFIER ::=3D { enterprises 2115 }
accessNetworkDevices OBJECT IDENTIFIER ::=3D { krone 1 }
mystuff OBJECT IDENTIFIER ::=3D { 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."
::=3D { 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
}
::=3D { myTable 1 }

MyEntry ::=3D
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
""
::=3D { myEntry 1 }

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

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

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

Index OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-write
STATUS mandatory
DESCRIPTION
""
::=3D { 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
""
::=3D { myEntry 6 }

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

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

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

END



-----Original Message-----
From: net-snmp-users-admin@lists.sourceforge.net
[mailto:net-snmp-users-admin@lists.sourceforge.net] 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

=20
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 =3D 5

This comes back and works
But if I now do an snmpwalk on my table I get this error:
MYMIB-MIB::INDEX1 =3D INTEGER: 1
MYMIB-MIB::INDEX1 =3D INTEGER: 1
Error: OID not increasing: MYMIB-MIB::INDEX1 >=3D 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/...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/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:35 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0