CLI Commands for Managing Alert Rule Configurations

The following table identifies CLI commands that you will typically need to use to manage alert rule configuration using the ILOM CLI.

CLI Command

Description

show

The show command enables you to display any level of the alert management command tree by specifying either the full or relative path.

Examples:

  • To display an alert rule along with its properties using a full path, you would type the following at the command prompt:

    show /SP/alertmgmt/rules/1 /SP/alertmgmt/rules/1

    Properties:

    community_or_username = public

    destination = 129.148.185.52

    level = minor

    snmp_version = 1

    type = snmptrap

    Commands:

    cd

    set

    show

  • To display a single property using the full path, you would type the following at the command prompt:

    show /SP/alertmgmt/rules/1 type

    Properties:

    type = snmptrap

    Commands:

    set

    show

  • To specify a relative path if the current tree location is /SP/alertmgmt/rules, you would type the following command at the command prompt:

    show 1/ /SP/alertmgmt/rules/1

    Targets:

    Properties:

    community_or_username = public

    destination = 129.148.185.52

    level = minor

    snmp_version = 1

    type = snmptrap

    Commands:

    cd

    set

    show

cd

The cd command enables you to set the working directory. To set alert management as a working directory on a server SP, you would type the following command at the command prompt:

cd /SP/alertmgmt

set

The set command enables you to set values to properties from any place in the tree. You can specify either a full or relative path for the property depending on the location of the tree. For example:

  • For full paths, you would type the following at the command path at the prompt:

    set /SP/alertmgmt/rules/1 type=ipmipet

  • For relative path (tree location is /SP/alertmgmt), you would type the following command path at the command prompt:

    set rules/1 type=ipmipet

  • For relative path (tree location is /SP/alertmgmt/rules/1), you would type the following command path at the command prompt:

    set type=ipmipet

Related Topics