Variables and pattern matching
To make your policies as flexible as possible, you can use HP
Operations pattern-matching syntax, and a variety of variables. The
pattern-matching syntax makes is possible to write rule conditions
that match strings very specifically, while the variables can be
used to compose messages, and can be passed as parameters to
commands. They can also be passed to external applications through
the instruction text interface.
Click the links below to learn more about the pattern-matching
syntax and variables.
Variables
NOTE:
HP Operations variables are reserved words; they must not be used
for any other purpose, such as creating user-defined variables.
User-defined variables can be created in those windows used to
define HP Operations messages.
- Policy
Variables
Learn about the variables that represent various HP Operations
elements, for example, managed nodes, the management
server, users, and so on. Learn about what the variables
return, and where they are valid.
- SNMP
Variables
Learn about the SNMP variables that can be used within HP
Operations or passed to external programs.
- Environment
variables
Learn how to use environment variables in scripts, tools, and
commands that run on a Windows node.
Pattern matching
- Test
pattern matching
Learn how to use the HP Operations interface to test the patterns
that you write, before deploying your policies.
Related Topics: