Brian Weaver | 6 Mar 2012 19:37
Picon

Apache Maven Checksum Issue

I'm using a nexus server to control access to the SNMP4j repo located at

https://server.oosnmp.net/dist/release/

We just started getting checksum errors for SNMP4j 2.0.3. Has anyone
else run into this issue? If I run the following commands I can verify
that the sums do not match.

 #  curl -O https://server.oosnmp.net/dist/release/org/snmp4j/snmp4j/2.0.3/snmp4j-2.0.3.jar
 #  curl -O https://server.oosnmp.net/dist/release/org/snmp4j/snmp4j/2.0.3/snmp4j-2.0.3.jar.md5
 #  curl -O https://server.oosnmp.net/dist/release/org/snmp4j/snmp4j/2.0.3/snmp4j-2.0.3.jar.sha1
 #  echo $(cat snmp4j-2.0.3.jar.md5 )
 881ef1ce63980b093d02629a57bcd095
 #  md5sum snmp4j-2.0.3.jar
 6e83615650fd8a3ed78057e44e583240  snmp4j-2.0.3.jar
 #  echo $(cat snmp4j-2.0.3.jar.sha1 )
 59f3dcc33f4d28a20a708c639033f1c4e7f37948
 #  sha1sum snmp4j-2.0.3.jar
 2a4a9e332433114fb4c73a6fe8dfef433162cf4c  snmp4j-2.0.3.jar

--

-- 

/* insert witty comment here */
BADENHOP Wim | 6 Mar 2012 08:11
Favicon

Trap Sequence

Hi,

A v2c trap starts looks like

SystemUpTime OID = system up time;
trap OID = trap identification;
OID parm1 = parameter 1;
...

Is this sequence garanteed or is it possible that the trap OID comes
before the SystemUptime OID?

Regards Wim

____
 
This message and any files transmitted with it are legally privileged and intended for the sole use of the
individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify
the sender by reply and delete the message and any attachments from your system. Any unauthorised use or
disclosure of the content of this message is strictly prohibited and may be unlawful.
 
Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL,
unless it is confirmed by appropriately signed hard copy.
 
Any views expressed in this message are those of the sender.
_______________________________________________
SNMP4J mailing list
SNMP4J <at> agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j
(Continue reading)

agenpro log4j | 3 Mar 2012 03:58
Picon

cannot find symbol Re: agenpro-mvn-task log4j error

In case anyone can easily see what i am doing wrong, i am getting
"cannot find symbol" using the agenpro-mvn-task\pom.xml :

...oosnmp\agenpro\Agent.java:[186,20] cannot find symbol
symbol : constructor
DefaultMOQuery(org.snmp4j.agent.DefaultMOContextScope,bool
ean,com.oosnmp.agenpro.Agent)

usually i thought the <dependencies> in pom.xml automate into class paths
when compiling the generated files with Agent.java, to resolve symbols from
jar files.

Are others getting the example pom.xml (with version fixes) working?  Or is
it easier to try a different way to build an Agent from files generated
from agenpro3?

On Wed, Feb 29, 2012 at 9:00 AM, agenpro log4j <agenprolog4j@...>wrote:

> I guess I am just too new to maven...but it turns out that the
> -DgeneratePom=true
> for the manual install step of agenpro-plugin does not figure out its
> dependencies.
> So I jar -xf agenpro-plugin.jar and found some maven dependencies in
> plugin.xml that i copied and pasted into the agenpro-plugin-3.0.5.pom.
> After fixing the agenpro  dependency to version 3.1.2, I am now
> getting father down the build.
>
> So, does the instructions in AgenProManual.pdf need updating, or was i
> reading it wrong?  In general, is there a better way to fix
> agenpro-plugin dependency issues?
(Continue reading)

HAAS Christian | 2 Mar 2012 08:26
Picon
Favicon

Filling a shared table with two index columns from several processes not working

Hello there!

I have one of those "Hardly an understanding of the underlying system, but have to make it work" cases and I
hope to find the right pointers here.

Setup and Goal:
We are using SNMP4J together with Net-SNMP for our processes. On a host with Net-SNMP, we have several of our
processes running and each of them shall report some internal statistics (e.g. amount of threads) into a
shared table.

This table has an index consisting of two columns: The unique process (component) ID and the statistics
(entry) ID.
The idea is to access such a statistics row by using an OID  table.componentId.entryId

Several of the entry IDs are reported by more than one process, some are reported by only a selected few -
still, each in his own row though. All rows of ones own componentId are handled by the respective process.
For example:
table.componentA.numberOfThreads = ...
table.componentA.packetsReceived = ...
table.componentB.numberOfThreads = ...
table.componentB.packetsReceved = ...
table.componentB.numberOfSessions = ...

The Problem(s):
Filling in the expected values for the index data, each process can add at most one row. (Typically, only one
row would show up as for second problem)
Filling a unique 'counter' value into the componentId lets the processes add specific entries only once
(e.g. only one is to report numberOfThreads; The first process to register reports all his entries, any
further reports only those entryIds not yet used)
Filling unique counters for both index fields, all processes can add all data.
(Continue reading)

BADENHOP Wim | 28 Feb 2012 14:32
Favicon

MultiThreadedMessageDispatcher

Hi,

Can the  MultiThreadedMessageDispatcher class also be used for the
reception of request-responses? And if so, where can I find examples?

Wim

____
 
This message and any files transmitted with it are legally privileged and intended for the sole use of the
individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify
the sender by reply and delete the message and any attachments from your system. Any unauthorised use or
disclosure of the content of this message is strictly prohibited and may be unlawful.
 
Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL,
unless it is confirmed by appropriately signed hard copy.
 
Any views expressed in this message are those of the sender.
_______________________________________________
SNMP4J mailing list
SNMP4J <at> agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j
Jesse Woo | 20 Feb 2012 14:10

AgentX shared table indexes problem

I have a MIB contains two tables, main table peerTable and its child table statTable.

Each row in peerTable represents one session, and each row of statTable is one statistic of a session. Hence
the relationship of peerTable and statTable is one-to-many.

I have many sessions and want the two tables shared across sessions, and I want the tree is built like this,

Say session 10 has 3 statistics

peerIndex.10 = 10 # represents session 10

statIndex.10.1 = 1 # represents 1st stat of session 10
statIndex.10.2 = 2 # represents 1st stat of session 10
statIndex.10.3 = 3 # represents 1st stat of session 10

I have followed sample AgentppTestMib.java and created the two tables as DefaultAgentXSharedMOTable.

The peerTable works ok but I can't add any rows to statTable because master agent returned error code 259
(AGENTX_INDEX_ALREADY_ALLOCATED) when allocating index for statTable.

Seems master can't allocate combined index if one of them is already allocated. For example, peerIndex 10
is created for peerTable, and I want to allocate index (peerIndx, statIndex) (10,1) for statTable and
master rejects it as the 10 is already allocated.

My question is:

Is it AgentX API bug? If not, is it my MIB not compatible with AgentX? If so, how to implement shared table &
child tables?

Below are my codes and MIB:
(Continue reading)

Jesse Woo | 14 Feb 2012 19:49

How to register sub-agents using AgentX APIs

Hi Guys,

We are evaluating the AgnetX APIs and much appreciated if you can advise.

We need to develop multiple sub-agents, and want to register them on master agent in a MIB table, i.e. each
row represents a sub-agent, and each row contains several objects, and the get/set on objects will
trigger actions on sub-agent.

Is this the standard way registering sub-agents? If not, could you advise the best solution and show us some
examples if possible?

Regards,
Jesse
Cerillion Technologies Limited
Office. +44 20 7927 6197
Web. www.cerillion.com
Addr. 125 Shaftsbury Avenue, London, WC2H 8AD, UK
Jesse Woo | 14 Feb 2012 19:40

AgentX APIs

Hi Guys,

We are evaluating the AgnetX APIs and much appreciated if you can answer the following questions.

Does it support TCP, and will it work with Linux snmpd daemon?

If possible, could you show us some examples?
Regards,
Jesse
Cerillion Technologies Limited
Office. +44 20 7927 6197
Web. www.cerillion.com
Addr. 125 Shaftsbury Avenue, London, WC2H 8AD, UK
Tuan Anh Nguyen | 13 Feb 2012 05:23
Picon

Asynchronous sending request issue

Hi guys,

I am writing a module which function is to discover the snmp device. I
followed the example at SNMP class to send an asynchronous request to
broadcast address. But i don't know how to check if the asynchronous
sending finished. Up to now, i implemented my module by giving it 5 second
to each subnet in class C,B.

Thank in advance!

--

-- 
Nguyễn Tuấn Anh
Khoa Mạng máy tính và truyền thông - trường Đại học Công Nghệ Thông Tin
Email: tanh1989 <at> gmail.com
Mobile phone: 0934037678
_______________________________________________
SNMP4J mailing list
SNMP4J <at> agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j
gomathi kg | 2 Feb 2012 13:18
Picon

Sending traps from Snmp4j-agentx subagent to net-snmp master agent

Hi Snmp4jexperts,

I have configured net-snmp master agent and snm4j-agentx subagent
communication.

agentXSocket   tcp:localhost:705
agentXTimeout  5
agentXRetries  2

Ping event is working successfully between master and sub agent.
I wanted to know how to send the traps from subagent via master agent to
manager.

Thanks in advance.

Regards,
Gomathi.K
Binh Le | 26 Jan 2012 22:49
Picon

Fwd: handling IP address formats

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 192.168.1.34, you may want to check the corresponding
MIB definition of that object. If that's an InetAddress object, then
IMHO returning "xxx.xxx.xxx.xxx" is an incorrect development. If it's
a DisplayString/SnmpAdminString object, then it's a different story.

On Fri, Jan 20, 2012 at 12:33 AM, Chris Richmond
<crichmond@...> wrote:
> Hello,
>
> I am performing polling and one particular field  for EIGRP neighbors in
> cisco routers (.1.3.6.1.4.1.9.9.449.1.4.1.1.3)  returns ip addresses in
> a hex string format delimited by ":"...such as c0:A8:01:23. This was
> what I always got for devices I tested and I handled it like this in my
> code using the SNMP4j classes :
>
>            /// neighborAddressStat.getValue().toString()  = "c0:A8:01:23"
>
>                 OctetString os =
> OctetString.fromHexString(neighborAddressStat.getValue().toString());
>                 org.snmp4j.smi.Address snmp4jIpAddress = new
> org.snmp4j.smi.IpAddress(os.getValue());
>                 neighborAddress = snmp4jIpAddress.toString();
>
>
> where neighborAddress gives me a string "192.168.1.34"
(Continue reading)


Gmane