Mooli Tayer | 15 Sep 13:05 2014
Picon

Re: SNMP4J and OSGI

Whet version are you using? 

> I'm using BNDtools, i have added the bundle to the building path, however
> most of the functions does not exist.

> example:

> System . out . println ( "Trap Type = " + pdu. getType ( ) ) ;
> System . out . println ( "Variable Bindings = " + pdu. getVariableBindings (
> ) ) ;
> int pduType = pdu. getType ( ) ;
> if ( ( pduType != PDU. TRAP ) && ( pduType != PDU. V1TRAP ) && ( pduType !=
> PDU. REPORT )
> && ( pduType != PDU. RESPONSE ) )
> {
> pdu. setErrorIndex ( 0 ) ;
> pdu. setErrorStatus ( 0 ) ;
> pdu. setType ( PDU. RESPONSE ) ;
> StatusInformation statusInformation = new StatusInformation ( ) ;
> StateReference ref = cmdRespEvent. getStateReference ( ) ;

> I try to use PDU, but it does not have.. and i have imported import
> org.snmp4j.*;

> I have try to search for a example of SNMP4J trap or other without success..

> > Date: Mon, 15 Sep 2014 05:26:13 -0400
> > From: mtayer <at> redhat.com
> > To: x5rated <at> hotmail.com
> > CC: snmp4j <at> agentpp.org; osgi-dev <at> mail.osgi.org
(Continue reading)

daniel Trump | 12 Sep 18:05 2014
Picon

SNMP4J and OSGI

Hello I'm very new in this, 
I'm developing and SNMP application with trap and request(sending OID and receiving result data).
I have research in google for example but without success...
I'm able to create a SNMP Trap normal Java programming.. however I can't do it in OSGI..
I'm using the latest bundle a the normal commands are not there...
Does any one is working with iT or can anyone send me more information about SNMP with OSGI?thanks

 		 	   		  
_______________________________________________
SNMP4J mailing list
SNMP4J <at> agentpp.org
https://oosnmp.net/mailman/listinfo/snmp4j
Vince Zeng | 11 Sep 08:34 2014
Picon

Please Help - " maximum number of DatagramSockets reached "

Hi guys,

For SNMP4J when I tried to get / getNext from cisco or dell device I've got exception below after several times.

Exception: maximum number of DatagramSockets reached

Anybody can help? Thank you!

Best Regards

Vince Zeng
Software Dev Staff Engineer
Dell | Software Group, China
Office +86 756 3298769
#3rd floor, Ever Bright International Trade Center, South HaiBin Road, Zhuhai, China

_______________________________________________
SNMP4J mailing list
SNMP4J <at> agentpp.org
https://oosnmp.net/mailman/listinfo/snmp4j
László Leonard | 1 Sep 08:52 2014
Picon

SNMP4j duplicate registration exception

Hello,

I have some dificulties registering my managed objects to MOServer.
The problem occured to me when I try to register a managed objects under an already registered managed object.
I send you the problematic code below:

  <at> SuppressWarnings({ "rawtypes", "unchecked" })
 MOScalar myScalar = new MOScalar(new OID("1.3.6.1.4.1.5999.1.0"), MOAccessImpl.ACCESS_READ_ONLY,
new OctetString(
 "Hello"));
 ourOwnManagedScalarObjects.put(myScalar.getID().toString(), myScalar);
 try {
server.register(myScalar, new OctetString("1.3.6.1.4.1.5999"));
} catch (DuplicateRegistrationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
 myScalar = new MOScalar(new OID("1.3.6.1.4.1.5999.1.1.0"), MOAccessImpl.ACCESS_READ_ONLY, new OctetString(
 "HelloWorld"));
 ourOwnManagedScalarObjects.put(myScalar.getID().toString(), myScalar);
 try {
// the exception is thrown at this line
server.register(myScalar,  new OctetString("1.3.6.1.4.1.5999"));
} catch (DuplicateRegistrationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

Could you explain why I cannot register objects this way please?

(Continue reading)

Mooli Tayer | 31 Aug 15:37 2014
Picon

Re: sysUpTime units doc example.

Anything about this?

----- Original Message -----
> *******************************************************************************
> 
> Hi,
> 
> At the org.snmp4j[1] Package documentation There is the following
> example:
> 
> // sysUpTime
> long sysUpTime = (System.nanoTime() - startTime) / 10000;
> pdu.add(new VariableBinding(SnmpConstants.sysUpTime, new
> TimeTicks(sysUpTime)));
> 
> 
> Here the unites are 10^-9 / 10^5 = 10^-4 but according to docks[2]
> is seems[3] we need to devide by 10000000 to get 10^-2 (a 100th of a second)
> 
> Testing locally I saw that:
> (System.nanoTime() - nanoStart) / 10000000)
> gives:
> DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (2333) 0:00:23.33
> 
> For several seconds.
> 
> Please advise how this should be done and if there might be an error
> in the example.
> 
> 
(Continue reading)

Ilya Knyazhansky | 9 Aug 12:41 2014
Picon

Exception while retrieving prtChannelEntry oid 1.3.6.1.2.1.43.14.1.1 from RFC1759 (printer MIB) in SNM4j 2.2.5

Hello All,
When I try to use TableUtils to get the value of the oid  1.3.6.1.2.1.43.14.1.1   - I get exception:
exception=org.snmp4j.MessageException: Invalid first sub-identifier (must be 0, 1, or 2)
I use SNM4j version 2.2.5. Seems like a bug in BER encoding
 
Thanks,
Ilya
_______________________________________________
SNMP4J mailing list
SNMP4J <at> agentpp.org
https://oosnmp.net/mailman/listinfo/snmp4j
Frank Fock | 7 Aug 09:50 2014

MIB Designer 4.0, MIB Explorer 4.0 and SNMP4J-SMI-PRO 1.5.1

Dear AGENT++ Users,

New major releases of MIB Designer and MIB Explorer Lite/Pro have been 
released!
The new releases focus on improved usability and productivity as well as 
a further
improved parser which is now able to parse more flawed MIBs without 
bailing out
using the "lenient" compiler mode.
The SMI editor has now an error stripe for quick error location spotting.

Those compiler improvements are also available in version 1.5.1 of 
SNMP4J-SMI-PRO.

All new version now support parsing of SPPI PIB modules and with MIB 
Designer
you are also able to create those modules.

The new releases can be downloaded from https://agentpp.com

RELEASE NOTES

MIB Explorer 4.0
==============
* Added: Delta cell highlighting for Table View.
* Added: Incremental search capabilities for the MIB tree and for
   combo boxes and list of many dialogs.
* Added: Extracting SMI text from RFCs tool.
* Added: Structure of Policy Provisioning Information (SPPI) compiler
   and editing support as defined by RFC 3159.
(Continue reading)

Harsha H R | 23 Jul 09:22 2014

Re: SNMP4J Digest, Vol 90, Issue 15

Ok. Thanks Frank for helping me with analysis ! I have raised this concern with the agent developers.

Regards,
Harsha

-----Original Message-----
From: SNMP4J [mailto:snmp4j-bounces <at> agentpp.org] On Behalf Of snmp4j-request <at> agentpp.org
Sent: Tuesday, July 22, 2014 9:44 PM
To: snmp4j <at> agentpp.org
Subject: SNMP4J Digest, Vol 90, Issue 15

Send SNMP4J mailing list submissions to
	snmp4j <at> agentpp.org

To subscribe or unsubscribe via the World Wide Web, visit
	https://oosnmp.net/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. Re: SNMP4J Digest, Vol 90, Issue 13 (Frank Fock)

(Continue reading)

Prema Upot | 22 Jul 20:18 2014

renewSocketAfterException() binds to a specific address

Hi,

We initialize DefaultUdpTransportMapping using the default constructor and this makes sure the
listening port binds to "0.0.0.0" address enabling sending and receiving UDP packets on any interface.
But in renewSocketAfterException() the new socket is created using port and ipaddress as parameters and
this causes a problems in a PC that is part of multiple networks.
For example, we have a PC in 192.168.144.0 and 192.168.30.0 networks. After socket exception, the new
socket that is created binds to "192.168.144.<ip>:<port>" instead of "0.0.0.0:<port>" and because of
this we cannot communicate with 30.0 network any more.

Thanks,
Prema

_______________________________________________
SNMP4J mailing list
SNMP4J <at> agentpp.org
https://oosnmp.net/mailman/listinfo/snmp4j
Harsha H R | 22 Jul 17:51 2014

Re: SNMP4J Digest, Vol 90, Issue 13

Hi Frank,

I'm so sorry. I pasted the wrong dump. Below are the dumps:

Request

0000  00 14 6a 1c 83 05 00 25  64 a4 63 cc 08 00 45 00   ..j....% d.c...E.
0010  00 5f 2f 6a 00 00 80 11  00 00 c0 a8 60 90 c0 a8   ._/j.... ....`...
0020  23 f6 dd 97 00 a1 00 4b  06 34 30 41 02 01 01 04   #......K .40A....
0030  06 70 75 62 6c 69 63 a5  34 02 04 2a 8f ab bf 02   .public. 4..*....
0040  01 00 02 01 0a 30 26 30  11 06 0d 2b 06 01 04 01   .....0&0 ...+....
0050  ba 04 01 04 01 01 01 03  05 00 30 11 06 0d 2b 06   ........ ..0...+.
0060  01 04 01 ba 04 01 04 01  01 01 04 05 00            ........ .....   

Response

0000  00 25 64 a4 63 cc 00 14  6a 1c 83 05 08 00 45 00   .%d.c... j.....E.
0010  01 89 40 0f 40 00 7d 11  b6 7d c0 a8 23 f6 c0 a8   .. <at> . <at> .}. .}..#...
0020  60 90 00 a1 dd 97 01 75  68 df 30 82 01 69 02 01   `......u h.0..i..
0030  01 04 06 70 75 62 6c 69  63 a2 82 01 5a 02 04 2a   ...publi c...Z..*
0040  8f ab bf 02 01 00 02 01  00 30 82 01 4a 30 82 00   ........ .0..J0..
0050  14 06 0f 2b 06 01 04 01  ba 04 01 04 01 01 01 03   ...+.... ........
0060  01 01 02 01 01 30 82 00  14 06 0f 2b 06 01 04 01   .....0.. ...+....
0070  ba 04 01 04 01 01 01 03  01 02 02 01 00 30 82 00   ........ .....0..
0080  14 06 0f 2b 06 01 04 01  ba 04 01 04 01 01 01 04   ...+.... ........
0090  01 01 02 01 1e 30 82 00  14 06 0f 2b 06 01 04 01   .....0.. ...+....
00a0  ba 04 01 04 01 01 01 04  01 02 02 01 1e 30 82 00   ........ .....0..
00b0  14 06 0f 2b 06 01 04 01  ba 04 01 04 01 01 01 05   ...+.... ........
00c0  01 01 02 01 01 30 82 00  14 06 0f 2b 06 01 04 01   .....0.. ...+....
00d0  ba 04 01 04 01 01 01 05  01 02 02 01 01 30 82 00   ........ .....0..
(Continue reading)

Harsha H R | 22 Jul 13:39 2014

Re: SNMP4J Digest, Vol 90, Issue 12

Hi Frank,

Below are the hex dumps:

Get-Bulk Request 

0000  00 14 6a 1c 83 05 00 25  64 a4 63 cc 08 00 45 00   ..j....% d.c...E.
0010  00 63 2d 1f 00 00 80 11  00 00 c0 a8 60 90 c0 a8   .c-..... ....`...
0020  23 f5 dd 92 00 a1 00 4f  06 37 30 45 02 01 01 04   #......O .70E....
0030  06 70 75 62 6c 69 63 a5  38 02 04 30 cb 6e 1f 02   .public. 8..0.n..
0040  01 00 02 01 0a 30 2a 30  13 06 0f 2b 06 01 04 01   .....0*0 ...+....
0050  ba 04 01 02 01 01 01 03  01 0a 05 00 30 13 06 0f   ........ ....0...
0060  2b 06 01 04 01 ba 04 01  02 01 01 01 04 01 0a 05   +....... ........
0070  00                                                 .                

response

0000  00 25 64 a4 63 cc 00 14  6a 1c 83 05 08 00 45 00   .%d.c... j.....E.
0010  01 f7 3d 29 00 00 fc 11  79 f6 c0 a8 23 f5 c0 a8   ..=).... y...#...
0020  60 90 00 a1 dd 92 01 e3  a0 cc 30 82 01 d7 02 01   `....... ..0.....
0030  01 04 06 70 75 62 6c 69  63 a2 82 01 c8 02 04 30   ...publi c......0
0040  cb 6e 1f 02 01 00 02 01  00 30 82 01 b8 30 14 06   .n...... .0...0..
0050  0f 2b 06 01 04 01 ba 04  01 02 01 01 01 03 01 0b   .+...... ........
0060  42 01 00 30 14 06 0f 2b  06 01 04 01 ba 04 01 02   B..0...+ ........
0070  01 01 01 04 01 0b 02 01  24 30 14 06 0f 2b 06 01   ........ $0...+..
0080  04 01 ba 04 01 02 01 01  01 03 01 0c 42 01 03 30   ........ ....B..0
0090  14 06 0f 2b 06 01 04 01  ba 04 01 02 01 01 01 04   ...+.... ........
00a0  01 0c 02 01 24 30 14 06  0f 2b 06 01 04 01 ba 04   ....$0.. .+......
00b0  01 02 01 01 01 04 01 01  02 01 24 30 14 06 0f 2b   ........ ..$0...+
00c0  06 01 04 01 ba 04 01 02  01 01 01 05 01 01 02 01   ........ ........
(Continue reading)


Gmane