[SNMP4J] v3 listen example
Frank Fock
fock at agentpp.com
Sat Jun 26 13:30:07 CEST 2004
Ian,
You can find examples in the usage help of the SNMP4J console
tool of v1.0.1 (which also fixes problems with SNMPv3 trap
sending):
Listen for unauthenticated SNMPv3 INFORMs and TRAPs and all v1/v2c TRAPs:
SNMP4J -u aSecurityName -Ol 0.0.0.0/162
Send an unauthenticated SNMPv3 notification (trap):
SNMP4J -p TRAP -v 3 -u aSecurityName 127.0.0.1/162
"1.3.6.1.2.1.1.3.0={t}0" \
"1.3.6.1.6.3.1.1.4.1.0={o}1.3.6.1.6.3.1.1.5.1" \
"1.3.6.1.2.1.1.1.0={s}System XYZ, Version N.M"
You can leave the first variable binding (sysUpTime.0) because the
SNMP4J tool will
automatically add it if it is not present.
Hope this helps.
Best regards,
Frank
lemar at canada.com wrote:
>I was wondering if someone could please send me an
>example of the way to start the SNMPRequest so that it
>can listen for TRAPS, in version 3.
>
>Ideally, I'm looking for the following:
>
>-Arguments for sending v3 TRAP through SNMPRequest
>-Arguments for receiving v3 TRAP through SNMPRequest
>
>Any help would be greatly appreciated.
>
>thanks,
>
>-Ian
>_______________________________________________
>SNMP4J mailing list
>SNMP4J at agentpp.org
>http://p15141779.pureserver.info/mailman/listinfo/snmp4j
>
>
>
More information about the SNMP4J
mailing list