Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Highlighted
Dilyan Honored Contributor.
Honored Contributor.
1152 views

(OMi) Support Tip: How to cancel event\ event update forwarding request?

In case you forward events\ event updates from Source OMi to Target system, in some specific situation you may end up with event\ event updates which can't be forwarded for whatever reason. Then you will get an Event in your Event Browser with similar description as the following one:

"Event Forwarding Gateway server <Source OMi FQDN> is unable to reach server <Connected Server Name of the Target> due to the following error: 'java.net.SocketException: Socket Closed' The event 'test sync forwarding' (ea87179a-14f0-46b3-bcef-238af8dca7ed) cannot be delivered at this time. The request will be retried continuously until the forward request expires. According to the Operations Management Event Forwarding Expiration infrastructure setting of 12 hour(s), this request is estimated to expire in 11 hour(s) and 59 minute(s) from the time this event has occurred. At the time of this event the queue this request is on has 1 request(s) in the backlog."

You will find same log entry in the "<OMi Home>\log\wde\opr-gateway.log" on your Gateway Server.

If the event\ event update can not be forwarded then it is being buffered in buffer queue, related DB Table is "EVENT_SYNC_BUFFER" and also the respective event\event update will have an entry in the "EVENT_FORWARDING_INFO" DB table with FORWARDING_STATE='QUEUED'.

The forwarding of the event\ event update will be retried on interval of 1 minute and it will expire after the defined "Event Forwarding Expiration" value, which is available in the Infrastructure Settings (Administration / Setup and Maintenance / Infrastructure Settings) under Context "Application = Operations Management". By default this setting has value of 12 hours. After the expiration of the defined time the related entries will be deleted from the buffered table and its FORWARDING_STATE will be updated to EXPIRED.

In some situations you may want to get rid of those forwarding requests and of course one of the options would be to decrease the "Event Forwarding Expiration" value, but since this is a Global setting it will afect all the event forwarding requests related to all different Target servers that you may have and also the lowest value that you can set for this Infra Setting is 1 hour, so this isn't the best option to chose.

If you like to cancel those forwarding request imidiatelly you can do it via opr-event-sync command line utility which resides underneath "<OMi Home>\opr\bin" directory and it is available on both Data Processing and Gateway Servers.

The utility has several options:

C:\HPBSM\opr\bin>opr-event-sync.bat -help Usage: EventSync -list | -monitor | -show <queue identifier> | (-cancel                  [-server <server_dns_name>] [-identifier <queue identifier>]                  [-start <start>] [-end <end>] [-severity_list <severity_list>]                  [-force] [-include])

 

You can use "-list" option and it will show you the Entry Count and Queue Identifier for buffered forwarding requests:

C:\HPBSM\opr\bin>opr-event-sync.bat -list

Event Synchronization Buffered Queue  

Entry Count           Queue Identifier

---------------------------------------------------  

 12                     <Target_Server1_FQDN>:<Source_GW_FQDN>

 34                     <Target_Server2_FQDN>:<Source_GW_FQDN>

 5                      <Target_Server3_FQDN>:<Source_GW_FQDN>

 

You can then cancel those forwarding request using "-cancel" option and you can additionally add specific Queue Identifier using "-identifier" option:

C:\HPBSM\opr\bin>opr-event-sync.bat -cancel -identifier <Target_Server_FQDN>:<Source_GW_FQDN>

INFO: Event synchronization will be cancelled. Do you wish to continue (y/n)? y

INFO:  Event synchronization cancellation has been requested for "x" outstanding requests on the queue. Any outstanding event updates queued for delivery will also be cancelled.

Then the related forwarding request entries will be deleted from the EVENT_SYNC_BUFFER table and the FORARDING_STATE will be set to CANCELLED.

If needed, you can even restrict more the event forwarding requests cancelation using the following utility options: [-start <start>] [-end <end>] [-severity_list <severity_list>]

 

Regards,
Dilyan Angelov

Micro Focus Support
If you find this or any post resolves your issue, please make sure to mark it as an accepted solution.
If you liked the reply then please show this with KUDOs.
Labels (1)
1 Reply
ramesh9 Acclaimed Contributor.
Acclaimed Contributor.

Re: (OMi) Support Tip: How to cancel event\ event update forwarding request?

Dear

What happens if we cancel event sync and if any event is closed in OMi, does it get reflected in target server.

For example we have NNMi integrated to OMi using opsconnector and we are seeing this error very frequently.

If we cancel the sync and if any event with respect to NNMi is closed in OMi, does corresponding event in NNMi is also closed?

Please advise.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.