include_once("./include/bottom_footer.php"); break; case 'mactrack_utilities_purge_aggregated_data': mactrack_utilities_purge_aggregated_data(); break; case 'mactrack_utilities_recreate_aggregated_data': mactrack_utilities_recreate_aggregated_data(); break; case 'mactrack_refresh_oui_database': include_once("./include/top_header.php"); include_once("./plugins/mactrack/lib/mactrack_functions.php"); import_oui_database("web"); include_once("./include/bottom_footer.php"); break; case 'mactrack_proc_status': /* ================= input validation ================= */ input_validate_input_number(get_request_var_request("refresh")); /* ==================================================== */ load_current_session_value("refresh", "sess_mactrack_utilities_refresh", "30"); $refresh["seconds"] = $_REQUEST["refresh"]; $refresh["page"] = "mactrack_utilities.php?action=mactrack_proc_status"; include_once("./include/top_header.php");
top_header(); include_once './plugins/mactrack/lib/mactrack_functions.php'; mactrack_utilities(); mactrack_utilities_purge_scanning_funcs(); bottom_footer(); break; case 'mactrack_utilities_purge_aggregated_data': mactrack_utilities_purge_aggregated_data(); break; case 'mactrack_utilities_recreate_aggregated_data': mactrack_utilities_recreate_aggregated_data(); break; case 'mactrack_refresh_oui_database': top_header(); include_once './plugins/mactrack/lib/mactrack_functions.php'; import_oui_database('web'); bottom_footer(); break; case 'mactrack_proc_status': /* ================= input validation ================= */ get_filter_request_var('refresh'); /* ==================================================== */ load_current_session_value('refresh', 'sess_mactrack_utilities_refresh', '30'); $refresh['seconds'] = get_request_var('refresh'); $refresh['page'] = 'mactrack_utilities.php?action=mactrack_proc_status'; top_header(); mactrack_display_run_status(); bottom_footer(); break; default: top_header();
exit; default: print "ERROR: Invalid Parameter " . $parameter . "\n\n"; display_help(); exit; } } if (strlen($oui_file)) { if (!file_exists($oui_file)) { echo "ERROR: OUI Database file does not exist\n"; }else{ import_oui_database("ui", $oui_file); } }else{ import_oui_database(); } /* display_help - displays the usage of the function */ function display_help () { $version = mactrack_version(); print "MacTrack Import OUI Database v" . $version["version"] . ", Copyright 2004-2010 - The Cacti Group\n\n"; print "usage: mactrack_import_ouidb.php [-f=ouifile] [-h] [--help] [-v] [-V] [--version]\n\n"; print "-f='outdbfile' - Specify the location of the OUI dataabase file. If your system\n"; print " does not allow native access to the IEEE via http, you can manually\n"; print " download the file, and then import it using this option.\n"; print "-v -V --version - Display this help message\n"; print "-h --help - Display this help message\n"; } ?>