Earlier this week, one of the analysts in our Operations Center informed me about an alert received in System Center Operations Manager 2007 from one of our managed servers. The alert was regarding the need for agent proxying to be enabled on a server and was similar to the following:
Source: Servername.contoso.com
Path: Servername.contoso.com
Last modified by: System
Last modified time: 8/5/2008 2:36:47 PM
Alert description: Details: Health service (9AAFF032-4567-2270-B09A-A34025D969F3) could not generate data about this managed object (EC7903B7-72FC-BFD0-3CA2-473774E60AD4).
So how in the world do we translate the GUID into a recognizable computer name? The answer is Windows PowerShell. Save the following script with a .ps1 file extension (for example, AgentProxy.ps1):
Param([string]$MonitoringObjectID)
Get-MonitoringObject -id $MonitoringObjectID | select name
Run the script from the command shell console as follows:
C:\MyWorkspace\AgentProxy.ps1 EC7903B7-72FC-BFD0-3CA2-473774E60AD4
The script will return the name of the computer in question and then you can enable agent proxying from within the Administration space of the Operations Manager console.
