Creating Classes

In Service Manager, instances of classes represent managed objects. if you want to manage non-default objects, it’s necessary to create new custom classes. The creation of classes can be done in two different ways. First, classes can be created using Raw XML, second and easier, you can use the Service Manager Authoring Tool. This example shows how to create new classes by using the Service Manager Authoring Tool. The Tool can be downloaded here.

Let’s start by creating a new Management Pack in the Service Manager Authoring Tool.

clip_image002

Specify a name for the new Management Pack.

clip_image004

Create a new Configuration Item Class and specify a name for the new Class. In this example I create a new Class for managing Monitor-Objects.

clip_image006

clip_image008

The new Class inherits all Properties and Relations of the Base Class “Configuration Item”. Additionally, an attribute called “Property_X” is created which is marked as a key property. Every class must have a property marked as key property. The value of this property has to be unique for every instanced object of the class. For this example we will delete the automatically created property and create a new one called “InventoryNo” for storing the Inventory Number of the Monitor Objects. This new property is then marked as the key property for the Monitor-Class and it’s given a meaningful name.

clip_image010

clip_image012

clip_image014

clip_image016

Now it’s time to add more attributes to the new Class for storing information about the objects.

clip_image018

Now save the Management Pack and import it by using the Service Manager Console. After the successful import, the new Monitor-Class is known within the Service Manager Environment. Now, for viewing objects of the new Class, we have to create a new view. Switch to the Configuration Item Area and create a new folder. Store the new folder in the Management Pack we created earlier.

clip_image020

clip_image022

Next, create a new view. The view is automatically stored in the same Management Pack as the folder.

clip_image024

clip_image026

Select the Monitor-Class so that objects of this Class are visible in the view. If needed, you can also define additional criteria so that the view is filtered by the actual needs.

clip_image028

clip_image030

Select the Attributes that you want to see in the list view.

clip_image032

Now it’s time to create new Objects. Use the “Create Monitor”-Task in the Actions Pane.

clip_image034

clip_image036

“Asset Status” and “Notes” are inherited Properties from the Base Class “Configuration Item”. Additionally, all Properties that you added in the Authoring Tool are visible. The generic form is automatically generated. However, it’s also possible to generate a customized form either in the Authoring Tool or in Visual Studio. In the list view you can now easily see all Monitor-Objects.

clip_image038

Don’t’ forget to export your Management Pack after you have created the Monitor-View.

Regards Marcel

About Marcel Zehner

Microsoft Azure MVP
This entry was posted in SCSM and tagged , , , . Bookmark the permalink.

11 Responses to Creating Classes

  1. Pingback: Relations between Objects | SCSMFAQ

  2. Pingback: Mobile Devices and SIM Cards | SCSMfaq.ch

  3. Pingback: Make Service Manager Customer-aware | SCSMfaq.ch

  4. Pingback: System Center Service Manager information(blog) overview - System Center Service Manager

  5. James Richardson says:

    Hey Marcel

    How can you add a logo to the Monitors folder?

  6. Pingback: Remove the extensions tab on the Incident form | SCSMfaq.ch

  7. Pingback: Dynamic Service Manager CMDB with System Center Orchestrator | SCSMfaq.ch

  8. Pingback: System Center 2012 – Service Manager (SCSM) : Useful Links, Guidance and Resources - Stay Classy, With System Center Ramblings from San Diego - Site Home - TechNet Blogs

  9. Othmar Kesseli says:

    Hello Marcel, I got a problem with query results of my own custom created classes, did you ever experienced this?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s