-
Notifications
You must be signed in to change notification settings - Fork 18
CDP Neighbours
barryo edited this page Jun 20, 2012
·
3 revisions
This tool allows you to select a device and have a list of its CDP neighbours presented including a diagram of port connections. It will also allow you to then select found neighbours to easily step through your network.
The following image should illustrate this (with apologies for the necessary smudging):
Some notes on the above:
- in this example, each switch is connected via a port channel with two links. LAGs are shown in red where as normal links would be black. Additionally, the port channel interface is detected and presented also.
- Clicking the blue Neighbours button in the neighbour information will do a CDP Neighbour query for that device.
- additional information such as platform and capabilities are also presented.
The code for this is actually really simple thanks to the Cisco/CDP
MIB of OSS_SNMP. All of the work is done via a single command:
$this->view->neighbours = $host->useCisco_CDP()->neighbours( true, $this->_options['cdp']['l2topology']['ignore'] );
See the neighboursAction()
function in controllers\CdpController.php
.