From tausifk at hotmail.com Wed Oct 4 15:53:19 2006 From: tausifk at hotmail.com (tausif) Date: Wed Oct 4 10:28:00 2006 Subject: [snmp] Auto-discovery Message-ID: I am trying to make application which automatically should discover all the devices in the LAN. I need to discover the devices based on 1. range of IPs 2. Subnet Mask 3 Default gateway. is there any way of doing the auto-discovery using westhak APIs? is there any sample example for the same? if not, is there any way of doing it? Actually i m kind of avoid doing PING first and then send SNMP request. There must be some other way right? Can I make use of DatagramPacket / DatagramSocket? if any one having sample code will be a great help thanks From jbers at bbn.com Wed Oct 4 10:51:29 2006 From: jbers at bbn.com (Josh Bers) Date: Wed Oct 4 14:51:59 2006 Subject: [snmp] Auto-discovery In-Reply-To: Message-ID: <000f01c6e7bc$348cabe0$010010ac@JBERS2> Yes, there is a way to do this for subnet mask (2) There is a special PDU that can be used just for this kind of application. It is called a multi-response PDU. It expects that many different hosts will respond to a single request and it accumulates the responses along with the source ip addresses. An observer will get updated each time that a response comes in and the timeout controls how long it waits for responses. The trick is to send it to a broadcast address, e.g., the network broadcast. So create a context with the network broadcast as the target IP address and then send a MultiResponsePdu on it. (needs latest stack 5.1). Josh Josh Bers Mobile Networking Systems BBN Technologies jbers@bbn.com ph. 617.873.4262 fax. 617.873.4523 www.bbn.com > -----Original Message----- > From: snmp-bounces@snmp.westhawk.co.uk > [mailto:snmp-bounces@snmp.westhawk.co.uk] On Behalf Of tausif > Sent: Wednesday, October 04, 2006 5:23 AM > To: List for discussion of the Westhawk SNMP stack > Subject: [snmp] Auto-discovery > > > > I am trying to make application which automatically should > discover all the devices in the LAN. I need to discover the > devices based on > > 1. range of IPs > 2. Subnet Mask > 3 Default gateway. > > is there any way of doing the auto-discovery using westhak > APIs? is there any sample example for the same? if not, is > there any way of doing it? Actually i m kind of avoid doing > PING first and then send SNMP request. There must be some > other way right? > > Can I make use of DatagramPacket / DatagramSocket? if any one > having sample code will be a great help > > thanks > _______________________________________________ > snmp mailing list > snmp@snmp.westhawk.co.uk > http://snmp.westhawk.co.uk/mailman/listinfo/snmp > From andy at riftware.com Wed Oct 4 14:23:34 2006 From: andy at riftware.com (Andrew Chandler) Date: Wed Oct 4 19:23:44 2006 Subject: [snmp] Auto-discovery In-Reply-To: <000f01c6e7bc$348cabe0$010010ac@JBERS2> Message-ID: <00b501c6e7e2$34282870$14b328c0@AChandlerV> Mind you I wouldn't recommend doing that on subnets larger than say a class C as the traffic you get back may cause issues temporarily to other network processes if you broadcast to larger subnets if they are dense in population. Also be aware that some snmp stacks or configurations will not send snmp responses when queried via the broadcast address. Most will but some will not - it depends how thorough you need to be. -----Original Message----- From: snmp-bounces@snmp.westhawk.co.uk [mailto:snmp-bounces@snmp.westhawk.co.uk] On Behalf Of Josh Bers Sent: Wednesday, October 04, 2006 8:51 AM To: 'List for discussion of the Westhawk SNMP stack' Subject: RE: [snmp] Auto-discovery Yes, there is a way to do this for subnet mask (2) There is a special PDU that can be used just for this kind of application. It is called a multi-response PDU. It expects that many different hosts will respond to a single request and it accumulates the responses along with the source ip addresses. An observer will get updated each time that a response comes in and the timeout controls how long it waits for responses. The trick is to send it to a broadcast address, e.g., the network broadcast. So create a context with the network broadcast as the target IP address and then send a MultiResponsePdu on it. (needs latest stack 5.1). Josh Josh Bers Mobile Networking Systems BBN Technologies jbers@bbn.com ph. 617.873.4262 fax. 617.873.4523 www.bbn.com > -----Original Message----- > From: snmp-bounces@snmp.westhawk.co.uk > [mailto:snmp-bounces@snmp.westhawk.co.uk] On Behalf Of tausif > Sent: Wednesday, October 04, 2006 5:23 AM > To: List for discussion of the Westhawk SNMP stack > Subject: [snmp] Auto-discovery > > > > I am trying to make application which automatically should discover > all the devices in the LAN. I need to discover the devices based on > > 1. range of IPs > 2. Subnet Mask > 3 Default gateway. > > is there any way of doing the auto-discovery using westhak APIs? is > there any sample example for the same? if not, is there any way of > doing it? Actually i m kind of avoid doing PING first and then send > SNMP request. There must be some other way right? > > Can I make use of DatagramPacket / DatagramSocket? if any one having > sample code will be a great help > > thanks > _______________________________________________ > snmp mailing list > snmp@snmp.westhawk.co.uk > http://snmp.westhawk.co.uk/mailman/listinfo/snmp > _______________________________________________ snmp mailing list snmp@snmp.westhawk.co.uk http://snmp.westhawk.co.uk/mailman/listinfo/snmp From parveen0702 at gmail.com Wed Oct 25 21:20:53 2006 From: parveen0702 at gmail.com (Parveen Garg) Date: Wed Oct 25 15:53:34 2006 Subject: [snmp] export classification Message-ID: Hi, We are planning to use the Westhawk's Java SNMP Stack 5.1 in one of our product. Has anyone used this product and done a export control classification on this snmp stack ?? Does this software includes any kind of encryption algorithm and if yes, what kind of algo. is used ?? regards, parveen From andy at riftware.com Wed Oct 25 14:37:56 2006 From: andy at riftware.com (Andrew Chandler) Date: Wed Oct 25 19:38:46 2006 Subject: [snmp] export classification In-Reply-To: Message-ID: <007501c6f864$b1a115e0$14b328c0@AChandlerV> Well first, the stack is open source and based outside the US already so I can't imagine the US could restrict it. Second crypto is only used if you use snmpv3 and it uses the Bouncy Castle opensource crypto library. The algorithms you can choose in that case are SHA or MD5 if I remember right - they are mandated by the SNMP v3 standard which is also an international standard so I don't think you are going to run into trouble. -----Original Message----- From: snmp-bounces@snmp.westhawk.co.uk [mailto:snmp-bounces@snmp.westhawk.co.uk] On Behalf Of Parveen Garg Sent: Wednesday, October 25, 2006 9:51 AM To: snmp@snmp.westhawk.co.uk Subject: [snmp] export classification Hi, We are planning to use the Westhawk's Java SNMP Stack 5.1 in one of our product. Has anyone used this product and done a export control classification on this snmp stack ?? Does this software includes any kind of encryption algorithm and if yes, what kind of algo. is used ?? regards, parveen _______________________________________________ snmp mailing list snmp@snmp.westhawk.co.uk http://snmp.westhawk.co.uk/mailman/listinfo/snmp