Support Centre

Find articles, help and advice.

 
Welcome, Guest Login

Support Center

BES - Sending XML into the EventDaemon through the TCP port

Last Updated: May 23, 2017 12:08PM UTC
Question:

Are you able to send XML into the EventDaemon to update alert fields?

Answer:

You are able to send XML into the EventDaemon to update alert fields. This is done through the TCP port.

To make use of this feature:

1. Telnet to BES EventDamon on port 35000.
2. Send an EventDaemon register string followed by a series of events terminated with a line feed (LF).

The register string (<CN>) sets an alias for the current connection, which is typically the application name (e.g MyApplication)

Note: Only 1 register string is permitted per connection session.
         Every new event will need to be on a new line. You only need to have one register string.


Event Streaming:-
To register and stream all events use the register string:
<CN>MyApplication</CN>

To register and stream all events for a particular message channel:
<CN>MyApplication</CN><mcname>piBEM</mcname>

Querying:-
Use the register string: <CN>MyApplication</CN><query>y</query>

Retrieve all alerts for a message channel:
<QM><mcname>rsBES</mcname></QM>

Query all alerts based on a single field and simple pattern:
<QS><field>_objectstate</field><pattern>Unavailable</pattern></QS>

Alert Manipulation:-
Use the register string: <CN>MyApplication</CN><query>y</query>

UpdateField:
<UF><alertId>0000000544</alertId><eventTime>2017-04-13 11:48:22.786</eventTime><fieldname>text</fieldname><newvalue>some new text</newvalue>updatedBy>REXX</updatedBy></UF>

Occurrence:
<R><alertId>0000000546</alertId><lastReceived>2017-04-15 21:37:13.117</lastReceived><occurrences>7</occurrences><type></type></R>

AddNote:
<AN><alertId>0000000553</alertId><note>2017/01/01 10:39:55 ppadmin: newnote</note><noteTime>2017/01/01 10:39:55</noteTime><currentOperator>ppadmin</currentOperator></AN>

Assign - user:
<A><alertId>0000000551</alertId><timeAssigned>2017-04-15 21:37:13.117</timeAssigned><currentOperator>ppadmin</currentOperator><type>8</type></A>

Assign - supervisor:
<A><alertId>0000000551</alertId><timeAssigned>2017-04-15 21:37:13.117</timeAssigned><currentOperator>ppadmin</currentOperator><type>9</type></A>

Deassign - user:
<A><alertId>0000000551</alertId><timeDeassigned>2017-04-15 21:37:13.117</timeDeassigned><currentOperator>--</currentOperator><type>10</type></A>

Deassign - supervisor:
<A><alertId>0000000551</alertId><timeDeassigned>2017-04-15 21:37:13.117</timeDeassigned><currentOperator>--</currentOperator><type>11</type></A>

Acknowledge:
<AK><alertId>0000000551</alertId><timeAcknowledged>2017-04-15 21:37:13.117</timeAcknowledged><currentOperator>ppadmin</currentOperator><type>13</type></AK>

Deacknowledge:
<AK><alertId>0000000551</alertId><timeDeacknowledge>2017-04-15 21:37:13.117</timeDeacknowledge><currentOperator>ppadmin</currentOperator><type>14</type></AK>

Close - user:
<C><alertId>0000000551</alertId><timeClosed>2017-04-15 21:37:13.117</timeClosed><currentOperator>ppadmin</currentOperator><type>2</type></C>

Close - supervisor:
<C><alertId>0000000547</alertId><timeClosed>2017-04-15 21:37:13.117</timeClosed><currentOperator>ppadmin</currentOperator><type>3</type></C>

Contact Us

desk.com@interlinksoftware.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete