Location: PHPKode > scripts > ONU > onu/test.php
<?php
/*
* @author hide@address.com
* Fernando Andre
* Onu test the class
*
**/

        include("olt.php");
        include("onu.php");

        $olt = new olt($_GET['ip']);
        $olt->setCommunity("public");
        //
        $in = $olt->GetOnuIndexByDescr($_GET['onumac']);
        if ( $in == false || $in == null ){
                print "It was not possible to find the ONU on the OLT. The ONU has not registered or is having dificulty registering.\n<br>\nMAC:&nbsp;".$olt->mac."<br>\n";
        }else{
                $onu = $olt->getOnubyIndex($in);
       			print_r($onu); 
		}


?>
Return current item: ONU