"); $row = 1; foreach ($ports as $port) { if (port_permitted($port['interface_id'], $port['device_id'])) { if (is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; } $speed = humanspeed($port['ifSpeed']); $type = humanmedia($port['ifType']); if ($port['in_errors'] > 0 || $port['out_errors'] > 0) { $error_img = generate_port_link($port,"Interface Errors",errors); } else { $error_img = ""; } $port['in_rate'] = formatRates($port['ifInOctets_rate'] * 8); $port['out_rate'] = formatRates($port['ifOutOctets_rate'] * 8); $port = ifLabel($port, $device); echo("\n"); $row++; } } echo("
DeviceInterfaceSpeedDownUpMediaDescription
".$port['hostname']." ".fixIfName($port['label'])." $error_img $speed ".$port['in_rate']." ".$port['out_rate']." $type " . $port['ifAlias'] . "
"); ?>