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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content