Previous Topic: Create New PolicyNext Topic: Queries


Policy Macros

You can use the following macros while defining policy actions:

Generic Policy Macros

Asset Name ($NAME$)

Refers to the name of the asset “violating/fulfilling” the policy.

Asset Type ($TYPE$)

Refers to the type (computer, user) that is “violating/fulfilling” the policy.

Server Name ($SERVERNAME$)

Refers to the name of the scalability server that the asset “violating/fulfilling” the policy belongs to.

Domain Name ($DOMAIN$)

Refers to the name of the DSM Domain the asset belongs to that is “violating/fulfilling” the policy.

Policy Name ($POLICY$)

Refers to the name of the policy the asset is “violating/fulfilling”.

Date ($DATE$)

Refers to the date when the “violating/fulfilling” happens.

Time ($TIME)

Refers to the time when the “violating/fulfilling” happens.

Macros specific to Event Policies

Asset ($PRIMARYOBJECT$)

Refers to the name of the asset.

User ($USER$)

Refers to the name of the DSM system user who performed this event.

Event Policy Name ($POLICY$)

Refers to the name of the event policy.

Collected File ($SECONDARYOBJECT$)

Refers to the name of the collected file.

Old Value ($OLDVALUE$)

Refers to the previous inventory value.

New Value ($NEWVALUE$)

Refers to the new inventory value.

Job ($SECONDARYOBJECT$)

Refers to the name of the job.

Application ($SECONDARYOBJECT$)

Refers to the name of the software definition (application).

Old File ID ($OLDVALUE$)

Refers to the previous UUID used in the scalability server by the asset.

New File ID ($NEWVALUE$)

Refers to the new UUID used in the scalability server by the asset.

Old Sector ($OLDVALUE$)

Refers to the name of the old scalability server (when moving).

New Sector ($NEWVALUE$)

Refers to the name of the new scalability server (when moving).

Related Asset ($SECONDARYOBJECT$)

Refers to the name of the related asset that relation is added/removed to/from.

Module ($PRIMARYOBJECT$)

Refers to the name of the asset module (collect module).

Inventory Detection Module ($PRIMARYOBJECT$)

Refers to the name of the inventory detection module.

Inventory Template Module ($PRIMARYOBJECT$)

Refers to the name of the inventory template module.

Policy ($PRIMARYOBJECT$)

Refers to the name of the policy.

Query ($PRIMARYOBJECT$)

Refers to the name of the query.

Query Result ($PRIMARYOBJECT$)

Refers to the name of the query result.

Asset FQN ($HOSTNAME$)

Returns the Fully Qualified Name (FQN) of the asset.

Domain Manager FQN ($DMHOSTNAME$)

Returns the Fully Qualified Name (FQN) of the domain manager.