- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Have you ever wished that Discovery found some information that you want, but that we never thought to put into the product? It's actually quite easy to add most new capabilities to Discovery. In this post, I'll take you through a complete example.
Suppose that your organization had a mouse crisis: your human resources folks declared that all users must have one of three ergonomic pointing devices on their computers. So now you need to know just what kind of mice are on all the Windows workstations and laptops. This is not part of the out-of-the-box information that Discovery finds, so how could you add it? Read on and see...
To get that information, here's what we're going to need to do:
- Determine what information is available: Since we're going to look for mouse information on Windows computers, that means we'll be using WMI to find the information. Therefore we need to do some research into what information WMI has about mice.
- Add mouse information to the computer record: The CMDB, out-of-the-box, doesn't have a place for mouse information in the computer record. So we'll add it!
- Create a mouse probe: To get the mouse information, the first step is to ask for it. Our new probe will demand the mouse information from a Windows computer.
- Create a mouse sensor: Once we have the mouse information, we need to put it into our computer record. Our new sensor will read the mouse information supplied by the probe and use it to update the computer record in the CMDB.
- Tell Discovery to use the new probe and sensor: Discovery won't start using our new probe just because we created it. So we'll tell Discovery exactly when to use the new probe.
- Run a test Discovery to see if our new probe and sensor work: Always test!
Microsoft's MSDN site documents the Win32_PointingDevice WMI class (along with all the other WMI classes). After looking at the Win32_PointingDevice class and thinking about our requirements, we decided we'd look for these pieces of information:
- Win32_PointingDevice.Name
- Win32_PointingDevice.Manufacturer
- Win32_PointingDevice.DeviceInterface
- Win32_PointingDevice.PointingType
These are arbitrary choices on our part; we could have chosen any of the information available from WMI.
Finally, we ran a test discovery. In the case of this simple little probe and sensor, it all ran correctly the first time. For most of our Windows CIs, we could see mouse information. In some cases we didn't get any information; these turned out to be servers that truly didn't have any pointing devices attached. One little surprise we got was that many of the CIs (like the example toward the top of this post) reported "Microsoft" as the manufacturer and "PS/2 Mouse" as the name, even when this wasn't true. It turns out these were generic mice that just used the standard out-of-the-box drivers, and they all get reported the same way.
In talking with our customers, we've found that the needs people have for additional information are as diverse as our customers are. It's actually quite rare for us to hear two customers asking for the same thing. Some of our customers have already dreamed up some interesting probes and sensors that are proving useful in their environments — and the more success they have, the more ideas they come up with.
Now it's your turn! What information would you like Discovery to find?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.