Uehara Y.

updated

9 years ago

UY

Uehara Y.

Community Manager

5500 Posts

164 Points

0

3435

January 31st, 2018 21:00

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

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

  • DELL_ChrisHolloway

    2 Intern

    125 Posts

    2488

    0

    Posted February 1st, 2018 09:00

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

    POST /api/instances/alertConfig/ /action/testEmailAlert

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

  • mwright2

    11 Posts

    2488

    1

    Posted February 1st, 2018 09:00

    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 } ]

      [Set]

      /event/alert/conf set [ -emailFromAddr ] [ -emailToAddrs ] [ -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.

    Community Manager

    5500 Posts

    164 Points

    2488

    1

    Posted February 6th, 2018 21:00

    ChrisHolloway_EMC san,

    Thank you so much! It works:)

  • Uehara Y.

    Community Manager

    5500 Posts

    164 Points

    2488

    0

    Posted February 6th, 2018 21:00

    mwright san

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

  • kelleg

    6 Operator

    4537 Posts

    2488

    1

    Posted February 7th, 2018 12:00

    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