| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
Webconsole is directly querying the database to build the payload for
requesting the ogServer a Wake On Lan.
ogServer is expected to query the database for the netmask and mac
parameters. Do not require the client request to have such parameters.
Adjust calls to the wol php method by other OpenGnsys components.
Fixes: a35b7c4 ("#990 Use client broadcast address on WoL")
|
|
|
|
|
|
|
|
|
|
| |
UMA report that "delete cached image" and "partition asistant" commands
in queue mode do not work (non-queue mode works fine).
WebConsole decodes and handles quirks of shell command parameters only
when it is not queued. See shell() at restfunctions.php.
Add shell command parameters decoding and handling when queued.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some universities have computers in a different subnet where the
ogServer is, but ogServer WoL functionality only supported to send
packet to its own subnets. This commit solves this.
Now ogServer sends two WoL packets per client, one with the broadcast
address of the interface indicated in the config file, the other with
the broadcast address calculated with the address and netmask of the
client.
To ensure that the second WoL works correctly you must configure
correctly the IP and netmask of the clients. Also, you have to configure
the network of your organization to route WoL packet to the correct
subnet.
|
| |
|
|
|
|
|
|
|
|
| |
Users can launch immediate commands on the queue to keep an history and
to watch the status and the properties.
This commit adapt this functionality to new functions and behaviour
of the ogAdmServer.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I tried to delete a cache image but the character "*" of the command
was missing so the command fails.
Command received:
"rm -r /opt/opengnsys/cache/opt/opengnsys/images/test."
Command expected:
"rm -r /opt/opengnsys/cache/opt/opengnsys/images/test.*"
This command adds a new case to the call shell/run. This new case is
needed because in the case of deleting a image from the cache the web
only has to delete the last character of the string instead of last two
characters.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Carmelo reports that EliminarImagenCache (Delete image from cache)
command does not work. The image remains in place after the execution
of the command.
This command is actually a wrapper of the command EjecutarScript
(POST /shell) with a different ID. Since gestor_Comandos.php did not
expect a different ID, EliminarImagenCache did not work.
This commit changes the behaviour of gestor_Comandos.php to handle
the EliminarImagenCache ID and treat it as EjecutarScript.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Irina reports that the Wake on Lan command does not work in queued
commands.
This bug appeared when we fixed duplicated command execution when added
to the queue (ccb862b). It is caused because the client needs to be ON
to ask itself for the queued command, but the WoL command can not work
this way because the client is OFF.
This commit changes the behaviour of gestor_Comandos.php to always send
the WoL command immediately.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This patch fixes duplicated command execution by running queue scheduler instead
of directly calling the command's REST API function.
If command is already queued, then execute pending commands. Otherwise,
invoke the OgAdmServer REST API.
|
|
|
|
|
| |
This patch fixes run script command as it now uses REST API instead of
SocketHidra.
|
|
|
|
|
| |
This patch removes all remaining references to SocketHidra. The existing
code uses the REST API ogAdmServer.
|
|
|
|
| |
This patch removes files that are dead code and that also use SocketHidra.
|
|
|
|
|
|
|
|
| |
This patch removes the possibility of commands being executed using SocketHidra
and replaces it by the calls to the REST API.
It also prevents commands from being executed when they are intended to be added
to a task or scheduled.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds the parameters "disk" and "partition" to
POST "software" command. This way the client can create a software
profile without failure.
New request:
POST /software
{
"clients":[
"192.168.56.12"
],
"disk":"1",
"partition":"1"
}
Reply:
200 OK
|
|
|
|
| |
SocketHidra command has been replaced by POST image/restore/incremental.
|
|
|
|
| |
SocketHidra command has been replaced by POST "image/create/incremental".
|
|
|
|
| |
SocketHidra command has been replaced by POST image/restore/basic.
|
|
|
|
| |
SocketHidra command has been replaced by POST image/create/basic.
|
|
|
|
| |
SocketHidra configurar has been replaced by POST image/setup.
|
|
|
|
| |
SocketHidra restaurar imagen has been replaced by POST image/restore.
|
|
|
|
| |
SocketHidra crear imagen has been replaced by POST /imagen/create.
|
|
|
|
|
| |
SocketHidra software (inventario software) has been replaced by
POST /software.
|
|
|
|
|
| |
SocketHidra hardware (inventario hardware) has been replaced by
POST /hardware.
|
|\ |
|
| |
| |
| |
| | |
SocketHidra reboot has been replaced by POST /reboot.
|
| |
| |
| |
| | |
SocketHidra poweroff has been replaced by POST /poweroff.
|
| | |
|
| |
| |
| |
| |
| |
| | |
Use new REST API in ogAdmServer.
This allows us to start removing the old SockHidra code.
|
|/ |
|
|
|
|
| |
format.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gestor_Comando.php only execute wakeonlan_repo.php when wake up command is called.
* wakeonlan_repo.php send new needed parameters for ogAdmServer WoL.
* repository.php use ogAdmServer WoL instead of wakeonlan perl script.
* opengnsys_installer.sh and opengnsys_update.sh don't have wakeonlan perl script dependency anymore.
# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date: Mon Jan 28 10:22:57 2019 +0100
#
# On branch devel
# Your branch is ahead of 'origin/devel' by 1 commit.
# (use "git push" to publish your local commits)
#
# Changes to be committed:
# modified: admin/WebConsole/comandos/gestores/gestor_Comandos.php
# modified: admin/WebConsole/comandos/gestores/wakeonlan_repo.php
# modified: admin/WebConsole/rest/repository.php
# modified: installer/opengnsys_installer.sh
# modified: installer/opengnsys_update.sh
#
# Untracked files:
# 0001-892-Use-ogAdmServer-Wake-on-Lan.patch
# 0001-892-Use-ogAdmServer-Wake-on-Lan.zip
#
|
|
|
|
|
|
| |
{{{explode}}} y {{{ereg...}}} por {{{preg_...}}}).
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5619 a21b9725-9963-47de-94b9-378ad31fedc9
|
|
|
|
|
|
|
|
|
| |
* documentar API REST,
* hacer una única llamada múltiple a todos los repositorios afectados,
* mostrar aviso si ha habido algún problema de conexión con un repo,
* incluir dependencias de instalación/actualización.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5534 a21b9725-9963-47de-94b9-378ad31fedc9
|
|
|
|
| |
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5533 a21b9725-9963-47de-94b9-378ad31fedc9
|
|
|
|
| |
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5502 a21b9725-9963-47de-94b9-378ad31fedc9
|
|
|
|
| |
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5258 a21b9725-9963-47de-94b9-378ad31fedc9
|
|
|
|
|
|
| |
ejecución de los agentes nuevos·
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5247 a21b9725-9963-47de-94b9-378ad31fedc9
|
|
|
|
|
|
| |
obtener el estado de todos los clientes de un aula; actualizar definición de la API REST y definir parámetros para evitar duplicados.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5227 a21b9725-9963-47de-94b9-378ad31fedc9
|
|
|
|
|
|
| |
macOS.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5212 a21b9725-9963-47de-94b9-378ad31fedc9
|
|
|
|
|
|
| |
operaciones; corrección de erratas en el envío de comandos REST desde la consola web.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5208 a21b9725-9963-47de-94b9-378ad31fedc9
|
|
|
|
|
|
| |
fecha en formato ISO 8601 y quitar líneas en blanco al final de ficheros.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5185 a21b9725-9963-47de-94b9-378ad31fedc9
|
|
|
|
| |
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5138 a21b9725-9963-47de-94b9-378ad31fedc9
|
|
|
|
| |
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5135 a21b9725-9963-47de-94b9-378ad31fedc9
|
|
|
|
| |
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5134 a21b9725-9963-47de-94b9-378ad31fedc9
|
|
|
|
|
|
| |
momento usando método GET); soportar cabeceras y simplificar las llamadas a cURL.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5033 a21b9725-9963-47de-94b9-378ad31fedc9
|
|
|
|
|
|
| |
Reiniciar a OGAgent y se registra el resultado en la cola de acciones
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4864 a21b9725-9963-47de-94b9-378ad31fedc9
|