Академический Документы
Профессиональный Документы
Культура Документы
Table of Contents
Building Management Packs with the Authoring Console ....................................................... 1
Exercise 1 The Authoring Console ................................................................................................................................2
Exercise 2 Creating the Class and Discovery Required to Manage a Windows Application ........................................3
Exercise 3 Monitoring a Windows Application Through Monitors ..............................................................................5
Exercise 4 Collecting Data About a Windows Application Through Rules ..................................................................6
Exercise 5 Creating Tasks Associated to a Windows Application ................................................................................7
Exercise 6 Creating Views to View the Health of a Windows Application ..................................................................9
Exercise 7 Testing a Management Pack from Operations Manager ............................................................................ 10
Exercise 8 Adding Diagnostics and Recoveries for a Windows Application .............................................................. 11
Building Management Packs with the Authoring Console
Objectives After completing this lab, you will be better able to:
Manage a windows application
Create tasks, data, and views for a windows application
Test a management pack from Operations Manager
The password for the Administrator account on all computers in this lab is:
Password1
Page 1 of 12
Building Management Packs with the Authoring Console
Exercise 1
The Authoring Console
Scenario
In this exercise you will get familiar with the Authoring Console.
Page 2 of 12
Building Management Packs with the Authoring Console
Exercise 2
Creating the Class and Discovery Required to Manage a
Windows Application
Scenario
In this exercise and for the rest of the lab your are going to be building a management pack for an application that
exists on the system that is also our DC and OpsMgr root mgmt server. This application like most applications
installs a registry key, is implemented as a windows service and writes events to the event log and log files when
different things happen. Our management pack is going to be able to discover which windows servers have this
application installed on it and then will automatically monitor it. Think back to the application as you walk through
the different steps and don’t lost sight of our overall goal. Immediate
Page 3 of 12
Building Management Packs with the Authoring Console
Tasks Detailed Steps
names and do some expression matching on the next page.
m. Click Next.
n. Click Insert and add the following properties:
Parameter Name: Values/LOBApplicationExists
Operator: equals
Value: true
o. Click Create.
p. Select File | Save As from the menu.
q. Save to directory C:\HOL-MPAuthoring.
r. Select File | Management Pack Properties from the menu.
s. Select the References tab to see the default references that were added to your MP.
t. Click OK.
Note: This wizard created a class for us. A class is needed as you need some way to
describe/model the different instances of our LOB Application that you discover (it
could be installed on 25 servers out of 500 one day and then 30 another and OpsMgr
makes sure the MP is at the right place at the right time, which is all based on the
discovery logic). Lets add a property to this class.
u. Select the Service Model space in the console and click on the Classes view in the
navigation tree.
v. In the class list view, open the one class that was created.
w. Go to the Properties tab.
x. Right click in list of properties on the left, right click and choose Add Property.
y. Type Version and click OK.
z. Enter the display name as Version and click OK to save the class.
Note: This wizard also created the discovery that tells OpsMgr HOW to find LOB
Application’s. The discovery by default runs on all Windows computers that are
monitored by the OpsMgr mgmt group that the MP is imported into. For example if
there are 1000 windows computers being monitored in a mgmt group then it will run
against all 1000 windows computers (regardless if they are agent or agentless
monitored) and the discovery will automatically find the number of servers that have
the LOB application installed on it.
There are a number of technologies that can be used to perform the discovery. It can
be configured to look at the registry, which is normally (95% of the time) done first.
WMI information can also be used and so can a script, which provides the most
flexibility.
To view the discovery that was created.
aa. Select the Health Model space in the console and click on the Discoveries view in
the navigation tree.
bb. Open the discovery that was created and view the settings.
Page 4 of 12
Building Management Packs with the Authoring Console
Exercise 3
Monitoring a Windows Application Through Monitors
Scenario
This section will show you how to create a two state event monitor that rolls up to the availability of the LOB
Application class.
Page 5 of 12
Building Management Packs with the Authoring Console
Exercise 4
Collecting Data About a Windows Application Through Rules
Scenario
This section will show you how to create a rule that collects an event collection rule that is targeted to the class that
has been created.
Page 6 of 12
Building Management Packs with the Authoring Console
Exercise 5
Creating Tasks Associated to a Windows Application
Scenario
Tasks are a powerful way to provide actions to users that can be launched in context to solving a problem. Imagine
that the LOB Application team has written a batch file that should be launched when the monitor you created enters
a warning state. You will create a task that can launch this cmd line (it needs to exist locally on the LOB application
you are monitoring).
Page 7 of 12
Building Management Packs with the Authoring Console
Tasks Detailed Steps
q. Click OK.
Page 8 of 12
Building Management Packs with the Authoring Console
Exercise 6
Creating Views to View the Health of a Windows Application
Scenario
Views are used to scope information to something specific like all alerts from exchange servers or all LOB
Applications and their state or events.
Page 9 of 12
Building Management Packs with the Authoring Console
Exercise 7
Testing a Management Pack from Operations Manager
Scenario
This section will show you how to test the management pack that you have created. For this section you will need a
management group running that you can test the management pack in with at least one server being monitored that
you have permissions to edit the registry on.
Page 10 of 12
Building Management Packs with the Authoring Console
Exercise 8
Adding Diagnostics and Recoveries for a Windows Application
Scenario
You can also add some tasks as diagnostics and recoveries. Since you have the Operations Console open you will do
this now from the Operations Console. You could also do this from the authoring console and that is the
recommended way to do it if you are building a MP that will be released to others as you have more control over the
names of objects. (remember if you do need to import a new MP always increment the version this will ensure you
send out the new version to agents).
Page 11 of 12
Building Management Packs with the Authoring Console
Page 12 of 12