Skip to content
Snippets Groups Projects
Verified Commit 187eb600 authored by David Beniamine's avatar David Beniamine
Browse files

Sort by hostname

parent 6293f9f8
No related branches found
No related tags found
No related merge requests found
...@@ -26,4 +26,4 @@ subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . - ...@@ -26,4 +26,4 @@ subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . -
host=$subnet.52 host=$subnet.52
echo "get_registry" | netcat $host $port echo "get_registry" | netcat $host $port
stdbuf -i0 $netcat stdbuf -i0 $netcat | sort -k 3
...@@ -62,15 +62,16 @@ if(!isset($action)){ ...@@ -62,15 +62,16 @@ if(!isset($action)){
</form> </form>
<h2> Gestion des postes </h2> <h2> Gestion des postes </h2>
<div class="table-responsive">
<table class="table-striped table-bordered table-hover"> <table class="table-striped table-bordered table-hover">
<tr> <tr>
<th>Nom</th> <th>Nom</th>
<th>IP(s)</th> <th>IP(s)</th>
<th>MAC</th> <th>MAC</th>
<th>Version Debian</th> <th>Version&nbsp;Debian</th>
<th>Version Primtux</th> <th>Version&nbsp;Primtux</th>
<th>État apt</th> <th>Nombre de mises à jour en attente</th>
<th>État git</th> <th>État&nbsp;git</th>
<th>Date dernier contact</th> <th>Date dernier contact</th>
<th>Actions</th> <th>Actions</th>
</tr> </tr>
...@@ -90,8 +91,8 @@ if(!isset($action)){ ...@@ -90,8 +91,8 @@ if(!isset($action)){
if($nb_infos > 4){ if($nb_infos > 4){
echo "<td>".$entry[4]."</td>"; echo "<td>".$entry[4]."</td>";
echo "<td>".$entry[5]."</td>"; echo "<td>".$entry[5]."</td>";
echo "<td>".$entry[3]." mises à jour en attente</td>"; echo "<td>".$entry[3]."</td>";
echo "<td> branch ".$entry[6]." ".$entry[7]." commits en retard</td>"; echo "<td> branche ".$entry[6].", ".$entry[7]." commits en retard</td>";
}else{ }else{
echo "<td>NA</td>"; echo "<td>NA</td>";
echo "<td>NA</td>"; echo "<td>NA</td>";
...@@ -124,9 +125,7 @@ if(!isset($action)){ ...@@ -124,9 +125,7 @@ if(!isset($action)){
} }
?> ?>
</table> </table>
<pre> </div>
<?php json_encode($registry); ?>
</pre>
<?php <?php
}else{ }else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment