I define a trap in my mib followed the sample in snmptrap tutorial:
demotraps OBJECT IDENTIFIER ::= { cxblade2 4 }
demo-trap TRAP-TYPE STATUS current ENTERPRISE demotraps VARIABLES { bladeType } DESCRIPTION "This is just a demo" ::= 1
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"
and some error occur: s: Missing type/value for variable
in fact i really dont know the meaning of "host" and "localhost" in snmptrap tutorial:
snmptrap -v 1 -c public host TRAP-TEST-MIB::demotraps localhost 6 17 '' \
SNMPv2-MIB::sysLocation.0 s "Just here"
and what's meaning of '6'??
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
------------------------------------------------------- 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