I'm working on a Java application that collects various bits of information on network devices. All these devices are behind a network bastion, and I use JSch to create TCP tunnels to the remote devices on demand. This works well for protocols like TL1 that are TCP based. However I do find myself needing to collect SNMP data as well.
The bastion server I have access to is rather old and limited, and I don't have a lot of options to build a SNMP Proxy over there. My question is if the community knows a clean, reliable way of programmaticly establishing tunnels as needed. I've looked at solutions such as this one, but as I have thousands to potentially tens of thousands of possible ip addresses, a manual one-off method is nonviable. If need be, I'll push for a server capable of doing a robust snmp proxy, but I need to know there is no other way before I fight that battle.