[SNMP4J] RE: SNMP4J Digest, Vol 34, Issue 10
Shanmugam Vairavan
shanmugam.vairavan at webmethods.com
Tue Nov 21 16:07:39 CET 2006
Hi
Iam also facing the same problem.
If I put everything on a thread and at some point I call the running
thread wait() it seems the snmp object does not receive anything!
Any idea?
Thanks
Shanmugam.VE
-----Original Message-----
From: snmp4j-bounces at agentpp.org [mailto:snmp4j-bounces at agentpp.org] On
Behalf Of snmp4j-request at agentpp.org
Sent: Wednesday, November 15, 2006 7:50 PM
To: snmp4j at agentpp.org
Subject: SNMP4J Digest, Vol 34, Issue 10
Send SNMP4J mailing list submissions to
snmp4j at agentpp.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.agentpp.org/mailman/listinfo/snmp4j
or, via email, send a message with subject or body 'help' to
snmp4j-request at agentpp.org
You can reach the person managing the list at
snmp4j-owner at agentpp.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of SNMP4J digest..."
Today's Topics:
1. Snmp instance Threading (Paris Apostolopoulos)
2. Re: Address type and parse method (Frank Fock)
3. dynamic table instrumentation (Arnoud Zwemmer)
----------------------------------------------------------------------
Message: 1
Date: Tue, 14 Nov 2006 17:03:57 +0200
From: Paris Apostolopoulos <papo at antcor.com>
Subject: [SNMP4J] Snmp instance Threading
To: snmp4j at agentpp.org
Message-ID: <4559DADD.4000305 at antcor.com>
Content-Type: text/plain; charset="utf-8"
Hi again and I am sorry for my multiple questions!
I am trying to understand the internal threading mechanism of the Snmp
mechanism. I want to make an SNMP object to send multiple get requests
(using the same instace- for loop) and the asynchronously wait for the
replies. How can I make the whole thing last for a certain period
I mean while sending the snmp object receives the requests I want to
keep it alive for another 5 seconds. So ..I have 5 seconds to send my
commands and if I complete this task early ..wait.
If I put everytjing on a thread and at some point I call the running
thread wait() it seems the snmp object does not receive anything!
Any tips?
Thanks
------------------------------
Message: 2
Date: Tue, 14 Nov 2006 23:12:25 +0100
From: Frank Fock <fock at agentpp.com>
Subject: Re: [SNMP4J] Address type and parse method
To: Marco.Bresciani at alcatel.it
Cc: snmp4j at agentpp.org
Message-ID: <455A3F49.2090106 at agentpp.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
OK, I have added
public static final int DEFAULT_COMMAND_RESPONDER_PORT = 161;
public static final int DEFAULT_NOTIFICATION_RECEIVER_PORT = 162;
to SnmpConstants.java.
Best regards,
Frank
Marco.Bresciani at alcatel.it wrote:
> Hello again,
> another interesting constant to add could be the default SNMP port 161.
>
> bye,
>
> Marco
>
>
>
>
>
> Frank Fock <fock at agentpp.com>
> 03/11/2006 23.21
>
> To: Marco BRESCIANI/IT/ALCATEL at ALCATEL
> cc: snmp4j at agentpp.org
> Subject: Re: [SNMP4J] Address type and parse method
>
>
> Hello Marco,
>
> Good point. In version 1.8 the following constants will be part
> of GenericAddress:
>
> /**
> * Default address type identifier for an UpdAddress.
> */
> public static final String TYPE_UDP = "udp";
> /**
> * Default address type identifier for a TcpAddress.
> */
> public static final String TYPE_TCP = "tcp";
> /**
> * Default address type identifier for an IpAddress.
> */
> public static final String TYPE_IP = "ip";
>
> Best regards,
> Frank
>
> Marco.Bresciani at alcatel.it wrote:
>> Hello,
>> with respect to this description
>>
>
http://www.snmp4j.org/doc/org/snmp4j/smi/GenericAddress.html#parse(java.lang
.String)
>
>> ... Does an enum or a set of constants exists in order to have a
> reference
>> to allowed types for address?
>>
>> I found the address.properties file checking inside the JAr file and I
> saw
>> the "udp", "tcp" and "ip" Strings but... there is a reference for
>> programmer? Can I use an enum or final static values? It's not very
>> "polite" to write "udp" hard-coded in the code... :-)
>>
>> Thank you.
>>
>> Ing. Marco Bresciani
>>
>
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
------------------------------
Message: 3
Date: Wed, 15 Nov 2006 12:30:45 +0100
From: "Arnoud Zwemmer" <arnoud.zwemmer at avinity.net>
Subject: [SNMP4J] dynamic table instrumentation
To: <snmp4j at agentpp.org>
Message-ID:
<86C8546094D47D4D8A99F459701C58C7094A90 at avmail.avinity.local>
Content-Type: text/plain; charset="us-ascii"
Hi,
I have some tables that I need to instrument dynamically when a request
from a manager is received to have the most up-to-date information. A
related example would be to exec an 'arp -a' to dynamically obtain the
ARP table. What is the appropriate way to do this in SNMP4J-Agent, for
the moment assuming that calling some external command like an 'arp -a'
is fast enough?
Can I do this at the moment a request is received (by overriding a
getValue() for example) or do I have to have a separate thread
monitoring the ARP table and creating and deleting rows in the table
accordingly?
Thanks!
Arnoud.
------------------------------
_______________________________________________
SNMP4J mailing list
SNMP4J at agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j
End of SNMP4J Digest, Vol 34, Issue 10
**************************************
More information about the SNMP4J
mailing list