Delete alarms in Telco Cloud Automation (TCA)
search cancel

Delete alarms in Telco Cloud Automation (TCA)

book

Article ID: 325410

calendar_today

Updated On:

Products

VMware VMware Telco Cloud Automation

Issue/Introduction

This article defines the steps needed to query the size of the Telco Cloud Automation (TCA) alarms table,  delete all the TCA alarms, or count the number and/or delete the alarms associated to a specific nfInstance.

Environment

VMware Telco Cloud Automation 2.0
VMware Telco Cloud Automation 2.1.1
VMware Telco Cloud Automation 2.1

Resolution

To check the size of the Alarms table:
  1. SSH to TCA-CP
  2. Run the following to enter Mongo DB:
    mongo hybridity
  3. To query the size of the Alarms table, run the following:
    db.NfvAlarms.dataSize()

To delete all alarms. 
  1. SSH to TCA-CP.
  2. Run the following to enter Mongo DB:
    mongo hybridity
  3. To delete all alarms on the TCA-CP, run the following:
    db.NfvAlarms.remove({})
  4. Wait for 2 mins for TCA Manager to sync these changes from TCA-CP.
Note: These steps need to be performed on individual TCA-CPs.

To check the number of or delete the alarms associated to a specific NF Instance:
  1. SSH to TCA-CP
  2. Run the following to enter Mongo DB:
    mongo hybridity
  3. To query the number of alarms associated with a specific nfInstance, run the following:
    db.NfvAlarms.find({"managedObjectId":<<nfInstanceId>>}).count()
  4. To delete alarms of a specific nfInstance, run the following:
    db.NfvAlarms.remove({"managedObjectId":"<<nfInstanceId>>"})
Note: These steps need to be performed on individual TCA-CPs

Find the nfInstanceId:
The nfInstance can be found in TCA under 
Inventory> Network Function: General Properties > id
Graphical user interface, text, application, email  Description automatically generated

Or you can navigate to the NF itself and copy the nfInstanceId from the TCA URL: