Huntland Services Ltd

Tel: +44 (0)1392-490518
Fax: +44 (0)1392-428003
Enquiries@huntland.co.uk

List Agent Computer Response Time (Sp1)

 

Back

Download The Script

 

Agents that fail to make a heartbeat contact within 10 minutes are going to be classified as unresponsive by Mom.  There might be many reasons why Agents are slow to make a heartbeat contact and it is useful to check the general heartbeat performance across the entire population of Agent computers.  As there is no default way to do this through the Mom console, this script allows an administrator to perform a check from a command prompt.  Because the script uses the new msft_computer WMI class, it can be run from anywhere against any DCAM, assuming the administrator has the appropriate authority.

The msft_Computer class created in the Root\mom namespace when Mom Sp1 is installed has the following properties:

  • Name
  • Description
  • DNSName
  • Domain
  • Guid
  • isAgent
  • isConsolidator
  • LastModifiedBy
  • TimeAdded
  • TimeLastContacted
  • TimeLastModified Type

ListAgentComputerResponseTime.vbs

To use the script an administrator must be a local administrator on the DCAM server.  The only parameter that has to be specified is th name of  one DCAM server:

Cscript.exe ListAgentComputerResponseTime.vbs  myDcamServer


Results

 

LastContact

Minutes

Computer Type Agent
12/11/2002 13:54:30

4

dom1\myServer3 PDC True
12/11/2002 13:52:45

2

dom1\myServer5 BDC True
12/11/2002 13:50:16

2

dom2\myServer2 Member True

 
 Where 'Minutes' gives the amount of time in minutes since this Agent successfully contacted its DCAM
 


Please accept this script as is.  Any feedback will be gratefully received at Debug@Huntland.co.uk