Subscribe

OCUM 7.1RC1 Alert scripting via CLI

Is it possible with an OCUM VM appliance to get to DFM CLI and enter commands like below?

 

# dfm alert create -h "Volume Space Full","Volume Space Nearly Full"  -r  TESTVOLUME -E test@test.com test_alert_name

 

Are there any other ways to create alerts from the CLI like we could do in legacy DFM instances?

 

-Archie

Re: OCUM 7.1RC1 Alert scripting via CLI

 

Per the docs:

 

Note: CLI commands are available when Unified Manager is installed on Red Hat Enterprise Linux or on Windows. The CLI commands are not available when Unified Manager is installed on VMware.

 

See: https://library.netapp.com/ecmdocs/ECMLP2553757/html/frameset.html

 

 


I hope this response has been helpful to you.

 

At your service,

 

Eugene E. Kashpureff, Sr.
Independent NetApp Consultant http://www.linkedin.com/in/eugenekashpureff
Senior NetApp Instructor, FastLane US http://www.fastlaneus.com/
(P.S. I appreciate 'kudos' on any helpful posts.)

 

 

 

 

 

 

Re: OCUM 7.1RC1 Alert scripting via CLI

I can successfully get to the CLI on the VM appliance and run um and dfm command..  

However, VM or RHEL machine; it appears there are no CLI commands to create an alert.

 

-Archie

Re: OCUM 7.1RC1 Alert scripting via CLI

Hi,

 

Alert scripting via CLI is not supported. But you can configure alert script via UI and utilize the 'um cli' commands in the script.

 

-KJag

Re: OCUM 7.1RC1 Alert scripting via CLI

I understand..  That is not much help when I need to create 100+ alerts.

Re: OCUM 7.1RC1 Alert scripting via CLI

Good day Archie,

 

Hope you doing good , You mentioned you were able to get um/dfm cli on vm appliance

 

""get to the CLI on the VM appliance and run um and dfm command""

 

 

Can you guide me how to do that please.  We are using OCUM 7.2, login via ssh as "admin" user directly bring us to maintanance menu . How can we get command prompt to run um/dfm commands ?

 

Appriciate your help here

 

Thanks

Bipul

Re: OCUM 7.1RC1 Alert scripting via CLI

sorry - i can't imagine how to get alerts automatically created via scripting in UM - as fas as i see in the documentation you can manager your custom scripts via "Manage Scripts" in your UM settings page - but these are only used if you define them in an already created or newly create an alert via GUI. 

also the commands for um are very less you may use - in the manage scripts page you may use the questionmark button to show the help where you can find a section "Supported Unified Manager CLI commands" - and as you see there are not many of them and nothing about creating alerts via script.

so in your case it obviously looks like that there's no change to achieve the result you asking for.

 

sorry - eventually someone else has an idea on that.

 

AJ