> I really dont know the meaning of "host" and "localhost" in > snmptrap tutorial:
'host' is where you're sending the trap *to*. 'localhosxt' is used to set the internal field that reports where the trap is being sent *from*. It's this second field that you're missing. Try comparing your command with the example: > > but i am failed to send this trap by using snmptrap: > snmptrap -v 1 -c public > -M ../share/snmp/mibs > 10.58.69.42 CXT-MIB-DEV::demotraps > ====> 6 1 '' > CXT-MIB-DEV::bladeType.0 s "test" vs > snmptrap -v 1 -c public > host TRAP-TEST-MIB::demotraps > ====> localhost 6 17 '' \ > SNMPv2-MIB::sysLocation.0 s "Just here" If you look at the marked line, you've missed out the 'localhost' parameter completely. This has confused the 'snmptrap' command so it has got out of sync. > and what's meaning of '6'?? Enterprise-specific trap. (As opposed to the "standard" traps, 0-5) One final comment: > I define a trap in my mib followed the sample in snmptrap tutorial: > demo-trap TRAP-TYPE I'd *strongly* recommend that you define MIBs using SMIv2. The older syntax is well out of date now, and the newer form is definitely preferable - even when using SNMPv1. Dave ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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