NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Active IQ Unified Manager Discussions

Scripts in OCUM

ANdreasr
4,232 Views

Hi all,


I try to understand the limits of scripts in OCUM but until now I have no clear answer.

 

As far as I understand the help page of OCUM 6.3 and according to opinion of different people a script that is attached to a alert is only limited by your skills and what you can derive from the event arguments listed below, correct?

 

 

Quoting the OCUM Help-Page:

 

 

The script uses the following arguments for execution:
-eventID
-eventSourceID
-eventSourceName
-eventSourceType
-eventState
-eventArgs

 

Regards

Andreas

2 REPLIES 2

kjag
4,206 Views

Hi,

 

We can use the arguments passed by alert script as a base and can get much more information by using the 'UM CLI' commands in the script.

 

For example, get the volume Id and basic capacity information from event arguemtns and run 'um query run' command to get more information from DB. If the required info. is not available

in DB, you can use another um cli, which connects to the cluster and run a command to get the required info.

 

I feel using the UM Cli commands in the script makes the script powerful.

 

Thanks,

KJag

ANdreasr
4,163 Views

Hi KJag,

 

so using UM CLI commands in the script is the only possible thing?

 

ANdreasr

 

 

 

 

Public