CLI command to check deployment status in JBoss EAP

Solution Verified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x

Issue

  • How to check if the deployment succeeded or not in JBoss EAP 6 using CLI interface.
  • We have a requirement to verify that all EARs within a domain are started. What is the best way to get that information?
  • How to run a health check of a deployed app via the command line

Resolution

  • To check the deployment status of the application use following CLI command:

For standalone Mode

[standalone@localhost:9999 /] deployment-info --name=Test_App.war           
NAME          RUNTIME-NAME  PERSISTENT ENABLED STATUS 
Test_App.war  Test_App.war  true       true    OK   

or

[standalone@localhost:9999 /] /deployment=Test_App.war:read-attribute(name=status)
{
    "outcome" => "success",
    "result" => "OK"
}

For Domain Mode

[domain@localhost:9999 /] deployment-info --name=Test_App.war  
NAME          RUNTIME-NAME  
Test_App.war  Test_App.war 

SERVER GROUP       STATE   
main-server-group  enabled 
other-server-group enabled 

or

[domain@localhost:9999 /] /host=master/server=server-one/deployment=Test_App.war:read-attribute(name=status)
{
    "outcome" => "success",
    "result" => "OK"
}

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.