".WEB_device_mac_table_show." ".$device['device_name']." (".$device['ip']."):\n"; $snmp_ok = 0; if (!empty($device['ip']) and $device['snmp_version'] > 0) { $snmp_ok = check_snmp_access($device['ip'], $device['community'], $device['snmp_version']); } if ($snmp_ok) { $fdb = get_fdb_table($device['ip'], $device['community'], $device['snmp_version']); print "\n"; print ""; print "\n"; print "\n"; print "\n"; print ""; foreach ($ports as $port) { foreach ($fdb as $a_mac => $a_port) { if ($a_port == $port['snmp_index']) { print ""; print "\n"; $auth = get_auth_by_mac($db_link, dec_to_hex($a_mac)); print "\n"; print ""; } } } print "
PortUserMac
" . $port['port'] . "" .$auth['auth'] . "". $auth['mac']."
\n"; } else { print "No SNMP access!"; } require_once ($_SERVER['DOCUMENT_ROOT']."/inc/footer.php"); ?>