本文件已封存並已停止維護。

Variables

更新日期: 2010年5月

Management pack variables access information that is not known until either the management pack is installed or the particular workflow is running on an agent. Different variables are used in different situations, and knowledge of the different variables, their syntax, and when they are used is very important in creating different monitoring scenarios.

Using Variables

Variables in a management pack are delimited by using a dollar sign ($). When the variable is resolved, it is replaced with its calculated value. In some cases, the Authoring console provides menus that let you select a particular variable and have the appropriate syntax automatically created. In other cases though, you must create the variable yourself by using the appropriate syntax.

Kinds of Variables

The following table lists the kinds of variables that are used in a management pack. Additional details about each kind of variable are provided in other sections of this guide where the particular variable is used.

 

Variable Syntax Used In Description

MPElement

$MPElement[Name="ElementName"]/SubElementName$

Discoveries

Resolves to the GUID of the specified management pack element.

Target

$Target/Property[Type="ElementName"]/PropertyName$

$Target/Host/Property[Type="ElementName"]/PropertyName$

Discoveries

Monitors

Rules

Tasks

Diagnostics

Recoveries

Alert Descriptions

Retrieves the value of a property of the target object or one of the target object’s hosts.

Data

$Data/<XPath to Property>$

Monitors

Rules

Tasks

Diagnostics

Recoveries

Alert Descriptions

Retrieves a value from the data stream.

Config

$Config/Parameter$

Modules

Monitor Types

Retrieves a value from a parameter on the module or monitor type.

另請參閱

顯示: