java - SNMP4J: how to limit received trap by community string or at least know the community string of the trap? -
i wrote application based on snmp4j sending snmp requests , receiving traps. works fine couldn't find how set community string received traps or how see community string each received trap.
help highly appriciated
i'm afraid it's not true "community name".
the method "event.getsecurityname()" gives "securityname" of trap package. , set when config trap info on device.
the true "community name" used config device snmpv2 api. example, community of device "public", , can set snmpv2c trap info security name of "mypublic". "mypublic" calling event.getsecurityname() not "public".
java snmp trap snmp4j
No comments:
Post a Comment