How do you close alarm in UIM via CLI
search cancel

How do you close alarm in UIM via CLI

book

Article ID: 187155

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

So for some unknown reason since upgrading to 9.20HFx, SOI alarms that are cleared or closed in our SOI PROD are not closing the respective alert in UIM. I have to manually everyday run a batch file that checks all these alerts that are out of sync and then get all the alarm ID's past them into excel and do an action.close("###alarmID###") then paste that into the nas script and run it so the cleared alerts are now closed in UIM.

I can execute and action from w/in SOI from a command prompt and I was wondering how would I close alerts in UIM from a cmd or CLI? I can pass it the alarm ID if that's all I need but what would be the command. There is a robot on the SOI MGR box so I have the pu.exe command available if that's whats needed.

Environment

UIM any version

Resolution

There is webservices_rest alarm calls to Accept or Acknowledge

http://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/it-operations-management/ca-unified-infrastructure-management-probes/GA/probe-development-tools/restful-web-services/webservices-rest-apis/webservices-rest-call-reference/alarm-calls.html

and look at that nas probe utility has a callback close_alarms
so pu can be used to command line that as well.

https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/it-operations-management/unified-infrastructure-management/9-0-2/administering/run-probe-commands-from-a-command-prompt.html

Examples of probe utility commands that can be used in programs.
Article Id: 57382
https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=57382

Or just probe call back for nas:


pu -u administrator -p password /UIM/LAB_PriHub/lab-uim/nas close_alarms nimid SE30961796-00392