summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/comandos
Commit message (Collapse)AuthorAgeFilesLines
* #1058 Remove duplicated hidden input for scopeJose M. Guisado2021-07-231-3/+0
| | | | | | | | Partition and format does not work with a subset of clients in a room scope. (ámbito aulas). Remove duplicate hidden input that was problematic to the javascript code involved to fix this.
* #1040 Fix delete cache image on computer groupsalbertogp2021-05-121-2/+1
| | | | | This commit fixes delete image cache (EliminarImagenCache) form to show cached images as expected when used on a scope group of computers
* #1032 Use create_schedule_now for tasks and proceduresJose M. Guisado2021-03-111-7/+1
| | | | | | | | | Commit afbfe2a introduced create_schedule_now for commands. Adapt procedures and task to use it instead. Drop $when variable as it is no longer needed for "immediate scheduling" execution of commands, procedures or tasks. Fixes: afbfe2a (Use create_schedule_now for immediate logged commands)
* #1032 Use create_schedule_now for immediate logged commandsJose M. Guisado2021-03-111-1/+1
| | | | | | | | | | | Avoid stale commands from being executed when given a time schedule that include past dates, ie. when they are manually scheduled. Use create_schedule_now for immediate execution commands (no manual schedule) that the user want to be logged (by automatic scheduling to the right moment they are processed). Fixes #1032 (https://opengnsys.es/trac/ticket/1032#comment:2)
* #1008 Improve Setup form user experienceJavier Sánchez Parra2021-02-221-7/+17
| | | | | | | | | | Setup (Particionar y Formatear) forms do not show new features clearly. Table type selector goes unnoticed and change disk button might be taken (incorrectly) as the accept button. This commit improves user experience of the setup command form: * Highlights and centers table type selector. * Changes text of change disk button.
* #990 restfunctions: wol: require clients and wol_type params onlyJose M. Guisado2021-02-152-7/+3
| | | | | | | | | | | | 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")
* #1019 Fix decoding of shell command parameters in queue modeJavier Sánchez Parra2021-02-081-1/+14
| | | | | | | | | | 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.
* #1008 Remove unused variableJavier Sánchez Parra2021-01-121-2/+0
| | | | | | | | | | | Apache reports: [Tue Dec 22 12:07:01.664403 2020] [proxy_fcgi:error] [pid 1386] [client 10.1.12.17:46950] AH01071: Got error 'PHP message: PHP Notice: Undefined variable: cadenaid in /opt/opengnsys/www/comandos/Configurar.php on line 158\nPHP message: PHP Notice: Undefined variable: mindisks in /opt/opengnsys/www/comandos/Configurar.php on line 201\n'
* #1008 Restore support for >4 partitionsJavier Sánchez Parra2021-01-121-14/+27
| | | | | | | | | | | | | WebConsole "Partition and Format"/"Particionar y Formatear" supported more than 4 partitions when it used SocketHidra. When we changed it to use HTTP requests we introduced a limit of 4 partitions. This commit: * Restores "Partition and Format" support for more than 4 partitions. * Adapts client-side checks (JavaScript) for more than 4 partitions and GPT.
* #1015 Fix updateBootMode and use it when updating computer infoJose M. Guisado2020-12-171-0/+2
| | | | | | | | | | | | | | | | | | | When a computer info is updated sometimes their related pxe files need to be updated accordingly. In order to recreate the file the function createBootMode was being used inside gestor_ordenadores. Eg: createBootMode ($cmd, $arranque, $ip, $idioma) This had some problems because the POST message to gestor_ordenadores was sometimes lacking the ip field. This field is not necessary because updateBootMode takes the id of the computer and queries the database for the ip of the computer associated with it. Use updateBootMode ($cmd, "idordenador", $idordenador, $idioma) instead. Fixes related mass updater and "moving pc to another classroom" issues.
* #1008 Add support to work with GPT tablesJavier Sánchez Parra2020-11-272-1/+22
| | | | | | | | | | | | | | | | | | WebConsole needs to rely on /shell/run to work with GPT tables. Because "Partition and Format"/"Particionar y Formatear" form always supposes that the partition table is MBR/MSDOS. "Setup"/"Configurar" script from "Cloning Engine" also supposes that the partition table is MBR/MSDOS. But it uses "Boot.lib" library, that can create MBR and GTP partitions. This commit: * Adds WebConsole support to work with GPT tables. - Adds input field where the user can select between MSDOS and GPT table types. * Adds "Setup" support to work with GPT tables. - Adds script parameter that expects a string with "MSDOS" or "GPT".
* #1008 Add support for partitioning several disksJavier Sánchez Parra2020-11-252-2/+48
| | | | | | | WebConsole only supports for partitioning and formatting the first disk of the client. POST /setup calls in ogserver and ogclient support for multiple disks. Update WebConsole to allow to choose which disk do you want to partition and format.
* #1001 Remove trailing \r and \n in some scriptsJavier Sánchez Parra2020-08-251-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | We find that scripts sent by "Assistants"/"Asistentes" are losing the last character and scripts send by "Run Script"/"Ejecutar Script" have a trailing line feed (\n). This is happening because shell() function, which calls "/shell/run" of ogServer REST API, expects scripts send by "Asistentes" and "Run Script" to have two trailing characters and removes them. But "Assistants" only put one trailing char (\r) and "Run Script" put three trailing chars (\n\n\r). To avoid problems when running scripts without the last char or with trailing line feed this patch updates WebConsole to: 1) "Assistants" no longer put one trailing character at the end of the script 2) "Run Script" no longer puts three trailing characters at the end of the script 3) shell() expects no trailing chars in scripts sent by "Assistants" and "Run Script".
* #990 Use client broadcast address on WoLJavier Sánchez Parra2020-07-032-3/+7
| | | | | | | | | | | | | | | | 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.
* #980 Add Virtual statusJavier Sánchez Parra2020-06-262-0/+17
| | | | | Since version 1.2.0, OpenGnsys supports ogVDI hypervisor OS. This commit a new status which indicates that clients are running ogVDI
* #942 add WoL on commands, procedures and tasks (web)Javier Sánchez Parra2020-06-021-2/+1
|
* #942 add immediate commands on the queue (web)Javier Sánchez Parra2020-06-021-4/+13
| | | | | | | | 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.
* #942 schedule commands (web)Javier Sánchez Parra2020-06-021-1/+8
|
* #915 Add new case to command shell/run (web)Javier Sánchez Parra2020-06-021-1/+3
| | | | | | | | | | | | | | | 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.
* #942 Fix run script tasks encoding (web)Roberto Hueso Gómez2020-06-021-1/+4
|
* Limpiando.Codigo.979Alberto UMA2020-05-201-3/+0
|
* Mover.Ordenadores.Aulas_integrar ficherosAlberto UMA2020-05-162-0/+521
|
* #959 #679 CreateImage command in console : Fix error in SQL request, only ↵Irina Gómez2020-04-131-2/+2
| | | | showed images from repository assigned to computer. Now show all images in organization unit.
* #915 Fix EliminarImagenCache command on the WebConsoleJavier Sánchez Parra2019-12-131-0/+2
| | | | | | | | | | | | | 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.
* #915 Fix WoL command support in queued commandsJavier Sánchez Parra2019-12-031-1/+2
| | | | | | | | | | | | | 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.
* #915 #932: Fix lost variable in Wake-On-Lan function.Ramón M. Gómez2019-11-201-0/+1
|
* #915 Fix error: run_command needs parameter 'cadenamac' for WOL.Irina Gómez2019-11-201-2/+2
|
* #914 Software inventory command in console improved info message when no ↵Irina Gómez2019-11-201-0/+1
| | | | operating system is detected.
* #915 Fix duplicated command execution when added to the queueRoberto Hueso Gómez2019-11-151-45/+52
| | | | | | | | 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.
* #915 Fix run script commandRoberto Hueso Gómez2019-10-301-0/+3
| | | | | This patch fixes run script command as it now uses REST API instead of SocketHidra.
* #915 Remove all references to SocketHidraRoberto Hueso Gómez2019-10-291-1/+0
| | | | | This patch removes all remaining references to SocketHidra. The existing code uses the REST API ogAdmServer.
* #915 Remove dead code that uses SocketHidraRoberto Hueso Gómez2019-10-291-1/+0
| | | | This patch removes files that are dead code and that also use SocketHidra.
* #915 Adapt gestor_Comandos.php to use the REST APIRoberto Hueso Gómez2019-10-291-78/+44
| | | | | | | | 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.
* #804 Restore image and partition command: Fix the error when ungroup ↵Irina Gómez2019-10-282-0/+10
| | | | computers is selected.
* #915 Fix POST "software" cmd in ogAdmServer and webJavier Sánchez Parra2019-10-111-1/+1
| | | | | | | | | | | | | | | | | | 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
* #915 Adapt web to use new image/restore/incremental cmd in REST APIJavier Sánchez Parra2019-10-111-0/+5
| | | | SocketHidra command has been replaced by POST image/restore/incremental.
* #915 Adapt web to use new REST API "image/create/incremental" commandRoberto Hueso Gómez2019-10-111-0/+5
| | | | SocketHidra command has been replaced by POST "image/create/incremental".
* #915 Adapt web to use new image/restore/basic cmd in REST APIJavier Sánchez Parra2019-10-091-0/+5
| | | | SocketHidra command has been replaced by POST image/restore/basic.
* #915 Adapt web to use new image/create/basic cmd in REST APIJavier Sánchez Parra2019-10-081-0/+5
| | | | SocketHidra command has been replaced by POST image/create/basic.
* Adapt web to use new image/setup cmd in REST APIRoberto Hueso Gómez2019-10-071-0/+5
| | | | SocketHidra configurar has been replaced by POST image/setup.
* #915: Adapt web to use new image/restore cmd in REST APIRoberto Hueso Gómez2019-10-011-0/+5
| | | | SocketHidra restaurar imagen has been replaced by POST image/restore.
* #915: Adapt web to use new image/create cmd in REST APIRoberto Hueso Gómez2019-10-011-0/+5
| | | | SocketHidra crear imagen has been replaced by POST /imagen/create.
* #915 adapt web to use new software cmd in REST APIJavier Sánchez Parra2019-07-031-0/+5
| | | | | SocketHidra software (inventario software) has been replaced by POST /software.
* #915 adapt web to use new hardware cmd in REST APIJavier Sánchez Parra2019-07-031-0/+5
| | | | | SocketHidra hardware (inventario hardware) has been replaced by POST /hardware.
* #915: Merge branch devel-ogadmserver-rest-api into develRamón M. Gómez2019-06-042-16/+37
|\
| * #915 adapt web console to use new reboot command in REST APIJavier Sánchez Parra2019-05-301-1/+6
| | | | | | | | SocketHidra reboot has been replaced by POST /reboot.
| * #915 adapt web console to use new poweroff command in REST APIJavier Sánchez Parra2019-05-301-7/+14
| | | | | | | | SocketHidra poweroff has been replaced by POST /poweroff.
| * #915 rename IDCOMAND* to OG_CMD_ID_*Javier Sánchez Parra2019-05-301-3/+4
| |
| * #915 adapt web console to use new REST API in OgAdmServerOpenGnSys Support Team2019-05-272-5/+14
| | | | | | | | | | | | Use new REST API in ogAdmServer. This allows us to start removing the old SockHidra code.
* | #891: Boot (wake) command is sent by both server and client repository.Ramón M. Gómez2019-05-301-8/+10
|/