Solved

Orphaned systems in SCOM 2007 R2 monitoring window

Posted on 2011-03-17
2
4,433 Views
Last Modified: 2012-05-11
I have a number of obsolete servers that were removed from our network before I had a chance to uninstall the SCOM agent via the SCOM console.  I have deleted these machines from within the Administration/Agent Managed window, however they remain within the Monitoring/Computers window with a greyed-out critical state.  I've searched for a way to remove these ophaned objects, but so far nothing has worked.  I do seem to recall having read an article that indicated that this may happen if there are unclosed alerts or events that reference the machine object.  However, I have can't find any open alerts or events for these machines.  Anyone know how to get rid of these pesky dead machines from SCOM?
0
Comment
Question by:UrHuckleberry
2 Comments
 
LVL 1

Accepted Solution

by:
ssiimmppllee earned 500 total points
ID: 35158406
You will need to remove the objects from the Database. This is fairly easy to do. Here are the steps that i use when i have this issue.

System Center Operations Manager 2007 stores all "entities" it "manages" in the BaseManagedEntity table in the Operational database (named "OperationsManager", by default). This is the place where we will be manually telling SCOM that this computer does not exist anymore. There's a column called "IsDeleted" that stores if the agent was removed.


1. Connect to the SCOM SQL server and open SQL Management studio
2. Right click on OperationsManager database and select new query
3. Run the following query in the right window  to see the status of ALL computers in SCOM
 

SELECT * FROM dbo.[BasemanagedEntity] where FullName Like '%Windows.Computer%'


4. To see the status of a specific computer in SCOM (replace the text "fqdn" with the server name)

SELECT * FROM dbo.[BasemanagedEntity] where FullName Like '%Windows.Computer%' and Name Like '%FQDN.of.my.computer%'
 

 
5. In the results scroll to the right to find the "IsDeleted" column. 0(Zero) means the database does not know the computer has been deleted. If it is zero then we will run the next command to change it to 1 (one)

replace the text "fqdn" with the server name


UPDATE dbo.[BasemanagedEntity] SET IsDeleted = 1 where FullName Like '%Windows.Computer%' and Name Like '%FQDN.of.my.computer%'

 
 

Going back to the Operations Console to the Monitoring & Computer section, shows us that the computer does not show in the list already. It will still take some time before it really gets deleted in the database, but visually you are already set. (Do note that the machine and its child objects like disk and CPU are still there in the Data Warehouse. This will stay there until that expired there also; which is 360 days by default).

 

0
 

Author Closing Comment

by:UrHuckleberry
ID: 35159032
Worked like a charm!  Thank you very much for sharing that with me!
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Experts-Exchange users below are the steps you can follow to upgrade your Lync server to latest CU's or cumulative updates. Note: Perform it during non-production hours.   Step 1: Backup your lync and SQL server database. Follow below article: h…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Viewers will learn the different options available in the Backstage view in Excel 2013.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question