Hey Kevin, do you have an index of the reports you have created? wouldn't mind looking through a few of them From: [email protected] To: [email protected] Subject: RE: [msmom] Delete grey agents from SCOM 2007/2012 Date: Tue, 15 Jul 2014 21:21:10 +0000
A grey agent is an agent that has a healthservice that is failing to heartbeat. I cannot imagine deleting agents simply because they are unhealthy and need operational review. If you want to delete agents that have not checked in, in “X” number of days, you could potentially write a powershell script that deletes agents who have not checked in in a given amount of time, but if the last state change is groomed out of the database that might be difficult. You can get this information from a report/SQL query, such as found in http://blogs.technet.com/b/kevinholman/archive/2008/06/27/which-servers-are-down-in-my-company-and-which-just-have-a-heartbeat-failure-right-now.aspx. Theoretically you could script the names into an array and then delete them based on a date filter. From: [email protected] [mailto:[email protected]] On Behalf Of elsalvoz Sent: Tuesday, July 15, 2014 4:13 PM To: SCOM List Subject: [msmom] Delete grey agents from SCOM 2007/2012 Hello All, I'm fairly new to SCOM, I'm looking for way to automate certain task with powershell or any other methods. I've been looking for a way to delete grey agents but haven't been able to find a way to script it. What's the best automated way to do this task? Thanks, Cesar
