How to generate a list of agents that are multi-homed via the Microsoft Operations Manager console

Published Feb 16 2019 03:26 AM 278 Views
First published on TECHNET on Apr 11, 2016
If you ever find yourself in a situation where you need a list of all of the multi-homed agents in your Operations Manager environment, here’s a quick and easy way to do it.

In this example, let’s say that I have agents that are reporting to a management group named test_scom and can get failover to scom1 . What I need is a way to get a list of multi-homed computers for the management group named test_scom .

Solution


If we take a look on the agent side, on a multi-homed client we will see the registry keys that looks something like this:



So the registry keys for scom1 and test_scom show that my agent is multi-homed to the management group. Once we know that, we can easily go to the console and get a list of clients with similar attributes. Here are the steps:

1. From your Operations Manager console, go to Authoring . Select Management pack objects and then right-click on Attributes .

2. Create an attribute named “Multihomed” and for Discovery Type select Registry .

3. For Target we’ll select Windows Computer_Extended.

4. Select the management pack and click Next .



5. Under Key or Value Type , select Key .

6. For the path, specify HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Operations Manager\3.0\Agent Management Groups\SCOM1.

7. Make sure Attribute Type is set to Check if exists and click Finish .

8. Now that we’re done with the attribute, let’s go to Monitoring and then Discovered Inventory.

9. Change the target type to “Windows_Computer_Extended” and you’ll see a list similar to the following:



But this list is showing all the agents. No problem, scroll towards the right and on the right-hand side check the value of the attribute multihomed . This value will appear as true and should look something like this:



That’s all there is to it!

