Is it possible to "extract" the Alarm History of a device showing in OneClick?
search cancel

Is it possible to "extract" the Alarm History of a device showing in OneClick?

book

Article ID: 36437

calendar_today

Updated On:

Products

Spectrum Network Observability

Issue/Introduction

In the Spectrum OneClick console there is a tab called Alarm History. Is there a possibility to get the Alarm History via RESTful or some other interface?

 

Environment

DX NetOps Spectrum all currently supported releases

Resolution

It is not possible to do this via the RESTful API, as it can only create events and not "get" events.

The only way to do this, is via the SpectroSERVER Object Request Broker (SSORB) API as detailed under:

TechDocs : DX NetOps Spectrum 25.4 : Development API Reference

It requires to look for the following events that have the same cause code as the current alarm:

  • ALARM SET     (0x10701)
  • ALARM CLEARED (0x10702)

Then look at the vardata (8) (global Alarm ID) and vardata (9) (Event_ID_List) to get the alarm set and clear dates and then print out the event using the Event_ID_List of the alarm.