HI,

How SNMP messages are formed are defined in 
  RFC 3416 - SNMPv2c and SNMPv3
  RFC 1157 - SNMPv1 

Notice that both have a varBindList returned, just like
a response for a GET. It's not an idea or convention,
it's the way the protocol is defined. Now, there has been
people that have not understood the protocol definitions,
and/or "experts" that have provided incorrect advice.
However, the protocol definitions are clear and SNMP
technology implementations that have gone through
reviews show that variables do have instance sub-ids,
and because of this there is NEVER the case to return
index values as separate objects except for the single
exception where the table consists of only index objects
(which is allowed by the SMI, but is really a bad
design approach).

At 10:44 AM 7/17/2004 +0900, Norio Nakamoto wrote:
>One more thing. Can you tell me which RFC gives this idea or 
>convention?
>
>On Fri, 16 Jul 2004 18:14:25 -0700
>"David T. Perkins" <[EMAIL PROTECTED]> san wrote:
>
>> HI,
>> 
>> Variables in notifications (TRAPv1, TRAPv2, INFORM) always have instance
>> sub-ids. If they are scalars, it's always 0. For columnar, you
>> have to look at the INDEX or AUGMENTS clause of the row definition.
>> A well written DESCRIPTION clause will make it obvious which instance
>> is returned. You NEVER need to define notifications to return
>> the index values as separate objects. 
>> 
>> At 10:02 AM 7/17/2004 +0900, Norio Nakamoto wrote:
>> ><stuff cut>
>> 
>> >I also noticed one agent set valiable bindings such as ifIndex and ifDescr
>> >in LinkUp/Down traps but they are bound with OID like 'ifIndex.10' and 
>> >'ifDescr.10'.
>> >Is this acceptable? According to RFC 1157, I think they should be
>> >only 'ifIndex' and 'ifDescr' (without index key).
>> >
>> >Norio Nakamoto

Regards,
/david t. perkins 



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to