<?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); ?>