Search code examples
network-programmingsnmppysnmpsnmp4j

cartography of an network


I want to realize a program that would look in the MIB of a Cisco equipment.

I have done research on the SNMP protocol (so I know that the equipment has what is called the agent or the server so I need a manager / client), OID, but I block enough on The program (a kind of batch to do in my opinion) to make the communication with the switch. And how to find the corresponding OIDs.

So the idea is to do a mapping of a network (cisco) from Of a central node and browse all the equipments, all this is based only on two protocols CDP (for the neighbors) and snmp For the interrogation.

Thanks in advance


Solution

  • There is a CISCO-CDP-MIB that contains all the information for topology discovery. This MIB has cdpCacheAddress and cdpCacheDevicePort tables that hold switch/router neighbors. So that is your starting point.