Andrew, David, Thanks for your answers. I read RFC 1215 and it does mention to use the value of sysObjectID istead of 'snmp(1.3.6.1.2.1.11)' for generic traps.
And I also checked and found out some agents do set their own enterprise oid but it seems that it should be the value of sysObjectID as it is mentioned in RFC. 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 On Fri, 16 Jul 2004 10:57:40 -0700 "David T. Perkins" <[EMAIL PROTECTED]> san wrote: > HI, > > This is a frequently asked question, > and I believe is is well covered with the correct answer in the FAQ > for the SNMP News group (comp.protocols.snmp), and the book > "Understanding SNMP MIBs". > > For the so called "generic traps" (which there are EXACTLY 6), > the value returned in the enterprise field of SNMPv1 traps > is the OID value that is returned as the value for scalar > object sysObjectID. This is defined in RFC 1215. > > At 11:41 PM 7/16/2004 +1000, Andrew Hood wrote: > >Norio Nakamoto wrote: > >>Sorry if this sounds a obvious question but what should be set in > >>enterpise OID in generic traps (i.e. traps with generic type other > >>than '6')? > >>It should be 'snmp(1.3.6.1.2.1.11)' or the same OID returned by sysObjectID or it > >>may be agent dependent? > > > >It can be any OID. Many agents send generic traps with their own enterprise OID. > >Cisco seems to use the OID for the device, so it looks like you get as many OIDs as > >you have device types. > > 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 ,,, (o o) +------------------oOO--(_)--OOo----------------+ | Norio Nakamoto | | 2nd Development Dept., IP Systems Division | | Fujitsu Network Technologies Ltd. | | e-mail : [EMAIL PROTECTED] | | Ext. : 7830-4237 Fax : 7830-4996 | +-----------------------------------------------+ ------------------------------------------------------- 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