-
Feature Request
-
Resolution: Won't Do
-
Major
-
None
-
7.1.0.DR1
-
None
Just creating proper chain of issues, check BZ for links
Description of problem:
The CLI logs history in an interactive session, but commands run via the --file and --command or --commands arguments are not logged. This is affecting the customer's ability to troubleshoot an ongoing problem with management via the CLI.
Version-Release number of selected component (if applicable):
Seen in EAP versions 6.3.3GA and earlier; may be extant in 6.4, aswell.
How reproducible:
Readily reproducible
Steps to Reproduce:
1. cp /dev/null ~/.jboss-cli-history
2. file ~/.jboss-cli-history [returns "empty"]
3. echo "/core-service=management/management-interface=native-interface:read-resource(recursive=true)" > ./foo.cli
4. cat foo.cli [should return the single line]
5. ./bin/jboss-cli.sh --connect --controller=localhost:9999 --file=foo.cli
{
"outcome" => "success",
"result" =>
}
6. [nmunnell@nmunnell jboss-eap-6.3]$ file ~/.jboss-cli-history
/home/nmunnell/.jboss-cli-history: empty
7. [nmunnell@nmunnell jboss-eap-6.3]$ ./bin/jboss-cli.sh --connect --controller=localhost:9999 --command="/core-service=management/management-interface=native-interface:read-resource(recursive=true)"
{
"outcome" => "success",
"result" => { "interface" => undefined, "port" => undefined, "security-realm" => "ManagementRealm", "socket-binding" => "management-native" }
}
8. [nmunnell@nmunnell jboss-eap-6.3]$ file ~/.jboss-cli-history
/home/nmunnell/.jboss-cli-history: empty
9. [nmunnell@nmunnell jboss-eap-6.3]$ ./bin/jboss-cli.sh --connect --controller=localhost:9999
[standalone@localhost:9999 /] /core-service=management/management-interface=native-interface:read-resource(recursive=true)
{
"outcome" => "success",
"result" =>
}
[standalone@localhost:9999 /] quit
10. [nmunnell@nmunnell jboss-eap-6.3]$ file ~/.jboss-cli-history
/home/nmunnell/.jboss-cli-history: ASCII text
11. [nmunnell@nmunnell jboss-eap-6.3]$ cat ~/.jboss-cli-history
/core-service=management/management-interface=native-interface:read-resource(recursive=true)
quit
Actual results:
CLI does not print commands to .jboss-cli-history when passing --file and --command args.
Expected results:
CLI should log the commands run as it does when they are run from within the CLI.
- is cloned by
-
WFCORE-790 CLI Does Not Log History With "--file" and "--command(s)" args
- Closed
- is duplicated by
-
JBEAP-385 CLI Does Not Log History With "--file" and "--command(s)" args
- Closed