Register / Login
Win a copy of
Machine Learning Systems: Designs that scale
this week in the
Xamarin in Action: Creating native cross-platform mobile apps
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Sockets and Internet Protocols
snmp4j variable bindings
posted 7 years ago
I am trying to use snmp4j to send traps to a client.
I want to associate the bindings to the trap in a way that i can have a name for each value i'm passing along with the type of the value.
Previously i was doing this using an arraylist and appending the command to it.. which was being run by the process builder. The command looked like this:
command.add(mibName + "::" + "notificationID");
In this 'notificationID' is the name of the attribute.
'i' is the type i.e. integer value
and 'perfConseqNotificationRel.getPerfnotificationid().getId()' is the value i will b getting.
I'm trying to do the same with snmp4j, in the following way
pdu.add(new VariableBinding(oid, new OctetString("Notification Id value")));
But in the above, i am only able to bind the value of the variable to an OID, whereas I want to bind it to a name.
Can the above be done in snmp4j ??
I'm full of tinier men! And a tiny ad:
Rocket Oven Kickstarter - from the trailboss
Boost this thread!
java.net.SocketTimeoutException: Receive timed out
can the cause of memory leak be detected here?
Name Space Binding - String problem in 5.1.2
How to access Websphere environment variable ?