System Center Configuration Manager 2007 : Desired Configuration Management - Troubleshooting
Troubleshooting DCM, like the rest of ConfigMgr, is largely a log file review exercise. Because DCM is a client activity, the logs for DCM processing are on the client in the client logs folder (%SystemRoot%\System32\CCM\Logs on 32-bit systems and %SystemRoot%\SysWOW64\CCM\Logs on 64-bit systems). Five log files are used by DCM to store activity; Table 1 describes these files.
| Filename | Description |
|---|---|
| Dcmagent.log | Provides high-level information about the evaluation of assigned configuration baselines plus information regarding desired configuration management processes |
| Ciagent.log | Provides information about downloading, storing, and accessing assigned configuration baselines |
| Sdmagent.log | Provides information about downloading, storing, and accessing configuration item content |
| Sdmdiscagent.log | Provides high-level information about the evaluation process for the objects and settings configured in the referenced configuration items |
| Discovery.log | Provides detailed information about the Service Modeling Language processes |
In addition to troubleshooting DCM itself, you will often have to troubleshoot issues with the baselines and the configuration items they contain. Issues involving the ability for DCM to evaluate a baseline or configuration item are reported through the ConfigMgr status message reporting mechanism. To view these status messages, perform the following procedure:
1. | Navigate to Site Database -> System Status -> Status Message Queries in the ConfigMgr tree. | ||||||||||||||||||||||||||||||||||||
2. | In the resulting details pane on the right, right-click All Status Messages and select Show Messages. | ||||||||||||||||||||||||||||||||||||
3. | In the All Status Messages dialog box, enter the desired timeframe for which you would like to see status messages. | ||||||||||||||||||||||||||||||||||||
4. | Review the displayed messages looking for the message IDs listed in Table 1.
|
Using the message IDs listed in Table 1, you can narrow down issues DCM has when evaluating baselines and configuration items. These status messages also provide the ability to track and monitor the evaluation status of baselines in your site.
Note: .NET Framework
Not having the correct version of the .NET Framework installed on a client system can cause strange results that are difficult to troubleshoot. The lack of the .NET Framework can clearly be identified by the status messages returned by the client, but these are not always the first place you look to troubleshoot issues.
Information needed for DCM compliance scans often takes more than one client policy refresh cycle to be fully staged to the client. During this period, the status of the scan will not match your expectations for the result of the scan; this is to be expected and should not be cause for alarm or an extensive troubleshooting exercise. Patiently wait for an extra policy refresh cycle, and DCM will dutifully report its results in full.
It is often advantageous to trigger a DCM evaluation cycle on a remote system without interactively connecting to that system and initiating it from the Control Panel applet. The following code shows an example of how to trigger every applicable baseline on a remote system using VBScript:
system = "remote-system-name"
set objDCM = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_ system & "\root\ccm\dcm:SMS_DesiredConfiguration") Set objSWbemServices = GetObject("winmgmts:\\" & system & "\root\ccm\dcm") Set colSWbemObjectSet = objSWbemServices.ExecQuery("SELECT * FROM SMS_DesiredConfiguration")
For Each objSWbemObject In colSWbemObjectSet
objDCM.TriggerEvaluation objSWbemObject.Name,objSWbemObject.Version
Next
This simple VBScript can easily be extended to connect to multiple systems or to allow the choice of which baseline to trigger an evaluation on.