[SNMP4J] localEngineID and enterpriseID

2012-11-19 Thread Binh Le
Greetings, I notice that the enterpriseID is hardcoded with the value 4976 in org/snmp4j/mp/MPv3.java and the localEngineID is also created based on that enterpriseID plus the host's IP address. What can I do in order to create the localEngineID in a different formula? I was thinking of subclass

[SNMP4J] Fwd: handling IP address formats

2012-01-26 Thread Binh Le
If an IP address is defined based on InetAddressType/InetAddress TC, then the OctetString in byte format (aka C0:A8:01:23) is the correct return for an IPv4 address. I believe that most - if not all - Cisco's routers and switches use InetAddress to express the IP addresses. For the case of

Re: [SNMP4J] Remove entry in snmpCommunityTable does not actually remove the entry?

2012-01-11 Thread Binh Le
. The Community MIB only provides mapping (coexistance) information. If the Community MIB implementation is not set as coexistance information provider, the community name is directly used as security name by SNMP4J-Agent. Best regards, Frank Am 06.01.2012 01:05, schrieb Binh Le: Hi all

Re: [SNMP4J] Remove entry in snmpCommunityTable does not actually remove the entry?

2012-01-06 Thread Binh Le
Frank, can you help with this question? I am running the Agent 1.4 by the way. Thanks, Binh On Thu, Jan 5, 2012 at 4:05 PM, Binh Le lpb...@gmail.com wrote: Hi all, I have an entry in snmpCommunityTable with snmpCommunityName secret. After removing the entry by setting the corresponding

[SNMP4J] Remove entry in snmpCommunityTable does not actually remove the entry?

2012-01-05 Thread Binh Le
Hi all, I have an entry in snmpCommunityTable with snmpCommunityName secret. After removing the entry by setting the corresponding snmpCommunityStatus to 'destroy', it's expect that I should not be able to mibwalk using the community string secret any more. However, it still works as seen below:

[SNMP4J] SampleAgent/AgentConfigManager with persistent data ?

2011-11-02 Thread Binh Le
Greetings, I tried to run the SampleAgent by both indicating -c persistentConfig file and runtime and hardcoded a value for configFile in SampleAgent.java, but whatever configuration I applied to the agent during its life were not stored and I didn't see that persistent file created after

[SNMP4J] Does SNMP4J support SNMPv2 context mapping ?

2011-06-27 Thread Binh Le
Hi, Several vendors such as Cisco provide the following mechanism to access their devices: snmpwalk -v 2c -c public device IP address ifEntry will list all entries of ifTable in the device. snmpwalk -v 2c -c public@vlan-10 device IP address ifEntry will list entries of interfaces associated

Re: [SNMP4J] How to hook up a trap trigger from application?

2011-06-07 Thread Binh Le
/agent/doc/org/snmp4j/agent/AgentConfigManager.html#getNotificationOriginator() Best regards, Frank On 02.06.2011 23:24, Binh Le wrote: Greetings, I'm new to SNMP4J so forgive me if I'm taking a foreign language as example :). In NetSNMP/C for example, we can just define a function

[SNMP4J] How to hook up a trap trigger from application?

2011-06-02 Thread Binh Le
Greetings, I'm new to SNMP4J so forgive me if I'm taking a foreign language as example :). In NetSNMP/C for example, we can just define a function send_xyz_trap(int value1, int value2, ...) and call the function from wherever a trap is need to be triggered. Can someone please help to tell