Red Hat Training

A Red Hat training course is available for Red Hat JBoss Operations Network

Commands and Options with the CLI

The JBoss Operations Network CLI is only one way to run scripts on the server, but it is a flexible and powerful way to create and execute scripts.
The JBoss ON CLI is essentially a script interpreter which processes JavaScript — either interactively or from a file — and translates it into Java, which the server then run. (The background concepts for the CLI are covered in more detail in Chapter 1, Understanding How Scripts Work with the JBoss ON Server and CLI.)
The JBoss ON CLI builds on the defined remote and domain API with its own internal commands, options, and methods which make writing scripts and managing resources easier. One of the biggest assets is the ability to create resource proxies, which are simplified (and therefore easier to use) resource objects.
This section focuses on the CLI options and basic usage tips. For scripting basics, see Short Examples.

1. Compatible CLI and Server Versions

Like the agent and other JBoss ON components, the CLI utility has a version. The CLI utility must be the same version as the JBoss ON server to which it is trying to connect.
The CLI utility is not compatible with other versions of the JBoss ON server, neither newer nor older versions.