Basic operations

The first thing you may want to know is what version of JBoss EAP is running and which JVM it's using; to gather this information you can rely on the version command, whose result is as follows:

[standalone@localhost:9990 /] version
JBoss Admin Command-line Interface
JBOSS_HOME: /opt/rh/jboss-eap-7.0
JBoss AS release: 2.1.2.Final-redhat-1 "Kenny"
JBoss AS product: JBoss EAP 7.0.0.GA
JAVA_HOME: null
java.version: 1.8.0_65
java.vm.vendor: Oracle Corporation
java.vm.version: 25.65-b01
os.name: Linux
os.version: 4.2.5-300.fc23.x86_64
[standalone@localhost:9990 /]

Furthermore, to know the exact state of a JBoss instance, you need to rely on the read-attribute method followed by the attribute name, as follows:

As mentioned previously in ...

Get Mastering JBoss Enterprise Application Platform 7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.