beautypg.com

Creating policies for events – HP Storage Essentials NAS Manager Software User Manual

Page 569

background image

Storage Essentials 5.00.01 User Guide 539

IMPORTANT:

Since the severity level for an element is set by the manufacturer, the

meanings of the severity levels vary. It is best to view the description of the event.

Unknown - The severity level is not known.
Informational - An example of an informational event is a progress report event for

firmware download operation currently in progress.

Warning - An example of a warning is one or more new physical fabric objects (device

port, switch, or fabric) have appeared.

Minor - An example of a minor event is a physical fabric object (switch port or fabric) has

changed state.

Major - An example of a major event is one or more physical fabric objects (device port,

switch, or fabric) have disappeared.

Critical - An example of a critical event is Brocade switches that have a failed firmware

download and the failure reason code for each respective switch.

After you select an event level, click OK.

Execute a Custom Command - Policy Manager executes a custom command on the

management server when the condition is fulfilled. Type a command that will execute the

script in the field. Then, click OK. The software assumes you are in the
%JBOSS4_DIST%\server\appiq\remotescripts directory on the management

server when the script is executed. You can use environment variables in your script, such as
POLICY_NAME and POLICY_DESCRIPTION. POLICY_NAME. POLICY_NAME provides

the policy name and POLICY_DESCRIPTION provides the policy description. See ”

Setting

Up E-mail Notification

” on page 154 for more information.

Prefix the command with “start” if the custom command triggers a user interface component,

such as a program that uses the user interface (Example: Microsoft Internet Explorer) or a

command prompt window.
For example, assume you want the custom command to open a command prompt window

and list the contents in the directory. You would prefix the command with start as shown

below:

start dir

9.

Click OK.

Creating Policies for Events

You can create a policy that generates an event, sends an e-mail, or runs a custom command when

an event occurred on one or more specified elements
For example, you can create a policy that sends an e-mail when a new element generates a critical

event.
If you plan to use e-mail notification with your policy, first assign an SMTP server from which the

management server can send its e-mail notifications. See ”

Setting Up E-mail Notification

” on

page 154.
To create a policy for events: