cl_availability command

Purpose

The cl_availability tool generates a text report that shows the duration of events that occurred in the cluster. The tool can generate a node-centric report that shows the duration of the latest event and the average duration for the user input or last five events. Optionally, the cl_availability tool can produce a resource group-centric report that shows the duration that is required to acquire a resource group and to release of resource groups on each node. Both the node-centric report and the resource group-centric report can show durations that are required to acquire and release the resources that are contained in the resource groups.

Syntax


cl_availability [-n ALL|<node_name>[,<node_name#2>]][-a Number][-b YYYY-MM-DDThh:mm [-e YYYY-MM-DDThh:mm]]

cl_availability -d [-n ALL|<node_name>[,<node_name#2>]][-a Number][-b YYYY-MM-DDThh:mm [-e YYYY-MM-DDThh:mm]]

cl_availability [-r ALL|<resource_group>[,<resource_group#2>]][-a Number][-b YYYY-MM-DDThh:mm [-e YYYY-MM-DDThh:mm]]

cl_availability -d [-r ALL|<resource_group>[,<resource_group#2>]][-a Number][-b YYYY-MM-DDThh:mm [-e YYYY-MM-DDThh:mm]]

cl_availability [-s ALL|<site_name>[,<site_name#2>]][-a Number][-b YYYY-MM-DDThh:mm [-e YYYY-MM-DDThh:mm]]

cl_availability -d [-s ALL|<site_name>[,<site_name#2>]][-a Number][-b YYYY-MM-DDThh:mm [-e YYYY-MM-DDThh:mm]]

cl_availability [-v [-n ALL|<node_name>[,<node_name#2>]]][-a Number][-b YYYY-MM-DDThh:mm [-e YYYY-MM-DDThh:mm]]

cl_availability -d [-v [-n ALL|<node_name>[,<node_name#2>]]][-a Number][-b YYYY-MM-DDThh:mm [-e YYYY-MM-DDThh:mm]]

cl_availability [-m [-n ALL|<node_name>[,<node_name#2>]]][-a Number][-b YYYY-MM-DDThh:mm [-e YYYY-MM-DDThh:mm]]

cl_availability [-R <resource_type>:ALL|resource_name[,<resource_name#2>]][-a Number][-b YYYY-MM-DDThh:mm [-e YYYY-MM-DDThh:mm]]

cl_availability [-p <ALL|Application_server_name[,<Application_server_name#2>]][-n ALL|<node_name>[,<node_name#2>]][-b YYYY-MM-DDThh:mm [-e YYYY-MM-DDThh:mm]]

Options

-n
Displays node-centric report for specified nodes.
-d
Displays a detailed report that captures the time that is taken for each sub-event or operation.
-r
Displays a resource-centric report for specified resource groups.
-s
Displays a site-centric report for specified sites.
-v
Displays the verification and synchronization reports.
-R
Displays a resource-centric report.
Resource type can be service_ip, volume_group, applications, file system, Network File System (NFS), or WPAR_NAME.
-m
Displays the miscellaneous events report such as the Network Events Report.
-a
Displays the event report that shows the average duration of the last 5 events. If the number of events that you specify is greater than the events that are available, the report is created by using the available events.
-b
Displays the events report from the specified date. If the end date is not specified, the current date is used as the end date.
-e
Displays the events report until the specified date. Ensure that the specified end date is greater than the start date. The -e option is valid only when the -b option is specified.
-p
Displays the CPU and memory usage information in a JSON-format file for the specified application servers. To use the -p option, you must specify the -n, -b, and -e options. You cannot specify any other options.
Examples:
  1. To display node-centric reports for all the specified nodes, enter the following command:
    cl_availability -n ALL
  2. To display a detailed report that captures the time that is taken for each sub-event or operation in the nodes, enter the following command:
    cl_availability -d -n node1,node2
  3. To display the service_ip centric report, enter the following command:
    cl_availability -R service_ip
  4. To display the service_ip centric report for different service IP addresses, enter the following command:
    cl_availability -R service_ip ip1,ip2
  5. To display all node-centric report and miscellaneous event report such as the network events report, enter the following command:
    cl_availability -m -n ALL
  6. To display the verification and synchronization reports, enter the following command:
    cl_availability -v
  7. To display node-centric report for all the specified nodes for 10 events, enter the following command:
    cl_availability -n ALL -a 10
  8. To display node-centric report for all the specified nodes from the specified start date to the current date, enter the following command:
    cl_availability -n ALL -b 2019-11-01T10:26
  9. To display node-centric report for all the specified nodes from the specified start date to the specified end date, enter the following command:
    cl_availability -n ALL -b 2019-11-01T10:26 -e 2019-11-30T02:29
  10. To generate the CPU and memory usage report of an application server in the JSON format from the specified start date to the specified end date, enter the following command:
    cl_availability -p ALL -n ALL -b 2019-04-01T03:14 -e 2019-04-15T09:24