[ First - *please* don't mail me privately, without copying
     any responses to the mailing list.  I don't have the time
     or inclination to offer private, unpaid, SNMP consultancy.
     Keep discussions to the list, where others can both learn
     and offer advice.  Thanks.   ]



2009/9/2 Suresh, Rahul (NSN - IN/Bangalore) <[email protected]>:
> Hi,
> Thanks a lot.
> I concentrated on what you said
> And these are the changes that I made
> And this is my new mib file
>
> NOTIFICATION-TEST-MIB DEFINITIONS ::= BEGIN
>
> IMPORTS
>        netSnmpPlaypen                       FROM NET-SNMP-MIB
>        OBJECT-TYPE, NOTIFICATION-TYPE,
>        MODULE-IDENTITY                       FROM SNMPv2-SMI
>        MODULE-COMPLIANCE, OBJECT-GROUP       FROM SNMPv2-CONF;
> demonotifs OBJECT IDENTIFIER ::= { netSnmpPlaypen 4}
> demoobj    OBJECT IDENTIFIER ::= { demonotifs 0 }
> demonotif NOTIFICATION-TYPE
>        STATUS current
>        OBJECTS { nsnStatusPort }
>        DESCRIPTION "Just a test notification"
>        ::= { demoobj 17 }
>
> END
> After coping this in the mibs directory
> I exported the mib and mibdirectory
> Ie MIBS=+NOTIFICATION-TEST-MIB
>   export MIBS
>
> MIBDIRS=/home/mydir/mibs:/etc/sma/snmp/mibs:/export/home/mavohra/share/s
> nmp/mibs
>   export MIBDIRS
> And ran
> mib2c -c mib2c.notify.conf demonotifs
> Still I'm getting the same problem.
> I also tried export MIBS=ALL
>
>
> mib2c -c mib2c.notify.conf demonotifs
> It is showing only the bottom two lines, nothing more.
> writing to demonotifs.h
> running indent on demonotifs.h

So it *is* creating a header file
(but isn't creating a code file)



> I have my mib2c.notify.conf in this directory
> /export/home/mavohra/share/snmp
> And in /etc/sma/snmp I had these list
> md-trapgen.conf,mib2c.conf,mibs,mib2c.array-user.conf,mib2c.create-datas
> et.conf
> ,mib2c.old-api.conf,snmpconf-data,mib2c.column_defines.conf,mib2c.int_wa
> tch.conf
> ,mib2c.scalar.conf,snmpd.conf,mib2c.column_enums.conf,mib2c.iterate.conf
> ,mib2c.vartypes.conf,snmpd.conf.org
>
>  mib2c.notif.conf WAS NOT PRESENT IN /etc/sma/snmp .So I copied
> mib2c.notif.conf from /export/home/mavohra/share/snmp to /etc/sma/snmp.I
> don't think this is relevant but I thought I will specify every step
> that I did.

It looks as if you are mixing different versions of the package.

Where is the mib2c script that you are running?
What version is this?   (There should be an $Id: line early in the file)

How does this compare with the version under /export/home/mavohra ?

Dave

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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

Reply via email to