Hello,

i'm having some Problems when setting two different Variables in two
different Tables.

The two different tables reside in two different Mibs, i call it MibA and
MibB. But, they both have the same two Indexes ID1 and ID2.
I used the mib2c-Tool with the option -c mib2c.create-dataset and this tool
generates two nice .c and two nice .h Files. After that, i called in my
main.c both function:
init_MibATable();
init_MibBTable();

Until here, everything works fine.

Then, i started the agent and tested the code:

snmpset ... MibA::string.3.3 s "Hello"   <- works fine
snmpset ... MibB::integ.3.3 i 123   <- works also fine
snmpset ... MibA::string.3.3 s "Hello" MibB::integ.3.3 i 123 <- still works!

BUT:
snmpset ... MibB::integ.3.3 i 123 MibA::string.3.3 s "Hello" <- doesn't work

Error in packet.
Reason: wrongType (The set datatype does not match the data type the agent
expects)
Failed object: MibA::string.3.3

I am really confused, because all other statements work. I checked the
dataType and it isn't wrong.

Isn't it allowed to set different variables in different Tables of different
Mibs in one statement? 

I'm working on SunOS 5.8 and Net-SNMP version 5.1.2. Checking the
Bug-Mailinglists and Net-SNMP-Coder-Mailinglists didn't help.

I would be very glad, if anybody could help me.

King Regards,

Sven




-- 
+++ GMX DSL Premiumtarife 3 Monate gratis* + WLAN-Router 0,- EUR* +++
Clevere DSL-Nutzer wechseln jetzt zu GMX: http://www.gmx.net/de/go/dsl



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to