diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2018-08-05 06:59:34 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2018-08-05 06:59:34 +0200 |
commit | 12b2ed009050747316afdfb17665a2fafb2836ca (patch) | |
tree | 8936215c493eeb40fb53ceed41ebcc0b76929521 | |
parent | 638d3091662918e893d9fb9edbd7f553e7df8240 (diff) | |
download | kickstart-12b2ed009050747316afdfb17665a2fafb2836ca.tar.gz kickstart-12b2ed009050747316afdfb17665a2fafb2836ca.tar.bz2 kickstart-12b2ed009050747316afdfb17665a2fafb2836ca.tar.xz kickstart-12b2ed009050747316afdfb17665a2fafb2836ca.zip |
Camera computers
-rw-r--r-- | config.php | 12 | ||||
-rw-r--r-- | index.php | 4 |
2 files changed, 15 insertions, 1 deletions
@@ -84,12 +84,24 @@ $SERVER_LIST = array( "macs" => array("00:25:90:da:82:58", "00:25:90:da:82:59"), "eth" => array("enp9s0", "enp10s0"), )), + "ipecamera0" => array_merge($CAMERA_SERVERS, array( + "macs" => array("bc:5f:f4:ad:96:e3", "bc:5f:f4:ad:96:eb"), + "eth" => array("enp20s0", "enp21s0"), + )), "ipecamera3" => array_merge($CAMERA_SERVERS, array( "macs" => array("0c:c4:7a:32:72:20", "0c:c4:7a:32:72:21"), )), "ipecamera4" => array_merge($CAMERA_SERVERS, array( "macs" => array("0c:c4:7a:32:72:1e", "0c:c4:7a:32:72:1f"), )), + "ipecamera5" => array_merge($CAMERA_SERVERS, array( + "macs" => array("14:dd:a9:d5:76:31", "14:dd:a9:d5:76:32"), + "eth" => array("eno1", "enp14s0"), + )), + "ipecamera6" => array_merge($CAMERA_SERVERS, array( + "macs" => array("38:d5:47:02:d1:4b", "38:d5:47:02:d1:4c"), + "eth" => array("enp14s0", "eno1"), + )), "ipecluster6" => array_merge($STUDENT_SERVERS, array( "macs" => array("74:D0:2B:97:F3:2A", "74:D0:2B:97:F3:2B"), )), @@ -152,13 +152,14 @@ $server = find_server(); $f = fopen("/srv/www/htdocs/ands/logs/kickstart.log", "a+"); if ($f) { - fprintf($f, "%s %s\n", $_SERVER["REMOTE_ADDR"], ($server?$server["fqdn"]:"-")); + fprintf($f, "%s %s at %s\n", $_SERVER["REMOTE_ADDR"], ($server?$server["fqdn"]:"-"), date(DATE_ISO8601)); fclose($f); } if (!$server) { $f = fopen("/srv/www/htdocs/ands/logs/kickstart-new.log", "a+"); if ($f) { + fwrite($f, "%s\n", date(DATE_ISO8601)); fwrite($f, print_r($_SERVER, true)); fwrite($f, print_r(getallheaders(), true)); fclose($f); @@ -210,6 +211,7 @@ if ($VERBOSE) { $f = fopen("/srv/www/htdocs/ands/logs/kickstart-verbose.log", "a+"); if ($f) { fwrite($f, "-----------------------------------------------------\n"); + fwrite($f, "%s\n", date(DATE_ISO8601)); fwrite($f, print_r($server, true)); fwrite($f, print_r($_SERVER, true)); fwrite($f, print_r(getallheaders(), true)); |