Nutanix: stop and remove tasks

Sometimes it happens that Tasks in a Nutanix environment take like forever.
It is not recommended but there are occasions that a Task needs to STOP!
And it happens that this is not possible via the GUI (Prism Element or Prism Central).

So to get the current running tasks:
(from PE or PC)

ecli task.list include_completed=false

And to stop the Task:
(there are 2 dashes before task…)

ergon_update_task --task_uuid='TASK_UUID' --task_status=aborted

And verify with the above command again (ecli task.list include_completed=false)

BTW –task-status can have following values:

  • running
  • succeeded
  • aborted
  • suspended
  • failed

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.