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 this chapter, method invocations are bound to resources by the colon
(:) symbol. In this case, the resource is the root, that is, the server. To know where you are, just use the pwd
command, as follows:
[standalone@localhost...