Bluehost.com Web Hosting $6.95

Re: send_enterprise_trap_vars and sender Enterprise OID

This is a discussion on Re: send_enterprise_trap_vars and sender Enterprise OID within the SNMP Users forums, part of the Networking and Network Related category; On Thu, 2005-11-17 at 17:19 +0100, Gonin, Sebastien wrote: > I use send_enterprise_trap_vars this way: > > ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-30-2005
Dave Shield
 
Posts: n/a
Default Re: send_enterprise_trap_vars and sender Enterprise OID

On Thu, 2005-11-17 at 17:19 +0100, Gonin, Sebastien wrote:

> I use send_enterprise_trap_vars this way:
>
> send_enterprise_trap_vars ( SNMP_TRAP_ENTERPRISESPECIFIC,
> P_TrapId, G_openCallOID,
> openCall_oid_len,L_ptrVarBind);
>
> where
> SNMP_TRAP_ENTERPRISESPECIFIC = 6
> P_TrapId = 9000344
> G_openCallOID = oid openCall_oid[] = { 1,3,6,1,4,1,11,2,29,2 };



I'm not sure why you're passing "G_openCallOID" rather than
using 'openCall_oid' directly, but that looks correct to me.



> - Is it normal to get Enterprise field value set as
> 1.3.6.1.4.1.8072.3.2.10 instead of enterprises.11.2.29.2
> (as I would like it to be) ?


No.
I've just tried using 'send_enterprise_trap_vars' with an
explicit OID parameter, and it sends traps with the
specified enterprise field - as expected.


> - Is there another API (other than send_enterprise_trap_vars)


No - you are using the correct API.
The problem lies elsewhere.


The first thing to check is what the trap generating
routines are actually receiving. Try running the agent
with the debug flag "-Dtrap"

What does the agent log when you try to send this trap?





> - And with this potential other API, would it be possible to get rid of
> the two parameters below in the traps I receive ?

[sysUpTime.0 and snmpTrapOID.0]

Those are part of the standard definition of an SNMPv2-style trap,
so would always be included with SNMPv2 (or SNMPv3) notifications,
as Wes says.

But your output seems to indicate that you're using SNMPv1 traps,
where this information is held in the trap header fields. So I
wouldn't expect to see these as varbinds as well.

Are you generating these traps directly from the main SNMP agent,
or are they coming from an AgentX subagent? What version of the
Net-SNMP agent code are you using?

Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:02 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0