stdClass Object ( [id] => 10.10.11.50 [location] => -1,2 [serial] => AMJ000189-0017 [wwnn] => 500308c0976eeb4a [fw_ver] => 4.70.02.07 [lun] => 0 [status] => 6 ) */ class CBlade { var $id; var $location; var $serial; var $wwnn; var $fw_ver; var $ccl; var $status; var $ports; function CBlade($id, $location, $serial, $wwnn, $fw_ver, $ccl, $status) { $this->id = $id; $this->location = $location; $this->serial = $serial; $this->wwnn = $wwnn; $this->fw_ver = $fw_ver; $this->lun = $ccl; $this->status = $status; $this->ports = array(); } }; class CBPort { var $id; var $bladeId; var $portNum; var $status; // var $maxSpeed; NOT BEING USED YET var $speed; var $loopId; var $frameSize; var $mode; var $connection; var $loopIdMode; var $speedAct; var $wwnn; function CBPort($id, $bladeId, $portNum, $status, $speed, $loopId, $frameSize, $mode, $connection, $loopIdMode, $speedAct, $wwnn) { $this->id = $id; $this->bladeId = $bladeId; $this->portNum = $portNum; $this->status = $status; // 0=ConfigWait, 1=LoopInit, 2=Login, 3=Ready, 4=LostSync // 5=Error, 6=Reinit, 7=NonPart, 8=Failed // $this->maxSpeed = $maxSpeed; // 0=Auto, 1=1Gb/s, 2=2Gb/s, 3=4Gb/s $this->speed = $speed; // 0=Auto, 1=1Gb/s, 2=2Gb/s, 3=4Gb/s $this->loopId = $loopId; $this->frameSize = $frameSize; // 1=512, 2=1024, 3=2048 $this->mode = $mode; // 1=PrivateTarget, 2=PrivateInitiator, 3=PrivateTarget&Initiator // 17(0x11)=PublicTarget, 18(0x12)=PublicInitiator, 19(0x13)=PublicTarget&Initiator $this->connection = $connection; // 0=LoopOnly, 1=P2POnly, 2=LoopPreferred, 3=P2PPreferred $this->loopIdMode = $loopIdMode; // 0=Soft, 1=Hard $this->speedAct = $speedAct; // 0=Auto, 1=1Gb/s, 2=2Gb/s, 4=4Gb/s $this->wwnn = $wwnn; } function dump() { error_log("* * * Port Dump -> ". print_r($this,true) ); } }; class CBHost { var $name; var $id; var $port; var $wwpn; var $type; var $bladeLoc; var $host_type; var $lun; function CBHost($name, $id, $bladeLoc, $port, $wwpn, $type, $host_type="", $lun="") { $this->name = $name; $this->id = $id; $this->bladeLoc = $bladeLoc; $this->port = $port; $this->wwpn = $wwpn; $this->type = $type; $this->host_type = $host_type; $this->serial = $lun; } }; class CBDevMap { var $lun; var $mapped; function CBDevMap( $aLun, $aMapped ) { $this->lun = $aLun; $this->mapped = $aMapped; } }; $_bLoadPorts = true; $IOB_bladeStatus = array("Unknown", "Not Ready", "Booting", "Auto Leveling", "Auto Leveling Complete", "Auto Level Failed", "Ready", "Powered Down" ); $IOB_speed = array(0=>'Auto', 1=>'1Gb/s', 2=>'2Gb/s', 4=>'4Gb/s'); $IOB_frameSize = array('512', '1024', '2048'); $IOB_connectionOrig= array('Loop','Point to Point', 'Loop Preferred'); $IOB_connection = array('Loop', 'Loop Preferred','Point to Point'); $IOB_connection_v = array( 0, 2, 1 ); // Had to add this for CR 64026 :( $IOB_status = array('Config wait', 'Loop init', 'Login', 'Ready', 'Lost Sync', 'Error', 'Re-Init', 'Non part', 'Failed'); $IOB_portMode = array(1 => "Private Target Only", "Private Initiator only", "Private Target & Initiator", 17=> "Public Target Only", "Public Initiator only", "Public Target & Initiator"); $IOB_portModeOnly = array(1 => "Target", "Initiator", "Target & Initiator" ); // use $IOB_portModeOnly[$port->mode & 0x0f] $IOB_DevTypes = array('Direct Access', 'Sequential Access', 'Printer', 'Processor', 'Worm', 'CD', 'Scanner', 'Optical Memory', 'Medium Changer', 'Communications', 'Asclt81', 'Asclt82', 'Storage Array Controller', 'Enclosure', 'Simplified Direct Access', 'Optical Card Reader', 'Unknown'); ?>