Hi, I would like to know how to stop a domain controller and it's managed hosts using the command line interface. For a standalone server I can use:
jboss/bin/jboss-admin.sh --connect command=:shutdown
however, this does not work when the servers are in a domain; then I get the following error:
The controller is not available at localhost:9999
My host.xml file includes:
<management-interfaces>
<native-interface interface="management" port="9999" />
<http-interface interface="management" port="9990"/>
</management-interfaces>
How can jboss-admin.sh be used to control domains, or is this not possible? I have also had a hard time finding any documentation regarding the shutdown command, only one reference to the above shutdown command, nothing regarding its use once connected.
thanks, Mitchell
There is shutdown command for hosts, so for the default config you can do:
jboss-admin.sh -c command=/host=master:shutdown
The connection to the controller shouldn't be different to the standalone case though.