Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

System Center Configuration Manager 2007 : Status Messages and Logs (part 1)

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
5/7/2012 3:56:24 PM
ConfigMgr 2007 provides two built-in mechanisms for viewing and troubleshooting Configuration Manager operations:
  • ConfigMgr components generate status messages to report milestone activity and problem occurrences. System administrators can view status messages and use them in queries and reports. You can also configure the status message system to invoke automated actions in response to specified status messages.

  • ConfigMgr components generate extensive logs that give additional detail about their activity.

Both the status message system and logging are highly configurable and provide valuable windows into the system.

Digging into ConfigMgr logs is the best way to gain a deep understanding of ConfigMgr internals. 

The ConfigMgr logs are text files, and you can view them in Windows Notepad or your favorite text editor. One of the most popular tools for previous versions of SMS, however, has been the log viewer tool (Trace32). Most administrators prefer to use the log viewer rather than a text editor to display log files. An updated version of the log viewer is part of the ConfigMgr 2007 Toolkit. The log viewer formats log entries, provides search and highlighting features, and provides error lookup. You can optionally turn on an auto-refresh feature to update the displayed log in near real time.

The smsprov.log file shows calls to the SMS provider from management applications. The bottom pane of the log viewer displays the details of the highlighted log entry. The entry in Figure 1 shows that the user SCCMUNLEASHED\administrator modified an instance of class SMS_SCI_SiteDefinition. The SMS_SCI_SiteDefinition, displayed in Figure 2, provides an interface to binary data stored in the SiteControl table.

Figure 1. Smsprov.log displayed in the Log Viewer (Trace32)

Figure 2. The SMS_SCI_SiteDefinition WMI class displayed in CIM Viewer

Note: The Configuration Manager 2007 Toolkit

Microsoft’s System Center Configuration Manager 2007 Toolkit contains a number of tools to help you manage and troubleshoot ConfigMgr 2007. You can download the Toolkit from http://www.microsoft.com/downloads/details.aspx?familyid=948e477e-fd3b-4a09-9015-141683c7ad5f&displaylang=en (or go to www.microsoft.com/downloads and search for System Center Configuration Manager 2007 Toolkit).


Figure 1 shows a portion of the smsprov.log file as displayed in the log viewer.

The smsprov.log file later shows the following actions performed that commit the changes to the database:

ExecMethodAsync : SMS_SiteControlFile::CommitSCF
CSspClassManager::PreCallAction, dbname=SMS_DAL
CExtProviderClassObject::DoExecuteMethod CommitSCF
Calling SubmitDeltaSCFToDatabase for user=SCCMUNLEASHED\administrator,
computer=WILDFLOWER,component=Microsoft.ConfigurationManagement.dll
CSspSiteControl::CommitSCF - Delta was created

The log file provides additional details of the security context setup and database connection, not displayed here.

Using the SQL Server Profiler lets you see SQL requests sent to the SQL Server database. (For information about the SQL Server Profiler, see http://msdn.microsoft.com/en-us/library/ms187929.aspx.)



The following SQL commands sent by ConfigMgr components show the SMS provider inserting data into the SiteControl table and the Database Monitor retrieving the change notification from the database:

[SMS Provider] insert SiteControl (SiteCode, TypeFlag, SerialNumber, BinaryData)
values ("DAL", 2, 33, 0x0)
[SMS_DATABASE_NOTIFICATION_MONITOR] exec spGetChangeNotifications

					  

What connects these two events is a trigger on the SiteControl table. A trigger is a special SQL procedure that fires in response to specified data-modification events. The SiteControl table defines the following trigger:

CREATE TRIGGER [dbo].[SMSDBMON_SiteControl_SiteControl_AddUpd_HMAN_ins]
ON [dbo].[SiteControl] FOR insert AS
BEGIN
    INSERT INTO
TableChangeNotifications(Component,TableName,ActionType,Key1,Key2,Key3)
SELECT "SiteControl_AddUpd_HMAN","SiteControl",1,
IsNULL(convert(varchar(256),SiteCode),''),
IsNULL(convert(varchar(256),TypeFlag),''),''
FROM inserted
IF @@ERROR != 0 ROLLBACK TRAN
END

This trigger creates an entry in the TableChangeNotifications table each time a record is inserted in the SiteControl table. When the Database Monitor executes the spGetChangeNotifications stored procedure, it reads the TableChangeNotifications table and processes any new entries it finds.

Other -----------------
- Recovering from a Disaster in an Exchange Server 2007 Environment : Using the Recovery Storage Group in Exchange Server 2007 & Recovering Internet Information Services
- Recovering from a Disaster in an Exchange Server 2007 Environment : Recovering from Database Corruption
- Windows Server 2008 Server Core : Testing Batch Files (part 2) - Identifying Batch Files and Their Actions & Using a Centralized Data Store
- Windows Server 2008 Server Core : Testing Batch Files (part 1) - Adding Debug Information to Batch Files
- Microsoft Dynamics AX 2009 : Working with Data in Forms - Building selected or available lists
- Microsoft Dynamics AX 2009 : Working with Data in Forms - Creating custom instant search filters
- Sharepoint 2007 : Managing Site Security - Set Users’ Permissions on a Site (part 2) - Add Users’ Permissions Directly to or Remove Them from a Site
- Sharepoint 2007 : Managing Site Security - Set Users’ Permissions on a Site (part 1) - Add or Remove Users in a SharePoint Group
- Sharepoint 2007 : Managing Site Security - Get to the Site’s Security Settings Page
- Microsoft Systems Management Server 2003 : Defining and Configuring Site Systems (part 4) - Management Points, Reporting Points & Server Locator Points
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server