Active IQ Unified Manager Discussions
Active IQ Unified Manager Discussions
Can I acknowledge and/or delete all alarms for the cli? The command dfm event ack and dfm event delete do not accept wildcards.
It doesn’t take any wildcard.
But you can use something like this, if yours is a linux dfm server.
for i in `dfm alarm list -q | awk '{ print $1 }'`; do dfm alarm delete $i ; done
for I in dfm event list –q | awk awk '{ print $1 }'`; do dfm event ack $i;dfm event delete $i;done.
Regards
adai
This is Windows. Thanks I'll have to come up with something similar.
Hi
A similar issue was already discussed in the past
Check this link
http://communities.netapp.com/message/29795#29795
Regards,
Prasad
Try this in an elevated Powershell console:
$command="dfm event delete "; $i=<starting event ID>; while( $i -lt <ending event ID>) { $command += $i; $command += " " ; $i++}; invoke-expression $command
No NetApp PS tools required in this case.
If your range is too great it might hit a maximum line/command length limit in PS, if there is one. I ack'd then deleted about 500 events in one go without a hitch.