PHP Classes

File: example.php

Recommend this page to a friend!
  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: 17 years ago
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);

?>