Unexpected snmpTrapEnterprise.0 varbind in snmpv1 trap?

Juan Carlos Franzoy <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAJi7zb5cmiOzG+nW-_VbeRZii-rZj3y9-_VXJfagE0N7MLqTow@mail.gmail.com>
Hello.

First of all, thank for reading my question. I hope somebody can help me.

I've configured a trapsink in snmpd.conf. As long as I understand, trapsink
instructs snmpd to send snmpv1 traps.

Then from an agentx connected subagent I send a trap:

    send_enterprise_trap_vars( SNMP_TRAP_ENTERPRISESPECIFIC, 44,
&enterprise, enterprise_size, myvars );

With a sniffer I can see a trap with two variables bind, one is mine, I mean
it was in 'myvars'; the other variable is SNMPv2-MIB::snmpTrapEnterprise.0.

Surprisingly, if I compile the subagent with version 5.0.8 libraries, the
extra variable (SNMPv2-MIB::snmpTrapEnterprise.0) is not sent.

The questions are:
  - is this variable supposed to be sent in an snmpv1 trap?
  - what can I do to ask snmpd to avoid sending it?

Thanks in advance

  Juan Carlos Franzoy
Licenciado en Sistemas

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev

_______________________________________________
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.