subscribe iconSubscribe to this information
POWER7 information

alert command

Purpose

Sets, removes, and lists all the alerts for a cluster and storage pool.

Syntax

To set the alert:

alert -set [-clustername ClusterName] [-spname StoragePool] [-type {threshold | overcommit}] -value Value

To unset the alert:

alert -unset [-clustername ClusterName] [-spname StoragePool] [-type {threshold | overcommit}]

To list all the alerts:

alert -list [-clustername ClusterName] [-spname StoragePool] [-type {threshold | overcommit}] [-fmt Delimiter [-header]]

Description

The alert command sets, removes, and lists all alerts for a cluster and storage pool. If the -type flag is included, this command performs the action based on the specified type of alert. The value of the -type flag can be either threshold for free space or overcommit for the overcommit space. On set or unset operations, the default value for the -type flag is threshold. If the -type flag is not specified, all the alerts are listed. The -value flag is specified in percentages.

Flags

Flag name Description
-clustername Specifies the cluster name.
-fmt Separates the output with a user-specified delimiter character.
-header Specifies the display field names in the formatted listing output.
-list Lists alerts.
-set Sets an alert.
-spname Specifies the storage pool name.
-type Specifies the type of alert. The type of alert is either threshold for pool free space or overcommit for pool overcommit space. For set or unset operations, the default value is threshold. If the type of alert is not specified when you perform the list operation, all the alerts are listed.
-unset Removes an alert.
-value Specifies the value of the alert in percentage.

Examples

  1. To list alerts within the storage pool, type the following command:
    alert -list -clustername newcluster -spname sp 

    The system displays the following output:

    PoolName:          sp
    PoolID:            00000000097E5568000000004FC89343
    ThresholdPercent:  80
    OvercommitPercent: 20
  2. To set an alert on free space within the storage pool, type the following command:
    alert -set -clustername newcluster -spname sp -type threshold -value 70 
  3. To set an alert on overcommit space within the storage pool, type the following command:
    alert -set -clustername newcluster -spname sp -type overcommit -value 20 


Send feedback Rate this page

Last updated: Wed, June 03, 2015