diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2019-06-28 12:21:22 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-07-03 02:56:07 +0200 |
commit | 96cced97a86da63591e6a72ffb5a0b0785119e87 (patch) | |
tree | f128fd6419a05f07f52e2086d5a894e38c1f1dc8 /admin/WebConsole/comandos | |
parent | db537e76582d86856f3eb080287aeb324338e52f (diff) |
#915 adapt web to use new software cmd in REST API
SocketHidra software (inventario software) has been replaced by
POST /software.
Diffstat (limited to 'admin/WebConsole/comandos')
-rw-r--r-- | admin/WebConsole/comandos/gestores/gestor_Comandos.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/WebConsole/comandos/gestores/gestor_Comandos.php b/admin/WebConsole/comandos/gestores/gestor_Comandos.php index 20c262af..943fdac7 100644 --- a/admin/WebConsole/comandos/gestores/gestor_Comandos.php +++ b/admin/WebConsole/comandos/gestores/gestor_Comandos.php @@ -25,6 +25,7 @@ define('OG_CMD_ID_WAKEUP', 1); define('OG_CMD_ID_POWEROFF', 2); define('OG_CMD_ID_REBOOT', 5); define('OG_CMD_ID_HARDWARE', 6); +define('OG_CMD_ID_SOFTWARE', 7); define("OG_CMD_ID_SCRIPT", 8); define('OG_CMD_ID_SESSION', 9); define('OG_CMD_ID_SENDMESSAGE', 16); @@ -139,6 +140,9 @@ switch ($idcomando) { break; case OG_CMD_ID_HARDWARE: hardware($cadenaip); + break; + case OG_CMD_ID_SOFTWARE: + software($cadenaip); } if($ambito==0){ // Ambito restringido a un subconjuto de ordenadores con formato (idordenador1,idordenador2,etc) @@ -200,6 +204,7 @@ if($sw_ejya=='on' || $sw_ejprg=="on" ){ $idcomando != OG_CMD_ID_SESSION && $idcomando != OG_CMD_ID_POWEROFF && $idcomando != OG_CMD_ID_HARDWARE && + $idcomando != OG_CMD_ID_SOFTWARE && $idcomando != OG_CMD_ID_REBOOT) { // Envío al servidor $shidra=new SockHidra($servidorhidra,$hidraport); |