DX NetOps

 View Only
  • 1.  Clearing model outages using REST API

    Posted Nov 18, 2021 10:30 AM

    We have model outages which appear to remain open after in reality the outage has ben cleared.  There are certain maintenance tasks the group that manages the spectrum servers do every night and the clear events for these outages are not getting processed to populate the end_time in the SRM database.  Below is the query against the database to identify these outages.  My question to the community is has anyone cleared events by using the REST API. 

    The solution  will be wrapped up in a C# utility that will periodically throughout the day to attempt to clear the events.  I have figured out how to clear the maintenance mode events but not the specific unplanned outages by start_event_key.  Any assistance /direction would be appreciated.

    select
    	vfmo.model_outage_id,
    	vfmo.model_key,
        vdm.model_h_hex,
        vdm.model_name,
    	vfmo.start_time,
        vfmo.end_time,
        vfmo.duration_seconds,
        vfmo.start_event_key,
        vfmo.end_event_key,aaaaaaaa
        vfmo.outage_type,
        concat
        (
    		case 
    			when (vfmo.duration_seconds div 3600) < 10
    				then lpad(vfmo.duration_seconds div 3600, 2, 0)
    			else vfmo.duration_seconds div 3600        
    		end, ':',
    		lpad(((vfmo.duration_seconds mod 3600)div 60), 2, 0),':',
    		lpad(vfmo.duration_seconds mod 60, 2, 0)
        ) as 'duration_time', timestampadd(second, vfmo.duration_seconds, vfmo.start_time) as 'calculated_end_time'  
    from 
    	srmdbapi.v_fact_model_outage vfmo
        inner join srmdbapi.v_dim_model vdm on vdm.model_key = vfmo.model_key
    where 
    	start_time <= "2021-11-01 00:00:00" and end_time IS NULL and outage_type = 1;


  • 2.  RE: Clearing model outages using REST API

    Broadcom Employee
    Posted Nov 18, 2021 12:44 PM
    Hi Schott,

    If you have the event code that would end the ongoing outage in the Archive Manager's DDM database, then the SRM (Spectrum Report Manager) should have processed that event code into the reporting database and ended the outage.

    The following section of the Spectrum guide lists the events that mark the beginning and end of either a planned or unplanned model outage:

    https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/21-2/installing-and-upgrading/install-report-manager/appendix-a-ca-spectrum-events-used-by-report-manager.html


  • 3.  RE: Clearing model outages using REST API

    Broadcom Employee
    Posted Nov 18, 2021 12:50 PM
    Is the reporting database in sync?

    SELECT * FROM landscape\G

    https://knowledge.broadcom.com/external/article/210890/how-to-check-data-synch-period-from-spec.html

    Is there any unprocessed bucket file in the reporting directory?

    select count(1) from bucketactivitylog where destroy_time is null;


  • 4.  RE: Clearing model outages using REST API

    Posted Nov 22, 2021 10:38 AM
    Is there a rest call that can be made to resend the clear message?  These outages tend to happen when the team that supports Spectrum does some maintenance work; The organizations goal is to have an application detect these sort of events and resend the clear messages.  When there is a maintenance period it usually results in 1.5-2k uncleared events  that just remain open.


  • 5.  RE: Clearing model outages using REST API

    Broadcom Employee
    Posted Nov 22, 2021 03:26 PM
    There is no **** REST call to end all ongoing outages. To each event code that initiated an ongoing outage, there should be another event code to end the outage.
    First, increase the MAX_EVENT_RECORDS parameter if you still have the default value (20000) to avoid losing events when the Archive Manager's DDM database is not available. See KB 20967 for further information.
    You can manually end the ongoing outage from the OC Outage Editor, or use the KB 49305 to end the outage in a bulk.

    CA Spectrum Event Storage Best Practices

    https://knowledge.broadcom.com/external/article?articleId=20967

    When running availability reports in Spectrum Report Manager there are ongoing outages from a long time ago
    https://knowledge.broadcom.com/external/article?articleId=49305


  • 6.  RE: Clearing model outages using REST API

    Posted Dec 02, 2021 08:51 AM
    Is there a call to end individual outages one at a time.  I get the ALL not being available,