Snmp output port

by 
 on 29-May-2009 02:03 AM.
  in  OEMs & Developers 
Hi,

I'm developing a Java application which does a snmp-get at fixed intervals to certain hosts. Now because of firewall restrictions I need to set the outgoing port as well. Is there a way to configure this so that the output ports aren't picked at random but from a predefined list?

Best regards,
Bart Lamboo
  • No status

Re: Snmp output port

by 
 on 29-May-2009 02:58 AM
Hi Bart Lamboo,

If you are using low-level API, you can use the method UDPProtocolOptions.setLocalPort(int), and set the UDPProtocolOptions object on SnmpSession.
If using high-level API, based on your requirement you can use the SnmpTarget or SnmpRequestServer constructor with port argument.
Hope this is clear.

Thanks,
Amarnath
Post Actions
Statistics
  • 1
     Replies
  • 259
     Views
  • 0
     Followers
Tags for the post
No tags available for this topic.
© 2009 Corp. All rights reserved. Trademarks | Privacy Policy | Site Map | Contact Us | Careers

Edit Link Delete Link

Edit Link Delete Link

LoadingImage