Update Event operation for the BEM adapter


The Update Event operation enables you to update events retrieved using the search criteria specified in the request.

The following figure shows a sample <items> XML element for the Update Event operation.

<items> XML element for the Update Event operation

<items>
 <item>
   <connection-parameters>
     <user-name>user</user-name>
     <timeout-secs>100</timeout-secs>
     <cell-name>Admin</cell-name>
   </connection-parameters>
   <arguments>
     <argument>
       <name>Severity</name>
       <value>ok</value>
     </argument>
   </arguments>
   <update-arguments>
     <argument>
       <name>Priority</name>
       <value>2 - High</value>
     </argument>
     <argument>
       <name>Message</name>
       <value>test1</value>
     </argument>
     <argument>
       <name>Severity</name>
       <value>ok</value>
     </argument>
   </update-arguments>
 </item>
</items>

The following figure shows a sample adapter request for the Update Event operation.

Sample adapter request for the Update Event operation


<bmc-event-manager-request>
 <connection-parameters>
  <user-name>user</user-name>
  <timeout-secs>100</timeout-secs>
  <cell-name>Admin</cell-name>
 </connection-parameters>
  <update-arguments>
   <argument>
      <name>Priority</name>
      <value>2 - High</value>
   </argument>
   <argument>
      <name>Message</name>
      <value>Insert message here</value>
   </argument>
   <argument>
      <name>Severity</name>
      <value>ok</value>
   </argument>
 </update-arguments>
  <arguments>
   <argument>
      <name>Severity</name>
     <value>ok</value>
    </argument>
   </arguments>
  <operation-name>update-event</operation-name>
</bmc-event-manager-request>

The following figure illustrates the adapter response for the sample Update Event operation.

Adapter response for the Update Event operation


<bmc-event-manager-response>
  <response-metadata>
<status>success</status>
<count>1</count>
  </response-metadata>
  <event-manager-query-response>
<query-executed>select [event_handle, mc_date_modification, status, severity,
mc_owner, mc_smc_id, mc_host, mc_incident_time, msg, mc_priority, duration,
mc_smc_type, mc_service, mc_local_reception_time, mc_action_count,
mc_arrival_time, mc_host_class, mc_event_category, date_reception,
mc_host_address, mc_location, mc_ueid, CLASS, mc-tool, adapter-host,
 mc-tool-class, mc-tool-address, mc-tool-rule, mc-tool-time, mc_account,
mc_object_class,mc_parameter, mc_object, mc_parameter_threshold, mc-smc-alias]
from EVENT where
[$THIS.mc_incident_time greater_or_equals '1193728620' AND
 $THIS.mc_incident_time smaller_or_equals '1193728680'] END</query-executed>
  <query-response>
<event-handle>124919</event-handle>
<Modified>1199286532</Modified>
<Status>ACK</Status>
<Severity>OK</Severity>
<Owner>SOMEONE</Owner>
<Component_ID>IAS_Admin@india-dev1</Component_ID>
<Host>india-dev1</Host>
<Origin_Time>1193728671</Origin_Time>
<Message>TEST MESAGE</Message>
<Priority>PRIORITY_5</Priority>
<Time_to_Close>5517863</Time_to_Close>
<Component_Type>BMC_AdministrationApplication</Component_Type>
<Service></Service>
<Received>1196423411</Received>
<Occurences>1</Occurences>
<Arrived>1196423411</Arrived>
<Host_Class></Host_Class>
<Category>OPERATIONS_MANAGEMENT</Category>
<Occurred>1193728671</Occurred>
<Host_Address></Host_Address>
<Location>Unknown</Location>
<ID>mc.Admin.74ff8f3.0</ID>
 <CLASS>MC_CELL_PARSE_ERROR</CLASS>
 <mc-tool>bem-actor-adapter</mc-tool>
 <adapter-host>D-13120.synapse.com</adapter-host>
<mc-tool-class>ro-adapter-BMC-event-manager-actor</mc-tool-class>
 <mc-tool-address>10.10.75.137-null-bmceventmanageractoradapter</mc-tool-address>
<mc-tool-rule>testMCTOOLRULE</mc-tool-rule>  
<mc-tool-time>1214236542</mc-tool-time>  
 <mc_account>testAccount</mc_account>  
<mc_object_class>testObjectClass</mc_object_class>
<mc_parameter>testParameter</mc_parameter>
 <mc_object>testObject</mc_object>
 <mc_parameter_threshold>testParameterThreshold</mc_parameter_threshold>
 <mc-smc-alias>EM_Cell_Server_1_India-Dev1</mc-smc-alias>
  </query-response>
</event-manager-query-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*