Keshav Deo Jain , Support Engineer
Microsoft Enterprise Cloud Group
%3CLINGO-SUB%20id%3D%22lingo-sub-351468%22%20slang%3D%22en-US%22%3EHow%20to%20generate%20a%20list%20of%20agents%20that%20are%20multi-homed%20via%20the%20Microsoft%20Operations%20Manager%20console%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-351468%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3EFirst%20published%20on%20TECHNET%20on%20Apr%2011%2C%202016%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20If%20you%20ever%20find%20yourself%20in%20a%20situation%20where%20you%20need%20a%20list%20of%20all%20of%20the%20multi-homed%20agents%20in%20your%20Operations%20Manager%20environment%2C%20here%E2%80%99s%20a%20quick%20and%20easy%20way%20to%20do%20it.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20In%20this%20example%2C%20let%E2%80%99s%20say%20that%20I%20have%20agents%20that%20are%20reporting%20to%20a%20management%20group%20named%20%3CSTRONG%3E%20test_scom%20%3C%2FSTRONG%3E%20and%20can%20get%20failover%20to%20%3CSTRONG%3E%20scom1%20%3C%2FSTRONG%3E%20.%20What%20I%20need%20is%20a%20way%20to%20get%20a%20list%20of%20multi-homed%20computers%20for%20the%20management%20group%20named%20%3CSTRONG%3E%20test_scom%20%3C%2FSTRONG%3E%20.%20%3CBR%20%2F%3E%3CH3%20id%3D%22toc-hId-1481348230%22%20id%3D%22toc-hId-1510124409%22%3E%3CB%3E%20Solution%20%3C%2FB%3E%3C%2FH3%3E%3CBR%20%2F%3E%20If%20we%20take%20a%20look%20on%20the%20agent%20side%2C%20on%20a%20multi-homed%20client%20we%20will%20see%20the%20registry%20keys%20that%20looks%20something%20like%20this%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F83030iE90145F9DA636F7C%22%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20So%20the%20registry%20keys%20for%20%3CSTRONG%3E%20scom1%20%3C%2FSTRONG%3E%20and%20%3CSTRONG%3E%20test_scom%20%3C%2FSTRONG%3E%20show%20that%20my%20agent%20is%20multi-homed%20to%20the%20management%20group.%20Once%20we%20know%20that%2C%20we%20can%20easily%20go%20to%20the%20console%20and%20get%20a%20list%20of%20clients%20with%20similar%20attributes.%20Here%20are%20the%20steps%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%201.%20From%20your%20Operations%20Manager%20console%2C%20go%20to%20%3CEM%3E%20Authoring%20%3C%2FEM%3E%20.%20Select%20%3CEM%3E%20Management%20pack%20objects%20%3C%2FEM%3E%20and%20then%20right-click%20on%20%3CEM%3E%20Attributes%20%3C%2FEM%3E%20.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%202.%20Create%20an%20attribute%20named%20%E2%80%9CMultihomed%E2%80%9D%20and%20for%20%3CEM%3E%20Discovery%20Type%20%3C%2FEM%3E%20select%20%3CEM%3E%20Registry%20%3C%2FEM%3E%20.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%203.%20For%20%3CEM%3E%20Target%20%3C%2FEM%3E%20we%E2%80%99ll%20select%20%3CEM%3E%20Windows%20Computer_Extended.%20%3C%2FEM%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%204.%20Select%20the%20management%20pack%20and%20click%20%3CEM%3E%20Next%20%3C%2FEM%3E%20.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F83031i8489E0953473177F%22%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%205.%20Under%20%3CEM%3E%20Key%20or%20Value%20Type%20%3C%2FEM%3E%20%2C%20select%20%3CEM%3E%20Key%20%3C%2FEM%3E%20.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%206.%20For%20the%20path%2C%20specify%20HKEY_LOCAL_MACHINE%5CSOFTWARE%5CMicrosoft%5CMicrosoft%20Operations%20Manager%5C3.0%5CAgent%20Management%20Groups%5CSCOM1.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%207.%20Make%20sure%20%3CEM%3E%20Attribute%20Type%20%3C%2FEM%3E%20is%20set%20to%20%3CEM%3E%20Check%20if%20exists%20%3C%2FEM%3E%20and%20click%20%3CEM%3E%20Finish%20%3C%2FEM%3E%20.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%208.%20Now%20that%20we%E2%80%99re%20done%20with%20the%20attribute%2C%20let%E2%80%99s%20go%20to%20%3CEM%3E%20Monitoring%20%3C%2FEM%3E%20and%20then%20%3CEM%3E%20Discovered%20Inventory.%20%3C%2FEM%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%209.%20Change%20the%20target%20type%20to%20%E2%80%9CWindows_Computer_Extended%E2%80%9D%20and%20you%E2%80%99ll%20see%20a%20list%20similar%20to%20the%20following%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F83033iD8E9819630A7F7DD%22%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20But%20this%20list%20is%20showing%20all%20the%20agents.%20No%20problem%2C%20scroll%20towards%20the%20right%20and%20on%20the%20right-hand%20side%20check%20the%20value%20of%20the%20attribute%20%3CEM%3E%20multihomed%20%3C%2FEM%3E%20.%20This%20value%20will%20appear%20as%20%3CEM%3E%20true%20%3C%2FEM%3E%20and%20should%20look%20something%20like%20this%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F83034i03201D2121A7A32C%22%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20That%E2%80%99s%20all%20there%20is%20to%20it!%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20Keshav%20Deo%20Jain%20%3C%2FSTRONG%3E%20%2C%20Support%20Engineer%20%3CBR%20%2F%3E%20Microsoft%20Enterprise%20Cloud%20Group%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-351468%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20TECHNET%20on%20Apr%2011%2C%202016%20If%20you%20ever%20find%20yourself%20in%20a%20situation%20where%20you%20need%20a%20list%20of%20all%20of%20the%20multi-homed%20agents%20in%20your%20Operations%20Manager%20environment%2C%20here%E2%80%99s%20a%20quick%20and%20easy%20way%20to%20do%20it.%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-351468%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESystem%20Center%20Operations%20Manager%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Mar 11 2019 10:29 AM
Updated by: