2.26.3 list-event-hooks
The list-event-hooks subcommand lists the event hook commands.
Synopsis
asadmin [asadmin_options] list-event-hooks [--long={false|true}]
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The list-event-hooks subcommand lists the registered event hook commands.
This subcommand is supported only in the remote mode.
Execution permission
General user
Arguments
- --long={false|true}
-
Specifies whether to display the header information.
Type: Boolean
You can specify the following values:
-
true
Displays all the event hook commands and header information. The list displays all the items.
-
false
Displays all the event hook commands. It does not display the header information. The list displays the values for names, message IDs, and script paths.
Default value: false
-
Output Format
The first line is the header of the output information and displays a fixed character string, which indicates the output format.
Between columns, the longest character string within a column is separated from the beginning of the next column by two spaces.
Each line, except the header, displays the create-event-hook subcommand in the order of its registration.
NAME MESSAGEID SCRIPT MONITORING-TIME-SPAN MONITORING-MAX-COUNT name message_ID script_path time_interval maximum_permitted_number_of_executions
name: Displays the event hook command name.
message_ID: Displays the message ID.
script_path: Displays the absolute path of the script to be run.
time_interval: Displays the time interval to configure the maximum permitted number of executions.
maximum_permitted_number_of_executions: Displays the maximum permitted number of executions.
Examples
The following example displays all the registered event hook commands including the header.
list-event-hooks --long=true
Example of output:
NAME MESSAGEID SCRIPT MONITORING-TIME-SPAN MONITORING-MAX-COUNT Event01 KDKD10083-I /work/failure-script.sh 180 3
The following example displays all the registered event hook commands without the header.
list-event-hooks --long=false
Example of output:
Event01 KDKD10083-I /work/failure-script.sh
Exit Status
Exit Status |
Explanation |
---|---|
0 |
Normal termination. |
1 |
Abnormal termination. |