How to clear alarms in UIM using the alarm's nimid
search cancel

How to clear alarms in UIM using the alarm's nimid


Article ID: 144868


Updated On:


DX Unified Infrastructure Management (Nimsoft / UIM) CA Unified Infrastructure Management On-Premise (Nimsoft / UIM) CA Unified Infrastructure Management SaaS (Nimsoft / UIM)


Is there any way we can clear alarms in UIM with the help of nimid?


  • Release: 9.1.0 or higher
  • Component: UIM - ROBOT


  • robot inactive alarms still show up after robot(s) being decommissioned.


After deleting/decommissioning robots, some robot inactive alarms were still being generated and showing up.

Recommend following some articles on robot decommissioning.

How to delete robots in UIM when a VM with a robot has been powered off/decommissioned

How to effectively decommission UIM Robots

But the customer preferred using a simple pu command to clear the alarm using the alarm's nimid.

Here is an example using the pu command line:

pu.exe -u administrator -p <password>  /<domain>/<hub>/<robot>/nas close_alarms <userid> <NIMID> 

close_alarms callback

The close_alarms call back command has two required arguments –> “by” and “nimid”. I supplied the userid for the “by” argument. You can supply whatever you like there, so it could be a script name also (no spaces in it or quotes would be needed around it). This could be in a batch or shell script that is called by another script that supplies the nimid read from a file as a script argument. So then the line would be:

pu.exe -u administrator -p <password>  /<domain>/<hub>/<robot>/nas close_alarms <userid> %1 

If you can deploy and use the nsa (Nimsoft Scripting Agent), then you could write a LUA script that would read in the file line by line and execute a nimbus.request(<path>, <command>, <pds arguments>)

Also, you can also make a post in the UIM community to see if anyone has already created something similar.

Here is a real/live working example of a pu command to close alarms. Note that you have to give it a single distinct NIMID:

C:\Program Files (x86)\Nimsoft\bin>pu.exe -u administrator -p <password> /<domain>/<hub>/<robot>/nas close_alarms administrator <NIMID>
Feb 11 19:49:09:324 2 pu: _nimInit
Feb 11 19:49:09:340 2 pu: nimCharsetSet() - charset=
Feb 11 19:49:09:340 0 pu: Failed to read a valid probe_crypto_mode from controller.
Address: /<domain>/<hub>/<robot>/nas Request: close_alarms

C:\Program Files (x86)\Nimsoft\bin>