Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Grenoble
Eole-Wol
Commits
187eb600
Unverified
Commit
187eb600
authored
Aug 05, 2019
by
David Beniamine
Browse files
Sort by hostname
parent
6293f9f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
wol/scripts/get_registry.sh
View file @
187eb600
...
...
@@ -26,4 +26,4 @@ subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . -
host
=
$subnet
.52
echo
"get_registry"
| netcat
$host
$port
stdbuf
-i0
$netcat
stdbuf
-i0
$netcat
|
sort
-k
3
wol/www/index.php
View file @
187eb600
...
...
@@ -62,15 +62,16 @@ if(!isset($action)){
</form>
<h2>
Gestion des postes
</h2>
<div
class=
"table-responsive"
>
<table
class=
"table-striped table-bordered table-hover"
>
<tr>
<th>
Nom
</th>
<th>
IP(s)
</th>
<th>
MAC
</th>
<th>
Version
Debian
</th>
<th>
Version
Primtux
</th>
<th>
État apt
</th>
<th>
État
git
</th>
<th>
Version
Debian
</th>
<th>
Version
Primtux
</th>
<th>
Nombre de mises à jour en attente
</th>
<th>
État
git
</th>
<th>
Date dernier contact
</th>
<th>
Actions
</th>
</tr>
...
...
@@ -90,8 +91,8 @@ if(!isset($action)){
if
(
$nb_infos
>
4
){
echo
"<td>"
.
$entry
[
4
]
.
"</td>"
;
echo
"<td>"
.
$entry
[
5
]
.
"</td>"
;
echo
"<td>"
.
$entry
[
3
]
.
"
mises à jour en attente
</td>"
;
echo
"<td> branch "
.
$entry
[
6
]
.
" "
.
$entry
[
7
]
.
" commits en retard</td>"
;
echo
"<td>"
.
$entry
[
3
]
.
"</td>"
;
echo
"<td> branch
e
"
.
$entry
[
6
]
.
"
,
"
.
$entry
[
7
]
.
" commits en retard</td>"
;
}
else
{
echo
"<td>NA</td>"
;
echo
"<td>NA</td>"
;
...
...
@@ -124,10 +125,8 @@ if(!isset($action)){
}
?>
</table>
<pre>
<?php
json_encode
(
$registry
);
?>
</pre>
</div>
<?php
}
else
{
echo
"<h2> Action en cours </h2>"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment