| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
If the clients API response included speed information, show it in the
default room view.
In case link speed is less than 1000 Mbit, highlight so.
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
|
|
| |
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")
|
|
|
|
|
|
|
| |
Some distros enable *.* in syslog.conf to add all logging information to
/var/log/syslog. The existing LOG_INFO syslog() entry that WebConsole
generates fill up the log files very quickly. It writes every time
WebConsole calls ogServer. Remove the LOG_INFO syslog() call.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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".
|
|
|
|
|
| |
This patch reads configuration from the new json file instead of using
the legacy '.cfg' file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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".
|
|
|
|
|
| |
This patch selects the machines whose modes need to be changed using the
client's IP rather than their scope names.
|
|
|
|
| |
This adapts to the ogServer.
|
|
|
|
|
| |
This patch replaces a call to the 'setclientmode' script in
createBootMode() function for a REST request to the ogServer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Step forward to rename all ogAdmServer references to ogServer
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Run script commands should not be encoded as an URL.
|
|
|
|
| |
Web updates for #942 Add support for scheduled tasks and commands
|
| |
|
|
|
|
| |
This patch renames the setup command to avoid semantic confusion.
|
| |
|
| |
|
|
|
|
|
| |
This patch fixes run script command as it now uses REST API instead of
SocketHidra.
|
|
|
|
|
|
| |
This patch implements run/schedule in the set of available PHP functions.
It also replaces old SocketHidra commands by run/schedule in
gestor_colasacciones.php and gestor_ejecutaracciones.php.
|
|
|
|
|
|
|
|
|
|
| |
This commit changes restfunctions.php to read the API token of
ogAmdServer from ogAdmRepo.cfg to ogAdmServer.cfg. This way it avoids
possible communication errors if ogAdmRepo.cfg and ogAdmServer.cfg are
desynced.
In order to restfuntions.php can read ogAdmServer.cfg this commit
also changes the permissions of the file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Update restore_image() in restfunctions.php to use OG_REST_PARAM_ID
constant.
|
|
|
|
| |
SocketHidra restaurar imagen has been replaced by POST image/restore.
|
|
|
|
| |
SocketHidra crear imagen has been replaced by POST /imagen/create.
|
| |
|
|
|
|
|
|
|
|
| |
Irina reports a raw array showing in the web console when calling the
new ogAdmServer API.
var_export() prints the error message on the web instead of syslog.
Changing var_export() for print_r() solves this bug.
|
|
|
|
|
| |
SocketHidra software (inventario software) has been replaced by
POST /software.
|
|
|
|
|
| |
SocketHidra hardware (inventario hardware) has been replaced by
POST /hardware.
|
|
|
|
|
| |
The "magic" constant __DIR__ ensure a correct route regardless of where
the methods are used
|
|
|
|
| |
Add token parameter in REST API infrastructure in the web console.
|
|
|
|
| |
Remove unused parameter in REST API infrastructure.
|
|
|
|
|
|
|
|
|
|
| |
Either:
{ "addr" : "192.168.2.1", "state" : "OPG" }
or:
{ "state" : "OPG", "addr" : "192.168.2.1" }
should be accepted, this patch updates the web console parser to accept
both.
|
|
|
|
| |
SocketHidra "actualizar" has been replaced by POST /refresh.
|
|
|
|
| |
SocketHidra "purgar" has been replaced by POST /stop.
|
|
|
|
| |
SocketHidra reboot has been replaced by POST /reboot.
|
|
|
|
| |
SocketHidra poweroff has been replaced by POST /poweroff.
|