showeventsource
You can use the showeventsource command to display information about event sources.
Overview
Event sources are used by HCL Universal Orchestrator to receive events from specific event plug-ins. You can use the showeventsource command to display details about event sources.
Syntax and command line options
The
showeventsource command supports the following
arguments:
ocli plan showeventsource | se [[folder/]eventsource] ;events ;from ;to ;triggering ;untriggering- [folder/]eventsource
- You can specify the name of the specific event source that you want display. You can also specify the folder in which the event source is defined, which is optional.
The details that are displayed are:
showeventsource- EventSource
The name of the event source.
- StatusThe status of the event source. It can be either:
ONLINEOFFLINE
- ActualStatusThe actual status of the event source:
LISTENINGCONNECTEDDISCONNECTEDERROR
- Message
It displays the error message if the actual status of the event source is
ERROR.
from=HHmmFilters all events received from a specific date and time.
to=HHmmFilters all events received until a specific date and time.
triggeringFilters all events that match events defined in workflows.
untriggeringFilters all events that do not match any events defined in workflows.
-
Plugin
The plug-in type the event source receives events from.
-
EventType
The event type of the events received by the event source.
-
Received Time
The date and time the event source received the event.
-
Scope / Match
Describes the event received by the related eventsource.
This information is followed up by the name of the workflows that contains the event conditions that match the event received. If the received event does not match any workflow, no workflows are displayed.
Examples
- To display all event sources, run the following
command:
ocli plan se @A sample output for this command is as follows:EventSource Status ActualStatus Message MY_SOURCE ONLINE LISTENING NEW_EVENT_SOURCE ONLINE LISTENING MY_SOURCE_OFFLINE OFFLINE DISCONNECTED - To display all the events received from all event sources in a specific date and
time interval, run the following
command:
ocli plan se ;events ;from=1500 ;to=1520A sample output for this command is as follows:EventSource EventType Plugin Received Time Scope / Match /eventsource1 WebhookEvent Webhook 02/01 15:13:09 PATCH /eventsource1 WebhookEvent Webhook 02/01 15:13:49 PATCH - ContentType: application/json /eventsource1 WebhookEvent Webhook 02/01 15:14:17 POST - ContentType: application/json /WS_AGT_0#/WORKFLOW2 /eventsource1 WebhookEvent Webhook 02/01 15:14:54 POST - ContentType: application/json /WS_AGT_0#/WORKFLOW2 /eventsource1 WebhookEvent Webhook 02/01 15:15:21 POST /WS_AGT_0#/WORKFLOW2 - To display all the received events from all event sources that match any
workflows,
run the following
command:
ocli plan se ;events ;triggeringA sample output for this command is as follows:EventSource EventType Plugin Received Time Scope / Match /eventsource1 WebhookEvent Webhook 02/01 15:14:17 POST - ContentType: application/json /WS_AGT_0#/WORKFLOW2 /eventsource1 WebhookEvent Webhook 02/01 15:14:54 POST - ContentType: application/json /WS_AGT_0#/WORKFLOW2 /eventsource1 WebhookEvent Webhook 02/01 15:15:21 POST /WS_AGT_0#/WORKFLOW2 - To display all the received events from all event sources that do not match any
workflows,
run the following
command:
ocli plan se ;events ;untriggeringA sample output for this command is as follows:EventSource EventType Plugin Received Time Scope / Match /eventsource1 WebhookEvent Webhook 02/01 15:13:09 PATCH /eventsource1 WebhookEvent Webhook 02/01 15:13:49 PATCH - ContentType: application/json