Uehara Y.
Moderator
Moderator

Unity: Can we send an alert email test from CLI?

Jump to solution

Does anyone know how to send a test alert email using CLI?

I can easily send a test alert email from GUI by just clicking [Send Test Email] button. However, I could not find the way in service command/Unisphere CLI...

capture-20180201-143925.png

0 Kudos
1 Solution

Accepted Solutions
ChrisHolloway
3 Argentum

Re: Unity: Can we send an alert email test from CLI?

Jump to solution

I can't see a way of doing this from UEMCLI, but it is possible using REST:

POST /api/instances/alertConfig/<instance id>/action/testEmailAlert

Instance ID in my case was 0, but you can find that using GET /api/types/alertConfig/instances.

View solution in original post

0 Kudos
5 Replies
mwright2
2 Bronze

Re: Unity: Can we send an alert email test from CLI?

Jump to solution

I found no way to do this thru the cli.

/event/alert/conf -- shows the following options - show and set only - no option for test

  [Show]

  /event/alert/conf show [ -output { nvp | csv | table [ -wrap ] } ] [ { -brief | -detail | -filter <value> } ]

  [Set]

  /event/alert/conf set [ -emailFromAddr <value> ] [ -emailToAddrs <value> ] [ -emailSeverity { info | notice | warning

| error | critical } ] [ -snmpSeverity { info | notice | warning | error | critical } ] [ -showAllPoolThresholdAlerts {

yes | no } ]

/sys/support/connecthome test - has a test option but if you have ESRS enabled you will get this message - Cannot enable connect home when ESRS is enabled    -  if you try to enable connecthome

You might need to ask for a feature request to get it added to the cli

Uehara Y.
Moderator
Moderator

Re: Unity: Can we send an alert email test from CLI?

Jump to solution

mwright san

Thank you for checking the commands. I am convinced that we cannot use CLI for email alert (so far).

0 Kudos
ChrisHolloway
3 Argentum

Re: Unity: Can we send an alert email test from CLI?

Jump to solution

I can't see a way of doing this from UEMCLI, but it is possible using REST:

POST /api/instances/alertConfig/<instance id>/action/testEmailAlert

Instance ID in my case was 0, but you can find that using GET /api/types/alertConfig/instances.

View solution in original post

0 Kudos
Uehara Y.
Moderator
Moderator

Re: Unity: Can we send an alert email test from CLI?

Jump to solution

ChrisHolloway_EMC san,

Thank you so much! It works:)

kelleg
5 Rhenium

Re: Unity: Can we send an alert email test from CLI?

Jump to solution

Remembering to mark the question Answered helps others with similar problems and awarding points helps motivate people to take the time answer you questions. Forgetting this may affect responsiveness.

glen