Go to main content

Oracle® ZFS Storage Appliance Administration Guide, Release OS8.7.x

Exit Print View

Updated: November 2018
 
 

Adding an Alert Action (CLI)

  1. Enter the configuration alerts actions context, and enter the create command.
  2. Go to the "category" property by entering get category = (unset).
  3. Enter set category=thresholds.
  4. Enter set thresholdid=[id] where [id] is the identifier that was automatically created for the threshold alert.
  5. Enter commit.
  6. Enter list to determine the name, including number, of the new alert action. Look for a threshold without an assigned action and handler.
  7. Enter select actions-[number] where [number] is the same number identified in the previous step.
  8. Enter action, and then enter get.
  9. By default, the alert type is email. If this is what you want, skip to the next step. If not, enter set handler=[type] where [type] is either snmptrap, syslog, resumedataset, suspenddataset, resumeworksheet, suspendworksheet, or executeworkflow. Then enter get to view the needed arguments. Only snmptrap and syslog do not have arguments.
  10. Set each needed argument. For example, to set a subject line for an email alert, enter set subject=[subject] where [subject] is the desired email subject line.
  11. Use the show command to ensure all arguments have been entered.
  12. Enter commit, and then enter list. If necessary, correct any arguments now.
  13. Enter done, and then enter done again.

Related Topics