From: "chinmay bhat" <[EMAIL PROTECTED]>
To: net-snmp-users@lists.sourceforge.net
Subject: Re: TRAP Newbies
Date: Fri, 10 Jun 2005 17:42:58 +0530



From: "chinmay bhat" <[EMAIL PROTECTED]>
To: net-snmp-users@lists.sourceforge.net
Subject: Re: TRAP Newbies
Date: Fri, 10 Jun 2005 15:05:52 +0530



From: Robert Story <[EMAIL PROTECTED]>
Reply-To: net-snmp-users@lists.sourceforge.net
To: "chinmay bhat" <[EMAIL PROTECTED]>
CC: net-snmp-users@lists.sourceforge.net
Subject: Re: TRAP Newbies
Date: Thu, 9 Jun 2005 18:17:42 -0400

On Thu, 09 Jun 2005 17:17:08 +0530 chinmay wrote:
CB> >Have you tried using mib2c with mib2c.notify.conf?
CB>
CB> If i compile it using the mib2c.notify.conf then only one mibnode.h file is
CB> generated. What happnened to mibnode.c file?
CB> is anything wrong or is it correct and i am doing something wrong?

Hmm... you ran mib2c on the top level node in the mib, right? What release are
you using?

one of my trap is

ApplicationNotFoundNotification TRAP-TYPE
   ENTERPRISE commonEventGrp
   VARIABLES
   {
    NodeId,         //All these are deifned..
    ConfigEventId,
    ConfigEventType,
    currentTime,
    ConfigEventTrendIndication,
    EvtAdditionalText
   }
   DESCRIPTION "The application not found trap is sent by the agent
           when it is detected that the application is not
           present at the startup"
   ::= 3

Is this not currect?when i compile the mib with mib2c.scalar.conf gives both .c and .h files..

the netsnmp version i am using is,
NET-SNMP version:  5.0.6
Linux pclin84 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux


Regards
Chin




Well, the obvious thing that springs out from that
is that this MIB is defined using SMIv1.
All of the testing of mib2c.notify.conf was done
using SMIv2 MIBs, and NOTIFICATION-TYPE definitions.
Is there any reason why you're still using SMIv1?
It was replaced by SMIv2 over six years ago!
Dave
No, no real reason to use v1, but still assuming that , i use the same v1 mib, what should be the next step.How do i compile the mib file(I mean the which config file?)
Can i use mib2c.scalar.conf?

Reagards
Chin


It might be a syntax problem with the mib. Have you run smilint on the mib?


I ran the smilint on my mib and it showed no errors, I changed my mib to SMIv2 and again tried compiling it with the mib2c.notify.conf still same problem, generates only .h file.

by the way the mib2c.notify.conf was not in /usr/share/snmp/ it was in /usr/local/share/snmp/ i hope that is fine..

Even the .h file generated by the copiler is not complete

/*
* Note: this file originally auto-generated by mib2c using
*        : mib2c.notify.conf,v 5.2 2003/06/26 09:27:41 dts12 Exp $
*/
#ifndef XXXXXXXXXXXXXXXX_H
#define XXXXXXXXXXXXXXXX_H

/*
* function declarations
*/
@ foreach notifications @ int send__trap(void);


There should have been a #endif here right?

You think there is some problem with the mib2c.notify.conf file ??

Or any other guesses ?


regards
Chin


--
NOTE: messages sent directly to me, instead of the lists, will be deleted
      unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different.


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
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/listinfo/net-snmp-users

_________________________________________________________________
Adore Arshad Warsi? http://server1.msn.co.in/sp05/iifa/ Think he is the funniest?



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
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/listinfo/net-snmp-users

_________________________________________________________________
Millions of marriage proposals. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Find your match on BharatMatrimony.com



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
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/listinfo/net-snmp-users

_________________________________________________________________
MSN Careers! http://www.timesjobs.com/MSN/ Sign up now!



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
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/listinfo/net-snmp-users

Reply via email to