Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Executing HornetQ Scripts

You execute HornetQ scripts to fetch details about all queues from the JBoss CLI or view the list of messages on a specific queue. HornetQ scripts are stored at the following location: /var/log/space-debug/debug-utilities/HornetQ. When you execute these scripts, the output is stored as .txt files at the same location. You can also specify a custom path to store the output. The following sections list the steps to execute the scripts to fetch details about queues from the JBoss CLI.

Executing the HornetQ Script to View all JBoss Queues

You execute the HornetQInfoProvider.sh script to view all the JBoss queues.

To execute the script to view all JBoss queues:

  1. Log in to the CLI of the Junos Space node.
  2. Enter the administrator username and password at the Junos Space login prompt and press Enter.

    The default username is admin and the default password is abc123.

    The Junos Space Settings Menu is displayed.

  3. Enter 6 (if you are using a hardware appliance) or 7 (if you are using a virtual appliance) at the Junos Space Settings Menu prompt to run shell commands.

    You are prompted to enter your password.

    The following is a sample output from a virtual appliance:

  4. Type the administrator password and press Enter.

    The shell prompt appears.

  5. Type cd /var/log/space-debug/debug-utilities/hornetQ at the shell prompt and press Enter.
  6. (Optional) To view the list of HornetQ scripts, type ls and press Enter.
  7. Type ./HornetQInfoProvider.sh and press Enter.

    The output from this command is saved to the HornetQInfo.txt file in the same directory. The following sample output displays one of the JBoss queues:

  8. (Optional) To save the list of all JBoss queues at a custom output location, type ./getDeviceInfo.sh<output-file-path> and press Enter.

You can view all the JBoss queues.

Executing the HornetQ Script to List of Messages in a JBoss Queue

You execute the HornetQInfoProvider.sh script to view the list of messages in a JBoss queue.

To execute the script to view the list of messages in a JBoss queue:

  1. Log in to the CLI of the Junos Space node.
  2. Enter the administrator username and password at the Junos Space login prompt and press Enter.

    The default username is admin and the default password is abc123.

    The Junos Space Settings Menu is displayed.

  3. Enter 6 (if you are using a hardware appliance) or 7 (if you are using a virtual appliance) at the Junos Space Settings Menu prompt to run shell commands.

    You are prompted to enter your password.

    The following is a sample output from a virtual appliance:

  4. Type the administrator password and press Enter.

    The shell prompt appears.

  5. Type cd /var/log/space-debug/debug-utilities/hornetQ at the shell prompt and press Enter.
  6. (Optional) To view the list of HornetQ scripts, type ls and press Enter.
  7. Type ./HornetQMessageViewer.sh<queue-name>—for example, ./HornetQMessageViewer.shResyncJobDispatcherQueue.

    The output from this command is saved to the <queue-name>-messages.txt file in the same directory. The following sample output displays the list of messages in a JBoss queue named ResyncJobDispatcherQueue.

  8. (Optional) To save the list of all messages at a custom output location, type ./HornetQMessageViewer.sh<queue-name> <output-file-path> and press Enter.

You can view the list of messages in a specific JBoss queue.