How can I figure out which JBoss CLI command is failing?

Solution Verified - Updated -

Issue

  • When running a CLI script with multiple commands (e.g. from command line) it is very difficult to assign the output to the different commands. In fact one has to count the statements in the script as well as the output blocks.
  • If the CLI script has multiple commands i.e 10+ and one of them fails, how can I determine which command failed?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6.3.3
    • Command Line Interface (CLI)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.