Description of problem: If a user as a set of AS7/EAP6 CLI scripts, he cannot re-use those when monitoring its servers with JON. It would be nice to be able to run an AS7/EAP6 CLI script with an operation on Standalone or Host Controller resources Version-Release number of selected component (if applicable): 4.10 Additional info: -Needs to know the management interface host (already in plugin config) and remoting port (can be in operation params now and later-on in plugin config) -Needs to know the management credentials (already in plugin config) -Two operations: Execute CLI commands, Execute CLI script -Common field: remoting port (with default value of http management port +9) -Required fields: Commands string or file string Output fields: process output longtext Example CLI commands: ./jboss-cli.sh -c --commands="cd subsystem=web,ls" --user="rhqadmin" --password="rhqadmin" --controller="127.0.0.25:9999" ./jboss-cli.sh -c --file="test.cli" --user="rhqadmin" --password="rhqadmin" --controller="127.0.0.25:9999"
in master commit 275832167d4969404896875eb418bdfa8468fa24 Author: Libor Zoubek <lzoubek> Date: Wed Feb 19 12:50:02 2014 +0100 [BZ 1054360] - RFE: let users run an AS7/EAP6 CLI script with an operation on Standalone or Host Controller resources Adding 2 new operations for AS7 DomainController and Standalone servers. executeCommands and executeScript. The latter expects script exists on target host with as7 cli commands. Both operations run jboss-cli executable in the end. Currently there is hard-coded timeout waiting to jboss-cli process to 60s. This should be improved so operation timeout is used instead. Both operations has 2 additional parameters. If user runs a script wich changes AS state, he might need to trigger discovery or availability after right operation success. Plugin config was extended by nativeHost and nativePort simple properties - those are required to run jboss-cli and are discovered same way as management host and port. Both operations could work even if plugin does not yet know credentials to AS7, since jboss-cli uses magic local authentication and if it succeeds it ignores supplied user and password parameters.
commit 2b36795891d0708ed49a35222b057bd122e6b90b Author: Libor Zoubek <lzoubek> Date: Mon Feb 24 16:50:07 2014 +0100 [BZ 1054360] RFE: let users run an AS7/EAP6 CLI script with an operation on Standalone or Host Controller resources Remove hard-coded timeout when waiting for jboss-cli process. Exposed another 2 operation parameters to handle process timeout or killing it when timeout occurs.
Bulk closing of 4.10 issues. If an issue is not solved for you, please open a new BZ (or clone the existing one) with a version designator of 4.10.