Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Rick Hodger  >  snmp-cdp  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example use of class
Class: snmp-cdp
Discover CISCO ports using CDP with SNMP
Author: By
Last change:
Date: 2007-01-10 13:52
Size: 253 bytes
 

Contents

Class file image Download
<?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);

?>