snmp4j

What is a simple way to receive SNMP traps in Scala?

I'd love it if there is an awesome native Scala library for SNMP like there is Dispatch for HTTP but I can't find one. Is there one? Baring that, should I use a Java library like SNMP4J? What I want to do is so simple that it almost seems like overkill: I just want to listen on a given port for SNMP messages (which will always be in the ...

snmp-adaptor problem: why the packets of community is not conformed between snmp client and snmp agent

Now I configured snmp-adaptor of jboss community to get/send snmp trap. I modified the ReadCommunity attribute of jboss-service.xml. That is I set the password to get/send trap. And I found the new ReadCommunity really works. I will get snmp trap only when I used the new ReadCommunity to query. But when I capture the packet send between...

Getting started with SNMP4J

I need to make an agent in SNMP4J, but the documentation on how to get started is pretty poor. Does anyone have any experience with SNMP4J and could give me an idea on how to get started? Thanks. ...

Retrieving information from a switch via VLAN

On the turtorials of cisco information from switches are retrieved by using as public@VLANID as the community string. So that one can retrieve inforamtion specifically for a certain vlan. I am making a java program to retrieve information, and I would prefer avoiding reconnecting to the switch several times. Hence I would want to avoid u...

SNMP4j Trap Severity

How can I set a trap severity? Code below TransportMapping transport = new DefaultUdpTransportMapping(); Snmp snmp = new Snmp(transport); CommunityTarget localtarget = new CommunityTarget(); localtarget.setCommunity(new OctetString("public")); localtarget.setAddress(new UdpAddress(managerIpAdd + "/162")); localtarg...