syst:panel

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
syst:panel [2022/02/18 15:11] – modification externe 127.0.0.1syst:panel [2023/01/30 12:30] (Version actuelle) dokuwiki_jeff
Ligne 1: Ligne 1:
-<php>  if ($_SERVER['PHP_AUTH_USER'] != 'jeff' && $_SERVER['PHP_AUTH_USER'] != 'marina' )  +<php>  if ($_SERVER['PHP_AUTH_USER'] != 'jeff' && $_SERVER['PHP_AUTH_USER'] != 'marina' &&  
-   { die('no rights to read this page'); }  </php>+           $_SERVER['PHP_AUTH_USER'] != 'jflemay@hotmail.com' && $_SERVER['PHP_AUTH_USER'] != 'marina.lemay@hotmail.com' )  
 +    die('no rights to read this page'); }  </php>
  
 ==== Panel système ==== ==== Panel système ====
Ligne 6: Ligne 7:
  
 <php> <php>
-  // if(!defined('DOKU_INC')) define('DOKU_INC', dirname(__FILE__).'/'); +  require_once (DOKU_INC.'dev/tools.php');  
-  require_once (DOKU_INC.'dev/tools.php'); +
-   +
- +
-   echo "<form action='".getDokuScript()."' method='get' id='form_4324'>\n"; +
-   echo "<input type='hidden' name='id'  value='".getDokuID()."'>\n";  +
-   // echo "<input type='hidden' name='cmd'  value='".$cmd."'>\n";  +
-   echo "</form>\n"; +
- +
-  function createButtonCmd($cmd) { +
-   echo "<button  type='submit' name='cmd'  value='".$cmd."'  form='form_4324'>".$cmd."</button>\n"; +
-   $retcmd = $_GET['cmd']; +
-   if ($retcmd == $cmd) { +
-    echo "Lancement de la commande [".$cmd."]</br>\n"; +
-    $retval = execNoWait('sudo /root/.bash/sudo_www/'.$cmd); +
-    echo "pid = ".$retval."</br>\n"; +
-   } +
-  } +
- +
-  function createButtonCmdWait($cmd) { +
-   echo "<button  type='submit' name='cmd'  value='".$cmd."'  form='form_4324'>".$cmd."</button>\n"; +
-   $retcmd = $_GET['cmd']; +
-   if ($retcmd == $cmd) { +
-     $retval = exec(escapeshellcmd ( 'sudo /root/.bash/sudo_www/'.$cmd ). " 2>&1", $output, $retval);  +
-     echo "============ </br>\n<ul>";   +
-     foreach ($output as $k => $v) {   echo '<li>'.$k.' -- '.$v."</li>\n";   } +
-     echo "</ul>============ </br>\n";   +
-   } +
-  } +
- +
-  function createButtonCmdNoWait($cmd) { +
-   echo "<button  type='submit' name='cmd'  value='".$cmd."'  form='form_4324'>".$cmd."</button>\n"; +
-   $retcmd = $_GET['cmd']; +
-   if ($retcmd == $cmd) { +
-     flush(); +
-     $fp = popen(escapeshellcmd ( 'sudo /root/.bash/sudo_www/'.$cmd ). " 2>&1", "r"); +
-     // $t = time();     while(!feof($fp))             $fr .= fread($fp, 1024);      if (time()-$t > 5) break;     } +
-     fclose($fp);  +
-     flush(); +
-   } +
-  }+
 </php> </php>
  
  
-<col sm="6"> 
-<panel type="default" title="paneltable" icon="fa fa-home"> 
-<php>createButtonCmdWait('log_apache_err.bash');</php> 
-Show last apache PHP problemes 
- 
----- 
-<php>createButtonCmdWait('log_apache_auth.bash');</php> 
-Show last apache auth problemes 
- 
----- 
-<php>createButtonCmdWait('log_boot.bash');</php> 
-Show boot logs 
- 
----- 
-<php>createButtonCmdWait('version.bash');</php> 
-Show raspi version 
- 
----- 
-<php>createButtonCmdWait('hardware_info.bash');</php> 
-Raspi hardware info 
- 
----- 
-<php>  createButtonCmdWait('f_ps_dwatch.bash');  createButtonCmdNoWait('f'); </php> 
-Run firewall 
-<phpwikify> 
-  $path = "/.log/f.log";           echo "  * [[".getUrl().$path."|".$path."]]\n"; 
-  $path = "/.log/trace_tot.log";   echo "  * [[".getUrl().$path."|".$path."]]\n"; 
-</phpwikify> 
----- 
-<php>createButtonCmdWait('sudo_renew_letsencrypt.bash');</php> 
-Renew certificates SSL 
----- 
-<php>createButtonCmdWait('ps_sudo.bash');</php> 
-Show sudo processes 
----- 
-<php>createButtonCmdWait('rsync_save.bash');</php> 
-Rsync to Nas (total) 
----- 
-  * [[:syst:rs_log]] 
- 
-</panel> 
-</col> 
- 
- 
-<col sm="6"> 
-<panel type="default" title="paneltable" icon="fa fa-home"> 
-<php>createButtonCmd('rsync_scw-aff132_a2info');</php> 
-Send directory **fact-a2info** from NAS to a2info.fr 
----- 
-<phpwikify> 
-  echo "\n\n"; 
-  $path = "/.log/rsync_scw-aff132_a2info.log"; 
-  echo "  * [[".getUrl().$path."|".$path."]]\n"; 
-  echo "  * [[".getUrl()."/jswidgets|jswidgets]]\n"; 
-</phpwikify> 
-</panel> 
-</col> 
  
 <col sm="6"> <col sm="6">
Ligne 138: Ligne 42:
  
  
-  * Nordnet_32A8 
-  * Nordnet_32A8_5G     
-  * TP-LINK_0FBF  
   * TP-LINK-0FBE    * TP-LINK-0FBE
   * TP-LINK_0FBE_5G    * TP-LINK_0FBE_5G
   * Fibre2Gh   * Fibre2Gh
   * Fibre5Gh   * Fibre5Gh
 +
 +
 +| ID | Client Name | MAC Address | Assigned IP | Lease Time |
 +| 1 | raspi2 | E4-5F-01-71-B2-43 | 192.168.1.180 | Permanent |
 +| 2 | raspi | E4-5F-01-5B-01-31 | 192.168.1.100 | 01:00:21 |
 +| 3 | Unknown | 84-B8-B8-2D-2B-BB | 192.168.1.185 | Permanent |
 +| 4 | iPhoneMarina4S | 84-85-06-77-CE-D5 | 192.168.1.181 | Permanent |
 +| 5 | MacBook2-Lemay | 50-ED-3C-46-9A-F2 | 192.168.1.171 | Permanent |
 +| 6 | Unknown | 48-44-F7-D8-B4-21 | 192.168.1.186 | Permanent |
 +| 7 | iPhone-de-Jeff | A4-E9-75-5D-CE-4B | 192.168.1.183 | Permanent |
 +| 8 | iPhone-6-Marina | 78-D7-5F-09-1A-7D | 192.168.1.174 | Permanent |
 +| 9 | MacBook1-Lemay | C8-69-CD-92-C9-FE | 192.168.1.172 | Permanent |
 +| 10 | iPaddeJFrancois | A4-67-06-7A-D1-3E | 192.168.1.101 | 01:21:36 |
 +| 11 | iPhonedeMarina2 | 0C-30-21-8B-52-5D | 192.168.1.175 | Permanent |
 +| 12 | pc-core2 | 00-1D-60-3A-FC-18 | 192.168.1.176 | Permanent |
 +| 13 | PC590 | 14-85-7F-E5-18-43 | 192.168.1.173 | Permanent |
 +
  
  
Ligne 158: Ligne 76:
 | pc-salon d4:6e:0e:0d:0b:54 | 21:30 23:59 | | pc-salon d4:6e:0e:0d:0b:54 | 21:30 23:59 |
 | iPhone4S 84:85:06:77:ce:d5 | 21:30 23:59 | | iPhone4S 84:85:06:77:ce:d5 | 21:30 23:59 |
- 
 | Macbook2 50:ed:3c:46:9a:f2 |  192.168.1.10  | | Macbook2 50:ed:3c:46:9a:f2 |  192.168.1.10  |
 +
 +| Username | MAC |
 +| iPhone4sBlanc | 84:85:06:77:CE:D5 | x x x x x x x 21:30 23:59 |
 +| iPadJeff | A4:67:06:7A:D1:3E | x x x x x x x 21:30 23:59 |
 +| Moto | A4:70:D6:95:37:99 | x x x x x x x 21:30 23:59 |
 +
 +
 +
 +| Wireguard | 51820 | TCP/UDP | 51820 | 192.168.1.78 |
 +| SSH | 2222 | TCP | 22 | 192.168.1.77 |
 +| HTTPS | 443 | TCP | 443 | 192.168.1.77 |
 +| DiskStation | 5001 | TCP/UDP | 5001 | 192.168.1.77 |
 +| DriveClient | 6690 | TCP/UDP | 6690 | 192.168.1.77 |
  
  
  • syst/panel.1645193516.txt
  • Dernière modification : 2022/02/18 15:11
  • de 127.0.0.1