Bluehost.com Web Hosting $6.95

[snmptrapd] traphandle called twice

This is a discussion on [snmptrapd] traphandle called twice within the SNMP Users forums, part of the Networking and Network Related category; Hello all, I'm using snmptrapd for getting some snmp-inform messages from a Cisco router. The daemon calls a ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-30-2005
andre.heine@open-wwworks.de
 
Posts: n/a
Default [snmptrapd] traphandle called twice

Hello all,

I'm using snmptrapd for getting some snmp-inform messages from
a Cisco router.

The daemon calls a perl script. That works fine for me, but the
daemon calls that traphandle twice for one inform message.;(

The Cisco router send four messages(for one run!), and I need to
handle only two informs.

So I write the following to my /etc/snmptrad.conf:

#----------
traphandle CISCO-CALL-TRACKER-MIB::cctCallTerminateNotification
/usr/bin/perl /home/voodoo/perl/inform_handler.pl terminate
#----------

I've only one traphandle in my conf...

Here is a kpl. run from that router, I get this from
/var/log/snmptrapd.log:
------------------------
2005-08-30 NET-SNMP version 5.2.1 Started.

1)
SNMPv2-MIB::sysUpTime.0 =3D Timeticks: (1094643) 3:0=20
SNMPv2-MIB::snmpTrapOID.0 =3D OID:
CISCO-CALL-TRACKER-MIB::cctCallSetupNotification=20=20=20
2)
SNMPv2-MIB::sysUpTime.0 =3D Timeticks: (1094675) 3:0=20
SNMPv2-MIB::snmpTrapOID.0 =3D OID:
CISCO-CALL-TRACKER-MIB::cctCallTerminateNotification=20=20=20
3)
SNMPv2-MIB::sysUpTime.0 =3D Timeticks: (1096163) 3:0=20
SNMPv2-MIB::snmpTrapOID.0 =3D OID:
CISCO-CALL-TRACKER-MIB::cctCallSetupNotification=20=20=20
4)
SNMPv2-MIB::sysUpTime.0 =3D Timeticks: (1097627) 3:0=20
SNMPv2-MIB::snmpTrapOID.0 =3D OID:
CISCO-CALL-TRACKER-MIB::cctCallTerminateNotification=20=20=20
---------------

I got two messages with cctCallTerminateNotification and
two messages with cctCallSetupNotification.

Shouldn't call snmptrapd the traphandle only twice?

For this run the snmptrapd calls my handle four times;((

Can somone tell me why?

Any hints?

Greetings

andre

Mit freundlichen Gr=FCssen

Andre Heine



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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 05:37 PM.


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