hi, 
I'm doing a project on net snmp and i'm new to this. 
i've implemented a snmp trap and notification mib . 
I used mib2c -c mib2c.notify.conf demonotifs on my node in the
notification mib. 
Now the problem is i'm only getting a .c file but not a .h 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} 
demo-notif NOTIFICATION-TYPE
STATUS current
OBJECTS { nsnStatusPort }
DESCRIPTION "Just a test notification"
::= { demonotifs 17 } 
END
and this is my trap mib 
TRAP-TEST-MIB DEFINITIONS ::= BEGIN 

IMPORTS
netSnmpPlaypen FROM NET-SNMP-MIB
OBJECT-TYPE, TRAP-TYPE,
MODULE-IDENTITY FROM SNMPv2-SMI
MODULE-COMPLIANCE, OBJECT-GROUP FROM SNMPv2-CONF;
demotraps OBJECT IDENTIFIER ::= { netSnmpPlaypen 3}
demo-trap TRAP-TYPE
STATUS current
ENTERPRISE demotraps
VARIABLES { nsnStatusPort }
DESCRIPTION "This is just a demo"
::= 17 
END
which configuration should i use in TRAP-TYPE . 
i.e when i say mib2c -c mib2c.notify.conf demotraps
should i use mib2c.notify.conf or is it possible for me to use
mib2c.scalar.conf. 
Is it possible for me to do the entire trap process using
mib2c.scalar.conf.
Regards
Rahul.T.Suresh
Email: [email protected]
Mobile: 9036417907
------------------------------------------------------------------------------
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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to