Location: PHPKode > scripts > snmp-cdp > snmp-cdp/example.php
<?php

include("snmp-cdp.class.php");

$dev = new snmp-cdp('device','public');

echo "This device is located at : ".$dev->location()."\n";

$ports = $dev->getports();
print_r($ports);

$cdp = $dev->explore_cdp($ports);
print_r($cdp);

?>
Return current item: snmp-cdp