JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle® ZFS Storage Appliance Administration Guide
Oracle Technology Network
Library
PDF
Print View
Feedback
search filter icon
search icon

Document Information

Using This Documentation

Chapter 1 Oracle ZFS Storage Appliance Overview

Chapter 2 Status

Chapter 3 Initial Configuration

Chapter 4 Network Configuration

Chapter 5 Storage Configuration

Chapter 6 Storage Area Network Configuration

Chapter 7 User Configuration

Chapter 8 Setting ZFSSA Preferences

Chapter 9 Alert Configuration

Alert Categories

Supported Alert Actions

Send Email

Send SNMP trap

Send Syslog Message

Resume/Suspend Dataset

Resume/Suspend Worksheet

Execute Workflow

Threshold Alerts

Configuring Alerts Using the BUI

Adding a Threshold Alert

Adding an Alert Action

Configuring Alerts Using the CLI

Adding a Threshold Alert

Adding an Alert Action

Chapter 10 Cluster Configuration

Chapter 11 ZFSSA Services

Chapter 12 Shares, Projects, and Schema

Chapter 13 Replication

Chapter 14 Shadow Migration

Chapter 15 CLI Scripting

Chapter 16 Maintenance Workflows

Chapter 17 Integration

Index

Configuring Alerts Using the CLI

Alerts can also be configured from the CLI using the configuration alerts context. See Tasks for step-by-step instructions for configuring these in the CLI.

Adding a Threshold Alert

  1. Enter the configuration alerts thresholds context, and enter the create command.
  2. Enter set statname=where [name is the desired statistic to monitor. To determine the CLI name, enter set statname= and press Tab. For details on each statistic, see Statistics in Oracle ZFS Storage Appliance Analytics Guide and click on the statistic names.
  3. Enter set limit=where [number is the desired threshold.
  4. Enter commit. Make note of the "watch" identifier, the threshold ID, if you want to later add an alert action for this threshold alert.
  5. Enter list to determine the name, including number, of the new threshold alert. Look for a threshold with the same limit and statistic name that you just set.
  6. Enter select threshold-where [number is the same number identified in the previous step.
  7. Enter list. If necessary, correct any arguments now. By default, the minimum post, frequency, and minimum cleared arguments are set to 5 minutes. This means an alert is posted only if the threshold has been breached for at least 5 minutes, reposts every 5 minutes, and posts after the threshold has cleared for 5 minutes.
  8. Enter done, and then enter done again.

Adding an Alert Action

  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=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-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=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=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.