newbie question

Paul Hurt <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi there,

   I have used MIB2C to create a table that I want to
give the user access to create new rows on it.  My MIB
deffinition looks like:
myTableEntry OBJECT-TYPE
        SYNTAX myTableEntry
	ACCESS not-accessible
	STATUS mandatory
	DESCRIPTION
	"A connection entry in the table describing its
characteristics."
        INDEX {
                myTableFromSide,
                myTableFromIndex,
                myTableToSide,
                myTableToIndex
              }
        ::= { myTable 1 }

myTableEntry ::=
	SEQUENCE {
                myTableFromSide
			INTEGER,
                myTableFromIndex
			INTEGER,
                myTableToSide
			INTEGER,
                myTableToIndex
			INTEGER,
                myTableAnotherIndex
			INTEGER,
                myTableMode
			INTEGER,
                myTableName
			DisplayString,
                myTableStatus
			RowStatus
		}

myTableFromSide OBJECT-TYPE
        SYNTAX INTEGER  { network (1), user (2), test
(3) }
	ACCESS read-create
	STATUS mandatory
	DESCRIPTION
        "Stuff 1"
        ::= { myTableEntry 1 }

myTableFromIndex OBJECT-TYPE
        SYNTAX INTEGER
	ACCESS read-create
	STATUS mandatory
	DESCRIPTION
        "stuff 2."
        ::= { myTableEntry 2 }
Yada yada yada

Mib2c handles the definition just fine.  But when I
call snmpset to create a new row:
snmpset -m all -v 1 -c adc -d localhost
myTableFromIndex.1.1.1.1 i 1
I get the following error:
Error in packet.
Reason: (noSuchName) There is no such variable name in
this MIB.


Stepping through my agent, I get into the
object_lookup function, and that calls:
netsnmp_request_set_error_all(requests,
SNMP_ERR_NOCREATION); 
after getting a null from calling
netsnmp_container_table_row_extract

Since I am trying to create a row, I am thinking I am
doing something wrong, but I can't figure out what it
is?  Can anyone help?

Thanks,
Paul Hurt


		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


-------------------------------------------------------
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.