 |
» |
|
|
 |
Prerequisite: You must have “VSE All Tools” authorization to modify
template attributes. (See “User Authorizations”
in VSE Management Software Help for a discussion of
VSE tool box permissions.) Find an Application Template |  |
You can access individual application templates
by clicking the AD Templates tab, then
the Admin/Config tab. In the Templates table, click
the name of the template that you want to modify. The data for that template opens in a new screen. Change AD Application Template Values |  |
To edit the selected application template, do
the following: Click
the Edit button to reveal the fields that can
be edited. Change
the field values as desired
to describe the processes that constitute this application. Click Apply to overwrite the template with the new values.
(You might need to scroll to the right to see the Apply and Cancel buttons.)
Once
you apply the application template, a short time passes
while Application Discovery attempts to match the newly edited application to
discovered processes currently running in the network. As matching
completes, applications matching this template description appear
in the table called 'Applications effected by this template'
(below the template summary boxes).  |  |  |  |  | NOTE: My
application does not appear in the "Applications effected..." table.
Why? There are several possible explanations for this
to occur:
It takes some time for template matching to complete. Action: Wait a couple of minutes to see
whether or not matching occurs. For a more precise indicator of the matching interval (and therefore,
the likely wait-time), click the Admin/Config tab,
then the AD Agents tab, and find the column
labeled 'Proc intrvl' (Process interval) for the server
where you expect the application to be running. The process interval
roughly represents the time needed to refresh the matching data. There is an error in the template values such that
the application described in the template does not match any currently
running processes. Action: Double-check
your template values and edit if necessary. The template is correct, but the application described
is not currently running. Action: Ensure that the application designated in the template is running on the
host where you expect it to be.
For more information,
see “Data Missing in Application Discovery Screens” in the troubleshooting section of Application Discovery Help. |  |  |  |  |
Create a New Template |  |
The process for creating a new application template
is similar to editing an existing template. To
start, click the Admin/Config tab, then the AD Templates tab. Click
the Create New AD Template button. The application template editor opens. Fill in the application template values as desired.
See “Key to Application Template
Values”. Apply the changes. This action saves the new template
under the unique name that you have supplied. (You might need to scroll
to the right to locate the Apply and Cancel buttons.)
Your new application template immediately appears
in the list of all templates that is displayed when you click the Admin/Config tab, then the AD Templates tab. The new template definition is applied the next time that matching
is compared to the collected data. Once you apply
the application template, a short time passes while Application Discovery attempts
to match the newly edited application to discovered processes currently
running in the network. As matching completes, applications matching
this template description appear in the table called 'Applications
effected by this template' (below the template summary boxes). Key to Application Template
Values |  |
The tables on this page provide the definitions
for the editable fields in HP Application Discovery (AD) templates. Application Identity and
System Scope Fields These fields let you provide unique identifiers
for the template itself. These fields also include options for restricting
the application definition to a particular operating environment. Separation Rule Fields These fields let you set limits on how many users
and how many processes can be associated with the template. You can
also set visibility of the resulting application in HP Application Discovery screens. Aggregation Rule Fields These fields let you build a rule that
describes the process constituents for the resulting application.
Regular expressions are allowed in these fields when designating user,
executable path, and command line arguments.  |  |  |  |  | NOTE: HP Application Discovery (AD) interprets
executable path strings differently than HP Global Workload Manager
(gWLM). HP Application Discovery looks at a process from the
perspective of how it is named when it is running. Therefore, to successfully
construct an application that HP Application Discovery recognizes, you must
provide attributes (data strings) that describe the running process. Also, when defining an application, keep in mind
that HP Application Discovery looks across your entire network for likely
matches, and not just on one particular managed node. It might help to think of the difference between
AD and gWLM this way:
In AD, an executable and arg[0] are compared directly
to one another to make a match. In gWLM, the inode of an executable and the inode
of arg[0] are compared to one another to make a match.
The following examples demonstrate the different results
that you can expect when using the same executable and arguments in HP Application Discovery as
compared to HP Global Workload Manager (gWLM). Table 3-3 An Example Comparison of Match Behavior in AD and gWLM for
Same Executable Path and Arguments | Example Inputs | AD | gWLM |
|---|
| Executable | Process arg[0] |
|---|
| /usr/sbin/biod | /usr/sbin/biod | match | match | | biod | no
match | match | | ./biod | no match | match | | biod | /usr/sbin/biod | match | not allowed | | biod | match | not allowed | | ./biod | match | not allowed |
|  |  |  |  |
Application Identity and System Scope
Fields and Their DescriptionsSeparation Rule Fields and Their DescriptionsAggregation Rule Fields and Their DescriptionsFor an example
of how to build an application template rule for aggregating processes
into an application, see Create a Process Aggregation Rule. Create an Application Template
Rule |  |
Application Discovery provides a set of options and fields
that help you to define a valid application template rule. The rule
you create governs discovery of the application that you have defined.
You can create rules that apply generally or specifically to a process,
user, or group. Create an Aggregation RuleAn aggregation rule is one in which you designate
one or more characteristics in order to collect the associated process
or processes into an application that can be matched by Application Discovery. The following procedure assumes that you have
opened an application template and are ready to edit the Rules form. To
start, select a radio button for the first type field that you want
to add and click the Add Rule button. In the
example below, the first type added is an And operator.
To
add a type within the And statement
braces, select a type, and click the Add Rule button aligned with the dot (.) within the And statement. In the example below, a User type is added when the button is clicked.
The result when the Add Rule button is clicked is as follows:
You
can add a new type after "User" within the original And statement by clicking the Add Rule button at (below), or you
can add additional statements or types after the
original And statement by clicking
the Add Rule button at .
Continue
in this way until you have added all the types that you want in the
rule.
Fill
in the empty values to complete the rule description for this template,
and click Apply. (You might need to scroll
to the right to locate the Apply and Cancel buttons.) For guidance on the values that work
in each field, see “Key to Application Template
Values” and “Check Unmatched Processes
to Find Application Candidates”.
Aggregation Rule ExamplesThe following images demonstrate several ways
to construct an aggregation rule in Application Discovery that will collect exactly
the processes that you want associated to this template to be defined
as an application. The following figure shows a simple aggregation rule that collects processes by specified
executable path and command line argument.
The following figure shows an aggregation of multiple processes by specified executable
path into one application.
The following figure shows an aggregation of multiple processes specified using regular expressions.
How to Remove Types from the Aggregation RuleYou might want to remove types from a rule to
correct it or refine it. To remove a type, click the Del
Rule button to the right of the type field that you want
to remove. To delete And or Or statements, click the Del AND or the Del OR button to the right of the
closing brace for that statement. When an And or an Or rule is deleted, all the rules that
it encloses are deleted also. This example shows which Del Rule button to click to remove the Group type within an And statement and to remove the entire And statement.
Check Unmatched Processes
to Find Application Candidates |  |
In Application Discovery, processes running on a host system
that do not match existing template or package definitions are called unmatched processes. Characteristics of unmatched processes
can be entered into a template to define an application. Understanding the Tables that Show Unmatched
ProcessesThe create and edit
application template screens show unmatched processes found across
the computing network in a table called "Processes not matched by
this template". The same data types are also displayed for a particular
host on each individual host page in a table called “Unmatched
Processes”.
You can sort or filter
this table to find processes with which you want to define an application. Filling in the System Scope Fields Using Table DataIn the following image, you can see the columns
directly relevant to the System Scope fields
in an application template (dark gray column headings). By entering
a specific operating system (OS), operating system
version (OSver), and/or architecture (Arch), you can limit the application of the template to
particular systems in your network.
For more details about this part of an application
template, see “Application Identity and System Scope
Fields and Their Descriptions”. Filling in the Template Separation Rule Fields In the following image, you can see the columns
indirectly relevant to the Separation Rules fields
in an application template – pid, ppid, user, sid, and ct. These columns are indirectly relevant because you do not use the actual values in the columns
to define the separation rule. Instead, this information is provided
to help you decide which attributes are appropriate to select. For example, when viewing the data in the table,
look at the relationships among process IDs, users, and sessions to
determine what relationships you want to define in the Separation
Rules.
For details about setting attributes in an application
template, see “Separation Rule Fields and Their Descriptions”. Filling in the Aggregation Rule Fields Using Table DataIn the following image, you can see the columns
directly relevant to the Aggregation Rule fields
in an application template. By entering one or more users (User), groups (Group), paths (Path), and/or arguments (Cmdline),
you can limit the application of the template to particular processes
running in your network.
For more details about this part of an application
template, see “Aggregation Rule Fields and Their Descriptions” and “Create an Aggregation Rule”. Create an Application Workload in Virtualization Manager |  |
The following procedure illustrates the case where an application
manager wants to create an application-based workload using processes
discovered by Application Discovery, but that are not currently recognized
as an application by either Application Discovery or Visualization
Manager. Prerequisites: You must have “VSE All Tools” authorization
to modify template attributes. (See “User Authorizations” in VSE Management Software Help for a discussion of VSE tool box
permissions for Application Discovery and Virtualization Manager.) The processes that you want to include in the workload
must be running on the system where you are creating the workload.
Start by creating a workload in Visualization Manager. To get to Virtualization Manager, select Tools VSE Management... on the HP SIM menu bar. The Virtualization Manager Visualization tab opens. Click Create Workload Definition... on the Visualization tab menu bar. The Create Monitored Workload Definition screen opens. Choose a system, and type a workload name and description. Specify the Workload Definition Criteria to be “by
application” in the drop down. Optionally, click “Show All Running Applications”
to see all currently discovered applications on the selected system. Click the Create/Edit Application Template... link. The AD Templates tab opens
in the Application Discovery user interface. Click Create new AD template. A new application template opens for editing. Fill in the Application
Identity, the System
Scope, the Separation
Rules, and the Aggregation
Rules. Click Submit. Click OK in the dialog box to confirm
the template submission. The new template displays. Optionally, click the Admin/Config AD Agents tab to see what
the process interval is for the target system of this application
template. Assuming that the process interval is 5 minutes,
that is the length of time to wait until Application Discovery finds
the new template to match to running processes on the target system. Click the link “Go back to Create Monitored Workload
Definition” that appears under Application Discovery at the top of whatever screen you are on. The Create Monitored Workload Definition screen reopens. Check the table labeled Application Name and
Version for your new application. Click the radio button to the left of your new application's
name. Click Add to Definition. Optionally, click the check box to include all versions
of the selected applications in this workload. Click OK. The Virtualization
Manager Workload tab screen opens with your new
application-based workload included in the list.
|