Hi everybody,
does anybody know, if it is possible to get a list of all routers and switches in my network, without knowing the IP-Address or the Hostname, with onePK?
I already searched for it in our community, but i didn't find anything.
P.S.: I am using the onePK Java SDK.
Kind regards
Florian
Solved! Go to Solution.
While you don't have to know any IP address a priori, you would have to know credentials for onePK AND onePK would need to be configured on all routers in your network.
The easiest approach assuming this were the case would be to try and connect to the default gateway of the host on which your onePK app is running. From there, as David said, use the Topology APIs to walk the network.
I've moved this forum post to the onePK community space so that developers following that space can reply.
As far as I know, no. I believe the closest thing would be to use the Topology class, but even that requires connecting to a known network element in order to return info about its neighbors. For sample code, you’ll find it in tutorials/topology/ TopologyTutorial.java.
Dave
While you don't have to know any IP address a priori, you would have to know credentials for onePK AND onePK would need to be configured on all routers in your network.
The easiest approach assuming this were the case would be to try and connect to the default gateway of the host on which your onePK app is running. From there, as David said, use the Topology APIs to walk the network.