Quantcast
Channel: Sudheesh Blog on System Center…….
Viewing all 81 articles
Browse latest View live

Troubleshooting SCCM Part VI ..........Software Distribution

$
0
0

Software Distribution

The Microsoft System Center Configuration Manager 2007 software distribution feature provides a set of tools and resources that help you create and manage packages and advertisements used to distribute software to client resources within your enterprise.

For more details please check the following link

http://technet.microsoft.com/en-us/library/bb632640.aspx

Troubleshooting Software Distribution

Server Side

Once you create a package then you need to check the status messages to see if the package has been created you will have the following entries

Status ID : 30000 => User "Domain\User" created a package named " Test Package  " (LAB00003).
Status ID : 2301 => SMS Distribution Manager successfully processed package
"Test Package" (package ID = LAB00003).

Also you will have 2300 and 2311 for starting and creation of the packages Once you add the distribution point you then have to see if the following status messages are displayed.

Status ID : 30125 User "Domain\User" added new distribution points to a package named " Test Package  " (LAB00003).

Severity     Type           Site code   Date / Time                   System       Component                   Message ID                    Description                    Thread ID   Process ID

Information                   Milestone  LAB             4/26/2010 10:28:51 PM                SCCM          SMS_DISTRIBUTION_MANAGER    2330           SMS Distribution Manager successfully distributed package "LAB00003" to distribution point "["Display=\\SCCM\"]MSWNET:["SMS_SITE=LAB"]\\SCCM\".              4412           3040

Information                   Milestone  LAB             4/26/2010 10:28:51 PM                SCCM          SMS_DISTRIBUTION_MANAGER    2329           SMS Distribution Manager copied package "LAB00003" from "C:\SOFTDUMP\" to "MSWNET:["SMS_SITE=LAB"]\\SCCM\SMSPKGC$\LAB00003\".                    4412           3040

Information                   Milestone  LAB             4/26/2010 10:28:29 PM                SCCM          SMS_DISTRIBUTION_MANAGER    2342           SMS Distribution Manager is starting to distribute package "Test Package" to distribution point "["Display=\\SCCM\"]MSWNET:["SMS_SITE=LAB"]\\SCCM\".              4412           3040

 

If you see the errors you can check the distmgr.log for the same. The distmgr.log will have the following entries

STATMSG: ID=2300 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=SCCM SITE=LAB PID=3040 TID=3276 GMTDATE=Mon Apr 26 16:59:00.772 2010 ISTR0="Test Package" ISTR1="LAB00003" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="LAB00003"          SMS_DISTRIBUTION_MANAGER    4/26/2010 10:29:00 PM                    3276 (0x0CCC)

No action specified for the package LAB00003.                SMS_DISTRIBUTION_MANAGER    4/26/2010 10:29:00 PM                3276 (0x0CCC)

No action specified for the package on server ["Display=\\SCCM\"]MSWNET:["SMS_SITE=LAB"]\\SCCM\.                    SMS_DISTRIBUTION_MANAGER    4/26/2010 10:29:00 PM                3276 (0x0CCC)

Updating package info for package LAB00003                   SMS_DISTRIBUTION_MANAGER    4/26/2010 10:29:00 PM                3276 (0x0CCC)

Package LAB00003 does not have a preferred sender.   SMS_DISTRIBUTION_MANAGER    4/26/2010 10:29:00 PM                3276 (0x0CCC)

The package and/or program properties for package LAB00003 have not changed,  need to determine which site(s) need updated package info.            SMS_DISTRIBUTION_MANAGER    4/26/2010 10:29:00 PM                3276 (0x0CCC)

StoredPkgVersion (0) of package LAB00003. StoredPkgVersion in database is 0.                   SMS_DISTRIBUTION_MANAGER    4/26/2010 10:29:00 PM                3276 (0x0CCC)

SourceVersion (1) of package LAB00003. SourceVersion in database is 1.          SMS_DISTRIBUTION_MANAGER    4/26/2010 10:29:00 PM                    3276 (0x0CCC)

STATMSG: ID=2301 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=SCCM SITE=LAB PID=3040 TID=3276 GMTDATE=Mon Apr 26 16:59:01.073 2010 ISTR0="Test Package" ISTR1="LAB00003" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="LAB00003"          SMS_DISTRIBUTION_MANAGER    4/26/2010 10:29:01 PM                    3276 (0x0CCC)

Exiting package processing thread.                  SMS_DISTRIBUTION_MANAGER    4/26/2010 10:29:01 PM                3276 (0x0CCC)

 

In case you see errors please make sure that the following

·        There is no network issue between the server and the and the DP server

·        Make sure that the SMSPKG<DriveLettre>$ share has been created and that has the folder with the package ID

·        There is no DNS resolution issue.

·        Make sure that the share has the require permission to write the data.

Once this is verified the next step is to check if the advertisement is created .These are the following status which will give you an idea on the creation

Information                   Milestone  LAB             4/26/2010 10:44:36 PM                SCCM          SMS_OFFER_MANAGER                  3900           SMS Offer Manager successfully processed new advertisement Test Advr.

Information                   Audit          LAB             4/26/2010 10:44:24 PM                SCCM          Microsoft.ConfigurationManagement.dll                    30006        User "MYLAB\Administrator" created an advertisement named "Test Advr" (LAB20000) advertising program "Test Program".

 

Once the advertisement is received by the client you will have the following status messages

 

Severity     Type           Site code   Date / Time                   System       Component                   Message ID                    Description

Information                   Milestone  LAB             4/26/2010 10:44:36 PM                SCCM          SMS_OFFER_MANAGER                  3900           SMS Offer Manager successfully processed new advertisement Test Advr.

Information                   Audit          LAB             4/26/2010 10:44:24 PM                SCCM          Microsoft.ConfigurationManagement.dll                    30006        User "MYLAB\Administrator" created an advertisement named "Test Advr" (LAB20000) advertising program "Test Program".

 

Now on you need to check the client logs.

 

Client Side

 

Once the agent refreshes the policy according the policy refresh interval you will have the policy downloaded and evaluated.

 

Policyagnet.log

 

Download of policy CCM_Policy_Policy4.PolicyID="LAB20000-LAB00003-9785047B",PolicySource="SMS:LAB",PolicyVersion="1.00" completed (DTS Job ID: {231E2AE2-7ED2-4AA3-84F4-81CA1712217E})              PolicyAgent_PolicyDownload        4/26/2010 10:47:12 PM                    1944 (0x0798)

Raising event:

 

instance of CCM_PolicyAgent_PolicyDownloadSucceeded

{

                    ClientID = "GUID:76B6D180-F0B6-4689-B294-6CCE9033D7EB";

                    DateTime = "20100426171712.258000+000";

                    DownloadMethod = "BITS";

                    DownloadSource = "http://SCCM.MYLAB.IN/SMS_MP/.sms_pol?LAB20000-LAB00003-9785047B.1_00";

                    PolicyNamespace = "\\\\SQL\\ROOT\\ccm\\Policy\\Machine\\RequestedConfig";

                    PolicyPath = "CCM_Policy_Policy4.PolicyID=\"LAB20000-LAB00003-9785047B\",PolicySource=\"SMS:LAB\",PolicyVersion=\"1.00\"";

                    ProcessID = 3568;

                    ThreadID = 1944;

};

                    PolicyAgent_PolicyDownload        4/26/2010 10:47:12 PM                1944 (0x0798)

 

Policy Evaluvator.log

Raising event:

 

instance of CCM_PolicyAgent_PolicyEvaluationComplete

{

                    ClientID = "GUID:76B6D180-F0B6-4689-B294-6CCE9033D7EB";

                    DateTime = "20100426171716.924000+000";

                    PolicyNamespace = "\\\\SQL\\ROOT\\ccm\\Policy\\Machine\\RequestedConfig";

                    PolicyPath = "CCM_Policy_Policy4.PolicyID=\"LAB20000-LAB00003-9785047B\",PolicySource=\"SMS:LAB\",PolicyVersion=\"1.00\"";

                    ProcessID = 3568;

                    ThreadID = 1944;

};

                    PolicyAgent_PolicyEvaluator         4/26/2010 10:47:16 PM                1944 (0x0798)

Policy state for [CCM_Policy_Policy4.PolicyID="LAB20000-LAB00003-9785047B",PolicyVersion="1.00",PolicySource="SMS:LAB"] is currently [Active]        PolicyAgent_PolicyEvaluator         4/26/2010 10:47:16 PM                3488 (0x0DA0)

Updating settings in \\sql\root\ccm\policy\machine\actualconfig     PolicyAgent_PolicyEvaluator         4/26/2010 10:47:16 PM                3488 (0x0DA0)

Raising event:

 

instance of CCM_PolicyAgent_SettingsEvaluationComplete

{

                    ClientID = "GUID:76B6D180-F0B6-4689-B294-6CCE9033D7EB";

                    DateTime = "20100426171718.827000+000";

                    PolicyNamespace = "\\\\sql\\root\\ccm\\policy\\machine\\actualconfig";

                    ProcessID = 3568;

                    ThreadID = 3488;

};

                    PolicyAgent_PolicyEvaluator         4/26/2010 10:47:18 PM                3488 (0x0DA0)

 

On the execution manager you will have the following entry

 

Execmgr.log

 

Policy arrived for parent package LAB00003 program Test Program                    execmgr    4/26/2010 10:47:19 PM                2004 (0x07D4)

Raising event:

[SMS_CodePage(437), SMS_LocaleID(1033)]

instance of SoftDistProgramOfferReceivedEvent

{

                    AdvertisementId = "LAB20000";

                    ClientID = "GUID:76B6D180-F0B6-4689-B294-6CCE9033D7EB";

                    DateTime = "20100426171720.299000+000";

                    MachineName = "SQL";

                    ProcessID = 3568;

                    SiteCode = "LAB";

                    ThreadID = 2004;

};

                    execmgr    4/26/2010 10:47:20 PM                2004 (0x07D4)

Requesting content from CAS for package LAB00003 version 1        execmgr    4/26/2010 10:47:25 PM                1944 (0x0798)

Successfully created a content request handle {80539F34-D400-4978-95F2-9D26151C9BF8} for the package LAB00003 version 1                    execmgr    4/26/2010 10:47:29 PM                1944 (0x0798)

 

Then you will see the download in the datatransferservices.log

 

DatatransferServices.log

 

UpdateURLWithTransportSettings(): OLD URL - http://SCCM.MYLAB.IN/SMS_MP/.sms_pol?LAB20000-LAB00003-9785047B.1_00                    DataTransferService    4/26/2010 10:47:06 PM                3208 (0x0C88)

UpdateURLWithTransportSettings(): NEW URL - http://SCCM.MYLAB.IN:80/SMS_MP/.sms_pol?LAB20000-LAB00003-9785047B.1_00                    DataTransferService    4/26/2010 10:47:06 PM                3208 (0x0C88)

DTSJob {231E2AE2-7ED2-4AA3-84F4-81CA1712217E} created to download from 'http://SCCM.MYLAB.IN/SMS_MP/.sms_pol?LAB20000-LAB00003-9785047B.1_00' to 'C:\WINDOWS\system32\CCM\Temp\{55C3178E-C27D-4C29-AC2D-439C6E87D53D}.tmp'.                    DataTransferService    4/26/2010 10:47:06 PM                3208 (0x0C88)

DTSJob {231E2AE2-7ED2-4AA3-84F4-81CA1712217E} in state 'PendingDownload'.             DataTransferService    4/26/2010 10:47:06 PM                    1944 (0x0798)

DTS::AddTransportSecurityOptionsToBITSJob - Failed to QueryInterface for IBackgroundCopyJobHttpOptions. BITS 2.5+ may not be installed properly.   DataTransferService    4/26/2010 10:47:09 PM                1944 (0x0798)

DTSJob {231E2AE2-7ED2-4AA3-84F4-81CA1712217E} in state 'DownloadingData'.              DataTransferService    4/26/2010 10:47:09 PM                    1944 (0x0798)

DTSJob {231E2AE2-7ED2-4AA3-84F4-81CA1712217E} in state 'RetrievedData'.                    DataTransferService    4/26/2010 10:47:11 PM                    2004 (0x07D4)

DTSJob {B40BBB03-0BA0-460A-B822-3DB2535AFCF1} successfully completed download.DataTransferService    4/26/2010 10:48:10 PM                    3208 (0x0C88)

DTSJob {B40BBB03-0BA0-460A-B822-3DB2535AFCF1} in state 'NotifiedComplete'.             DataTransferService    4/26/2010 10:48:11 PM                    3488 (0x0DA0)

DTS job {B40BBB03-0BA0-460A-B822-3DB2535AFCF1} has completed:

                    Status : SUCCESS

                    Start time : 04/26/2010 22:48:07

                    Completion time : 04/26/2010 22:48:10

                    Elapsed time : 3 seconds                DataTransferService    4/26/2010 10:48:11 PM                3488 (0x0DA0)

 

 

Then you will see the downloaded progress and completed with the execution of the process. If it is failing make sure that the DP is available and also that the BITS is working fine.

 

Execmgr.log

 

Program Test Program change to state STATE_ADVANCED_DOWNLOAD content in progress                 execmgr    4/26/2010 10:47:29 PM                    1944 (0x0798)

Execution Request for package LAB00003 program Test Program state change from NotExist to AdvancedDownload              execmgr                    4/26/2010 10:47:29 PM                1944 (0x0798)

Mandatory execution requested for program Test Program and advertisement LAB20000                    execmgr    4/26/2010 10:47:29 PM                    3208 (0x0C88)

Creating mandatory request for advert LAB20000, program Test Program, package LAB00003             execmgr    4/26/2010 10:47:29 PM                    3208 (0x0C88)

Raising event:

[SMS_CodePage(437), SMS_LocaleID(1033)]

instance of SoftDistWaitingContentEvent

{

                    AdvertisementId = "LAB20000";

                    ClientID = "GUID:76B6D180-F0B6-4689-B294-6CCE9033D7EB";

                    DateTime = "20100426171731.545000+000";

                    MachineName = "SQL";

                    PackageName = "LAB00003";

                    PackageVersion = "1";

                    ProcessID = 3568;

                    ProgramName = "Test Program";

                    SiteCode = "LAB";

                    ThreadID = 3208;

};

                    execmgr    4/26/2010 10:47:31 PM                3208 (0x0C88)

Successfully raised SoftDistWaitingContentEvent event for program Test Program               execmgr    4/26/2010 10:47:31 PM                3208 (0x0C88)

Execution Request for package LAB00003 program Test Program state change from WaitingDependency to WaitingContent                    execmgr    4/26/2010 10:47:31 PM                3208 (0x0C88)

Content is available for program Test Program.                 execmgr    4/26/2010 10:48:18 PM                3488 (0x0DA0)

CExecutionRequest::Service Windows Manager has allowed us to run.               execmgr    4/26/2010 10:48:18 PM                3488 (0x0DA0)

Execution Request for package LAB00003 program Test Program state change from WaitingContent to NotifyExecution        execmgr                    4/26/2010 10:48:18 PM                3488 (0x0DA0)

Notify user mandatory program Test Program is about to run            execmgr    4/26/2010 10:48:18 PM                3488 (0x0DA0)

Execution Manager timer has been fired.       execmgr    4/26/2010 10:53:18 PM                2184 (0x0888)

Executing program test.bat in Admin context                    execmgr    4/26/2010 10:53:19 PM                2184 (0x0888)

Execution Manager timer has been fired.       execmgr    4/26/2010 10:53:19 PM                3752 (0x0EA8)

Execution Request for package LAB00003 program Test Program state change from Running to NotifyExecutionexecmgr    4/26/2010 10:53:19 PM                2184 (0x0888)

Checking content location C:\WINDOWS\system32\CCM\Cache\LAB00003.1.System for use               execmgr    4/26/2010 10:53:19 PM                    2184 (0x0888)

Successfully selected content location C:\WINDOWS\system32\CCM\Cache\LAB00003.1.System       execmgr    4/26/2010 10:53:19 PM                    2184 (0x0888)

Executing program as a script        execmgr    4/26/2010 10:53:19 PM                2184 (0x0888)

Successfully prepared command line "C:\WINDOWS\system32\CCM\Cache\LAB00003.1.System\test.bat"           execmgr    4/26/2010 10:53:19 PM                2184 (0x0888)

Command line = "C:\WINDOWS\system32\CCM\Cache\LAB00003.1.System\test.bat", Working Directory = C:\WINDOWS\system32\CCM\Cache\LAB00003.1.System\               execmgr    4/26/2010 10:53:19 PM                2184 (0x0888)

Created Process for the passed command line                  execmgr    4/26/2010 10:53:20 PM                2184 (0x0888)

Raising event:

[SMS_CodePage(437), SMS_LocaleID(1033)]

instance of SoftDistProgramStartedEvent

{

                    AdvertisementId = "LAB20000";

                    ClientID = "GUID:76B6D180-F0B6-4689-B294-6CCE9033D7EB";

                    CommandLine = "\"C:\\WINDOWS\\system32\\CCM\\Cache\\LAB00003.1.System\\test.bat\"";

                    DateTime = "20100426172320.000000+000";

                    MachineName = "SQL";

                    PackageName = "LAB00003";

                    ProcessID = 3568;

                    ProgramName = "Test Program";

                    SiteCode = "LAB";

                    ThreadID = 2184;

                    UserContext = "NT AUTHORITY\\SYSTEM";

                    WorkingDirectory = "C:\\WINDOWS\\system32\\CCM\\Cache\\LAB00003.1.System\\";

};

                    execmgr    4/26/2010 10:53:20 PM                2184 (0x0888)

Raised Program Started Event for Ad:LAB20000, Package:LAB00003, Program: Test Program               execmgr    4/26/2010 10:53:20 PM                    2184 (0x0888)

Program exit code 0    execmgr    4/26/2010 10:53:24 PM                3752 (0x0EA8)

Looking for MIF file to get program status      execmgr    4/26/2010 10:53:24 PM                3752 (0x0EA8)

Script for  Package:LAB00003, Program: Test Program succeeded with exit code 0             execmgr    4/26/2010 10:53:24 PM                3752 (0x0EA8)

Raising event:

[SMS_CodePage(437), SMS_LocaleID(1033)]

instance of SoftDistProgramCompletedSuccessfullyEvent

{

                    AdvertisementId = "LAB20000";

                    ClientID = "GUID:76B6D180-F0B6-4689-B294-6CCE9033D7EB";

                    DateTime = "20100426172324.741000+000";

                    MachineName = "SQL";

                    PackageName = "LAB00003";

                    ProcessID = 3568;

                    ProgramName = "Test Program";

                    SiteCode = "LAB";

                    ThreadID = 3752;

                    UserContext = "NT AUTHORITY\\SYSTEM";

};

                    execmgr    4/26/2010 10:53:24 PM                3752 (0x0EA8)

Raised Program Success Event for Ad:LAB20000, Package:LAB00003, Program: Test Program              execmgr    4/26/2010 10:53:24 PM                    3752 (0x0EA8)

Execution is complete for program Test Program. The exit code is 0, the execution status is Success   execmgr    4/26/2010 10:53:24 PM                    2184 (0x0888)

Execution Manager timer has been fired.       execmgr    4/26/2010 10:55:29 PM                2184 (0x0888)

 

If there are errors here you need to check the program command line and check if you can execute this command manually in your system. Please note that in SCCM software distribution is a just a command carrier and it will carry the command which you have requested with the set of files required so if there is any execution error you need to troubleshoot the same differently.

 

For more details please see the following link

 

http://technet.microsoft.com/en-us/library/bb632640.aspx Software Distribution in Configuration Manager

http://technet.microsoft.com/en-us/library/bb892792.aspx : Troubleshooting Software Distribution Issues

http://technet.microsoft.com/en-us/library/bb932214.aspx : Software Distribution Troubleshooting Flowcharts

http://technet.microsoft.com/en-us/library/bb735865.aspx : Troubleshooting Software Distribution Using Custom Error Codes

 

 

 

 

 

 

 

 

 


Audit Collector Filter GUI version (V1) of ADTADMIN.exe

$
0
0

Audit Collector in Operations Manager 2007 is one of the most frequently used. When I was supporting the SCOM and ACS, the challenge many of customers informed me was that applying filter query using adtadmin tool. This is more important to make sure that unnecessary data is not inserted to the ACS database and that the ACS database is within the manageable size limits.

You can get more details from this link on the Adtadmin tool.

http://technet.microsoft.com/en-us/library/bb309436.aspx

This tool designed by me is a GUI tool which uses adtadmin tool behind but will make the user level experience better. This will work with the following condition.

 

 

·         This tool is supposed to run only on ACS collector system

·         This is not for complex quires.

·         This tool can be run with a user having administrator rights

·         With System with UAC enabled you need to use Run as Administrator to the tool.

 

I have tested this with Windows Server 2003 and Windows Server 2008 but keep in mind that this is not an official Microsoft tool and just something that I created for my own personal use.  As such, Microsoft makes no warranties or guarantee's regarding the applicability of this utility, nor does Microsoft support the use of this tool in any way. This is just one of those 'use at your own risk' type of things that hopefully you'll find helpful

If you have any question please let me know.

Hope this will be Helpful

Sudheesh N

Sudheesh.Narayanaswamy@microsoft.com

 

Administartive Checklist for Configuration Manager 2007

$
0
0

Many have been asking for what i need to check to make sure SCCM is healthy. According to me if I were you these are things I would have checked :)

This might not be complete but had tried to include what ever I could think of.

 

Administrative Activities: 

 

Daily Administrative Task

 

Daily Site Monitoring Tasks

To best maintain your system, perform the following monitoring tasks on a daily basis. If there is any indication of a problem, isolate and repair the problem to ensure that the site remains healthy.

Daily site monitoring tasks include:

  • Checking SCCM site database status.
  • Checking site server status.
  • Checking site systems status.
  • Checking client status.
  • Checking the operating system event log.
  • Checking the SQL Server error log.
  • Checking system performance.
  • Checking SCCM system folders.

 

Check SCCM Site Database Status

Use the SQL Server DBCC command to check the health of the SCCM site database. Use any other tools available to test the health of the SCCM site database.

 

Check Site Server Status

View site status summary information in the SCCM Administrator console, or create reports that summarize the server activity and status (such as the Clients that Received a Specific Advertised Program report). If necessary, check status messages of individual components. For further details, in case status messages indicate that a problem exists, view the relevant log files. Isolate and fix conditions that generate errors or warnings. If appropriate, reconfigure the status system so that only relevant and helpful messages are recorded.

Check the status of items such as:

  • Site components and services. Check if any site server component or service is experiencing any problems.
  • Packages and advertisements. Check the status of packages and advertisements in your site. Check package and advertisement status messages to ensure that package source files reach distribution points, and that advertised programs reach clients. Check status messages that are returned from clients to see whether the clients run programs successfully or not.
  • Site-to-Site Communication. Check communication between the site and its parent and child sites (if they exist). Check status messages and, if necessary, check log files of the Replication Manager, Scheduler, and Senders on the site to determine whether the site is having communication problems.

 Check Site Systems Status

Check the state of site systems throughout the SCCM hierarchy. Use the status system and, if necessary, use log files to determine if site systems are having problems, such as:

  • Low level of available disk space.
  • SCCM components that cannot connect with a site system.

Check Clients Status

Check the state of clients in the hierarchy. Run queries on status messages to detect any problems that clients might be having, such as:

  • Client components are experiencing problems.
  • Clients are failing to install.
  • Clients are not reporting software inventory or hardware inventory.
  • Clients that are not reporting heartbeat discovery data regularly (or for the past x days).
  • Client count unexpectedly increasing or decreasing at a fast rate.

You can monitor a client's status only if it creates status messages, and these status messages reach the site server.To detect clients from which you are missing status messages, you need to run a query that returns all clients that have not reported a status message within the last <n> days. In this query, <n> is the length of time you would expect to receive a status message from that client (taking into account the frequency of hardware or software inventory and the regular time it takes for status messages to reach the site server.)

 

Check the Operating System Event Log

On key servers, check the application, system, and security system event logs. You can access those through the Event Viewer administrative tool. Look for messages that indicate error conditions or developing problems. Isolate and repair the conditions that generate error or warning messages.

When installing an SCCM site server, its default configuration is to write status messages to the event log. This helps you identify any developing problems with SCCM.

Note :When SCCM is configured to write status messages to Windows event logs, SCCM error status messages are written as Information events, not Error events.

Save instances of the most recent event log files for future comparison. When you can compare current log files with previous log files, it is easier to detect problems that are developing. After saving the log files, you can clear them from the event log so it is easier to detect new problems.

 

Check the SQL Server Error Log

Check the SQL Server error log in SQL Enterprise Manager. Look for messages that indicate error conditions. Isolate and repair the conditions that generate error or warning messages.

 Check System Performance

To check whether the site server and component servers have sufficient resources and that SCCM site services are running optimally, you must monitor site server and component server performance. Use performance-monitoring tools such as System Monitor in the Performance console. Check the status of critical components on the site server, on the computer running SQL Server, and other SCCM site systems.

SCCM installs many performance monitor counters, but you can add, remove and configure counters as needed. You can also use the SQL Server performance counters.

Save performance log files for future comparison. It is easier to detect performance trends, and to identify potential bottlenecks, when comparing current performance log file to previous performance log files.

 

Check Status Filter Rules

Check whether it is possible to reduce the amount of traffic generated by status messages being replicated throughout the hierarchy. If the site is currently healthy, it might be possible to add status filter rules to prevent replication of status messages, which are not necessary.

 

Check the Inboxes to Monitor

 

Listed here is a list of the ConfigMgr 2007 inboxes that should be checked on a regular basis to ensure that your site(s) function as expected.
Auth\Dataldr.Box : A backlog of files can indicate problems accessing the site database.
Auth\Dataldr.Box\Process :A backlog of files can indicate problems accessing the site database.

Auth\Ddm.box\Bad_DDRs :A backlog of files can indicate a network corruption problem or a problem with the DDM
Auth\Sinv.Box :A backlog of files can indicate that the Software Inventory Processor cannot connect to the site database or that too many files were received.
Auth\Sinv.Box\Orphans :A backlog of files can indicate problems with specific clients, with management points, or with the network that could cause data corruption.
Compsumm.Box : A backlog of files can indicate that the Component Status Summarizer cannot process the volume of messages.
Dataldr.Box :A backlog of files can indicate problems accessing the Systems Management Server (SCCM) database
Dataldr.Box\Badmifs :A backlog of files can indicate a bad custom MIF file or that a client computer cannot transfer the file correctly.
Ddm.Box :A backlog of files can indicate a bad DDR is preventing other DDR’s to process.
Ddm.Box\Bad_DDRs :A backlog of files can indicate a network corruption problem or a problem with the DDM
OfferSum.Box : A backlog of files can indicate a performance problem that is caused by a large number of messages.
Policypv.Box :A backlog of files in the policypv.box folder indicates that the policy provider component is not running.
Replmgr.Box\Ready:A backlog of files can indicate that the Scheduler is backlogged or is already processing files of the same priority
Schedule.Box:A backlog of files can indicate that the Sender cannot connect to or cannot transfer data to another site.
Schedule.Box\Outboxes :A backlog of .srq files indicates that the sender cannot process the number of jobs scheduled for that sender or that the sender cannot connect to or transfer data to another site.
Schedule.Box\Tosend  :A backlog of files can indicate that many send requests are not completed or that the Scheduler has not yet deleted the files.
Sinv.Box :A backlog of files can indicate that the Software Inventory Processor cannot connect to the site database or that too many files were received.
Sinv.Box\BadSinv :A backlog of files can indicate problems with specific clients, with management points, or with the network, causing data corruption.

SiteStat.Box :A backlog of files can indicate a performance problem. Examine status messages for the Site System Status Summarizer for possible problems.
Statmgr.Box\Futureq :A backlog of files can indicate that some site systems' clocks are not synchronized with the site server.
Statmgr.Box\Queue :A backlog of files can indicate a problem with the Status Manager or that the component is trying to process too many messages.
Statmgr.Box\Retry :A backlog of files can indicate problems with the connection to the computer that is running SQL Server.
Statmgr.Box\Statmsgs :A backlog of files can indicate a problem with the Status Manager or that the Status Manager is trying to process too many messages
Swmproc.Box :A backlog of .sum and .sur files can indicate that the Software Metering Processor component cannot connect to the SCCM database.

 

 

Check Daily Maintenance Task

 

Check and make sure that the daily Maintenance Task if any. We can use the smsdbmon.log for more details.

 

 

Weekly Administrative Task

 

Weekly Site Monitoring Tasks

To best maintain your system, perform the following monitoring tasks on a weekly basis. If there is any indication of a problem, isolate and repair the problem, to ensure that the site remains healthy.

Weekly site monitoring tasks include:

  • Checking SCCM site database available space.
  • Checking available disk space.

Check SCCM Site Database Available Space

To find the amount of space used by database devices, run the SQL Server stored procedure sp_spaceused against the SCCM site database. For more details about sp_spaceused, see the SQL Server Help. Check the tempdb device at peak usage, when several instances of the SCCM Administrator console are using the database and the site is actively processing objects.

 Check Available Disk Space

Check the amount of available disk space on the site server, the SCCM site database server, and other SCCM servers. Ensure that the amount of free disk space is sufficient for SCCM and SQL Server to perform properly during regular and increased activity load.

To use the Status System to view information about site system disk space

  1. In the SCCM Administrator console, navigate to Site System Status.

Configuration Manager > Site Database > System Status> Site Status> <site name>> Site System Status

  1. In the details pane, view status information of site systems such as free disk space.

 

Weekly Site Maintenance Tasks

To best maintain your system, perform the maintenance tasks in this section on a weekly basis. You can automate some tasks by scheduling predefined maintenance tasks or custom maintenance tasks, as appropriate, to run on a weekly basis.

 

Weekly site maintenance tasks are:

  • Weekly automated tasks.
  • Delete unnecessary files.
  • Delete unnecessary SCCM objects.
  • Produce and distribute end-user reports.
  • Run disk defragmentation tools.
  • Back up application, security, and system event logs.

 Weekly Automated Tasks

The following predefined maintenance tasks should be scheduled to run on a weekly basis. For more information about these tasks, see the "Predefined Site Maintenance Tasks" section earlier in this chapter.

  • Rebuilding Indexes
  • Monitor keys
  • Delete aged inventory history
  • Delete aged discovery data
  • Delete aged collected files
  • Delete aged software metering data
  • Delete aged software metering summary data
  • Summarize software metering data
  • Summarize software metering periodic usage data

Delete Unnecessary Files

If Management Information Format (MIF) files or IDMIFs are used to extend hardware inventory in your site, then any MIF files that are not valid are placed in the SCCM\inboxes\dataldr.box\BADMIFS folder and SCCM never removes them. You must empty this folder manually. If a large number of MIFs are placed in the BADMIFS folder, it is likely that a MIF generating tool is producing the MIFs with an incorrect format. Investigate and repair the cause of the bad MIFs.

 Delete Unnecessary SCCM Objects

Delete objects such as collections, queries, and packages that are no longer needed at the site. Deleting unnecessary objects saves disk space, reduces intersite replications, and increases performance.

Caution :When deleting a collection, any advertisements to that collection are also deleted.

 Run Disk Defragmentation Tools

Over time, disk volumes on SCCM site systems become fragmented. Site operations such as distributing large software packages might significantly increase fragmentation on site servers and distribution points. As fragmentation increases, disk operations take longer, thus, the overall site performance decreases.

Run disk defragmentation tools on the SCCM site server and all other site systems to maintain the performance level of disk operations.

 Back Up Application, Security, and System Event Logs

Windows event logs can get full, and by default, new items will start to overwrite older items. To diagnose problems, and for other reasons, it might be necessary to refer to an older event log. It is recommended that you back up Windows event logs, and store the backups in a safe and accessible location. If necessary, increase default logs file size to accommodate larger amounts of data.

 

 

Periodic Administrative Task

 

Periodic Site Maintenance Tasks

To best maintain your system, perform the following tasks periodically. Use the predefined maintenance tasks when appropriate.

Periodic site maintenance tasks include:

  • Backing up account data.
  • Changing accounts and passwords.
  • Checking network performance.
  • Reviewing the security plan.
  • Reviewing the maintenance plan.
  • Performing recovery tests.

Back Up Account Data

To properly recover a site server, you must have information about the accounts that SCCM used before the site failed. Account data is stored in domain controllers.

Use Microsoft tools, such as the NTBackup.exe tool that comes with Windows Server, or third-party tools to back up account data as follows:

 

  • If there are multiple domain controllers in your infrastructure that contain the SCCM account database, you need to periodically back up the account database. (If Active Directory® directory service is implemented in your organization, then such a task might be included in the Active Directory maintenance plan.)
  • If the account database is stored on a single domain controller, then back up the account database frequently. Depending on the frequency of changes to account data, you might need to add this task to the site's daily or weekly maintenance tasks.
  • If the account data is stored on member servers, then regularly back up the whole operating system that contains the account data, using software that backs up account lists and the account database.
  • Whenever there is a change to the password of the Client Push Installation account or to the site system connection accounts, you should note that change. For security reasons, SCCM  encrypts the Client Push Installation account and the site system connection accounts. You need to be able to retrieve these accounts' passwords so that you can re-enter them during a site recovery operation.
  • In between account database backups, document any changes to accounts. Write down and save any changes made to SCCM accounts and share rights so that you can apply those changes again after recovering the site.

 

Change Accounts and Passwords

To maintain the level of security in your hierarchy, you must periodically change the passwords and the accounts that SCCM sites use. Report any changes to the security staff so that security administrators know that these changes are planned and authorized.

To develop an effective security maintenance plan for your SCCM hierarchy, you must thoroughly understand how security is deployed in your hierarchy and make the following decisions:

 

  • Which accounts need to be changed, and for which accounts is it sufficient to change only the password.
  • How often to change passwords and accounts.
  • How to change passwords and accounts (such as by running SCCM site reset).
  • Which accounts cannot be configured by the administrator (either the account name cannot be changed, or the password cannot be manually modified).

 Check Network Performance

Check the available bandwidth and error rates on the networks used by the SCCM hierarchy. Use Network Monitor to capture and analyze network frames so you can diagnose network problems and look for optimization opportunities.

 Review the Security Plan

SCCM evolves with time. User roles change, and people might no longer need access to some or any of the SCCM functions. Although most changes in access permission should be implemented after role or staff changes, you should also periodically review the access for all users or groups to identify and delete unauthorized access permissions.

The security plan implemented for the SCCM hierarchy in your organization needs to support the risk assessment of your organization. As your organization changes, policies can become ineffective.

Review security-related settings such as:

  • Who has access to SQL Server and to the SCCM site database.
  • Who can download from SCCM distribution points.
  • Which accounts have permissions within SCCM security.
  • Periodically, re-evaluate the risk assessment of your organization, and then review and update the security plan accordingly.

 Review the Maintenance Plan

Use the maintenance plan document to review the SCCM maintenance plan. SCCM evolves with time, and it might be necessary to adjust the maintenance plan to accommodate growth, development, and other changes in your organization.

If there were any changes in your organization's security strategy, backup and recovery strategy, or any other strategy that affects SCCM, then determine if the maintenance plan needs to be adjusted to reflect these changes.

Review maintenance tasks configuration. Check the amount of data in the site database and evaluate the usefulness of that data against the amount of space that it occupies in the database. If necessary, adjust the settings that determine the number of days that data is retained in the database.

 

Update the maintenance plan document to reflect any changes to the maintenance plan, and then distribute it to all SCCM administrators that are using it.

 Perform Recovery Tests in a Test Lab

 The best way to be fully prepared for a site recovery operation is to ensure that the recovery plan is adequate and that administrators are familiar with the recovery process. After you develop a recovery plan for your site, it is recommended that you perform periodic recovery tests in a test lab.

A recovery test should follow the recovery plan developed for the production environment. Plan to perform a recovery test of the central site, and of any other systems deployed in your hierarchy. A recovery test should test all phases of recovery, including:

  • Backing up a site.
  • Archiving the backup snapshot.
  • Simulating a site failure, such as by turning a server off.
  • Recovering the failed site.
  • Verifying the success of the recovery operation.
  • You might schedule periodic recovery tests. Company policy might require that new administrators always perform a recovery test. It is strongly recommended that you always include a recovery test when testing major changes to the hierarchy.
  • For example, before upgrading site server operating systems, you should probably first test the upgrade in the test lab. After completing the upgrade in the test lab, you should perform a recovery test to identify any issues or adjustments to the recovery plan associated with the operating system upgrade. This ensures that if you upgrade the servers in the production environment, you will still be able to successfully recover a failed site.
  • Include a recovery test in every major deployment test, such as:
  • A major operating system upgrade (not service pack).
  • A major change to the networking infrastructure.
  • New equipment deployment or building relocation.
  • An SCCM major version site upgrade.

 

Periodic Site Monitoring Tasks

To best maintain your system, perform the following monitoring tasks periodically. If there is any indication of a problem, isolate and repair the problem to ensure that the site remains healthy.

Periodic site monitoring tasks include:

  • Checking hardware.
  • Checking site's overall health.
  • Checking the backup snapshot.

 

Check Hardware

Even high-quality hardware occasionally fails. Sometimes, it fails gradually, so there might be early signs. Replacing hardware before it completely fails is a key step in preventing site failure. Both Windows and SCCM provide performance counters, which you can use to monitor the performance and state of the hardware used in the site.

As soon as you notice any signs of hardware-related unreliable behavior of an SCCM server, replace the hardware. To properly replace server hardware, you must use the Recovery Expert. For more information about swapping the computer of SCCM servers, see the "Swapping the Computer of a Site Server" section later in this chapter.

 Check Site's Overall Health

It is recommended that you periodically perform a more thorough health check, as follows:

  • Ensure that all SCCM services are running.
  • Review the Status Message System for Critical status.
  • Ensure that all the latest service packs are installed.
  • Ensure that the latest critical security patches are installed.
  • Examine the System and Application Event logs for errors.
  • Note
    • When SCCM is configured to write status messages to the system's event log, SCCM error status messages are written as information events, not error events.
  • Run a query to determine if discovery data is being updated correctly in the SCCM site database. The query should list all installed clients in which System Resource - Agent Time is not within the heartbeat interval. It is expected that some clients might be offline, but in other cases, it might indicate a problem.
  • Run a query to determine if software inventory data is being updated correctly in the SCCM site database. The query should list all installed clients in which Last Software Scan - Last Inventory Collection is not within the software inventory interval. It is expected that some clients might be offline, but in other cases, it might indicate a problem.
  • Run a query to determine if hardware inventory data is being updated correctly in the SCCM site database. The query should list all installed clients in which Workstation Status - Last Hardware Scan is not within the hardware inventory interval. It is expected that some clients might be offline, but in other cases, it might indicate a problem.

If any of these tests fail, you need to diagnose the problem and repair it.

 Check the Backup Snapshot

At the end of every site backup cycle you should check the validity of the backup snapshot. Periodically, you should perform a more thorough check to ensure that the site's backup snapshots can be successfully used for recovery.

Restore a recent backup snapshot to a disk and examine file continuity, file size, and other file properties to ensure that they do not seem corrupted. Check critical files by restoring these files to their respective applications to ensure that the application can use the restored file.

 

 

 

 

GUI Tool to Manually Exchange Public Keys Between Sites

$
0
0

GUI Tool to Exchange Public Keys Between Sites

I had feedback from few of the customers and colleagues of mine that the  process of manually exchange  of keys as per this link http://technet.microsoft.com/en-us/library/bb693690.aspx   
takes time  and confusing because of similar steps. So for the same I had made a GUI tool which does this works.

Once you extract the content to a same folder in central server or parent server and run the preinstUI.exe you will get a UI as shown below and you can select the Parent site and the child site.

 

Once you click on Exchange, the GUI vanishes and  you will be asked if you really want to proceed with the exchange and if pressed yes it does the exchange. After the exchange the GUI again pops up.

The steps are logged in the <InstallationLocation>\bin\i386\<languageCode>\preinst.log on the server from you are running and would like this.

 


 Note: Please read the readme.txt before using this tool. And as usual, Microsoft makes no warranties or guarantee's regarding the applicability of this utility  nor does Microsoft support the use of this tool in any way.This is just one of those 'use at your own risk' type of things that hopefully you'll find helpful

 if you have any feedback or questions on this you can write to me and depending up on the time avilabilty I will check if I could help you here.

 Download the exe and required files from the link below

Thanks

Sudheesh Narayanaswamy

 

How to install SCUP and configure

$
0
0

 How to install SCUP and configure

 

This will show the steps on how to install SCUP and also configure a third party catalogue, (EH Adobe Flash player) and deploy the clients reporting to SCCM server.

 

You can download the SCUP from the following link http://www.microsoft.com/downloads/en/details.aspx?FamilyID=0446cce9-94a4-4fb0-b335-e7516044063d&displaylang=en

 

On the SCCM server or on any other server you can install System Center Updates Publisher.

The perquisite is to have SQL server. You can use the express installation or use any other SQL server.

 

Updates Publisher is supported on the following operating systems:

  • ·       The Microsoft Windows® XP Professional operating system with Service Pack 2 (SP2)
  • ·       The Microsoft Windows® XP Professional x64 Edition operating system
  • ·       The 32-bit versions of the Microsoft Windows Server®°2003 operating systems with Service Pack 1 (SP1)
  • ·       The x64-based editions of the Microsoft Windows Server®°2003 operating systems
  • ·       The 32-bit versions of the Microsoft Windows Server®°2003 R2 operating systems
  • ·       The x64-based editions of the Microsoft Windows Server®°2003 R2 operating systems
  • ·       The Windows Vista™ operating systems
  • ·       The x64-based editions of the Windows Vista™ x64 Edition operating systems

Software Requirements

  • ·       Updates Publisher has the following software requirements:
  • ·       Microsoft Management Console 3.0 (MMC). MMC 3.0 must be installed prior to running the Updates Publisher Setup. You can download the MMC 3.0 from the Microsoft Download Center Web site (http://go.microsoft.com/fwlink/?linkid=21788).
  • ·       For Updates Publisher 4.5, WSUS 3.0 SP2SP1 Administration Console. If WSUS 3.0 SP2 is not already installed on the local computer, the WSUS 3.0 SP2 Administration Console must be installed prior to running the Updates Publisher Setup. You can download the WSUS 3.0 SP2 Administration Console from the Windows Server Update Services Web site
  • ·       Microsoft Internet Explorer 6 SP1 or later. A supported version of Internet Explorer must be installed prior to running the Updates Publisher Setup. You can download Internet Explorer 6 SP1 from the Microsoft Download Center Web site (http://go.microsoft.com/fwlink/?linkid=21788).
  • ·       Microsoft Windows Installer 3.1. The Updates Publisher Setup installs Windows Installer 3.1, if required.
  • ·       Microsoft .NET Framework 2.0. The Updates Publisher Setup installs .NET Framework 2.0, if required.
  • ·       Microsoft SQL Server 2005 SP1 or Microsoft SQL Server 2005 Express Edition SP2. The Updates Publisher Setup installs SQL Server 2005 Express Edition SP2, if required.

 

 

How to install SCUP

 

Double click the SystemCenterUpdatesPublisher45.exe.

 

 

Click next and it will ask to select local database or install SQL express edition. DO the same

 

Once clicked next it will install the perquisite and then will proceed the installation

 

Select The folder 

 

 Installation will proceed and will complete the installation

 

Once done complete the installation click on finish. 

 

 

How to configure SCUP

 

Once the installation is over open the console of SCUP.

 

 

Click on import updates from the right side. You can download the adobe flash player catalogue from the following link http://fpdownload.adobe.com/get/flashplayer/current/licensing/win/AdobeFlashPlayerCatalog_SCUP.cab

Click on Single Catalogue Import 

 

Point to the CAB file downloaded. 

 

IT will then start uploading  

 

 Click on Accept

 Once you have completed this you will find adobe flash player as shown below.

 

 Now the set the Publish flag. On the Adobe flash player select settings and then do the following configuration. Select the update server if locally installed the same one or you can select the remote in case you install SCUP.

 

First, you have to configure SCUP to sign patches with the WSSC.  To do that, select the settings option from the console screen

On the Update Server tab, select create to create the WSSC

Once complete, you should have a new WSSC as shown

This action creates the WSSC in the WSUS > Certificates note of the Certificates.msc as shown

So the certificate we need is now created, but we aren’t ready to go yet.  Next we have to make sure the WSSC cert is included in the Trusted Publishers > Certificates and the Trusted Root Certificate Authorities > Certificates store.Simple process to export the cert and import it to the other two stores.  To export the cert, just right click on it and select to export – take all the defaults and save the cert to a .cer file.  To import, just right click on the Trusted Publishers and Trusted Root Certificate Authorities nodes, respectively, and select to import and point to the file. 

One this is completed On the SCUP console please do the following. Click on Publish updates

 

  

Click on Accept

 

 

 Once successfully published run the Synchronization in the SCCM server

 

  Once the synchronization is completed the security update you would see the adobe flash layer

 

 Now on the SCCM server Download the update and then create a deployment

 

Select the DP

 

 

 

  Create a Deployment

 

 Now on the clients do the following settings

 

So now SCUP should be configured to sign updates with the WSSC and publish updates to the SCCM Software Update point and you can deploy them to clients.  But, the clients aren’t ready to receive them and will reject the update if it arrives.  To get the client ready to receive updates you need to transfer the WSSC to the clients certificate store as well.  You can do this manually or even through software distribution using the certutil command.

To deploy the certificate with software distribution, do the following.

  1. Export the WSUS Publishers Self-signed certificate and public key to a directory on the local computer.
  2. Copy the Certutil.exe and Certadm.dll files to the same directory as the exported files. Certutil.exe is a command-line program that is installed as part of Certificate Services in the Windows Server 2003 family and both files are installed in %windir%\system32, by default.
  3. Create a software distribution package containing the files from step 1 and step 2. For more information, see How to Create a Package (http://go.microsoft.com/fwlink/?LinkId=108444)
  4. Add a software distribution program that runs the following command-line: certutil.exe -addstore TrustedPublisher wsus.cer, where TrustedPublisher is the name of the certificate store and wsus.cer is the name of the exported certificate. For more information about creating a software distribution program, see How to Create a Program (http://go.microsoft.com/fwlink/?LinkId=108446). For more information about certutil.exe, see the Certutil Web site on TechNet (http://go.microsoft.com/fwlink/?LinkId=108447)
  5. Create an advertisement for distributing the package and program to the appropriate collection. For more information, see How to Create an Advertisement (http://go.microsoft.com/fwlink/?LinkId=108449).

You may also have to include the WSSC in the Trusted Root Certificate Authorities node as well, which can be done with easy adjustments to the package if needed.  Be sure and test first to determine exactly what is needed for your environment.

Once you have the certificates deployed, now you just have to adjust local policy to allow signed cupdates from an intranet Microsoft update service location.  You can find that setting as shown below. 

To test that everything is working, deploy a SCUP patch to a test client and review the WUAHandler.log.  If all is configured properly, you should see the patch install if needed.  If there are problems you will notice errors similar to the following in the log.

In the server the updatepublisher.log in %temp% on the SCUP installed machine also help to check the error.

 

Hope this information would be useful

 

 Sudheesh Narayanaswamy

 

DRS Initialization In Configuration Manager 2012

$
0
0

DRS Initialization In Configuration Manager 2012

When a site is first installed it establishes an initial synchronization with the sending site so that subsequent data changes are applied to an identical data set as that at the sending site.

By default the first replication group processed is the Replication Configuration group - this group effectively 'bootstraps' the receiving site with the remaining configuration for other replication groups.

The site initializes by sending an 'init' request to the sending site for the desired replication group.

When the sending site receives the 'init' request it uses the bcp application to extract all of the data from the tables that make up the replication group being initialized. At the same time a rowcount of the number of exported rows is also taken and stored in a .rowcount file. This allows the receiving site to ensure it has imported the same number of rows as the sending site exported for import.

The sending site sets the receiving site as a subscriber to the replication group and RCM begins sending any changes to tables in the replication group to the receiving site. The bcp files are replicated to the receiving site via the standard content sender.

Once the bcp files have arrived at the receiving site, RCM on the receiving site is notified of the files in its inbox and begins a cycle of actions for each table in the replication group:

  1.   Any existing data in the destination table that overlaps with the received data from the sending site is deleted from the table.
  2.  BCP is used to import the data from the sending site into the receiving site database.
  3.  After the import has completed the rowcount from the bcp process is compared to the row count in the .rowcount file. Assuming the values match the next table is processed.

Once all the tables have been processed the group status is changed to active and the site begins processing any messages in the queue.

We will also try re-initialization if we see any error on any specific group. When you run replication analyzer it will try auto remediate once and that particular group will be re-initialized.

We can also re-initialize putting a  .pub file in RCM.box . The file <replicationgroupname>.pub  works fine for Global Data. But for site-data where the CAS is the subscriber you have to add the sitecode to the file name, so it is like <replicationgroupname>-<sitecode>.pub, this is so the CAS knows which primary to re-init from.

Global data eg: configuration data.pub      => Drop these on Primary server  RCM.BOX

Site Data eg: hardware_inventory_8-PR1.pub  => Drop these on CAS server  RCM.BOX

 This is all theory, Now what it if it is failing to re-initialize.  The question we all have is,  where to look and how to track. The remaining part of this document will go through that.

 Always exec spdiagdrs is always a way to know if the replication is active. I will not be going to the details of the output here but will take you through the flow of re-initialization of a particular group.

 Once we find that a particular group is having error in the output of spdiagdrs you will find that the following in the hierarchy information as well

 

This means that there is a Site data replication issue. Also under monitoring you will find the same information with a Link error for site data with Link error

 So now to solve this we will re-initialize the group and track the flow. In this I am taking hardware_inventory_8 as an example. To re-initiate a specific group there are various method the safe method according to me is to put <Groupname>-<SITECODE>.pub in our case eg : hardware_inventory_8-PR1.pub 

 I enable enhanced logging to get more information so that it will be helpful to understand what happened when we see error again and again

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Components\SMS_REPLICATION_CONFIGURATION_MONITOR  ==>Verbose Logging : 2

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Tracing ==>Sqlenabled : 1

We have two kind of logging in ConfigMgr 2012. For DRS initialization we can use the rcmctrl.log and inside the database vlogs view. For the database I used the following query to get the data out of it while I was performing this action.

 Select * from vLogs where LogTime >GETDATE()-1 and ProcedureName <> 'spDRSSendChangesForGroup' ORDER BY LogTime DESC

 To re-initialize the group put the file in  \Microsoft Configuration Manager\inboxes\rcm.box .In some time we will see that vanishing from the box and the RCM will take control.Once the same happens you will see the following in the rcmctrl.log  in CAS

 

Processing replication group Hardware_Inventory_8.                     SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:02:24                       1820 (0x071C)

Current status is Active.                 SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:02:24                       1820 (0x071C)

Requesting initialization for replication group Hardware_Inventory_8. SMS_REPLICATION_CONFIGURATION_MONITOR               20-10-2012 02:02:24                       1820 (0x071C)

Checking if initialization request is needed for replication group Hardware_Inventory_8 from site PR1.                        SMS_REPLICATION_CONFIGURATION_MONITOR                        20-10-2012 02:02:27                       1820 (0x071C)

 

 

LogLine

LogTime

ComponentName

MachineName

ProcedureName

LogText

429508

02:24.9

Microsoft SQL Server

 Service Broker Activation

spRCMActivation

INFO: Received DRS_SubscriptionInvalid from

 Site CAS for replication group:

 Hardware_Inventory_8 and fulfilling site:

PR1 and requesting site: CAS

429509

02:24.9

Microsoft SQL Server

Service Broker Activation

spRCMActivation

INFO: DRS_SubscriptionInvalid is for full initialization -

 marking required replication group.

429510

02:24.9

Microsoft SQL Server

Service Broker Activation

spRCMActivation

INFO: Finished processing DRS_SubscriptionInvalid from Site

 CAS for replication group: Hardware_Inventory_8

 

Now on the primary server on the rcmctrl.log you will  see

 

Processing replication role: DrsReplicationSite, child                     SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:03                       3364 (0x0D24)

Processing replication group Hardware_Inventory_8.                     SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:03                       3364 (0x0D24)

Current status is PendingCreation.                SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:03                       3364 (0x0D24)

Checking if we need to create an initialization package for replication group Hardware_Inventory_8 for site CAS. SMS_REPLICATION_CONFIGURATION_MONITOR                        20-10-2012 02:03:04                       3364 (0x0D24)

STATMSG: ID=7802 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_REPLICATION_CONFIGURATION_MONITOR" SYS=CMLABPRI.CMLAB.COM SITE=PR1 PID=5060 TID=3364 GMTDATE=Sat Oct 20 09:03:04.342 2012 ISTR0="CAS" ISTR1="Hardware_Inventory_8" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0                    SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:04                       3364 (0x0D24)

Flushing DRS queue messages coming from CAS for replication group Hardware_Inventory_8.                       SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:04      3364 (0x0D24)

Changed the status of ConfigMgrDRSSiteQueue to OFF if it exists.                 SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:04                       3364 (0x0D24)

Changed the status of ConfigMgrDRSSiteQueue to ON if it exists.                   SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:07                       3364 (0x0D24)

Files will be copied to directory C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\a4ba357d-1cb4-408c-9e89-681686974194.                        SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:07                       3364 (0x0D24)

Cab File to be sent will be copied to directory C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\CabFiles.                        SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:07                       3364 (0x0D24)

XML CreateTime: 20-10-2012 09:02:31 LastModifyTime: 20-10-2012 09:02:31           SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:07                        3364 (0x0D24)

Creating version file C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\a4ba357d-1cb4-408c-9e89-681686974194\781708.version                        SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:07                       3364 (0x0D24)

Creating trackingGuid file C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\a4ba357d-1cb4-408c-9e89-681686974194\d74dc244-a526-4387-86b0-efacf67df680.trackingGuid                     SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:07                       3364 (0x0D24)

Creating pubName file C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\a4ba357d-1cb4-408c-9e89-681686974194\Hardware_Inventory_8-PR1.pubName               SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:07                       3364 (0x0D24)

………………………..

……………………….

 Calling BCP out with SELECT BINFILEVERSION00, BINPRODUCTVERSION00, DESCRIPTION00, FILENAME00, FILEPROPERTIESHASH00, FILEPROPERTIESHASHEX00, FILEVERSION00, LOCATION00, PRODUCT00, PRODUCTVERSION00, PUBLISHER00, STARTUPTYPE00, STARTUPVALUE00, MACHINEID, INSTANCEKEY, TIMEKEY, REVISIONID, AGENTID, ROWVERSION~FROM AUTOSTART_SOFTWARE_HIST where  (MachineID between 16777216 and 33554431) , C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\a4ba357d-1cb4-408c-9e89-681686974194\AUTOSTART_SOFTWARE_HIST.bcp, C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\a4ba357d-1cb4-408c-9e89-681686974194\bcpErrors.errors.            SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:07   3364 (0x0D24)

………………………………..

………………………………. 

Successfully created BCP file [C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\a4ba357d-1cb4-408c-9e89-681686974194\AUTOSTART_SOFTWARE_DATA.bcp] with rows [6] based on SQL query [SELECT BINFILEVERSION00, BINPRODUCTVERSION00, DESCRIPTION00, FILENAME00, FILEPROPERTIESHASH00, FILEPROPERTIESHASHEX00, FILEVERSION00, LOCATION00, PRODUCT00, PRODUCTVERSION00, PUBLISHER00, STARTUPTYPE00, STARTUPVALUE00, MACHINEID, INSTANCEKEY, TIMEKEY, REVISIONID, AGENTID, ROWVERSION~FROM AUTOSTART_SOFTWARE_DATA where  (MachineID between 16777216 and 33554431) ]      SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:07                       3364 (0x0D24)

BCP out result is 0.    SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:07                       3364 (0x0D24)

Table XML: <TABLE NAME="AUTOSTART_SOFTWARE_HIST"><COLUMN COLUMN_ID="1" NAME="BINFILEVERSION00" TYPENAME="nvarchar" TYPEID="231" MAX_LENGTH="510" IS_NULLABLE="1" HAS_DEFAULTVALUE="0" /><

………………………..

…………………………

                        SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:07                       3364 (0x0D24)

 

This shows the BCP out commands being fired and also you will see the files like shown in the figure below. The Version file ,trackinguid file, Errors file ,pubnamefile  and then for each table in the group .bcp file and .row count file.

.

 

In the database on the primary you will see the following .

 

LogLine

LogTime

ComponentName

MachineName

ProcedureName

LogText

7E+16

02:24.9

Microsoft SQL

 Server Service

Broker Activation

 

spRCMActivation

INFO: Received DRS_SubscriptionInvalid
  from

Site CAS for replication group:

 Hardware_Inventory_8 and fulfilling site:
  PR1

and requesting site: CAS

7E+16

02:24.9

Microsoft SQL

 Server Service

Broker Activation

 

spRCMActivation

INFO: DRS_SubscriptionInvalid is for

full initialization - marking required
  replication group.

7E+16

02:24.9

Microsoft SQL

 Server Service

Broker Activation

 

spRCMActivation

INFO: Finished processing
  DRS_SubscriptionInvalid

 from Site CAS for replication group:

Hardware_Inventory_8

7E+16

02:31.4

Microsoft

SQL Server Service

Broker Activation

 

spRCMActivation

INFO: Received DRS_InitRequest

from Site CAS for replication group:

 Hardware_Inventory_8

7E+16

03:08.4

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

Creating init package for replication
  group

Hardware_Inventory_8 for site CAS.

 -- 10/20/2012 02:03:04

7E+16

03:08.4

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION_

CONFIGURATION

_MONITOR

INFO: Flushing DRS queue messages
  coming

from subscriber CAS for replication
  group Hardware_Inventory_8.  --
  10/20/2012 02:03:04

7E+16

03:08.4

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

INFO: Turned off DRS queue

ConfigMgrDRSSiteQueue on publisher

 PR1. 
  -- 10/20/2012 02:03:04

7E+16

03:08.4

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

INFO: Turned on DRS queue

ConfigMgrDRSSiteQueue on publisher PR1


  -- 10/20/2012 02:03:07

7E+16

03:08.4

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

INFO: Init package XML CreateTime:

20-10-2012 09:02:31 LastModifyTime:

 20-10-2012 09:02:31 for replication group Hardware_Inventory_8
  for site CAS. 

-- 10/20/2012 02:03:07

7E+16

03:08.5

SMS_

REPLICATION_

CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

INFO: Created version file for init

 package for replication group

Hardware_Inventory_8 for site CAS.

 -- 10/20/2012 02:03:07

7E+16

03:08.5

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

INFO: Created tracking GUID file for

 init package for replication group

 Hardware_Inventory_8 for site CAS. 

-- 10/20/2012 02:03:07

7E+16

03:08.5

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

INFO: Created pub file for init

package for replication group

Hardware_Inventory_8 for site CAS.

 -- 10/20/2012 02:03:07

7E+16

03:08.5

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

Calling BCP out for table

AUTOSTART_SOFTWARE_DATA. 

-- 10/20/2012 02:03:07

7E+16

03:08.5

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

BCP out result for table

 AUTOSTART_SOFTWARE_DATA is 0.

 -- 10/20/2012 02:03:07

7E+16

03:08.5

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

Calling BCP out for table
  AUTOSTART_SOFTWARE_HIST.  -- 10/20/2012
  02:03:07

7E+16

03:08.5

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

BCP out result for table
  AUTOSTART_SOFTWARE_HIST is 0.  --
  10/20/2012 02:03:07

7E+16

03:08.5

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

Calling BCP out for table BROWSER_HELPER_OBJECT_DATA.  -- 10/20/2012 02:03:07

7E+16

03:08.6

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

 

_MONITOR

BCP out result for table
  BROWSER_HELPER_OBJECT_DATA is 0.  --
  10/20/2012 02:03:07

7E+16

03:08.6

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

Calling BCP out for table
  BROWSER_HELPER_OBJECT_HIST.  --
  10/20/2012 02:03:07

7E+16

03:08.6

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION_

MONITOR

BCP out result for table
  BROWSER_HELPER_OBJECT_HIST is 0.  --
  10/20/2012 02:03:07

7E+16

03:08.6

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

Calling BCP out for table
  SW_LICENSING_PRODUCT_DATA.  --
  10/20/2012 02:03:07

7E+16

03:08.6

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

BCP out result for table
  SW_LICENSING_PRODUCT_DATA is 0.  --
  10/20/2012 02:03:07

7E+16

03:08.6

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

Calling BCP out for table
  SW_LICENSING_PRODUCT_HIST.  --
  10/20/2012 02:03:07

7E+16

03:08.6

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

BCP out result for table
  SW_LICENSING_PRODUCT_HIST is 0.  --
  10/20/2012 02:03:07

7E+16

03:08.6

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

Calling BCP out for table
  SW_LICENSING_SERVICE_DATA.  --
  10/20/2012 02:03:07

7E+16

03:08.6

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

BCP out result for table SW_LICENSING_SERVICE_DATA
  is 0.  -- 10/20/2012 02:03:08

7E+16

03:08.7

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

Calling BCP out for table
  SW_LICENSING_SERVICE_HIST.  --
  10/20/2012 02:03:08

7E+16

03:08.7

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

BCP out result for table
  SW_LICENSING_SERVICE_HIST is 0.  --
  10/20/2012 02:03:08

7E+16

03:08.7

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

Calling BCP out for table
  USB_DEVICE_DATA.  -- 10/20/2012
  02:03:08

7E+16

03:08.7

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

BCP out result for table
  USB_DEVICE_DATA is 0.  -- 10/20/2012
  02:03:08

7E+16

03:08.7

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

Calling BCP out for table
  USB_DEVICE_HIST.  -- 10/20/2012
  02:03:08

7E+16

03:08.7

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

BCP out result for table
  USB_DEVICE_HIST is 0.  -- 10/20/2012
  02:03:08

7E+16

03:08.7

SMS_REPLICATION

_CONFIGURATION_

MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

Sending the init package for
  replication group Hardware_Inventory_8 to subscriber CAS.  -- 10/20/2012 02:03:08

7E+16

03:08.7

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

Send result for init package for
  replication group Hardware_Inventory_8 to subscriber CAS is 0.  -- 10/20/2012 02:03:08

7E+16

03:08.8

SMS_REPLICATION

_CONFIGURATION

_MONITOR

CMLABPRI

SMS_REPLICATION

_CONFIGURATION

_MONITOR

Init package created and sent for
  replication group Hardware_Inventory_8 for site CAS.  -- 10/20/2012 02:03:08

   
   

Once the BCP out is completed the compression will happen and file will be stored in the CABFiles folder  as shown below

 

The rcmctrl.log will have the following

Calling drs_init_send method now with parameters C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\a4ba357d-1cb4-408c-9e89-681686974194 and CAS.               SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:08                       3364 (0x0D24)

Starting to compress files under folder [C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\a4ba357d-1cb4-408c-9e89-681686974194\] to [C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\CabFiles\CAS_4C7EB459-2631-455B-93C1-8C08926BAD07.cab] ...                        SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:08                       3364 (0x0D24)

Deleting all files under folder [C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\a4ba357d-1cb4-408c-9e89-681686974194].                        SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:08                       3364 (0x0D24)

Created minijob to send compressed copy of DRS INIT BCP Package to site CAS. Tranfer root = C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\CabFiles\CAS_4C7EB459-2631-455B-93C1-8C08926BAD07.cab.        SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:08   3364 (0x0D24)

drs_init_send returned 0.            SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:08                       3364 (0x0D24)

STATMSG: ID=7803 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_REPLICATION_CONFIGURATION_MONITOR" SYS=CMLABPRI.CMLAB.COM SITE=PR1 PID=5060 TID=3364 GMTDATE=Sat Oct 20 09:03:08.373 2012 ISTR0="Hardware_Inventory_8" ISTR1="CAS" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0                    SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:08                       3364 (0x0D24)

Current status is PackageCreated.                  SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:08                       3364 (0x0D24)

Found 1 replication roles.            SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:08                       3364 (0x0D24)

 

Now once this is done the sender will send the files to the CAS server.

Sender.log

=======

Passed the xmit file test, use the existing connection                    SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

Package file = C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\CabFiles\CAS_4C7EB459-2631-455B-93C1-8C08926BAD07.cab                        SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

Instruction file = C:\Program Files\Microsoft Configuration Manager\inboxes\schedule.box\tosend\00000085.I59 SMS_LAN_SENDER      20-10-2012 02:03:33                        5012 (0x1394)

Checking for remote file \\CMLABCAS.CMLAB.COM\SMS_SITE\1003PPR1.PCK               SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

Checking for remote file \\CMLABCAS.CMLAB.COM\SMS_SITE\1003PPR1.SNI                 SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

Checking for remote file \\CMLABCAS.CMLAB.COM\SMS_SITE\1003PPR1.TMP              SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

Attempt to create/open the remote file \\CMLABCAS.CMLAB.COM\SMS_SITE\1003PPR1.PCK  SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

Created/opened the remote file \\CMLABCAS.CMLAB.COM\SMS_SITE\1003PPR1.PCK                    SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

Attempt to create/open the remote file \\CMLABCAS.CMLAB.COM\SMS_SITE\1003PPR1.PCK  SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

Created/opened the remote file \\CMLABCAS.CMLAB.COM\SMS_SITE\1003PPR1.PCK                    SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

Sending Started [C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\CabFiles\CAS_4C7EB459-2631-455B-93C1-8C08926BAD07.cab]                        SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

Attempt to write 1024 bytes to \\CMLABCAS.CMLAB.COM\SMS_SITE\1003PPR1.PCK at position 0               SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

……………………….

……………………….

S.CMLAB.COM\SMS_SITE\1003PPR1.TMP   SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

Created/opened the remote file \\CMLABCAS.CMLAB.COM\SMS_SITE\1003PPR1.TMP                   SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

Sending Started [C:\Program Files\Microsoft Configuration Manager\inboxes\schedule.box\tosend\00000085.I59]                        SMS_LAN_SENDER      20-10-2012 02:03:33   5012 (0x1394)

Attempt to write 650 bytes to \\CMLABCAS.CMLAB.COM\SMS_SITE\1003PPR1.TMP at position 0                 SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

Wrote 650 bytes to \\CMLABCAS.CMLAB.COM\SMS_SITE\1003PPR1.TMP at position 0                  SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

Sending completed [C:\Program Files\Microsoft Configuration Manager\inboxes\schedule.box\tosend\00000085.I59]                SMS_LAN_SENDER      20-10-2012 02:03:33   5012 (0x1394)

Renaming remote file \\CMLABCAS.CMLAB.COM\SMS_SITE\1003PPR1.TMP to \\CMLABCAS.CMLAB.COM\SMS_SITE\1003PPR1.SNI               SMS_LAN_SENDER      20-10-2012 02:03:33      5012 (0x1394)

Rename completed [\\CMLABCAS.CMLAB.COM\SMS_SITE\1003PPR1.TMP]                      SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

Sending completed successfully                      SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

COutbox::TakeNextToSend(pszSiteCode)    SMS_LAN_SENDER      20-10-2012 02:03:33                       5012 (0x1394)

We have 0 active connections  SMS_LAN_SENDER      20-10-2012 02:03:38                       4784 (0x12B0)

Checking for sending capacity.  Used 0 out of 5.         SMS_LAN_SENDER      20-10-2012 02:03:38                       4784 (0x12B0)

Connecting to C:\Program Files\Microsoft Configuration Manager\inboxes\schedule.box\outboxes\LAN.                        SMS_LAN_SENDER      20-10-2012 02:03:38                        4784 (0x12B0)

COutbox::TakeNextToSend(pszSiteCode)    SMS_LAN_SENDER      20-10-2012 02:03:38                       4784 (0x12B0)

No (more) send requests found to process.                     SMS_LAN_SENDER      20-10-2012 02:03:38                       4784 (0x12B0)

Waiting for new/rescheduled send requests, Maximum Sleep Time = 60 minutes    SMS_LAN_SENDER      20-10-2012 02:03:38                       4784 (0x12B0)

 

 

One the database logs you will find the following

LogLine

LogTime

ComponentName

MachineName

ProcedureName

LogText

7.20576E+16

03:08.7

SMS_REPLICATION_

CONFIGURATION_

MONITOR

CMLABPRI

SMS_REPLICATION_

CONFIGURATION_

MONITOR

Sending the init package for replication

group Hardware_Inventory_8 to subscriber

CAS.  -- 10/20/2012 02:03:08

7.20576E+16

03:08.7

SMS_REPLICATION_

CONFIGURATION_

MONITOR

CMLABPRI

SMS_REPLICATION_

CONFIGURATION_

MONITOR

Send result for init package

 for replication group Hardware_Inventory_8 t

o subscriber CAS is 0.  -- 10/20/2012 02:03:08

7.20576E+16

03:08.8

SMS_REPLICATION_

CONFIGURATION_

MONITOR

CMLABPRI

SMS_REPLICATION_C

ONFIGURATION_

MONITOR

Init package created and sent

 for replication group Hardware_Inventory_8

 for site CAS.  -- 10/20/2012 02:03:08

 

 

Now once the CAS receives the files the despooler will start pressing the files inside RCM.box\<GUID> just like it created in Primary. The despooler.log will show you the same

Despoolr.log

=========

Waiting for ready instruction file....              SMS_DESPOOLER         20-10-2012 02:03:38                       3972 (0x0F84)

Decompressed C:\Program Files\Microsoft Configuration Manager\inboxes\despoolr.box\receive\ds_fl24a.pkg to C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\DBAF3A0C-9FE0-4A93-B771-E2DD3784E755\  SMS_DESPOOLER         20-10-2012 02:03:38                       3376 (0x0D30)

Despooler successfully executed one instruction.     SMS_DESPOOLER         20-10-2012 02:03:38                       3376 (0x0D30)

 

Once it is decompressed the RCM will start processing . It will compare and see the tracking GUID and if publication matches and then will delete the old data BCP in (Bulk copy)the values after verifying with the rowcount files .

RCMctrl.log

===========

Processing replication group Hardware_Inventory_8.                     SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:41                       1820 (0x071C)

Current status is PackageCreated.                  SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:41                       1820 (0x071C)

Checking if initialization request is needed for replication group Hardware_Inventory_8 from site PR1.                        SMS_REPLICATION_CONFIGURATION_MONITOR                        20-10-2012 02:03:41                       1820 (0x071C)

Checking if there are bcp file to apply for replication group Hardware_Inventory_8 from site PR1.            SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:41      1820 (0x071C)

found a tracking guid, searching through .init files.   SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:41                       1820 (0x071C)

Checking bcpDirectory C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\DBAF3A0C-9FE0-4A93-B771-E2DD3784E755                        SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:41                       1820 (0x071C)

Found files for publication Hardware_Inventory_8-PR1.               SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:41                       1820 (0x071C)

Publication names match. Checking vesrion.                 SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:41                       1820 (0x071C)

Found our tracking guid                 SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:41                       1820 (0x071C)

Setting deadlock priority level to high.      SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:41                       1820 (0x071C)

Initializing to version number 781708.      SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:41                       1820 (0x071C)

Publication Hardware_Inventory_8 has ID 30.              SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:41                       1820 (0x071C)

Flushing DRS queue messages coming from PR1 for replication group Hardware_Inventory_8.                       SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:41      1820 (0x071C)

Executing pre-snapshot stored procedures for group Hardware_Inventory_8.              SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:42                        1820 (0x071C)

Pre-snapshot stored procedures for group Hardware_Inventory_8 finished. Applying bcp files.                      SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:42      1820 (0x071C)

Removing old data for site table ... [EXEC spSMSTruncatePartitionTable 'AUTOSTART_SOFTWARE_DATA', 1;]                   SMS_REPLICATION_CONFIGURATION_MONITOR                        20-10-2012 02:03:42                       1820 (0x071C)

Rowcount from file [C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\DBAF3A0C-9FE0-4A93-B771-E2DD3784E755\AUTOSTART_SOFTWARE_DATA.bcp.rowcount] is [6].            SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:42                       1820 (0x071C)

Successfully bulk copied file [C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\DBAF3A0C-9FE0-4A93-B771-E2DD3784E755\AUTOSTART_SOFTWARE_DATA.bcp] into table [AUTOSTART_SOFTWARE_DATA] with rows [6].               SMS_REPLICATION_CONFIGURATION_MONITOR                        20-10-2012 02:03:43                       1820 (0x071C)

Removing old data for site table ... [EXEC spSMSTruncatePartitionTable 'AUTOSTART_SOFTWARE_HIST', 1;]                     SMS_REPLICATION_CONFIGURATION_MONITOR                        20-10-2012 02:03:43                       1820 (0x071C)

Rowcount from file [C:\Program Files\Microsoft Configuration Manager\inboxes\rcm.box\DBAF3A0C-9FE0-4A93-B771-E2DD3784E755\AUTOSTART_SOFTWARE_HIST.bcp.rowcount] is [0].              SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:43                       1820 (0x071C)

‘’’’’’’’’’’’’’’’’’’’’’’

‘’’’’’’’’’’’’’’’’’’’’’’

Setting deadlock priority level to normal.                       SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:45                       1820 (0x071C)

Current status is Active.                 SMS_REPLICATION_CONFIGURATION_MONITOR            20-10-2012 02:03:45                       1820 (0x071C)

--------------

 

In the database logs also you will find this

LogLine

LogTime

ComponentName

MachineName

ProcedureName

LogText

429511

02:31.4

Microsoft SQL Server

 Service Broker Activation

spRCMActivation

INFO: Received DRS_InitRequestReceived

 for replication group: Hardware_Inventory_8

429512

02:32.8

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

INFO: Creating initialization request for

10 articles in replication group

Hardware_Inventory_8

from site PR1.  -- 10/20/2012 02:02:27

429513

02:32.8

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Built the init request XML for replication group

Hardware_Inventory_8 for site PR1. 

-- 10/20/2012 02:02:31

429514

03:08.3

Microsoft SQL Server

Service Broker Activation

spRCMActivation

INFO: Received DRS_InitPackageCreated

for replication group: Hardware_Inventory_8

429516

03:45.0

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Applying the BCP for replication group

Hardware_Inventory_8 from site PR1.

Tracking guid d74dc244-a526-4387-86b0-efacf67df680. 

-- 10/20/2012 02:03:41

429517

03:45.0

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

BCP version number for replication group

 Hardware_Inventory_8 from site PR1 is 781708. 

-- 10/20/2012 02:03:41

429518

03:45.0

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Flushing DRS queue messages coming from

site PR1 for replication group

 Hardware_Inventory_8.-- 10/20/2012 02:03:41

429519

03:45.1

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Executing pre-snapshot stored procedures for

 replication group Hardware_Inventory_8. 

-- 10/20/2012 02:03:42

429520

03:45.1

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Pre-snapshot stored procedures for replication group

 Hardware_Inventory_8 finished. Applying bcp files. 

-- 10/20/2012 02:03:42

429521

03:45.1

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Disable foreign keys for replication group

 Hardware_Inventory_8. 

 -- 10/20/2012 02:03:42

429522

03:45.1

SMS_REPLICATION_C

ONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Removing old data for site table ..

. [EXEC spSMSTruncatePartitionTable

'AUTOSTART_SOFTWARE_DATA', 1;] 

-- 10/20/2012 02:03:42

429523

03:45.1

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Removing old data for site table ...

[EXEC spSMSTruncatePartitionTable

 'AUTOSTART_SOFTWARE_HIST', 1;] 

-- 10/20/2012 02:03:43

429524

03:45.1

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Removing old data for site table ...

 [EXEC spSMSTruncatePartitionTable

'BROWSER_HELPER_OBJECT_DATA', 1;] 

-- 10/20/2012 02:03:43

429525

03:45.1

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Removing old data for site table ...

 [EXEC spSMSTruncatePartitionTable

'BROWSER_HELPER_OBJECT_HIST', 1;] 

 -- 10/20/2012 02:03:43

429526

03:45.2

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Removing old data for site table ...

[EXEC spSMSTruncatePartitionTable

'SW_LICENSING_PRODUCT_DATA', 1;] 

-- 10/20/2012 02:03:43

429527

03:45.2

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Removing old data for site table ...

[EXEC spSMSTruncatePartitionTable '

SW_LICENSING_PRODUCT_HIST', 1;] 

 -- 10/20/2012 02:03:43

429528

03:45.2

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Removing old data for site table ...

[EXEC spSMSTruncatePartitionTable

 'SW_LICENSING_SERVICE_DATA', 1;] 

-- 10/20/2012 02:03:43

429529

03:45.2

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_C

ONFIGURATION_MONITOR

Removing old data for site table .

.. [EXEC spSMSTruncatePartitionTable

 'SW_LICENSING_SERVICE_HIST', 1;] 

-- 10/20/2012 02:03:44

429530

03:45.2

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Removing old data for site table ..

. [EXEC spSMSTruncatePartitionTable

'USB_DEVICE_DATA', 1;] 

-- 10/20/2012 02:03:44

429531

03:45.2

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Removing old data for site table ...

 [EXEC spSMSTruncatePartitionTable

'USB_DEVICE_HIST', 1;]

  -- 10/20/2012 02:03:44

429532

03:45.2

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Applied the BCP files for replication group

Hardware_Inventory_8 from

site PR1.  -- 10/20/2012 02:03:44

429533

03:45.2

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Enable foreign keys for replication group

Hardware_Inventory_8.

  -- 10/20/2012 02:03:44

429534

03:45.3

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Restore table's identity value for replication group

 Hardware_Inventory_8.

  -- 10/20/2012 02:03:44

429535

03:45.3

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Executing post-snapshot stored procedures for replication

 group Hardware_Inventory_8. 

-- 10/20/2012 02:03:44

429536

03:45.3

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Post-snapshot stored procedures for replication group

Hardware_Inventory_8 finished. 

 -- 10/20/2012 02:03:44

429537

03:45.3

SMS_REPLICATION_

CONFIGURATION_MONITOR

CMLABCAS

SMS_REPLICATION_

CONFIGURATION_MONITOR

Finished applying the BCP for replication group

Hardware_Inventory_8 from site PR1. 

 -- 10/20/2012 02:03:45

 

Once the same is completed then on the primary server you will find the replication is finished.

LogLine

LogTime

ComponentName

MachineName

ProcedureName

LogText

7.20576E+16

03:44.8

Microsoft SQL Server

Service Broker Activation

spRCMActivation

INFO: Received DRS_InitFinished from

 Site CAS for replication group:

Hardware_Inventory_8 with Version 135769

 

Once the same happens you will see the link moving from initialization to active in the monitoring phase.

 

Sudheesh Narayanaswamy

Support Escalation Engineer

 Microsoft System Center Support

SEDO (Serialized Editing of Distributed Objects) ConfigMgr 2012

$
0
0

 SEDO(Serialized Editing of Distributed Objects)

As global data is replicated everywhere, a user on a primary site could change an object at the same time as a user on the CAS or other primary servers. This is an unavoidable consequence of replicated data. SEDO provides a way to enforce that only a single user can edit an object at any point in time. SEDO does it by using a lock request and release mechanism.

The process goes like the below in a nutshell…..

SEDO Lock Acquisition \release Process


1. Administrator attempts to edit object in Admin Console
2. Admin Console attempts to open object from Provider for editing
3. Local site sends SEDO lock request to CAS using SQL Service Broker (SSB) SEDO queue
4. CAS forwards the SEDO lock request on to the owning site if it does not know who had the lock before. If it knows already, then it will forward SEDO to that site which had the previous lock request.
5. Owning site\Site which had the previous lock request assigned will issue a SEDO Lock and records it in the SEDO_LockableObjects table.
6. DRS replicates the change to the SEDO_LockableObjects
7. Provider reads the obtained lock and allows administrator to edit the object.
8. Now when finished editing, the site which has the lock releases the lock.

 

 

You can get the information of the objects in lockstate from this view vSEDO_LockState. If you are concerned about a particular object this is how you can get the information
For instance, we take a Task Sequence (TS) with ID as ‘PR100001’.

select Lockstate,Assignedsite,Assigneduser  from dbo.vSEDO_LockState where lockid in (
select lockid From dbo.SEDO_LockableObjects where objectid in(
select objectid from dbo.SEDO_LockableObjectCOmponents where componentid
 in( select SEDOcomponentID from SMSpackages where PKGID = 'PR100001')))
 
Or say if it is a CI item  like an application with Ci_uniqueid  'ScopeId_C83F5B89-111D-4EA7-A4E4-70539294E4D7/Application_7d2683d2-5c0b-4989-b834-d88e581fb9f6/2'

select Lockstate from dbo.vSEDO_LockState where lockid in (
select lockid From dbo.SEDO_LockableObjects where objectid in(
select objectid from dbo.SEDO_LockableObjectCOmponents where componentid
in( select SEDOcomponentID from CI_configurationitems where CI_uniqueid ='ScopeId_C83F5B89-111D-4EA7-A4E4-70539294E4D7/Application_7d2683d2-5c0b-4989-b834-d88e581fb9f6/2')))

Now let us go into details of how we can track the SEDO flow when the object ‘PR100001’ whose owner site is PR1 on the hierarchy (shown below) is opened for editing :-

We can use this query to track the flow from the Vlogs table. Some information will be also available in the SMSProv.log.

select * from vlogs where procedurename <> 'spDRSSendChangesForGroup' and logtime >= getdate()-1 order by logtime desc

Scenario 1:
Opened object PR100001 from PR1 server.You could see that PR1 server forwarding the request to Parent Site CAS, carried by SSB to CAS and CAS assigns the lock and information received back again using SSB.

 

 

Once we close the object in PR1, it will release the lock promptly as shown below.

 

 

 
Scenario 2:
Object opened in PR2 whereas the owner was PR1.

PR2 request CAS on lock request, goes to the CAS as SSB message, CAS receives and forwards the same to PR1 as it is not the owner of the object, again through SSB message. PR1 receives the request lock the object and send the information to CAS and CAS to the PR1 again through SSB messaging.

 

Scenario 3:

PR1 owned object opened by CAS with no lock obtained so far by any site.

In this flow if the last assigned site was PR2 and when CAS is trying to open, then SEDO request goes to PR2 and not PR1.

 

Scenario 4:

PR1 owned object opened by CAS which was already opened for editing in PR2

 

 

Since this was already opened for editing By PR2 you will find the following information in CAS

select Lockstate,Assignedsite,Assigneduser  from dbo.vSEDO_LockState where lockid in (

select lockid From dbo.SEDO_LockableObjects where objectid in(

select objectid from dbo.SEDO_LockableObjectCOmponents where componentid

 in( select SEDOcomponentID from SMSpackages where PKGID = 'PR100001')))

Now as CAS knows it was last assigned to PR2, it sends a request to PR2 to see if lock was released and then the PR2 will revert back telling the lock is not released and deny the request which make the CAS to open the object in read only mode.

 

 

Hope this helps in troubleshooting SEDO issues.

Sudheesh Narayanaswamy
Support Escalation Engineer
Microsoft System Center Support

 

 

Who is using Wmiprvse is it SMS services

$
0
0

We have lot instances where the issues like CPU spike , memory usage and even some activities are caused by SMS services. In many of these cases  the process in question would be wmiprvse not SMS agent or SMS services  directly.

Wmiprvse it is not something only which SMS agent host or other services  uses it can be launched by any application who wants to have some operation on WMI

Now how can we identify which Wmiprvse is used by which process. 

 

  • Go to Start -Run – Wbemtest
  • connect to root\cimv2 namespace and launch the following Query 
  • select * from msft_providers where HostingGroup = "SMS" or HostingGroup = "CCM" 
  • Got two entries and HostProcessIdentifier and note them down

 


 
   
Now open task manager or run tasklist and try to get the PID of wmiprvse and check if the HostProcessIdentifier we found is the one creating issue.

This is the best way to identify of the SMS agent host or other service  is the one creating issue or any other application

 
 You can also run  

select * from msft_providers where HostProcessIdentifier =  <PID of wmiprvse>

 if you know the PID and back track to namespace and find the application as well

 

Hope this will be helpful


How to reset the policy or request a Full policy retrieval for a SMS agent

$
0
0

We have situations where we need to reset the policy and the  policy spy which we use does not work or would not prefer to copy the tool.

This is a vbscript which we can use. Found it helpful when you want to request a full policy compared to delta policy which usually is
triggered always (except for the first). 

'===============================================================================

'Save this as .VBS file and use Run as Administrator

'Set oParams.uFlags = 0 for making the next policy request will be for a full policy instead of the change in policy since the last policy request.

'Set oParams.uFlags = 1 The existing policy will be purged completely.

'Author: Sudheeesh N

'-------------------------------------------------------------------------------

set oCCMNamespace = GetObject("winmgmts:root\ccm")

Set oInstance = oCCMNamespace.Get("SMS_Client")

set oParams =
oInstance.Methods_("ResetPolicy").inParameters.SpawnInstance_()

oParams.uFlags = 0

oCCMNamespace.ExecMethod "SMS_Client",
"ResetPolicy", oParams

'---------------------------------------------------------------------------------

 

This posting /Script  is provided "AS IS" with no warranties and confers no rights.

Troubleshooting SCCM Part VII .......... OSD .... Part I

$
0
0

 Part I : PXE boot

Many have been asking to write a blog on how to tracks the logs for OSD so here it is . It is in two parts.  Part I is PXE boot and Part II is After the Pxe Boot to Full blown OS. Since we are already in 2012 and 2007 has become obsolete, I will be taking 2012 logs to explain

Before we start troubleshooting OSD with Configuration Manager I would always say it saves a lot of time many times if the pre-requisites are to be checked, Especially if you find client is not PXE booting or if it fails after PXE boots immediately .  

If the client is not PXE booting checking the SMSPXE.log on the server where you have the WDS and confirm if the WDS is initialized. You could start the WDS service and check the log flow.

 This is how it should be

  • You would see Provider loading
  • It will show you the boot images in the WDS which will be opened ,files extracted and copied to boot folders which constitute the boot files for the WDS
  • Then you will find PXE provider finished loading

 ================= PXE Provider loaded. =====================            SMSPXE      20-09-2013 23:43:00  7068 (0x1B9C)

Machine is running Windows Longhorn. (NTVersion=0X602, ServicePack=0)      SMSPXE      20-09-2013 23:43:00  7068 (0x1B9C)

Cannot read the registry value of MACIgnoreListFile (00000000)        SMSPXE      20-09-2013 23:43:00  7068 (0x1B9C)

MAC Ignore List Filename in registry is empty  SMSPXE      20-09-2013 23:43:00  7068 (0x1B9C)

Begin validation of Certificate [Thumbprint D04F5BDFFB9390BFEF89053A315F9D700462DAF5] issued to '02d1e460-a438-493c-b6c7-583601b1e087' SMSPXE      20-09-2013 23:43:00  7068 (0x1B9C)

Completed validation of Certificate [Thumbprint D04F5BDFFB9390BFEF89053A315F9D700462DAF5] issued to '02d1e460-a438-493c-b6c7-583601b1e087'           SMSPXE      20-09-2013 23:43:00  7068 (0x1B9C)

PXEClientKey certificate valid.        SMSPXE      20-09-2013 23:43:00  7068 (0x1B9C)

Initializing PXEPerfObject.               SMSPXE      20-09-2013 23:43:00  7068 (0x1B9C)

Failed to get logging settings for 'ccmperf' from Registry (80070002)                    SMSPXE      20-09-2013 23:43:00  7068 (0x1B9C)

Could not load logging configuration for component ccmperf. Using default values.              SMSPXE      20-09-2013 23:43:00  7068 (0x1B9C)

Client is set to use HTTPS when available. The current state is 224.     SMSPXE      20-09-2013 23:43:00  7068 (0x1B9C)

CLibSMSMessageWinHttpTransport::Send: URL: CM2012SP1.sudilab.com:80  GET /SMS_MP/.sms_aut?MPKEYINFORMATIONEX                    SMSPXE      20-09-2013 23:43:00  7068 (0x1B9C)

CLibSMSMessageWinHttpTransport::Send: URL: CM2012SP1.sudilab.com:80  CCM_POST /ccm_system/request     SMSPXE      20-09-2013 23:43:00              7068 (0x1B9C)

Client lookup reply: <ClientIDReply><Identification Unknown="0" ItemKey="0" ServerName="" ServerRemoteName=""><Machine><ClientID/><NetbiosName/></Machine></Identification></ClientIDReply>

                    SMSPXE      20-09-2013 23:43:00  7068 (0x1B9C)

PXE::CBootImageInfo::CBootImageInfo: key=   SMSPXE      20-09-2013 23:43:00  7068 (0x1B9C)

PXE::CBootImageInfo::CBootImageInfo: key=   SMSPXE      20-09-2013 23:43:00  7068 (0x1B9C)

Adding LAB00004.5     SMSPXE      20-09-2013 23:43:00  7068 (0x1B9C)

Adding LAB00005.3     SMSPXE      20-09-2013 23:43:24  7068 (0x1B9C)

Found new image LAB00004          SMSPXE      20-09-2013 23:43:45  7068 (0x1B9C)

Opening image file C:\RemoteInstall\SMSImages\LAB00004\boot.LAB00004.wim                   SMSPXE      20-09-2013 23:43:45  7068 (0x1B9C)

Found Image file: C:\RemoteInstall\SMSImages\LAB00004\boot.LAB00004.wim

 PackageID: LAB00004

 ProductName: Microsoft® Windows® Operating System

 Architecture: 0

 Description: Microsoft Windows PE (x86)

 Version: 

 Creator:

 SystemDir: WINDOWS

                    SMSPXE      20-09-2013 23:43:45  7068 (0x1B9C)

Closing image file C:\RemoteInstall\SMSImages\LAB00004\boot.LAB00004.wim  SMSPXE      20-09-2013 23:43:45  7068 (0x1B9C)

Creating BCD store: C:\RemoteInstall\SMSTemp\2013.09.20.23.43.45.01.{C48BA2BD-1E88-443D-9A6C-B06835F1BABF}.boot.bcd                    SMSPXE      20-09-2013 23:43:46  7068 (0x1B9C)

StoreFilePath: \??\C:\RemoteInstall\SMSTemp\2013.09.20.23.43.45.01.{C48BA2BD-1E88-443D-9A6C-B06835F1BABF}.boot.bcd                    SMSPXE      20-09-2013 23:44:02  7068 (0x1B9C)

Skipping creation of variables file for image LAB00004     SMSPXE      20-09-2013 23:44:09  7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\PXE\pxeboot.com to install queue     SMSPXE      20-09-2013 23:44:09              7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\PXE\pxeboot.n12 to install queue     SMSPXE      20-09-2013 23:44:09              7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\PXE\bootmgr.exe to install queue      SMSPXE      20-09-2013 23:44:09              7068 (0x1B9C)

File C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\PXE\bootmgr.exe has version info: 6.2.9200.16384        SMSPXE                    20-09-2013 23:44:09  7068 (0x1B9C)

File C:\RemoteInstall\SMSBoot\x86\bootmgr.exe has version info: 6.2.9200.16384               SMSPXE      20-09-2013 23:44:09  7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\PXE\wdsnbp.com to install queue     SMSPXE      20-09-2013 23:44:09              7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\PXE\abortpxe.com to install queue   SMSPXE      20-09-2013 23:44:09              7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\PXE\abortpxe.com to install queue   SMSPXE      20-09-2013 23:44:09              7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\PXE\wdsmgfw.efi to install queue      SMSPXE      20-09-2013 23:44:09              7068 (0x1B9C)

File C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\PXE\wdsmgfw.efi has version info: 6.2.9200.16384        SMSPXE                    20-09-2013 23:44:09  7068 (0x1B9C)

File C:\RemoteInstall\SMSBoot\x86\wdsmgfw.efi has version info: 6.2.9200.16384               SMSPXE      20-09-2013 23:44:09  7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\EFI\bootmgfw.efi to install queue      SMSPXE      20-09-2013 23:44:09              7068 (0x1B9C)

File C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\EFI\bootmgfw.efi has version info: 6.2.9200.16384        SMSPXE                    20-09-2013 23:44:09  7068 (0x1B9C)

File C:\RemoteInstall\SMSBoot\x86\bootmgfw.efi has version info: 6.2.9200.16384              SMSPXE      20-09-2013 23:44:09  7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\Fonts\segmono_boot.ttf to install queue             SMSPXE                    20-09-2013 23:44:09  7068 (0x1B9C)

Copying font file C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\Fonts\segmono_boot.ttf->C:\RemoteInstall\Boot\Fonts\segmono_boot.ttf.

                    SMSPXE      20-09-2013 23:44:09  7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\Fonts\segoe_slboot.ttf to install queue                SMSPXE                    20-09-2013 23:44:09  7068 (0x1B9C)

Copying font file C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\Fonts\segoe_slboot.ttf->C:\RemoteInstall\Boot\Fonts\segoe_slboot.ttf.

                    SMSPXE      20-09-2013 23:44:09  7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\Fonts\segoen_slboot.ttf to install queue              SMSPXE                    20-09-2013 23:44:09  7068 (0x1B9C)

Copying font file C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\Fonts\segoen_slboot.ttf->C:\RemoteInstall\Boot\Fonts\segoen_slboot.ttf.

                    SMSPXE      20-09-2013 23:44:09  7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\Fonts\wgl4_boot.ttf to install queue SMSPXE      20-09-2013 23:44:09              7068 (0x1B9C)

Copying font file C:\RemoteInstall\SMSTempBootFiles\LAB00004\WINDOWS\Boot\Fonts\wgl4_boot.ttf->C:\RemoteInstall\Boot\Fonts\wgl4_boot.ttf.

                    SMSPXE      20-09-2013 23:44:09  7068 (0x1B9C)

Found new image LAB00005          SMSPXE      20-09-2013 23:44:09  7068 (0x1B9C)

Opening image file C:\RemoteInstall\SMSImages\LAB00005\boot.LAB00005.wim                   SMSPXE      20-09-2013 23:44:09  7068 (0x1B9C)

Found Image file: C:\RemoteInstall\SMSImages\LAB00005\boot.LAB00005.wim

 PackageID: LAB00005

 ProductName: Microsoft® Windows® Operating System

 Architecture: 9

 Description: Microsoft Windows PE (x64)

 Version: 

 Creator:

 SystemDir: WINDOWS

                    SMSPXE      20-09-2013 23:44:09  7068 (0x1B9C)

Closing image file C:\RemoteInstall\SMSImages\LAB00005\boot.LAB00005.wim  SMSPXE      20-09-2013 23:44:09  7068 (0x1B9C)

Creating BCD store: C:\RemoteInstall\SMSTemp\2013.09.20.23.44.09.02.{B509443D-7FF2-42BD-A182-600F7D65F4BC}.boot.bcd                    SMSPXE      20-09-2013 23:44:09  7068 (0x1B9C)

StoreFilePath: \??\C:\RemoteInstall\SMSTemp\2013.09.20.23.44.09.02.{B509443D-7FF2-42BD-A182-600F7D65F4BC}.boot.bcd                    SMSPXE      20-09-2013 23:44:26  7068 (0x1B9C)

Skipping creation of variables file for image LAB00005     SMSPXE      20-09-2013 23:44:31  7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\PXE\wdsnbp.com to install queue     SMSPXE      20-09-2013 23:44:31              7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\PXE\abortpxe.com to install queue   SMSPXE      20-09-2013 23:44:31              7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\PXE\pxeboot.com to install queue     SMSPXE      20-09-2013 23:44:31              7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\PXE\pxeboot.n12 to install queue     SMSPXE      20-09-2013 23:44:31              7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\PXE\bootmgr.exe to install queue      SMSPXE      20-09-2013 23:44:31              7068 (0x1B9C)

File C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\PXE\bootmgr.exe has version info: 6.2.9200.16384        SMSPXE                    20-09-2013 23:44:31  7068 (0x1B9C)

File C:\RemoteInstall\SMSBoot\x64\bootmgr.exe has version info: 6.2.9200.16384               SMSPXE      20-09-2013 23:44:31  7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\PXE\wdsnbp.com to install queue     SMSPXE      20-09-2013 23:44:31              7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\PXE\abortpxe.com to install queue   SMSPXE      20-09-2013 23:44:31              7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\PXE\wdsmgfw.efi to install queue      SMSPXE      20-09-2013 23:44:31              7068 (0x1B9C)

File C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\PXE\wdsmgfw.efi has version info: 6.2.9200.16384        SMSPXE                    20-09-2013 23:44:31  7068 (0x1B9C)

File C:\RemoteInstall\SMSBoot\x64\wdsmgfw.efi has version info: 6.2.9200.16384               SMSPXE      20-09-2013 23:44:31  7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\EFI\bootmgfw.efi to install queue      SMSPXE      20-09-2013 23:44:31              7068 (0x1B9C)

File C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\EFI\bootmgfw.efi has version info: 6.2.9200.16384        SMSPXE                    20-09-2013 23:44:31  7068 (0x1B9C)

File C:\RemoteInstall\SMSBoot\x64\bootmgfw.efi has version info: 6.2.9200.16384              SMSPXE      20-09-2013 23:44:31  7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\Fonts\segmono_boot.ttf to install queue             SMSPXE                    20-09-2013 23:44:31  7068 (0x1B9C)

Copying font file C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\Fonts\segmono_boot.ttf->C:\RemoteInstall\Boot\Fonts\segmono_boot.ttf.

                    SMSPXE      20-09-2013 23:44:31  7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\Fonts\segoe_slboot.ttf to install queue                SMSPXE                    20-09-2013 23:44:31  7068 (0x1B9C)

Copying font file C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\Fonts\segoe_slboot.ttf->C:\RemoteInstall\Boot\Fonts\segoe_slboot.ttf.

                    SMSPXE      20-09-2013 23:44:31  7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\Fonts\segoen_slboot.ttf to install queue              SMSPXE                    20-09-2013 23:44:31  7068 (0x1B9C)

Copying font file C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\Fonts\segoen_slboot.ttf->C:\RemoteInstall\Boot\Fonts\segoen_slboot.ttf.

                    SMSPXE      20-09-2013 23:44:31  7068 (0x1B9C)

Adding file: C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\Fonts\wgl4_boot.ttf to install queue SMSPXE      20-09-2013 23:44:31              7068 (0x1B9C)

Copying font file C:\RemoteInstall\SMSTempBootFiles\LAB00005\WINDOWS\Boot\Fonts\wgl4_boot.ttf->C:\RemoteInstall\Boot\Fonts\wgl4_boot.ttf.

                    SMSPXE      20-09-2013 23:44:31  7068 (0x1B9C)

Begin validation of Certificate [Thumbprint D04F5BDFFB9390BFEF89053A315F9D700462DAF5] issued to '02d1e460-a438-493c-b6c7-583601b1e087' SMSPXE      20-09-2013 23:44:31  7068 (0x1B9C)

Completed validation of Certificate [Thumbprint D04F5BDFFB9390BFEF89053A315F9D700462DAF5] issued to '02d1e460-a438-493c-b6c7-583601b1e087'           SMSPXE      20-09-2013 23:44:31  7068 (0x1B9C)

PXEClientKey certificate valid.        SMSPXE      20-09-2013 23:44:31  7068 (0x1B9C)

PXE Provider finished loading.       SMSPXE      20-09-2013 23:44:31  7068 (0x1B9C)

 

If you see errors please act accordingly and make sure that the PXE provider finished loading

Few pointers

 Once this part is done confirm the following

  1. You have created a Tasksequence and that it has a deployment \ Advertisemnt
  2. Deployment is for the PXE (it can be Madatory (Required) or Available)
  3. Referenced Packages are distributed including the boot images
  4. Network Access account is specified  

 

Now that we confirmed that the PXE is loaded successfully. Let us now look at the SMSPXE when the client boots. In 2012 PXE message are pretty good , You could see the DHCP packet information.


 

DHCP message:

 Operation:
BootRequest (1)

 Hardware Address type: 1

 Hardware Address Length: 6

 Hop Count: 0

 Transaction ID: 05078C5E

 Seconds Since Boot: 4

 Client IP Address: 192.168.001.023

 Your IP Address: 000.000.000.000

 Server IP Address: 000.000.000.000

 Relay Agent IP Address: 000.000.000.000

 Hardware Address: 00:15:5d:8c:07:05:

 Magic Cookie: 63538263

 Options:

    Type = 53 DHCP Message Type: 3=DHCPRequest

    Type = 55 Paramerter Request List:
01020305060b0c0d0f1011122b363c438081828384858687

    Type = 57 Max DHCP Message Size: 04ec

    Type = 97 UUID:
00562a3213a8399044918b6846be50c648

    Type = 93 Client system Arch: IA x86 PC

    Type = 94 UNDI: 010201

    Type = 60 ClassIdentifier:
PXEClient:Arch:00000:UNDI:002001       SMSPXE      21-09-2013 00:09:17  1612 (0x064C)

CLibSMSMessageWinHttpTransport::Send:
URL: CM2012SP1.sudilab.com:80  GET
/SMS_MP/.sms_aut?MPKEYINFORMATIONEX                    SMSPXE      21-09-2013 00:09:17  6148 (0x1804)

CLibSMSMessageWinHttpTransport::Send:
URL: CM2012SP1.sudilab.com:80  CCM_POST
/ccm_system/request     SMSPXE      21-09-2013 00:09:17              6148 (0x1804)

Client lookup reply:
<ClientIDReply><Identification Unknown="0"
ItemKey="0" ServerName=""
ServerRemoteName=""><Machine><ClientID/><NetbiosName/></Machine></Identification></ClientIDReply>

                    SMSPXE      21-09-2013 00:09:17  6148 (0x1804)

00:15:5D:8C:07:05, 13322A56-39A8-4490-918B-6846BE50C648: device is not in the database.            SMSPXE      21-09-2013 00:09:17              6148 (0x1804)

CLibSMSMessageWinHttpTransport::Send:
URL: CM2012SP1.sudilab.com:80  GET
/SMS_MP/.sms_aut?MPKEYINFORMATIONEX                    SMSPXE      21-09-2013 00:09:17  6148 (0x1804)

Sending StatusMessage                   SMSPXE      21-09-2013 00:09:17  6148
(0x1804)

CLibSMSMessageWinHttpTransport::Send:
URL: CM2012SP1.sudilab.com:80  CCM_POST
/ccm_system/request     SMSPXE      21-09-2013 00:09:17              6148 (0x1804)

DHCP message:

 Operation:
BootReply (2)

 Hardware Address type: 1

 Hardware Address Length: 6

 Hop Count: 0

 Transaction ID: 05078C5E

 Seconds Since Boot: 4

 Client IP Address: 192.168.001.023

 Your IP Address: 000.000.000.000

 Server IP Address: 192.168.001.002

 Relay Agent IP Address: 000.000.000.000

 Hardware Address: 00:15:5d:8c:07:05:

 BootFileName: smsboot\x86\wdsnbp.com

 Magic Cookie: 63538263

 Options:

    Type = 53 DHCP Message Type: 5=DHCPAck

    Type = 54 Server idenitifier:
192.168.001.002

    Type = 97 UUID:
00562a3213a8399044918b6846be50c648

    Type = 60 ClassIdentifier: PXEClient

    Type = 250
02010105040000000203020014040200ba0626506c6561736520776169742e20534d53206973206c6f6f6b696e6720666f7220706f6c6963790b0101                    SMSPXE      21-09-2013 00:09:18  6148 (0x1804)

DHCP message:

 Operation:
BootRequest (1)

 Hardware Address type: 1

 Hardware Address Length: 6

 Hop Count: 0

 Transaction ID: 05078C5E

 Seconds Since Boot: 0

 Client IP Address: 192.168.001.023

 Your IP Address: 000.000.000.000

 Server IP Address: 000.000.000.000

 Relay Agent IP Address: 000.000.000.000

 Hardware Address: 00:15:5d:8c:07:05:

 Magic Cookie: 63538263

 Options:

    Type = 53 DHCP Message Type: 3=DHCPRequest

    Type = 60 ClassIdentifier: PXEClient

    Type = 97 UUID:
00562a3213a8399044918b6846be50c648

    Type = 93 Client system Arch: IA x86 PC

    Type = 250
0d0208000e010101020006050400000002ff

    Type = 55 Paramerter Request List: 03013c8081828384858687   SMSPXE      21-09-2013
00:09:18  1612 (0x064C)

Getting boot action for unknown machine: item key:  2046820353    SMSPXE      21-09-2013 00:09:18  6148 (0x1804)

CLibSMSMessageWinHttpTransport::Send: URL: CM2012SP1.sudilab.com:80  GET /SMS_MP/.sms_aut?MPKEYINFORMATIONEX                    SMSPXE      21-09-2013 00:09:18  6148 (0x1804)

CLibSMSMessageWinHttpTransport::Send:URL: CM2012SP1.sudilab.com:80  CCM_POST /ccm_system/request     SMSPXE      21-09-2013 00:09:18              6148 (0x1804)

Client boot action reply:<ClientIDReply><Identification Unknown="0"ItemKey="2046820353" ServerName=""
ServerRemoteName=""><Machine><ClientID>0496841d-c8ba-4215-bc34-94da8ad4cd12</ClientID><NetbiosName/></Machine></Identification><PXEBootAction
LastPXEAdvertisementID="" LastPXEAdvertisementTime=""
OfferID="LAB20002" OfferIDTime="20-09-2013 10:07:00"
PkgID="LAB0000B" PackageVersion="" PackagePath="http://CM2012SP1.sudilab.com/SMS_DP_SMSPKG$/LAB00004"
BootImageID="LAB00004" Mandatory="0"/></ClientIDReply>

                    SMSPXE      21-09-2013
00:09:18  6148 (0x1804)

00:15:5D:8C:07:05,
13322A56-39A8-4490-918B-6846BE50C648: found optional advertisement LAB20002            SMSPXE      21-09-2013 00:09:18              6148
(0x1804)

Looking for bootImage LAB00004 SMSPXE      21-09-2013 00:09:18  6148
(0x1804)

BootImage LAB00004 needs
to be updated (new packageID=LAB00004) VersionUpdate=true                  SMSPXE      21-09-2013 00:09:18    6148
(0x1804)

PXE::CBootImageInfo::CBootImageInfo:
key=LAB00004     SMSPXE      21-09-2013 00:09:18  6148 (0x1804)

Removing Previous Image
from cache: LAB00004              SMSPXE      21-09-2013 00:09:18  6148 (0x1804)

Creating BCD store:
C:\RemoteInstall\SMSTemp\2013.09.21.00.09.18.03.{8E1D5018-7318-4741-B92A-E5B7005E2039}.boot.bcd                    SMSPXE      21-09-2013 00:09:18  6148 (0x1804)

StoreFilePath:
\??\C:\RemoteInstall\SMSTemp\2013.09.21.00.09.18.03.{8E1D5018-7318-4741-B92A-E5B7005E2039}.boot.bcd                    SMSPXE      21-09-2013 00:09:29  6148 (0x1804)

Saving Media Variables to
"C:\RemoteInstall\SMSTemp\2013.09.21.00.09.34.0001.{8E1D5018-7318-4741-B92A-E5B7005E2039}.boot.var"              SMSPXE      21-09-2013 00:09:34  6148
(0x1804)

CLibSMSMessageWinHttpTransport::Send:
URL: CM2012SP1.sudilab.com:80  GET
/SMS_MP/.sms_aut?MPKEYINFORMATIONEX                    SMSPXE      21-09-2013 00:09:34  6148 (0x1804)

Sending StatusMessage                   SMSPXE      21-09-2013 00:09:34  6148
(0x1804)

CLibSMSMessageWinHttpTransport::Send:
URL: CM2012SP1.sudilab.com:80  CCM_POST
/ccm_system/request     SMSPXE      21-09-2013 00:09:34              6148 (0x1804)

DHCP message:

 Operation:
BootReply (2)

 Hardware Address
type: 1

 Hardware Address Length: 6

 Hop Count: 0

 Transaction ID: 05078C5E

 Seconds Since Boot: 0

 Client IP Address: 192.168.001.023

 Your IP Address: 000.000.000.000

 Server IP Address: 192.168.001.002

 Relay Agent IP Address: 000.000.000.000

 Hardware Address: 00:15:5d:8c:07:05:

 BootFileName:
smsboot\x64\pxeboot.com

 Magic Cookie: 63538263

 Options:

    Type = 53 DHCP Message Type: 5=DHCPAck

    Type = 54 Server idenitifier:
192.168.001.002

    Type = 97 UUID:
00562a3213a8399044918b6846be50c648

    Type = 60 ClassIdentifier: PXEClient

    Type = 243
024530140000000a000000100000000e66000000000000bc093c433d7f061c5fc88a1e181d6b8d0000000000000000000000005bee9d8efa37c0b84fd289dea97339f4833b1cff01515c534d5354656d705c323031332e30392e32312e30302e30392e33342e303030312e7b38453144353031382d37333172

    Type = 252
5c534d5354656d705c323031332e30392e32312e30302e30392e31382e30332e7b38453144353031382d373331382d343734312d423932412d4535423730303545323033397d2e626f6f742e62636400                    SMSPXE      21-09-2013 00:09:34  6148 (0x1804)

 

First you would find the PXE client broadcasting. You will find the DHCP request (1). This contains the MAC ID and SMBIOS GUID. Now once this is got the device is checked for its presence in the database so that it knows if it is known client or not. DHCP reply would go with the boot file wdsnbp.com which will be downloaded and architecture detection happens once the same is done then the pxe client will again request to the boot action.  If we have a Mandatory advertisement then it will download PXEBootn12.com else
if there is no Mandatory then it will download PXEBoot.com

This checking is done by looking at against the configuration manager DB. In older version SMSPXE used to connect to DB and now it uses Management point to connect to DB and collect this information.

 With Mandatory advertisement \ Deployment which is required

 

 

Without Mandatory advertisement \ Deployment which is available

 


 This is the usual boot process

 

1)      A client is directed (by using DHCP Options or the PXE Server response) to download Wdsnbp.com

2)      Wdsnbp.com validates the DHCP/PXE response packet and proceeds to download PXEBoot.com or PXEBootn12.com.PXEBoot.com requires the client to press the F12 key to initiate PXE boot.

3)      PXEBoot.com or PXEBootn12.com  downloads Bootmgr.exe and the BCD store. The BCD store must reside in a \Boot directory in the TFTP root folder. Additionally, the BCD store must be called BCD.

4)      Bootmgr.exe  reads the BCD operating system entries and downloads Boot.sdi and the Windows PE image (Winpe.wim).

5)      Bootmgr.exe begins booting Windows PE by calling into Winload.exe within the Windows PEimage.

 

Once this is done you will find   the Configuration Manager screen as shown below



  

This is the completion of the PXE boot and once done from here on we get rest of information from smsts.log which first gets created in X:\Windows\Temp\SMSTSLog\smsts.log 

 

 Hope this will be helpful.

Part II will cover from WinPE to full blown OS

--------------------------------------------------------------------------------

Sudheesh N

 

Troubleshooting SCCM Part VII .......... OSD .... Part II

$
0
0

Part II : From windows PE to Full Blown OS

Once the client boots to PXE  (which we have explained in Part I ) the clients goes to the management point and get the list of policy.

If any Mandatory (required) deployment then it will go ahead with that else if it is available deployment it will show you the List of advertisement.

 From the WindowsPE and  before HDD format the sequence of events is logged in SMSTS.log in the location   x:\windows\temp\smstslog\smsts.log

  

 The snippet below shows which policy are retrieved which policy is downloaded and from where.  SMSTS.log are usually pretty big.

I will be pointing only the required lines rest I will attach in a ZIP file which you can look in detail.

Preparing Policy Assignment Request. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
    Setting transport. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
    Setting site code = LAB. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
    Setting client ID = 0496841d-c8ba-4215-bc34-94da8ad4cd12. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
   Setting site signing Certificate. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
Setting SiteSigningCertificateContext TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
Executing Policy Assignment Request. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
Sending RequestAssignments TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
Setting message signatures. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
Setting the authenticator. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
CLibSMSMessageWinHttpTransport::Send: URL: CM2012SP1.sudilab.com:80  CCM_POST /ccm_system/request TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
Request was succesful. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
::DecompressBuffer(65536) TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
Decompression (zlib) succeeded: original size 25716, uncompressed size 120828. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
Request client ID: 0496841d-c8ba-4215-bc34-94da8ad4cd12 TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
Response client ID: 0496841d-c8ba-4215-bc34-94da8ad4cd12 TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
Retrieving Policy Assignments: TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
    Processing Policy Assignment {42a5d36c-1a04-4171-a34a-7d1ba6896d49}. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
    Processing Policy Assignment {6d4fd9bd-f9a8-4225-bd76-84e25e99ea39}. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
    Processing Policy Assignment {4bf211e4-461e-495c-aae1-cf47a73b95b2}. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
   
     ...........................

     ..............................    

    Processing Policy Assignment {adcfd522-f142-4aad-becc-a591eea01bd1}. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
    Processing Policy Assignment LAB20000-LAB00003-3B5BFFE2. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
    Processing Policy Assignment SRC10000. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
    Processing Policy Assignment DEP-LAB20002-LAB00002-6F6BCC28. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
    Processing Policy Assignment DEP-LAB20002-LAB00004-6F6BCC28. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
    Processing Policy Assignment DEP-LAB20002-LAB0000A-6F6BCC28. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
Successfully read 43 policy assignments. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
Downloading policy body LAB20002-LAB0000B-6F6BCC28. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
Preparing Policy Body Request. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
    Setting transport. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
    Setting policy location = http://<mp>/SMS_MP/.sms_pol?LAB20002-LAB0000B-6F6BCC28.1_00. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
Executing Policy Body Request. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
CLibSMSMessageWinHttpTransport::Send: URL: CM2012SP1.sudilab.com:80  GET /SMS_MP/.sms_pol?LAB20002-LAB0000B-6F6BCC28.1_00 TSPxe 20-09-2013 18:53:22 1244 (0x04DC)
Request was succesful. TSPxe 20-09-2013 18:53:22 1244 (0x04DC)

 

 You would also see the Network account policy which will be used to contact DP also being downloaded and evaluated

 

Reading Policy Body. TSPxe 20-09-2013 19:01:48 1336 (0x0538)
Parsing Policy Body. TSPxe 20-09-2013 19:01:48 1336 (0x0538)
Found NetworkAccessUsername/NetworkAccessPassword from NAAConfig CCM_NetworkAccessAccount TSPxe 20-09-2013 19:01:48 1336 (0x0538)
Network Access Account has a non-empty value TSPxe 20-09-2013 19:01:48 1336 (0x0538)
Getting local network information. TSPxe 20-09-2013 19:01:48 1336 (0x0538)

It will then check for all the content location for reference package you would find multiple occurrence of location request as below related to content reply .

If any issues with content lookup the TS would fail here and in such situations you would need to check the packages\application\boot images\OS image etc is distributed the DP which the client is assigned to.

 Request was succesful. TSPxe 20-09-2013 19:01:48 1336 (0x0538)
::DecompressBuffer(65536) TSPxe 20-09-2013 19:01:48 1336 (0x0538)
Decompression (zlib) succeeded: original size 547, uncompressed size 1690. TSPxe 20-09-2013 19:01:48 1336 (0x0538)
Location Reply: <ContentLocationReply SchemaVersion="1.00"><ContentInfo PackageFlags="1024"><ContentHashValues/></ContentInfo><Sites><Site><MPSite SiteCode="LAB" MasterSiteCode="LAB" SiteLocality="LOCAL" IISPreferedPort="80" IISSSLPreferedPort="443"/><LocationRecords><LocationRecord><URL Name="http://CM2012SP1.sudilab.com/SMS_DP_SMSPKG$/LAB00004" Signature="http://CM2012SP1.sudilab.com/SMS_DP_SMSSIG$/LAB00004"/><ADSite Name="Default-First-Site-Name"/><IPSubnets><IPSubnet Address="192.168.1.0"/><IPSubnet Address=""/></IPSubnets><Metric Value=""/><Version>7804</Version><Capabilities SchemaVersion="1.0"><Property Name="SSLState" Value="0"/></Capabilities><ServerRemoteName>CM2012SP1.sudilab.com</ServerRemoteName><DPType>SERVER</DPType><Windows Trust="0"/><Locality>LOCAL</Locality></LocationRecord></LocationRecords></Site></Sites></ContentLocationReply> TSPxe 20-09-2013 19:01:48 1336 (0x0538)
MCS server:  TSPxe 20-09-2013 19:01:48 1336 (0x0538)
Found location: http://CM2012SP1.sudilab.com/SMS_DP_SMSPKG$/LAB00004 TSPxe 20-09-2013 19:01:48 1336 (0x0538)

Till this time TSPxe will be component in questions and once this is completed the Tasksequence is then read and parsed.

Then the Tasksequence starts performing one by one. Here on TSMager component will come in to action. This is the TS I have used which is a very basic one


Parsing group node: Install Operating System TSManager 20-09-2013 19:01:48 732 (0x02DC)
Parsing step node: Restart in Windows PE TSManager 20-09-2013 19:01:48 732 (0x02DC)
Parsing step node: Partition Disk 0 - BIOS TSManager 20-09-2013 19:01:48 732 (0x02DC)
Parsing step node: Partition Disk 0 - UEFI TSManager 20-09-2013 19:01:48 732 (0x02DC)
Parsing step node: Pre-provision BitLocker TSManager 20-09-2013 19:01:48 732 (0x02DC)
Parsing step node: Apply Operating System TSManager 20-09-2013 19:01:48 732 (0x02DC)
Parsing step node: Apply Windows Settings TSManager 20-09-2013 19:01:48 732 (0x02DC)

 Then you see the Tasksequence steps being executed

 

Start executing the command line: osddiskpart.exe TSManager 20-09-2013 19:01:49 732 (0x02DC)
!--------------------------------------------------------------------------------------------! TSManager 20-09-2013 19:01:49 732 (0x02DC)
Expand a string: WinPE TSManager 20-09-2013 19:01:49 732 (0x02DC)
Executing command line: osddiskpart.exe TSManager 20-09-2013 19:01:49 732 (0x02DC)
==============================[ OSDDiskPart.exe ]============================== OSDDiskPart 20-09-2013 19:01:49 852 (0x0354)
Command line: "osddiskpart.exe" OSDDiskPart 20-09-2013 19:01:49 852 (0x0354)
Succeeded loading resource DLL 'X:\sms\bin\i386\1033\TSRES.DLL' OSDDiskPart 20-09-2013 19:01:49 852 (0x0354)
Reading partition size info for partition 0 OSDDiskPart 20-09-2013 19:01:49 852 (0x0354)
Remaining size before partition: 136358691840 OSDDiskPart 20-09-2013 19:01:49 852 (0x0354)
.............

............

OSDDiskPart.exe completed successfully OSDDiskPart 20-09-2013 19:02:04 852 (0x0354)
Process completed with exit code 0 TSManager 20-09-2013 19:02:04 732 (0x02DC)
!--------------------------------------------------------------------------------------------! TSManager 20-09-2013 19:02:04 732 (0x02DC)
Successfully completed the action (Partition Disk 0 - BIOS) with the exit win32 code 0 TSManager 20-09-2013 19:02:04 732 (0x02DC)

 If you filter with Successfully completed the action you can get which all completed and if any steps fails you could check the error accordingly and then troubleshoot.

Each step does different things to know in detail please check the article http://technet.microsoft.com/en-us/library/hh846237.aspx

 

Successfully completed the action (Partition Disk 0 - BIOS) with the exit win32 code 0 TSManager 20-09-2013 19:02:04 732 (0x02DC)
Successfully completed the action (Pre-provision BitLocker) with the exit win32 code 0 TSManager 20-09-2013 19:02:05 732 (0x02DC)
Successfully completed the action (Apply Operating System) with the exit win32 code 0 TSManager 20-09-2013 19:15:45 732 (0x02DC)
Successfully completed the action (Apply Windows Settings) with the exit win32 code 0 TSManager 20-09-2013 19:15:46 732 (0x02DC)
Successfully completed the action (Apply Network Settings) with the exit win32 code 0 TSManager 20-09-2013 19:15:46 732 (0x02DC)
Successfully completed the action (Apply Device Drivers) with the exit win32 code 0 TSManager 20-09-2013 19:18:15 732 (0x02DC)
Successfully completed the action (Setup Windows and Configuration Manager) with the exit win32 code 0 TSManager 20-09-2013 19:20:36 732 (0x02DC)

 

 Once these steps are completed the windows PE phase get finished and it will boot to OS which we had applied

 

Save the current environment block TSManager 20-09-2013 19:20:41 732 (0x02DC)
Expand a string: %_SMSTSMDataPath%\Logs TSManager 20-09-2013 19:20:41 732 (0x02DC)
Current operating system is Windows PE. Computer will automatically rebooted when the process exits. TSManager 20-09-2013 19:21:11 732 (0x02DC)
The action (Setup Windows and Configuration Manager) initiated a reboot request TSManager 20-09-2013 19:21:11 732 (0x02DC)

 

You will also find the information from windows PE load to format of the disk in the SMSTS.log located at x:\smstslog\smsts.log.

Now since we have drive created and OS applied c:\_SMSTaskSequence\ which will be used as a working directory for the Tasksequence and once it is completed this will be deleted. Presence of this folder after the Tasksequence itself is a indication that TS did not complete fine.

In the windowsPE phase what ever you have in X:\  drive smsts.log will also be there in c:\_SMSTaskSequence\Logs\Smstslog\smsts.log.

Once the system boot to complete OS the X:\ data will no longer be available so you would need to grab logs before the reboot.

You can use this http://blogs.technet.com/b/sudheesn/archive/2010/03/09/how-to-get-the-related-logs-for-troubleshooting-operating-system-deployment.aspx For 2012 only the change is the location in boot image properties rest everything is the same.

Now once the system boots to full OS it will configure the OS, drivers and then install the client. In winpe only download happens till the client is installed you will find the logs in c:\_SMSTaskSequence\Logs\Smstslog\smsts.log and then it will continue through the Tasksequence if any further steps are there.

Once the client is installed then you will find the logs in the :\windows\ccm\logs\smsts.log in 2012 and in 2007 :\windows\system32\ccm\logs\smsts.log  :\windows\sysWOW64\ccm\logs\smsts.log

 

As you can make TS of your choice and the failure can happen any where in this it is difficult to explain all possible issues. But if you can read the smsts.log most of the issue can be sorted out as failure of any step is given in detail in the logs. What is important is that you need to find the first step failed as in many cases I had seen people looking at the last error and get misled.

For OSD issues observation , probing and finding the first major failure is the key. Just what we need to understand that when these basic steps are in place then it is just how the Tasksequence was created can make issues. In various to isolate the issue different trial and error method like disabling few steps or deleting few will make a lot of sense.

If you think TS as a step by step command thrower and approach the issues things will be simpler. If you have failure when OS is being applied , driver injection etc the other OS logs will be of help.

This link has a good collection http://technet.microsoft.com/en-us/library/dd744583(v=ws.10).aspx

I am also attaching a ZIP file with the logs which was collected while preparing this doc. For more details you can refer this.

 

Hope this helps

-----------------------------------

Sudheesh N

 

Content Lookup in configuration Manager

$
0
0

Content Lookup in configuration Manager

Whether it is Software distribution , Software updates deployment or application deployment in 2012 the Majority of the issues comes is w.r.t to the clients not getting the Contents.

This Blogs is on how we can check and find out the reason why the client is not able to get the contents.

Whenever Client needs a content it will ask its local management point for the content and management point check against the site database and return back the list of distribution point which is used by the client.

Boundaries \ Boundary group are a important part while content lookup are made. The boundaries and boundary group can be used to limit the DP which can server a client for content lookup.
 
This link talks about the DP selection logic and generic flow http://technet.microsoft.com/en-us/library/bb932150.aspx
 
If you are looking at a top level flow this is what happens
 
The content access service component (CAS) of Ccmexec service will Request for Content . The content transfer Manager (CTM)will create  a CTM job and the location services will send the content request to MP and receive the reply from MP and the same is used by CAS which in turn starts the Data transfer job to download the content.
That said easy let us look in to more depth Flow
 
Software distribution ( Legacy Package )
 
The reference package in this case is P010000F
 
When the execmgr is trigged for a particular advertisement the request will be given to CAS. Log snippet will be as follows in the client
 
Execmgr.log
Requesting content from CAS for package P010000F version 1 execmgr 13-11-2013 3.23.48 PM 3820 (0x0EEC)

CAS.log
CDownloadManager::RequestDownload P010000F.1.System ContentAccess 13-11-2013 3.23.48 PM 3820 (0x0EEC)
DownloadManager::FindDownloadInfo with P010000F.1.System ContentAccess 13-11-2013 3.23.48 PM 3820 (0x0EEC)
Submitted CTM job {2A98991A-4135-4C90-8658-72970FD1792D} to download Content P010000F.1 under context System ContentAccess 13-11-2013 3.23.48 PM 3820 (0x0EEC)
 
ContentTransfermanager.log
Starting CTM job {2A98991A-4135-4C90-8658-72970FD1792D}. ContentTransferManager 13-11-2013 3.23.48 PM 3820 (0x0EEC)
Attempting to create Location Request for PackageID='P010000F' and Version='1' ContentTransferManager 13-11-2013 3.23.48 PM 2800 (0x0AF0)
ContentLocationRequest : <ContentLocationRequest SchemaVersion="1.00" ExcludeFileList=""><Package ID="P010000F" Version="1"/><AssignedSite SiteCode="P01"/><ClientLocationInfo LocationType="SMSPackage" DistributeOnDemand="0" UseAzure="0" AllowWUMU="0" UseProtected="1" AllowCaching="0" BranchDPFlags="0" UseInternetDP="0" AllowHTTP="1" AllowSMB="1" AllowMulticast="1"><ADSite Name="Default-First-Site-Name"/><Forest Name="msdindia.com"/><Domain Name="msdindia.com"/><IPAddresses><IPAddress SubnetAddress="192.168.1.0" Address="192.168.1.54"/></IPAddresses></ClientLocationInfo></ContentLocationRequest>
 ContentTransferManager 13-11-2013 3.23.48 PM 2800 (0x0AF0)
Created and Sent Location Request '{4B177871-CBD4-444B-B388-76C1D94E3E35}' for package P010000F ContentTransferManager 13-11-2013 3.23.49 PM 2800 (0x0AF0)
CTM job {2A98991A-4135-4C90-8658-72970FD1792D} entered phase CCM_DOWNLOADSTATUS_DOWNLOADING_DATA ContentTransferManager 13-11-2013 3.23.49 PM 2800 (0x0AF0)
One the request reaches the Management point , the MP_location Manager component will query the DB and get the reply according to the request. You can clearly see the request and the reply once you enable verbose logging on the MP.
 
MP_Location.log
 
 MP LM: Message Body : <ContentLocationRequest SchemaVersion="1.00" ExcludeFileList=""><Package ID="P010000F" Version="1"/><AssignedSite SiteCode="P01"/><ClientLocationInfo LocationType="SMSPackage" DistributeOnDemand="0" UseAzure="0" AllowWUMU="0" UseProtected="1" AllowCaching="0" BranchDPFlags="0" UseInternetDP="0" AllowHTTP="1" AllowSMB="1" AllowMulticast="1"><ADSite Name="Default-First-Site-Name"/><Forest Name="msdindia.com"/><Domain Name="msdindia.com"/><IPAddresses><IPAddress SubnetAddress="192.168.1.0" Address="192.168.1.54"/></IPAddresses></ClientLocationInfo></ContentLocationRequest>
 MP_LocationManager 13-11-2013 3.23.52 PM 3160 (0x0C58)

MP_GetContentDPInfoUnprotected (P010000F,1,P01,SMSPackage,00000000,msdindia.com,msdindia.com,<ClientLocationInfo LocationType="SMSPackage" DistributeOnDemand="0" UseAzure="0" AllowWUMU="0" UseProtected="1" AllowCaching="0" BranchDPFlags="0" UseInternetDP="0" AllowHTTP="1" AllowSMB="1" AllowMulticast="1"><ADSite Name="DEFAULT-FIRST-SITE-NAME"/><Forest Name="msdindia.com"/><Domain Name="msdindia.com"/><IPAddresses><IPAddress SubnetAddress="192.168.1.0" Address="192.168.1.54"/></IPAddresses></ClientLocationInfo>) MP_LocationManager 13-11-2013 3.23.53 PM 3160 (0x0C58)
MP LM: Reply message body:
<ContentLocationReply SchemaVersion="1.00"><ContentInfo PackageFlags="16777216"><ContentHashValues/></ContentInfo><Sites><Site><MPSite SiteCode="P01" MasterSiteCode="P01" SiteLocality="LOCAL" IISPreferedPort="80" IISSSLPreferedPort="443"/><LocationRecords><LocationRecord><URL Name="http://PRIMARY1.msdindia.com/SMS_DP_SMSPKG$/P010000F" Signature="http://PRIMARY1.msdindia.com/SMS_DP_SMSSIG$/P010000F"/><ADSite Name="Default-First-Site-Name"/><IPSubnets><IPSubnet Address="192.168.1.0"/><IPSubnet Address=""/></IPSubnets><Metric Value=""/><Version>7804</Version><Capabilities SchemaVersion="1.0"><Property Name="SSLState" Value="0"/></Capabilities><ServerRemoteName>PRIMARY1.msdindia.com</ServerRemoteName><DPType>SERVER</DPType><Windows Trust="1"/><Locality>LOCAL</Locality></LocationRecord></LocationRecords></Site></Sites></ContentLocationReply> MP_LocationManager 13-11-2013 3.23.55 PM 3160 (0x0C58)
 
 
The details supplied on the request becomes the parameter for the SP. The SP which will be run and the parameter is shown below.
 

exec MP_GetContentDPInfoUnprotected N'P010000F',N'1',N'P01',N'SMSPackage',N'0',N'msdindia.com',N'msdindia.com',N'<ClientLocationInfo LocationType="SMSPackage" DistributeOnDemand="0"
UseAzure="0"
AllowWUMU="0"
UseProtected="1"
AllowCaching="0"
BranchDPFlags="0"
UseInternetDP="0"
AllowHTTP="1"
AllowSMB="1"
AllowMulticast="1"><ADSite
Name="DEFAULT-FIRST-SITE-NAME"/><Forest
Name="msdindia.com"/><Domain
Name="msdindia.com"/><IPAddresses><IPAddress SubnetAddress="192.168.1.0"
Address="192.168.1.54"/></IPAddresses></ClientLocationInfo>'

 
Now at the client side you can see the reply in location services.log. The CTM will then hand over this information to CAS and you can see the list of DP in CAS which has the content. The list is purely dependent on the request which you had made and it is the policy on the client which will help in frame the request.
 

LocationServices.log


Processing Location reply message LocationServices 13-11-2013 3.23.55 PM 3820 (0x0EEC)
ContentLocationReply : <ContentLocationReply SchemaVersion="1.00"><ContentInfo PackageFlags="16777216"><ContentHashValues/></ContentInfo><Sites><Site><MPSite SiteCode="P01" MasterSiteCode="P01" SiteLocality="LOCAL" IISPreferedPort="80" IISSSLPreferedPort="443"/><LocationRecords><LocationRecord><URL Name="http://PRIMARY1.msdindia.com/SMS_DP_SMSPKG$/P010000F" Signature="http://PRIMARY1.msdindia.com/SMS_DP_SMSSIG$/P010000F"/><ADSite Name="Default-First-Site-Name"/><IPSubnets><IPSubnet Address="192.168.1.0"/><IPSubnet Address=""/></IPSubnets><Metric Value=""/><Version>7804</Version><Capabilities SchemaVersion="1.0"><Property Name="SSLState" Value="0"/></Capabilities><ServerRemoteName>PRIMARY1.msdindia.com</ServerRemoteName><DPType>SERVER</DPType><Windows Trust="1"/><Locality>LOCAL</Locality></LocationRecord></LocationRecords></Site></Sites></ContentLocationReply> LocationServices 13-11-2013 3.23.55 PM 3820 (0x0EEC)
Calling back with the following distribution points LocationServices 13-11-2013 3.23.55 PM 3820 (0x0EEC)
Distribution Point='http://PRIMARY1.msdindia.com/SMS_DP_SMSPKG$/P010000F', Locality='LOCAL', DPType='SERVER', Version='7804', Capabilities='<Capabilities SchemaVersion="1.0"><Property Name="SSLState" Value="0"/></Capabilities>', Signature='http://PRIMARY1.msdindia.com/SMS_DP_SMSSIG$/P010000F', ForestTrust='TRUE', LocationServices 13-11-2013 3.23.55 PM 3820 (0x0EEC)

Contenttransfermanager.log

Persisted location 'http://PRIMARY1.msdindia.com/SMS_DP_SMSPKG$/P010000F', Order 0, for CTM job {2A98991A-4135-4C90-8658-72970FD1792D} ContentTransferManager 13-11-2013 3.23.55 PM 3820 (0x0EEC)
Persisted locations for CTM job {2A98991A-4135-4C90-8658-72970FD1792D}:
 (LOCAL) http://PRIMARY1.msdindia.com/SMS_DP_SMSPKG$/P010000F ContentTransferManager 13-11-2013 3.23.55 PM 3820 (0x0EEC)

CAS.log

Location update from CTM for content P010000F.1 and request {B48EB1C0-67AC-478D-B739-67ABAC725576} ContentAccess 13-11-2013 3.23.55 PM 3844 (0x0F04)
Download location found 0 - http://PRIMARY1.msdindia.com/SMS_DP_SMSPKG$/P010000F ContentAccess 13-11-2013 3.23.55 PM 3844 (0x0F04)

 

Once the list is made the CTM will create a DTS job and the DTS will download the content to the cache which will be informed to the execmgr.

 

Contenttransfermanager.log

CTM job {2A98991A-4135-4C90-8658-72970FD1792D} (corresponding DTS job {75ECF167-D371-41A7-B82A-56AF1F49D553}) started download from 'http://PRIMARY1.msdindia.com/SMS_DP_SMSPKG$/P010000F' for full content download. ContentTransferManager 13-11-2013 3.23.55 PM 3820 (0x0EEC)
CCTMJob::EvaluateState(JobID={2A98991A-4135-4C90-8658-72970FD1792D}, State=DownloadingData) ContentTransferManager 13-11-2013 3.23.55 PM 3308 (0x0CEC)

Datatransfermanager.log

DTSJob {75ECF167-D371-41A7-B82A-56AF1F49D553} created to download from 'http://PRIMARY1.msdindia.com:80/SMS_DP_SMSPKG$/P010000F' to 'C:\Windows\ccmcache\2'. DataTransferService 13-11-2013 3.23.55 PM 3820 (0x0EEC)
Starting BITS download for DTS job '{75ECF167-D371-41A7-B82A-56AF1F49D553}'. DataTransferService 13-11-2013 3.23.58 PM 3844 (0x0F04)
Starting BITS job '{A6BEABA9-5369-4109-B942-DD1CA16B3CC6}' for DTS job '{75ECF167-D371-41A7-B82A-56AF1F49D553}' under user 'S-1-5-18'. DataTransferService 13-11-2013 3.23.58 PM 3844 (0x0F04)
DTS job {75ECF167-D371-41A7-B82A-56AF1F49D553} has completed:
 Status : SUCCESS,
 Start time : 11/13/2013 15:23:55,
 Completion time : 11/13/2013 15:23:59,
 Elapsed time : 4 seconds DataTransferService 13-11-2013 3.23.59 PM 3844 (0x0F04)

 

Application deployment

The flow is the same the only difference would in the request

So only the MP_location.log will have the difference

MP_location.log 


MP LM: Message Body : <ContentLocationRequest SchemaVersion="1.00" ExcludeFileList=""><Package ID="UID:Content_e7d29c06-007d-4661-9cd2-33f04d4a9b6b" Version="1"/><AssignedSite SiteCode="P01"/><ClientLocationInfo LocationType="SMSUpdate" DistributeOnDemand="0" UseAzure="0" AllowWUMU="0" UseProtected="0" AllowCaching="0" BranchDPFlags="0" UseInternetDP="0" AllowHTTP="1" AllowSMB="0" AllowMulticast="0"><ADSite Name="Default-First-Site-Name"/><Forest Name="msdindia.com"/><Domain Name="msdindia.com"/><IPAddresses><IPAddress SubnetAddress="192.168.1.0" Address="192.168.1.54"/></IPAddresses></ClientLocationInfo></ContentLocationRequest>
 MP_LocationManager 13-11-2013 3.42.39 PM 1872 (0x0750)

MP_GetContentDPInfoUnprotected (UID:Content_e7d29c06-007d-4661-9cd2-33f04d4a9b6b,1,P01,SMSUpdate,00000000,msdindia.com,msdindia.com,<ClientLocationInfo LocationType="SMSUpdate" DistributeOnDemand="0" UseAzure="0" AllowWUMU="0" UseProtected="0" AllowCaching="0" BranchDPFlags="0" UseInternetDP="0" AllowHTTP="1" AllowSMB="0" AllowMulticast="0"><ADSite Name="DEFAULT-FIRST-SITE-NAME"/><Forest Name="msdindia.com"/><Domain Name="msdindia.com"/><IPAddresses><IPAddress SubnetAddress="192.168.1.0" Address="192.168.1.54"/></IPAddresses></ClientLocationInfo>) MP_LocationManager 13-11-2013 3.42.39 PM 1872 (0x0750)

MP LM: Reply message body:
<ContentLocationReply SchemaVersion="1.00" ContentFlags="200960" HashAlgorithm="32780" AlgorithmPreference="4" Hash="0BBA8C4DE4B332293A132EFE7F0973FD7815C94FD585875BA0348C5D498F9B8C" ExcludeFileListHash="" RelatedContentID=""><ContentInfo PackageFlags="16777216"><ContentHashValues><Hash Algorithm="32780" HashString="0BBA8C4DE4B332293A132EFE7F0973FD7815C94FD585875BA0348C5D498F9B8C" HashPreference="4"/></ContentHashValues></ContentInfo><Sites><Site><MPSite SiteCode="P01" MasterSiteCode="P01" SiteLocality="LOCAL" IISPreferedPort="80" IISSSLPreferedPort="443"/><LocationRecords><LocationRecord><URL Name="http://PRIMARY1.msdindia.com/SMS_DP_SMSPKG$/Content_e7d29c06-007d-4661-9cd2-33f04d4a9b6b.1" Signature="http://PRIMARY1.msdindia.com/SMS_DP_SMSSIG$/Content_e7d29c06-007d-4661-9cd2-33f04d4a9b6b.1.tar"/><ADSite Name="Default-First-Site-Name"/><IPSubnets><IPSubnet Address="192.168.1.0"/><IPSubnet Address=""/></IPSubnets><Metric Value=""/><Version>7804</Version><Capabilities SchemaVersion="1.0"><Property Name="SSLState" Value="0"/></Capabilities><ServerRemoteName>PRIMARY1.msdindia.com</ServerRemoteName><DPType>SERVER</DPType><Windows Trust="1"/><Locality>LOCAL</Locality></LocationRecord></LocationRecords></Site></Sites></ContentLocationReply> MP_LocationManager 13-11-2013 3.42.39 PM 1872 (0x0750)

Package ID is easy to spot for the Content ID for a application you can get it from console.

 

 

Software Update Deployment

 In case of software deployment also it is the content ID. But the content ID is not as open as a application or package. For normal updates it will be the unique ID for the bundled ones we can find like this.

Click on the picture if you would like to see the picture clear. Here we have a update which is bundle Update :Security Update for Windows 7 for x64-based Systems (KB2532531) MS11-053(6e03d226-b005-4be7-8254-7c1760886bfd)

 

The request , reply in mp_location would look like this

Here updatehanlder will request CAS

 

Updatehandler.log

Bundle update (6e03d226-b005-4be7-8254-7c1760886bfd) is requesting download from child updates for action (INSTALL) UpdatesHandler 13-11-2013 4.21.45 PM 2460 (0x099C)
Content Text = <Content ContentId="0151d9cf-a409-4013-b00a-6f915096b410" Version="1"><FileContent Name="windows6.1-kb2532531-x64.cab" Hash="4625E47E04E8708B66895DE5439EC7221CCCD41B" HashAlgorithm="SHA1" Size="415374"/></Content>
 UpdatesHandler 13-11-2013 4.21.45 PM 2460 (0x099C)
CAtomicUpdate::SetState - Entered SetState - Update 0151d9cf-a409-4013-b00a-6f915096b410, Current State (member) = DOWNLOAD_READY,  Passed in state = WAIT_CONTENTS UpdatesHandler 13-11-2013 4.21.45 PM 2460 (0x099C)
State Transition - Update 0151d9cf-a409-4013-b00a-6f915096b410, State = WAIT_CONTENTS UpdatesHandler 13-11-2013 4.21.45 PM 2460 (0x099C)
CAtomicUpdate::SetState - Exit SetState - Update 0151d9cf-a409-4013-b00a-6f915096b410, Current State (member) = WAIT_CONTENTS, Passed in state = WAIT_CONTENTS UpdatesHandler 13-11-2013 4.21.45 PM 2460 (0x099C)
Starting download on action (INSTALL) for Update (0151d9cf-a409-4013-b00a-6f915096b410) UpdatesHandler 13-11-2013 4.21.45 PM 2460 (0x099C)

Mp_location.log

MP LM: Message Body : <ContentLocationRequest SchemaVersion="1.00" ExcludeFileList=""><Package ID="UID:0151d9cf-a409-4013-b00a-6f915096b410" Version="1"/><AssignedSite SiteCode="P01"/><ClientLocationInfo LocationType="SMSUpdate" DistributeOnDemand="0" UseAzure="0" AllowWUMU="0" UseProtected="0" AllowCaching="0" BranchDPFlags="0" UseInternetDP="0" AllowHTTP="1" AllowSMB="1" AllowMulticast="1"><ADSite Name="Default-First-Site-Name"/><Forest Name="msdindia.com"/><Domain Name="msdindia.com"/><IPAddresses><IPAddress SubnetAddress="192.168.1.0" Address="192.168.1.54"/></IPAddresses></ClientLocationInfo></ContentLocationRequest>
 MP_LocationManager 13-11-2013 4.21.48 PM 4200 (0x1068)

MP_GetContentDPInfoUnprotected (UID:0151d9cf-a409-4013-b00a-6f915096b410,1,P01,SMSUpdate,00000000,msdindia.com,msdindia.com,<ClientLocationInfo LocationType="SMSUpdate" DistributeOnDemand="0" UseAzure="0" AllowWUMU="0" UseProtected="0" AllowCaching="0" BranchDPFlags="0" UseInternetDP="0" AllowHTTP="1" AllowSMB="1" AllowMulticast="1"><ADSite Name="DEFAULT-FIRST-SITE-NAME"/><Forest Name="msdindia.com"/><Domain Name="msdindia.com"/><IPAddresses><IPAddress SubnetAddress="192.168.1.0" Address="192.168.1.54"/></IPAddresses></ClientLocationInfo>) MP_LocationManager 13-11-2013 4.21.48 PM 4200 (0x1068)

MP LM: Reply message body:
<ContentLocationReply SchemaVersion="1.00"><ContentInfo PackageFlags="16777216"><ContentHashValues/></ContentInfo><Sites><Site><MPSite SiteCode="P01" MasterSiteCode="P01" SiteLocality="LOCAL" IISPreferedPort="80" IISSSLPreferedPort="443"/><LocationRecords><LocationRecord><URL Name="http://PRIMARY1.msdindia.com/SMS_DP_SMSPKG$/0151d9cf-a409-4013-b00a-6f915096b410" Signature="http://PRIMARY1.msdindia.com/SMS_DP_SMSSIG$/0151d9cf-a409-4013-b00a-6f915096b410.1.tar"/><ADSite Name="Default-First-Site-Name"/><IPSubnets><IPSubnet Address="192.168.1.0"/><IPSubnet Address=""/></IPSubnets><Metric Value=""/><Version>7804</Version><Capabilities SchemaVersion="1.0"><Property Name="SSLState" Value="0"/></Capabilities><ServerRemoteName>PRIMARY1.msdindia.com</ServerRemoteName><DPType>SERVER</DPType><Windows Trust="1"/><Locality>LOCAL</Locality></LocationRecord></LocationRecords></Site></Sites></ContentLocationReply> MP_LocationManager 13-11-2013 4.21.48 PM 4200 (0x1068)

 Hope this information will help in troubleshooting.

Sudheesh Narayanaswamy

Support Escalation Engineer 

 

Content Distribution to Distribution Points-Part I

$
0
0

Content Distribution to Distribution Points -Part I


For storing the content, these are the packages available in Configuration Manager.

  1. Software Distribution Packages
  2. Application
  3. Software Update Packages
  4. Boot Images
  5. Operating System images and packages

Clients get these packages from distribution point. When content is distributed to the distribution point there are chances that the packages does not reach DP successfully.

From our experience, we have seen this issue happing to many customer and one of our common issues which our customer face.

This flow is on ,how the content distribution happens, Once you know this, you can track where the flow is broken.

Creating a Package

When the package is created from the console then the SMS Provider will write the information to the database. This change is detected by the smsdbmon and the notification file is placed

Note: The highlighted items are the checkpoints to understand the flow so that if broken we can easily find it out

SMSDBMON.log
RCV: INSERT on SMSPackages_G for SMS_Package_ins_upd_SMSProv [P0100017  ][72057594037986121] SMS_DATABASE_NOTIFICATION_MONITOR 11/18/2013 7:10:14 PM 4808 (0x12C8)
RCV: INSERT on SMSPackages_G for SMSPackages_G_Avail_iu [P0100017  ][72057594037986122] SMS_DATABASE_NOTIFICATION_MONITOR 11/18/2013 7:10:14 PM 4808 (0x12C8)
RCV: INSERT on PkgNotification for PkgNotify_Add [P0100017  ][72057594037986123] SMS_DATABASE_NOTIFICATION_MONITOR 11/18/2013 7:10:14 PM 4808 (0x12C8)
RCV: INSERT on PkgNotification for PkgNotify_Add [P0100017  ][72057594037986124] SMS_DATABASE_NOTIFICATION_MONITOR 11/18/2013 7:10:14 PM 4808 (0x12C8)
RCV: INSERT on RBAC_ChangeNotification for Rbac_Sync_ChangeNotification [72057594037928118  ][72057594037986125] SMS_DATABASE_NOTIFICATION_MONITOR 11/18/2013 7:10:14 PM 4808 (0x12C8)
SND: Dropped C:\Program Files\Microsoft Configuration Manager\inboxes\objmgr.box\P0100017.PAN  [72057594037986122] SMS_DATABASE_NOTIFICATION_MONITOR 11/18/2013 7:10:14 PM 4808 (0x12C8)
SND: Dropped C:\Program Files\Microsoft Configuration Manager\inboxes\distmgr.box\P0100017.PKN  [72057594037986123] SMS_DATABASE_NOTIFICATION_MONITOR 11/18/2013 7:10:14 PM 4808 (0x12C8)
SND: Dropped C:\Program Files\Microsoft Configuration Manager\inboxes\distmgr.box\P0100017.PKN  [72057594037986124] SMS_DATABASE_NOTIFICATION_MONITOR 11/18/2013 7:10:14 PM 4808 (0x12C8)
SND: Dropped C:\Program Files\Microsoft Configuration Manager\inboxes\hman.box\72057594037928118.RBC  [72057594037986125] SMS_DATABASE_NOTIFICATION_MONITOR 11/18/2013 7:10:14 PM 4808 (0x12C8)

Once the notification file is received the distmgr will start the processing . It takes the snapshot of the package ,creates a package signature, calculates the hash and also replicates these information to the other sites.

Distmgr.log

Found notification for package 'P0100017' SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:29 PM 3604 (0x0E14)
Used 0 out of 3 allowed processing threads. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:29 PM 3604 (0x0E14)
Starting package processing thread, thread ID = 0x1438 (5176) SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:29 PM 3604 (0x0E14)
Sleep 3600 seconds... SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:29 PM 3604 (0x0E14)
STATMSG: ID=2300 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=PRIMARY1.msdindia.com SITE=P01 PID=2656 TID=5176 GMTDATE=Mon Nov 18 13:40:29.912 2013 ISTR0="Notepad++" ISTR1="P0100017" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="P0100017" SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:29 PM 5176 (0x1438)
Start adding package P0100017... SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:29 PM 5176 (0x1438)
The Package Action is 2, the Update Mask is 0 and UpdateMaskEx is 0. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:29 PM 5176 (0x1438)
CDistributionSrcSQL::UpdateAvailableVersion PackageID=P0100017, Version=1, Status=2300 SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:29 PM 5176 (0x1438)
Taking package snapshot for package P0100017 from source C:\Software\Notepad++ SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:29 PM 5176 (0x1438)
Set share security on share \\PRIMARY1.msdindia.com\SCCMContentLib$ SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:29 PM 5176 (0x1438)
The size of package P0100017, version 1 is 6879 KBytes SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:30 PM 5176 (0x1438)
CreatePackageSignature() called for Package P0100017 with version 1 with source as '\\?\C:\Software\Notepad++'. KeepUnpackedSignature = 1 SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:30 PM 5176 (0x1438)
Successfully created RDC signatures for package P0100017 version 1 SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:30 PM 5176 (0x1438)
Set share security on share \\PRIMARY1.msdindia.com\SCCMContentLib$ SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:30 PM 5176 (0x1438)
Creating hash for algorithm 32780 SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:30 PM 5176 (0x1438)
The hash for algorithm 32780 is FBAD23A5B5D910EE847C83E53B4BEFB950CBFE8BC0F8F05CDBC6E00518080E2B SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:30 PM 5176 (0x1438)
The RDC signature hash for algorithm 32780 is 2D736B64030C3E5D9B1BF9816D81A00942DE4B7A797B3D7A74998462439219B9 SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:30 PM 5176 (0x1438)
Adding these contents to the package P0100017 version 1. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:30 PM 5176 (0x1438)
CDistributionSrcSQL::UpdateAvailableVersion PackageID=P0100017, Version=1, Status=2376 SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:31 PM 5176 (0x1438)
STATMSG: ID=2376 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=PRIMARY1.msdindia.com SITE=P01 PID=2656 TID=5176 GMTDATE=Mon Nov 18 13:40:31.102 2013 ISTR0="P0100017" ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="P0100017" SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:31 PM 5176 (0x1438)
Adding these contents to the package P0100017 version 1. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:31 PM 5176 (0x1438)
Successfully created/updated the package P0100017 SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:31 PM 5176 (0x1438)
STATMSG: ID=2311 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=PRIMARY1.msdindia.com SITE=P01 PID=2656 TID=5176 GMTDATE=Mon Nov 18 13:40:31.601 2013 ISTR0="P0100017" ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="P0100017" SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:31 PM 5176 (0x1438)
Created policy provider trigger for ID P0100017 SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:32 PM 5176 (0x1438)
Package P0100017 does not have a preferred sender. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:32 PM 5176 (0x1438)
A program for package P0100017 has been added or removed, therefore it needs to be replicated to all child sites. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:32 PM 5176 (0x1438)
Package P0100017 is new or has changed, replicating to all applicable sites. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:32 PM 5176 (0x1438)
CDistributionSrcSQL::UpdateAvailableVersion PackageID=P0100017, Version=1, Status=2301 SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:32 PM 5176 (0x1438)
StoredPkgVersion (1) of package P0100017. StoredPkgVersion in database is 1. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:32 PM 5176 (0x1438)
SourceVersion (1) of package P0100017. SourceVersion in database is 1. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:32 PM 5176 (0x1438)
Adding these contents to the package P0100017 version 1. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:32 PM 5176 (0x1438)
STATMSG: ID=2301 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=PRIMARY1.msdindia.com SITE=P01 PID=2656 TID=5176 GMTDATE=Mon Nov 18 13:40:32.986 2013 ISTR0="Notepad++" ISTR1="P0100017" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="P0100017" SMS_DISTRIBUTION_MANAGER 11/18/2013 7:10:32 PM 5176 (0x1438)

Distribute to Local DP

When you add a distribution point to a package the SMS Database Notification Monitor.

SMSDBMON.log

RCV: INSERT on PkgNotification for PkgNotify_Add [P0100017  ][72057594037986132]  SMS_DATABASE_NOTIFICATION_MONITOR  11/18/2013 7:12:04 PM  4808 (0x12C8)
RCV: INSERT on PkgNotification for PkgNotify_Add [P0100017  ][72057594037986133]  SMS_DATABASE_NOTIFICATION_MONITOR  11/18/2013 7:12:04 PM  4808 (0x12C8)
SND: Dropped C:\Program Files\Microsoft Configuration Manager\inboxes\distmgr.box\P0100017.PKN  [72057594037986132]  SMS_DATABASE_NOTIFICATION_MONITOR  11/18/2013 7:12:04 PM  4808 (0x12C8)
SND: Dropped C:\Program Files\Microsoft Configuration Manager\inboxes\distmgr.box\P0100017.PKN  [72057594037986133]  SMS_DATABASE_NOTIFICATION_MONITOR  11/18/2013 7:12:04 PM  4808 (0x12C8)

Once the PKN file is received by the distmgr will start the processing

DistMgr.log


Found notification for package 'P0100017' SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:14 PM 3604 (0x0E14)
STATMSG: ID=2300 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=PRIMARY1.msdindia.com SITE=P01 PID=2656 TID=5256 GMTDATE=Mon Nov 18 13:42:15.326 2013 ISTR0="Notepad++" ISTR1="P0100017" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="P0100017" SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:15 PM 5256 (0x1488)
Start adding package to server ["Display=\\PRIMARY1.msdindia.com\"]MSWNET:["SMS_SITE=P01"]\\PRIMARY1.msdindia.com\... SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:15 PM 5256 (0x1488)
Attempting to add or update a package on a distribution point. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:15 PM 2924 (0x0B6C)
The distribution point is on the siteserver and the package is a content type package. There is nothing to be copied over. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:15 PM 2924 (0x0B6C)
STATMSG: ID=2342 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=PRIMARY1.msdindia.com SITE=P01 PID=2656 TID=2924 GMTDATE=Mon Nov 18 13:42:15.881 2013 ISTR0="Notepad++" ISTR1="["Display=\\PRIMARY1.msdindia.com\"]MSWNET:["SMS_SITE=P01"]\\PRIMARY1.msdindia.com\" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=2 AID0=400 AVAL0="P0100017" AID1=404 AVAL1="["Display=\\PRIMARY1.msdindia.com\"]MSWNET:["SMS_SITE=P01"]\\PRIMARY1.msdindia.com\" SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:15 PM 2924 (0x0B6C)
The current user context will be used for connecting to ["Display=\\PRIMARY1.msdindia.com\"]MSWNET:["SMS_SITE=P01"]\\PRIMARY1.msdindia.com\. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:16 PM 2924 (0x0B6C)
No network connection is needed to ["Display=\\PRIMARY1.msdindia.com\"]MSWNET:["SMS_SITE=P01"]\\PRIMARY1.msdindia.com\ as this is the local machine. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:16 PM 2924 (0x0B6C)
CreateSignatureShare, connecting to DP SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:16 PM 2924 (0x0B6C)
Signature share exists on distribution point path \\PRIMARY1.msdindia.com\SMSSIG$ SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:16 PM 2924 (0x0B6C)

Set share security on share \\PRIMARY1.msdindia.com\SMSSIG$ SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:16 PM 2924 (0x0B6C)
Share SMSPKGC$ exists on distribution point \\PRIMARY1.msdindia.com\SMSPKGC$ SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:16 PM 2924 (0x0B6C)
Set share security on share \\PRIMARY1.msdindia.com\SMSPKGC$ SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:16 PM 2924 (0x0B6C)
Set share security on share \\PRIMARY1.msdindia.com\SCCMContentLib$ SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:16 PM 2924 (0x0B6C)
Set share security on share \\PRIMARY1.msdindia.com\SCCMContentLib$ SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:16 PM 2924 (0x0B6C)
RDC:Successfully created package signature file from \\?\C:\SMSPKGSIG\P0100017.1 to \\PRIMARY1.msdindia.com\SMSSIG$\P0100017.1.tar SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:16 PM 2924 (0x0B6C)
Setting permissions on file MSWNET:["SMS_SITE=P01"]\\PRIMARY1.msdindia.com\SMSSIG$\P0100017.1.tar. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:16 PM 2924 (0x0B6C)
STATMSG: ID=2330 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=PRIMARY1.msdindia.com SITE=P01 PID=2656 TID=2924 GMTDATE=Mon Nov 18 13:42:17.021 2013 ISTR0="P0100017" ISTR1="["Display=\\PRIMARY1.msdindia.com\"]MSWNET:["SMS_SITE=P01"]\\PRIMARY1.msdindia.com\" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=2 AID0=400 AVAL0="P0100017" AID1=404 AVAL1="["Display=\\PRIMARY1.msdindia.com\"]MSWNET:["SMS_SITE=P01"]\\PRIMARY1.msdindia.com\" SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:17 PM 2924 (0x0B6C)
StateTable::CState::Handle - (2330:1 2013-11-18 13:42:17.021+00:00) >> (2331:1 2013-11-18 13:37:40.641+00:00) SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:17 PM 2924 (0x0B6C)
CStateMsgReporter::DeliverMessages - Queued message: TT=1401 TIDT=0 TID='7F6041B0-3EE2-427F-AB72-B89610A6331C' SID=2330 MUF=0 PCNT=2, P1='P01' P2='2013-11-18 13:42:17.021+00:00' P3='' P4='' P5='' SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:17 PM 2924 (0x0B6C)
CStateMsgReporter::DeliverMessages - Created state message file: C:\Program Files\Microsoft Configuration Manager\inboxes\auth\statesys.box\incoming\5g8vj6s1.SMX SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:17 PM 2924 (0x0B6C)
Successfully send state change notification 7F6041B0-3EE2-427F-AB72-B89610A6331C SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:17 PM 2924 (0x0B6C)
Successfully created/updated the package server in the data source SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:17 PM 2924 (0x0B6C)
Performing cleanup prior to returning. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:17 PM 2924 (0x0B6C)
DP thread with array index 0 ended. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:17 PM 5256 (0x1488)
DP thread with thread handle 0000000000002BD0 and thread ID 2924 ended. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:17 PM 5256 (0x1488)
Package P0100017 does not have a preferred sender. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:17 PM 5256 (0x1488)
The package and/or program properties for package P0100017 have not changed,  need to determine which site(s) need updated package info. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:17 PM 5256 (0x1488)
CDistributionSrcSQL::UpdateAvailableVersion PackageID=P0100017, Version=1, Status=2301 SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:17 PM 5256 (0x1488)
StoredPkgVersion (1) of package P0100017. StoredPkgVersion in database is 1. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:17 PM 5256 (0x1488)
SourceVersion (1) of package P0100017. SourceVersion in database is 1. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:17 PM 5256 (0x1488)
STATMSG: ID=2301 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=PRIMARY1.msdindia.com SITE=P01 PID=2656 TID=5256 GMTDATE=Mon Nov 18 13:42:17.588 2013 ISTR0="Notepad++" ISTR1="P0100017" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="P0100017" SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:17 PM 5256 (0x1488)
Exiting package processing thread. SMS_DISTRIBUTION_MANAGER 11/18/2013 7:12:17 PM 5256 (0x1488)

In the next two parts we will cover the flow on how it goes to a remote distribution point and to distribution point in the site server (secondary site)

Hope this will be helpful in troubleshooting

Sudheesh Narayanaswamy

 

Content Distribution to Distribution Points -Part II

$
0
0

Content Distribution to Distribution Points -Part II

From Primary server To Secondary Server DP


Once you Add a secondary server DP from the primary server. The primary server distmgr will pickup the notification. It will then compress the contents of the package so that it can send to the site down. Content is send through the file based replication. But the instruction \ package details reaches the secondary server using DRS. Once the package is compressed it will ask the scheduler to schedule a job and the sender will the compressed file to the secondary server.

Note: The highlighted items are the checkpoints to understand the flow so that if broken we can easily find it out
Distmgr.log


Found notification for package 'P0100017' SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.31 PM 3604 (0x0E14)
Starting package processing thread, thread ID = 0xA1C (2588) SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.32 PM 3604 (0x0E14)
Needs to send the compressed package for package P0100017 to site S00 SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.34 PM 2588 (0x0A1C)
Sending a copy of package P0100017 to site S00 SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.34 PM 2588 (0x0A1C)
The reporting site of site S00 is this site. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.34 PM 2588 (0x0A1C)
Use drive C for storing the compressed package. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.34 PM 2588 (0x0A1C)
Set share security on share \\PRIMARY1.msdindia.com\SCCMContentLib$ SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.34 PM 2588 (0x0A1C)
Incremented ref count on file C:\SMSPKG\P0100017.PCK.1, count = 1 SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.34 PM 2588 (0x0A1C)
Setting CMiniJob transfer root to C:\SMSPKG\P0100017.PCK.1 SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.35 PM 2588 (0x0A1C)
Incremented ref count on file C:\SMSPKG\P0100017.PCK.1, count = 2 SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.35 PM 2588 (0x0A1C)
Decremented ref count on file C:\SMSPKG\P0100017.PCK.1, count = 1 SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.35 PM 2588 (0x0A1C)
Created minijob to send compressed copy of package P0100017 to site S00.  Transfer root = C:\SMSPKG\P0100017.PCK.1. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.35 PM 2588 (0x0A1C)
STATMSG: ID=2335 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=PRIMARY1.msdindia.com SITE=P01 PID=2656 TID=2588 GMTDATE=Mon Nov 18 14:01:35.627 2013 ISTR0="P0100017" ISTR1="S00" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="P0100017" SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.35 PM 2588 (0x0A1C)
The package and/or program properties for package P0100017 have not changed,  need to determine which site(s) need updated package info. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.35 PM 2588 (0x0A1C)
A distribution point has been changed at this site, adding site S00 to the list of sites to which we are sending package P0100017. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.35 PM 2588 (0x0A1C)
Parent site of S00 is P01 SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.35 PM 2588 (0x0A1C)
CDistributionSrcSQL::UpdateAvailableVersion PackageID=P0100017, Version=1, Status=2301 SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.35 PM 2588 (0x0A1C)
StoredPkgVersion (1) of package P0100017. StoredPkgVersion in database is 1. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.35 PM 2588 (0x0A1C)
SourceVersion (1) of package P0100017. SourceVersion in database is 1. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.35 PM 2588 (0x0A1C)
STATMSG: ID=2301 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=PRIMARY1.msdindia.com SITE=P01 PID=2656 TID=2588 GMTDATE=Mon Nov 18 14:01:35.896 2013 ISTR0="Notepad++" ISTR1="P0100017" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="P0100017" SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.35 PM 2588 (0x0A1C)
Exiting package processing thread. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.31.35 PM 2588 (0x0A1C)


Schedule.log


<Activating JOB 000000AF> [Software Distribution for Notepad++, Package ID = P0100017] SMS_SCHEDULER 18-11-2013 7.31.45 PM 4724 (0x1274)
    Destination site:  S00, Preferred Address: *, Priority: 2 SMS_SCHEDULER 18-11-2013 7.31.45 PM 4724 (0x1274)
    Instruction type:  MICROSOFT|SMS|MINIJOBINSTRUCTION|PACKAGE SMS_SCHEDULER 18-11-2013 7.31.45 PM 4724 (0x1274)
    Creating instruction file: \\PRIMARY1.msdindia.com\SMS_P01\inboxes\schedule.box\tosend\000000AF.Id5 SMS_SCHEDULER 18-11-2013 7.31.45 PM 4724 (0x1274)
    Transfer root:  C:\SMSPKG\P0100017.PCK.1 SMS_SCHEDULER 18-11-2013 7.31.45 PM 4724 (0x1274)
    Begin to calculate signature on C:\SMSPKG\P0100017.PCK.1 SMS_SCHEDULER 18-11-2013 7.31.45 PM 4724 (0x1274)
    Signature on C:\SMSPKG\P0100017.PCK.1 is F939B4FFD923A6069445497847ED9572382E30917FB516CCC9F9D27C3317E037038821FCCBACA456356CCDDA43FBA43E18994DB3658120579355F68945B2D3C9A47687166ED3B9E434D34E673ECB3226C2AC378EF47969743D75BA3F8766DFA1B4660BC63C44A7A149B8BAE47525F9B0B9B2F05977EF17368FEC62C91B0E36075520BA34E15A1FB294F941FA0FD86B2D379CEC271089393397AF512FD327B3C580E4C695088D49EF1C4F29E42415321BE8CE0FD7F503F918E91470A962B7ACBA6F6CB678C1E274E6E08F865F9D748094732845805CF544C8CD520E29B79FA2CD2E7605BC22FFD1F5AC86418F444B90E6B4EB886B7CA6DD9FF116375DA11D3C38 SMS_SCHEDULER 18-11-2013 7.31.45 PM 4724 (0x1274)
    Hash algorithm ID on C:\SMSPKG\P0100017.PCK.1 is 0x800C SMS_SCHEDULER 18-11-2013 7.31.45 PM 4724 (0x1274)
    Instruction (and package) file created.  Mark job active. SMS_SCHEDULER 18-11-2013 7.31.45 PM 4724 (0x1274)
    <JOB STATUS - ACTIVE> SMS_SCHEDULER 18-11-2013 7.31.45 PM 4724 (0x1274)

Sender.log

Package file = C:\SMSPKG\P0100017.PCK.1 SMS_LAN_SENDER 18-11-2013 7.32.00 PM 1460 (0x05B4)
Instruction file = C:\Program Files\Microsoft Configuration Manager\inboxes\schedule.box\tosend\000000AF.Id5 SMS_LAN_SENDER 18-11-2013 7.32.00 PM 1460 (0x05B4)
Checking for remote file \\SECONDARY1.msdindia.com\SMS_SITE\2004VP01.PCK SMS_LAN_SENDER 18-11-2013 7.32.00 PM 1460 (0x05B4)
Checking for remote file \\SECONDARY1.msdindia.com\SMS_SITE\2004VP01.SNI SMS_LAN_SENDER 18-11-2013 7.32.00 PM 1460 (0x05B4)
Checking for remote file \\SECONDARY1.msdindia.com\SMS_SITE\2004VP01.TMP SMS_LAN_SENDER 18-11-2013 7.32.00 PM 1460 (0x05B4)
Attempt to create/open the remote file \\SECONDARY1.msdindia.com\SMS_SITE\2004VP01.PCK SMS_LAN_SENDER 18-11-2013 7.32.00 PM 1460 (0x05B4)
Created/opened the remote file \\SECONDARY1.msdindia.com\SMS_SITE\2004VP01.PCK SMS_LAN_SENDER 18-11-2013 7.32.00 PM 1460 (0x05B4)
Attempt to create/open the remote file \\SECONDARY1.msdindia.com\SMS_SITE\2004VP01.PCK SMS_LAN_SENDER 18-11-2013 7.32.00 PM 1460 (0x05B4)
Created/opened the remote file \\SECONDARY1.msdindia.com\SMS_SITE\2004VP01.PCK SMS_LAN_SENDER 18-11-2013 7.32.00 PM 1460 (0x05B4)
…………………………………………………….
Attempt to write 665600 bytes to \\SECONDARY1.msdindia.com\SMS_SITE\2004VP01.PCK at position 66560 SMS_LAN_SENDER 18-11-2013 7.32.00 PM 1460 (0x05B4)
Wrote 65536 bytes to \\SECONDARY1.msdindia.com\SMS_SITE\2004VP01.PCK at position 1024 SMS_LAN_SENDER 18-11-2013 7.32.00 PM 1460 (0x05B4)
Wrote 665600 bytes to \\SECONDARY1.msdindia.com\SMS_SITE\2004VP01.PCK at position 66560 SMS_LAN_SENDER 18-11-2013 7.32.00 PM 1460 (0x05B4)
Attempt to write 1048576 bytes to \\SECONDARY1.msdindia.com\SMS_SITE\2004VP01.PCK at position 732160 SMS_LAN_SENDER 18-11-2013 7.32.00 PM 1460 (0x05B4)
Wrote 1048576 bytes to \\SECONDARY1.msdindia.com\SMS_SITE\2004VP01.PCK at position 732160 SMS_LAN_SENDER 18-11-2013 7.32.01 PM 1460 (0x05B4)

We see here that the PCK file which is compressed content and the instruction file .ID5 created by the scheduler is send to the secondary. The instruction file helps the despooler at the secondary to understand what to do with the PCK file received.

Till the package reaches the server you will find the package status in in progress mode


Secondary Server

In the secondary server \inboxes\despoolr.box\receive which is SMS_SITE share receive the content.  When it is being processed you might failed to execute if the DRS replication delay is there as the package information comes through DRS. You can confirm this running the query

You could see in the above result that the secondary server has not got the information w.r.t to secondary server for type 1.

Despool.log


Signature checked out OK for instruction coming from site P01, proceed with the instruction execution. SMS_DESPOOLER 18-11-2013 7.32.05 PM 2208 (0x08A0)
Executing instruction of type MICROSOFT|SMS|MINIJOBINSTRUCTION|PACKAGE SMS_DESPOOLER 18-11-2013 7.32.05 PM 2208 (0x08A0)
Received package P0100017 version 1. Compressed file -  C:\SMSPKG\P0100017.PCK.1 as C:\Program Files\Microsoft Configuration Manager\inboxes\despoolr.box\receive\ds_s916k.pkg SMS_DESPOOLER 18-11-2013 7.32.05 PM 2208 (0x08A0)
This package[P0100017]'s information hasn't arrived yet for this version [1]. Retry later ... SMS_DESPOOLER 18-11-2013 7.32.06 PM 2208 (0x08A0)
Despooler failed to execute the instruction, error code = 12 SMS_DESPOOLER 18-11-2013 7.32.06 PM 2208 (0x08A0)

Once the information reaches the secondary server database you will find this. And in the next retry you will find the instruction getting proceeded. Once the instruction is processed the package will be uncompressed  


Despool.log


Verifying signature for instruction C:\Program Files\Microsoft Configuration Manager\inboxes\despoolr.box\receive\ds_lofhs.nil of type MICROSOFT|SMS|MINIJOBINSTRUCTION|PACKAGE SMS_DESPOOLER 18-11-2013 7.37.16 PM 3416 (0x0D58)
Signature checked out OK for instruction coming from site P01, proceed with the instruction execution. SMS_DESPOOLER 18-11-2013 7.37.16 PM 3416 (0x0D58)
Executing instruction of type MICROSOFT|SMS|MINIJOBINSTRUCTION|PACKAGE SMS_DESPOOLER 18-11-2013 7.37.16 PM 3416 (0x0D58)
STATMSG: ID=4407 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DESPOOLER" SYS=SECONDARY1.msdindia.com SITE=S00 PID=2700 TID=3416 GMTDATE=Mon Nov 18 14:07:16.286 2013 ISTR0="P0100017" ISTR1="1" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="P0100017" SMS_DESPOOLER 18-11-2013 7.37.16 PM 3416 (0x0D58)
Received package P0100017 version 1. Compressed file -  C:\SMSPKG\P0100017.PCK.1 as C:\Program Files\Microsoft Configuration Manager\inboxes\despoolr.box\receive\PKGs15lf.TRY SMS_DESPOOLER 18-11-2013 7.37.16 PM 3416 (0x0D58)
Old package storedUNC path is . SMS_DESPOOLER 18-11-2013 7.37.16 PM 3416 (0x0D58)
Use drive C for storing the compressed package. SMS_DESPOOLER 18-11-2013 7.37.16 PM 3416 (0x0D58)
No branch cache registry entries found. SMS_DESPOOLER 18-11-2013 7.37.17 PM 3416 (0x0D58)
Uncompressing C:\SMSPKG\P0100017.PCK to C:\SMSPKG\P0100017.PCK.temp SMS_DESPOOLER 18-11-2013 7.37.17 PM 3416 (0x0D58)
Content Library: C:\SCCMContentLib SMS_DESPOOLER 18-11-2013 7.37.17 PM 3416 (0x0D58)
Extracting from C:\SMSPKG\P0100017.PCK.temp SMS_DESPOOLER 18-11-2013 7.37.17 PM 3416 (0x0D58)
Extracting package P0100017 SMS_DESPOOLER 18-11-2013 7.37.17 PM 3416 (0x0D58)
Extracting content P0100017.1 SMS_DESPOOLER 18-11-2013 7.37.17 PM 3416 (0x0D58)
Package P0100017 (version 0) exists in the distribution source, save the newer version (version 1). SMS_DESPOOLER 18-11-2013 7.37.20 PM 3416 (0x0D58)
Stored Package P0100017. Stored Package Version = 1 SMS_DESPOOLER 18-11-2013 7.37.20 PM 3416 (0x0D58)
STATMSG: ID=4400 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DESPOOLER" SYS=SECONDARY1.msdindia.com SITE=S00 PID=2700 TID=3416 GMTDATE=Mon Nov 18 14:07:21.599 2013 ISTR0="P0100017" ISTR1="\\SECONDARY1.msdindia.com\C$\SMSPKG\P0100017.PCK" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="P0100017" SMS_DESPOOLER 18-11-2013 7.37.21 PM 3416 (0x0D58)
Despooler successfully executed one instruction. SMS_DESPOOLER 18-11-2013 7.37.21 PM 3416 (0x0D58)

The secondary server distmgr now will pick this notification and start processing the package

Distmgr.log


Found notification for package 'P0100017' SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.41 PM 3308 (0x0CEC)
Start updating the package P0100017... SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.42 PM 3688 (0x0E68)
The Package Action is 1, the Update Mask is 160 and UpdateMaskEx is 0. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.42 PM 3688 (0x0E68)
Use drive C for storing the compressed package. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.42 PM 3688 (0x0E68)
Successfully created/updated the package P0100017 SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.42 PM 3688 (0x0E68)
STATMSG: ID=2311 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=SECONDARY1.msdindia.com SITE=S00 PID=2700 TID=3688 GMTDATE=Mon Nov 18 14:07:42.411 2013 ISTR0="P0100017" ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="P0100017" SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.42 PM 3688 (0x0E68)
Set share security on share \\SECONDARY1.msdindia.com\SCCMContentLib$ SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.42 PM 3688 (0x0E68)
Start adding package to server ["Display=\\SECONDARY1.msdindia.com\"]MSWNET:["SMS_SITE=S00"]\\SECONDARY1.msdindia.com\... SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.43 PM 3688 (0x0E68)
Attempting to add or update a package on a distribution point. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.43 PM 2856 (0x0B28)
The distribution point is on the siteserver and the package is a content type package. There is nothing to be copied over. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.43 PM 2856 (0x0B28)
STATMSG: ID=2342 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=SECONDARY1.msdindia.com SITE=S00 PID=2700 TID=2856 GMTDATE=Mon Nov 18 14:07:43.521 2013 ISTR0="Notepad++" ISTR1="["Display=\\SECONDARY1.msdindia.com\"]MSWNET:["SMS_SITE=S00"]\\SECONDARY1.msdindia.com\" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=2 AID0=400 AVAL0="P0100017" AID1=404 AVAL1="["Display=\\SECONDARY1.msdindia.com\"]MSWNET:["SMS_SITE=S00"]\\SECONDARY1.msdindia.com\" SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.43 PM 2856 (0x0B28)
\\?\C:\SMSPKGSIG\P0100017.1 could not be located SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.43 PM 2856 (0x0B28)
Set share security on share \\SECONDARY1.msdindia.com\SCCMContentLib$ SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.43 PM 2856 (0x0B28)
The current user context will be used for connecting to ["Display=\\SECONDARY1.msdindia.com\"]MSWNET:["SMS_SITE=S00"]\\SECONDARY1.msdindia.com\. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.44 PM 2856 (0x0B28)
No network connection is needed to ["Display=\\SECONDARY1.msdindia.com\"]MSWNET:["SMS_SITE=S00"]\\SECONDARY1.msdindia.com\ as this is the local machine. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.44 PM 2856 (0x0B28)
CreateSignatureShare, connecting to DP SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.44 PM 2856 (0x0B28)Signature share exists on distribution point path \\SECONDARY1.msdindia.com\SMSSIG$ SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.44 PM 2856 (0x0B28)
Set share security on share \\SECONDARY1.msdindia.com\SMSSIG$ SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.44 PM 2856 (0x0B28)
Share SMSPKGC$ exists on distribution point \\SECONDARY1.msdindia.com\SMSPKGC$ SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.44 PM 2856 (0x0B28)
Set share security on share \\SECONDARY1.msdindia.com\SMSPKGC$ SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.44 PM 2856 (0x0B28)
Creating, reading and or updating Operations Management server role registry keys for a Distribution Point ... SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.44 PM 2856 (0x0B28)
Set share security on share \\SECONDARY1.msdindia.com\SCCMContentLib$ SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.44 PM 2856 (0x0B28)
Set share security on share \\SECONDARY1.msdindia.com\SCCMContentLib$ SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.44 PM 2856 (0x0B28)
RDC:Successfully created package signature file from \\?\C:\SMSPKGSIG\P0100017.1 to \\SECONDARY1.msdindia.com\SMSSIG$\P0100017.1.tar SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.44 PM 2856 (0x0B28)
Setting permissions on file MSWNET:["SMS_SITE=S00"]\\SECONDARY1.msdindia.com\SMSSIG$\P0100017.1.tar. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.44 PM 2856 (0x0B28)
STATMSG: ID=2330 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=SECONDARY1.msdindia.com SITE=S00 PID=2700 TID=2856 GMTDATE=Mon Nov 18 14:07:44.802 2013 ISTR0="P0100017" ISTR1="["Display=\\SECONDARY1.msdindia.com\"]MSWNET:["SMS_SITE=S00"]\\SECONDARY1.msdindia.com\" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=2 AID0=400 AVAL0="P0100017" AID1=404 AVAL1="["Display=\\SECONDARY1.msdindia.com\"]MSWNET:["SMS_SITE=S00"]\\SECONDARY1.msdindia.com\" SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.44 PM 2856 (0x0B28)
Successfully created/updated the package server in the data source SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.44 PM 2856 (0x0B28)
Package P0100017 does not have a preferred sender. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.45 PM 3688 (0x0E68)
CDistributionSrcSQL::UpdateAvailableVersion PackageID=P0100017, Version=1, Status=2301 SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.45 PM 3688 (0x0E68)
StoredPkgVersion (1) of package P0100017. StoredPkgVersion in database is 1. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.45 PM 3688 (0x0E68)
SourceVersion (1) of package P0100017. SourceVersion in database is 1. SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.45 PM 3688 (0x0E68)
STATMSG: ID=2301 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=SECONDARY1.msdindia.com SITE=S00 PID=2700 TID=3688 GMTDATE=Mon Nov 18 14:07:45.505 2013 ISTR0="Notepad++" ISTR1="P0100017" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="P0100017" SMS_DISTRIBUTION_MANAGER 18-11-2013 7.37.45 PM 3688 (0x0E68)

Once the package is distributed successfully the secondary site DB is updated with the pkgstatus and the same reaches the primary through DRS and then you can see the status changing from in progress to success.

Hope this helps in tracking the flow on distributing a package to secondary server DP

Sudheesh Narayanaswamy

Support Escalation Engineer

 

 

 

Content Distribution to Distribution Points -Part III

$
0
0

Content Distribution to Distribution Points -Part III

From primary site to Remote distribution Point

In 2012 the flow is different from 2007 when a package is distributed to a remote DP. We have the new component PACKAGE TRANSFER MANAGER in 2012. The top level flow is that the distmgr get the request and when it is a remote DP it will ask the package transfer manager to copy the contents to the remote DP.  The flow is below

Once you add the remote DP from console, the notification file is dropped by smsdbmon. Distmgr takes this nofication and start processing the package.
As it is a remote DP the distmgr will create a package transefer job to send compressed copy of package.

The Package transfer Manager updates the status using the state messages along with status messages.

Note: The highlighted items are the checkpoints to understand the flow so that if broken we can easily find it out

smsdbmon.log

Next time check will be at Tuesday 11/19/2013 06:00:24 SMS_DATABASE_NOTIFICATION_MONITOR 19-11-2013 5.00.26 AM 2284 (0x08EC)
RCV: INSERT on PkgNotification for PkgNotify_Add [PR100006  ][72057594037968540] SMS_DATABASE_NOTIFICATION_MONITOR 19-11-2013 5.00.44 AM 2148 (0x0864)
RCV: INSERT on PkgNotification for PkgNotify_Add [PR100006  ][72057594037968541] SMS_DATABASE_NOTIFICATION_MONITOR 19-11-2013 5.00.44 AM 2148 (0x0864)
SND: Dropped C:\Program Files\Microsoft Configuration Manager\inboxes\distmgr.box\PR100006.PKN  [72057594037968540] SMS_DATABASE_NOTIFICATION_MONITOR 19-11-2013 5.00.44 AM 2148 (0x0864)
SND: Dropped C:\Program Files\Microsoft Configuration Manager\inboxes\distmgr.box\PR100006.PKN  [72057594037968541] SMS_DATABASE_NOTIFICATION_MONITOR 19-11-2013 5.00.44 AM 2148 (0x0864)

distmgr.log

Found notification for package 'PR100006' SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.54 AM 2776 (0x0AD8)
Used 0 out of 3 allowed processing threads. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.55 AM 2776 (0x0AD8)
Starting package processing thread, thread ID = 0xB64 (2916) SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.55 AM 2776 (0x0AD8)
Sleep 3600 seconds... SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.55 AM 2776 (0x0AD8)
STATMSG: ID=2300 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=CMLABPR1.CMLAB.COM SITE=PR1 PID=4676 TID=2916 GMTDATE=Tue Nov 19 13:00:55.122 2013 ISTR0="Package1" ISTR1="PR100006" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="PR100006" SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.55 AM 2916 (0x0B64)
No action specified for the package PR100006. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.55 AM 2916 (0x0B64)
Start adding package to server ["Display=\\CMLABWIN71.CMLAB.COM\"]MSWNET:["SMS_SITE=PR1"]\\CMLABWIN71.CMLAB.COM\... SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.55 AM 2916 (0x0B64)
Attempting to add or update a package on a distribution point. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.55 AM 5032 (0x13A8)
Will wait for 1 threads to end. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.55 AM 2916 (0x0B64)
Thread Handle = 0000000000001B94 SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.55 AM 2916 (0x0B64)
STATMSG: ID=2342 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=CMLABPR1.CMLAB.COM SITE=PR1 PID=4676 TID=5032 GMTDATE=Tue Nov 19 13:00:55.359 2013 ISTR0="Package1" ISTR1="["Display=\\CMLABWIN71.CMLAB.COM\"]MSWNET:["SMS_SITE=PR1"]\\CMLABWIN71.CMLAB.COM\" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=2 AID0=400 AVAL0="PR100006" AID1=404 AVAL1="["Display=\\CMLABWIN71.CMLAB.COM\"]MSWNET:["SMS_SITE=PR1"]\\CMLABWIN71.CMLAB.COM\" SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.55 AM 5032 (0x13A8)
The current user context will be used for connecting to ["Display=\\CMLABWIN71.CMLAB.COM\"]MSWNET:["SMS_SITE=PR1"]\\CMLABWIN71.CMLAB.COM\. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.55 AM 5032 (0x13A8)
Successfully made a network connection to \\CMLABWIN71.CMLAB.COM\ADMIN$. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.55 AM 5032 (0x13A8)
Signature share exists on distribution point path \\CMLABWIN71.CMLAB.COM\SMSSIG$ SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.55 AM 5032 (0x13A8)
Share SMSPKGC$ exists on distribution point \\CMLABWIN71.CMLAB.COM\SMSPKGC$ SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.55 AM 5032 (0x13A8)
Creating, reading and or updating Operations Management server role registry keys for a Distribution Point ... SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.56 AM 5032 (0x13A8)
Creating, reading or updating IIS registry key for a distribution point. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.56 AM 5032 (0x13A8)
IISPortsList in the SCF is "80". SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.56 AM 5032 (0x13A8)
IISSSLPortsList in the SCF is "443". SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.56 AM 5032 (0x13A8)
IISWebSiteName in the SCF is "". SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.56 AM 5032 (0x13A8)
IISSSLState in the SCF is 480. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.56 AM 5032 (0x13A8)
CWmiRegistry::GetStr: Failed to get string value SCFSSLPortList SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.56 AM 5032 (0x13A8)
CWmiRegistry::GetStr: Failed to get string value SMSSSLPortList SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.56 AM 5032 (0x13A8)
CWmiRegistry::GetStr: Failed to get string value SMSCWSPortList SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.56 AM 5032 (0x13A8)
CWmiRegistry::GetStr: Failed to get string value SMSCWSSSLPortList SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.57 AM 5032 (0x13A8)
Virtual Directory SMS_DP_SMSPKG$ for the physical path C:\SCCMContentLib already exists. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.57 AM 5032 (0x13A8)
STATMSG: ID=2375 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=CMLABPR1.CMLAB.COM SITE=PR1 PID=4676 TID=5032 GMTDATE=Tue Nov 19 13:00:57.225 2013 ISTR0="["Display=\\CMLABWIN71.CMLAB.COM\"]MSWNET:["SMS_SITE=PR1"]\\CMLABWIN71.CMLAB.COM\" ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=404 AVAL0="["Display=\\CMLABWIN71.CMLAB.COM\"]MSWNET:["SMS_SITE=PR1"]\\CMLABWIN71.CMLAB.COM\" SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.57 AM 5032 (0x13A8)
Creating, reading or updating IIS registry key for a distribution point. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.57 AM 5032 (0x13A8)
IISPortsList in the SCF is "80". SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.57 AM 5032 (0x13A8)
IISSSLPortsList in the SCF is "443". SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.57 AM 5032 (0x13A8)
IISWebSiteName in the SCF is "". SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.57 AM 5032 (0x13A8)
IISSSLState in the SCF is 480. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.57 AM 5032 (0x13A8)
CWmiRegistry::GetStr: Failed to get string value SCFSSLPortList SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.57 AM 5032 (0x13A8)
CWmiRegistry::GetStr: Failed to get string value SMSSSLPortList SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.57 AM 5032 (0x13A8)
CWmiRegistry::GetStr: Failed to get string value SMSCWSPortList SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.57 AM 5032 (0x13A8)
CWmiRegistry::GetStr: Failed to get string value SMSCWSSSLPortList SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.57 AM 5032 (0x13A8)
Virtual Directory SMS_DP_SMSSIG$ for the physical path C:\SMSSIG$ already exists. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.57 AM 5032 (0x13A8)
STATMSG: ID=2375 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=CMLABPR1.CMLAB.COM SITE=PR1 PID=4676 TID=5032 GMTDATE=Tue Nov 19 13:00:57.727 2013 ISTR0="["Display=\\CMLABWIN71.CMLAB.COM\"]MSWNET:["SMS_SITE=PR1"]\\CMLABWIN71.CMLAB.COM\" ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=404 AVAL0="["Display=\\CMLABWIN71.CMLAB.COM\"]MSWNET:["SMS_SITE=PR1"]\\CMLABWIN71.CMLAB.COM\" SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.57 AM 5032 (0x13A8)
Created package transefer job to send compressed copy of package PR100006 to distribution point ["Display=\\CMLABWIN71.CMLAB.COM\"]MSWNET:["SMS_SITE=PR1"]\\CMLABWIN71.CMLAB.COM\.  Transfer root = PR100006.PCK.DLT.0.1. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.58 AM 5032 (0x13A8)
JobID = JENK71H9 SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.58 AM 5032 (0x13A8)
STATMSG: ID=2357 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=CMLABPR1.CMLAB.COM SITE=PR1 PID=4676 TID=5032 GMTDATE=Tue Nov 19 13:00:58.392 2013 ISTR0="PR100006" ISTR1="["Display=\\CMLABWIN71.CMLAB.COM\"]MSWNET:["SMS_SITE=PR1"]\\CMLABWIN71.CMLAB.COM\" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=2 AID0=400 AVAL0="PR100006" AID1=404 AVAL1="["Display=\\CMLABWIN71.CMLAB.COM\"]MSWNET:["SMS_SITE=PR1"]\\CMLABWIN71.CMLAB.COM\" SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.58 AM 5032 (0x13A8)
Performing cleanup prior to returning. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.58 AM 5032 (0x13A8)
Cancelling network connection to \\CMLABWIN71.CMLAB.COM\ADMIN$. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.58 AM 5032 (0x13A8)
DP thread with array index 0 ended. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.58 AM 2916 (0x0B64)
DP thread with thread handle 0000000000001B94 and thread ID 5032 ended. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.58 AM 2916 (0x0B64)
Updating package info for package PR100006 SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.58 AM 2916 (0x0B64)
Package PR100006 does not have a preferred sender. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.58 AM 2916 (0x0B64)
The package and/or program properties for package PR100006 have not changed,  need to determine which site(s) need updated package info. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.58 AM 2916 (0x0B64)
StoredPkgVersion (1) of package PR100006. StoredPkgVersion in database is 1. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.58 AM 2916 (0x0B64)
SourceVersion (1) of package PR100006. SourceVersion in database is 1. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.58 AM 2916 (0x0B64)
STATMSG: ID=2301 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=CMLABPR1.CMLAB.COM SITE=PR1 PID=4676 TID=2916 GMTDATE=Tue Nov 19 13:00:58.830 2013 ISTR0="Package1" ISTR1="PR100006" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="PR100006" SMS_DISTRIBUTION_MANAGER 19-11-2013 5.00.58 AM 2916 (0x0B64)

Packagexfermgr

========  Starting Processing Cycle ( 19-11-2013 05:01:08 Pacific Standard Time) ======== SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.08 AM 3844 (0x0F04)
========  Processing Jobs  ======== SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.08 AM 3844 (0x0F04)
Activating job JENK71H9, for package PR100006 version 1, Distribution point :  CMLABWIN71.CMLAB.COM, Priority: 2 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.09 AM 3844 (0x0F04)
    Need to send package file (PR100006.PCK.DLT.0.1) SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.09 AM 3844 (0x0F04)
Updating job JENK71H9 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.10 AM 3844 (0x0F04)
    Created new send request ID:  20003PR1 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.10 AM 3844 (0x0F04)
Job count is 1. SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.23 AM 3844 (0x0F04)
====  Found 1 send requests in outbox C:\Program Files\Microsoft Configuration Manager\inboxes\PkgTransferMgr.box\requests. SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.23 AM 3844 (0x0F04)
Send Request 20003PR1~    Job:        JENK71H9  Destination:  CMLABWIN71.CMLAB.COM~    State:      Pending   Status:               Action:    None~    Total size: 0       k Remaining: 0       k Heartbeat: 05:01~    Start:      12:00     Finish:    12:00      Retry:     05:01~    SWD PkgID:  PR100006  SWD Pkg Version: 1 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.23 AM 3844 (0x0F04)
====  Checking send requests for outbox C:\Program Files\Microsoft Configuration Manager\inboxes\PkgTransferMgr.box\requests. SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.23 AM 3844 (0x0F04)
    Checking unscheduled send request 20003PR1 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.23 AM 3844 (0x0F04)
========  Finished Processing Cycle ( 19-11-2013 05:01:24 Pacific Standard Time) ======== SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.24 AM 3844 (0x0F04)

Found send request.  ID: 20003PR1, Destination: CMLABWIN71.CMLAB.COM SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.28 AM 2864 (0x0B30)
We have 0 active connections SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.28 AM 2864 (0x0B30)
Checking for sitesystem-specific sending capacity.  Used 0 out of 5. SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.28 AM 2864 (0x0B30)
We have 0 active connections SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.28 AM 2864 (0x0B30)
Created sending thread (Thread ID = 0x1204) SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.28 AM 2864 (0x0B30)

Sending thread starting SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.28 AM 4612 (0x1204)
Package file = PR100006.PCK.DLT.0.1 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.28 AM 4612 (0x1204)
Performing preactions package PR100006, Distribution point CMLABWIN71.CMLAB.COM SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.28 AM 4612 (0x1204)
Sending legacy content PR100006.1 for package PR100006 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.28 AM 4612 (0x1204)
Redistribute=0, Related= SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.28 AM 4612 (0x1204)
Created/opened the remote file \\CMLABWIN71.CMLAB.COM\SMS_DP$\PR100006.1-93596791AF1B0225B1E0DE36E08E3673A523A89C037988AD8C2D1840DF9E84F9 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.28 AM 4612 (0x1204)
Sending Started [C:\SCCMContentLib\FileLib\9359\93596791AF1B0225B1E0DE36E08E3673A523A89C037988AD8C2D1840DF9E84F9] SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.28 AM 4612 (0x1204)
Attempt to write 5120 bytes to \\CMLABWIN71.CMLAB.COM\SMS_DP$\PR100006.1-93596791AF1B0225B1E0DE36E08E3673A523A89C037988AD8C2D1840DF9E84F9 at position 0 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.28 AM 4612 (0x1204)
Wrote 5120 bytes to \\CMLABWIN71.CMLAB.COM\SMS_DP$\PR100006.1-93596791AF1B0225B1E0DE36E08E3673A523A89C037988AD8C2D1840DF9E84F9 at position 0 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.28 AM 4612 (0x1204)
Attempt to write 102400 bytes to \\CMLABWIN71.CMLAB.COM\SMS_DP$\PR100006.1-93596791AF1B0225B1E0DE36E08E3673A523A89C037988AD8C2D1840DF9E84F9 at position 5120 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.28 AM 4612 (0x1204)
Wrote 102400 bytes to \\CMLABWIN71.CMLAB.COM\SMS_DP$\PR100006.1-93596791AF1B0225B1E0DE36E08E3673A523A89C037988AD8C2D1840DF9E84F9 at position 5120 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.29 AM 4612 (0x1204)
Attempt to write 738176 bytes to \\CMLABWIN71.CMLAB.COM\SMS_DP$\PR100006.1-93596791AF1B0225B1E0DE36E08E3673A523A89C037988AD8C2D1840DF9E84F9 at position 107520 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.29 AM 4612 (0x1204)
Wrote 738176 bytes to \\CMLABWIN71.CMLAB.COM\SMS_DP$\PR100006.1-93596791AF1B0225B1E0DE36E08E3673A523A89C037988AD8C2D1840DF9E84F9 at position 107520 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.29 AM 4612 (0x1204)
We have 1 active connections SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.33 AM 2864 (0x0B30)
Checking for sending capacity.  Used 1 out of 15. SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.33 AM 2864 (0x0B30)

Waiting for new/rescheduled send requests, Maximum Sleep Time = 60 minutes SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.33 AM 2864 (0x0B30)
Sending completed [C:\SCCMContentLib\FileLib\9359\93596791AF1B0225B1E0DE36E08E3673A523A89C037988AD8C2D1840DF9E84F9] SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.34 AM 4612 (0x1204)
Completed post-actions for remote DP CMLABWIN71.CMLAB.COM SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.36 AM 4612 (0x1204)
Sending completed successfully SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.36 AM 4612 (0x1204)

Deleting remote file 20003PR1.PCK SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.36 AM 4612 (0x1204)
Notifying pkgXferJobMgr SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.36 AM 4612 (0x1204)
COutbox::TakeNextToSend(pszSiteCode) SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.36 AM 4612 (0x1204)
Finished sending SWD package PR100006 version 1 to distribution point CMLABWIN71.CMLAB.COM SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.36 AM 4612 (0x1204)
STATMSG: ID=8200 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_PACKAGE_TRANSFER_MANAGER" SYS=CMLABPR1.CMLAB.COM SITE=PR1 PID=4676 TID=4612 GMTDATE=Tue Nov 19 13:01:36.429 2013 ISTR0="PR100006" ISTR1="1" ISTR2="CMLABWIN71.CMLAB.COM" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=2 AID0=400 AVAL0="PR100006" AID1=410 AVAL1="1" SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.36 AM 4612 (0x1204)
Sent status to the distribution manager for pkg PR100006, version 1, status 3 and distribution point ["Display=\\CMLABWIN71.CMLAB.COM\"]MSWNET:["SMS_SITE=PR1"]\\CMLABWIN71.CMLAB.COM\ SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.36 AM 4612 (0x1204)
STATMSG: ID=8210 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_PACKAGE_TRANSFER_MANAGER" SYS=CMLABPR1.CMLAB.COM SITE=PR1 PID=4676 TID=4612 GMTDATE=Tue Nov 19 13:01:36.826 2013 ISTR0="PR100006" ISTR1="1" ISTR2="CMLABWIN71.CMLAB.COM" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=3 AID0=400 AVAL0="PR100006" AID1=410 AVAL1="1" AID2=404 AVAL2="["Display=\\CMLABWIN71.CMLAB.COM\"]MSWNET:["SMS_SITE=PR1"]\\CMLABWIN71.CMLAB.COM\" SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.36 AM 4612 (0x1204)
StateTable::CState::Handle - (8210:1 2013-11-19 13:01:36.826+00:00) >> (0:0 2013-11-18 12:39:08.445+00:00) SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.36 AM 4612 (0x1204)
CStateMsgReporter::DeliverMessages - Queued message: TT=1401 TIDT=0 TID='7F6041B0-3EE2-427F-AB72-B89610A6331C' SID=8210 MUF=0 PCNT=2, P1='PR1' P2='2013-11-19 13:01:36.826+00:00' P3='' P4='' P5='' SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.36 AM 4612 (0x1204)
CStateMsgReporter::DeliverMessages - Created state message file: C:\Program Files\Microsoft Configuration Manager\inboxes\auth\statesys.box\incoming\qa2ma8pt.SMX SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.38 AM 4612 (0x1204)
Successfully send state change notification 7F6041B0-3EE2-427F-AB72-B89610A6331C SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.38 AM 4612 (0x1204)
Sending thread complete SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.38 AM 4612 (0x1204)
We have 0 active connections SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.38 AM 2864 (0x0B30)
Checking for sending capacity.  Used 0 out of 15. SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.38 AM 2864 (0x0B30)
COutbox::TakeNextToSend(pszSiteCode) SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.38 AM 2864 (0x0B30)
No (more) send requests found to process. SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.38 AM 2864 (0x0B30)
Waiting for new/rescheduled send requests, Maximum Sleep Time = 60 minutes SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.38 AM 2864 (0x0B30)
DeleteNotificationFiles deleted 1 *.DWS file(s) this cycle. SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.46 AM 3844 (0x0F04)

========  Starting Processing Cycle ( 19-11-2013 05:01:46 Pacific Standard Time) ======== SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.46 AM 3844 (0x0F04)
========  Processing Jobs  ======== SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.46 AM 3844 (0x0F04)
Updating job JENK71H9 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.46 AM 3844 (0x0F04)
Job count is 1. SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.57 AM 3844 (0x0F04)
====  Found 1 send requests in outbox \\CMLABPR1.CMLAB.COM\SMS_PR1\inboxes\PkgTransferMgr.box\outboxes\LAN. SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.57 AM 3844 (0x0F04)
Send Request 20003PR1~    Job:        JENK71H9  Destination:  CMLABWIN71.CMLAB.COM~    State:      Working   Status:    Success    Action:    None~    Total size: 0       k Remaining: 0       k Heartbeat: 05:01~    Start:      05:01     Finish:    05:01      Retry:          ~    SWD PkgID:  PR100006  SWD Pkg Version: 1 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.58 AM 3844 (0x0F04)
====  Checking send requests for outbox \\CMLABPR1.CMLAB.COM\SMS_PR1\inboxes\PkgTransferMgr.box\outboxes\LAN. SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.58 AM 3844 (0x0F04)
    Checking send request 20003PR1 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.58 AM 3844 (0x0F04)
        Sending completed (0 bytes/sec). SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.58 AM 3844 (0x0F04)
========  Finished Processing Cycle ( 19-11-2013 05:01:58 Pacific Standard Time) ======== SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.58 AM 3844 (0x0F04)
Sleeping for maximum 10000 seconds. SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.01.58 AM 3844 (0x0F04)
========  Starting Processing Cycle ( 19-11-2013 05:02:08 Pacific Standard Time) ======== SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.02.08 AM 3844 (0x0F04)
========  Processing Jobs  ======== SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.02.08 AM 3844 (0x0F04)
Updating job JENK71H9 SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.02.09 AM 3844 (0x0F04)
    Send request was PENDING, now ACTIVE. SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.02.10 AM 3844 (0x0F04)
    Send request has successfully completed. SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.02.10 AM 3844 (0x0F04)
    <JOB STATUS - COMPLETE> SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.02.10 AM 3844 (0x0F04)
    Deleting send request with ID: 20003PR1. SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.02.10 AM 3844 (0x0F04)
    Deleted job JENK71H9. SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.02.10 AM 3844 (0x0F04)
We have 0 active connections SMS_PACKAGE_TRANSFER_MANAGER 19-11-2013 5.02.15 AM 2864 (0x0B30)

One the remote DP you can see

smsdpprov.log

[8C4][Tue 11/19/2013 18:31:36]:Conent 'PR100006.1' for package 'PR100006' has been added to content library successfully

distmgr.log

Processing incoming file C:\Program Files\Microsoft Configuration Manager\inboxes\distmgr.box\INCOMING\FXIYWOCM.STA. SMS_DISTRIBUTION_MANAGER 19-11-2013 5.01.41 AM 328 (0x0148)
Processing STA for regular DP ["Display=\\CMLABWIN71.CMLAB.COM\"]MSWNET:["SMS_SITE=PR1"]\\CMLABWIN71.CMLAB.COM\ SMS_DISTRIBUTION_MANAGER 19-11-2013 5.01.41 AM 328 (0x0148)
Processing status update for package PR100006 SMS_DISTRIBUTION_MANAGER 19-11-2013 5.01.41 AM 328 (0x0148)
Successfully updated the package server status for ["Display=\\CMLABWIN71.CMLAB.COM\"]MSWNET:["SMS_SITE=PR1"]\\CMLABWIN71.CMLAB.COM\ for package PR100006, Status 3 SMS_DISTRIBUTION_MANAGER 19-11-2013 5.01.41 AM 328 (0x0148)
STATMSG: ID=2330 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=CMLABPR1.CMLAB.COM SITE=PR1 PID=4676 TID=328 GMTDATE=Tue Nov 19 13:01:41.576 2013 ISTR0="PR100006" ISTR1="["Display=\\CMLABWIN71.CMLAB.COM\"]MSWNET:["SMS_SITE=PR1"]\\CMLABWIN71.CMLAB.COM\" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=2 AID0=400 AVAL0="PR100006" AID1=404 AVAL1="["Display=\\CMLABWIN71.CMLAB.COM\"]MSWNET:["SMS_SITE=PR1"]\\CMLABWIN71.CMLAB.COM\" SMS_DISTRIBUTION_MANAGER 19-11-2013 5.01.41 AM 328 (0x0148)
StateTable::CState::Handle - (2330:1 2013-11-19 13:01:41.576+00:00) >> (2331:1 2013-11-18 12:49:08.559+00:00) SMS_DISTRIBUTION_MANAGER 19-11-2013 5.01.41 AM 328 (0x0148)
CStateMsgReporter::DeliverMessages - Queued message: TT=1401 TIDT=0 TID='7F6041B0-3EE2-427F-AB72-B89610A6331C' SID=2330 MUF=0 PCNT=2, P1='PR1' P2='2013-11-19 13:01:41.576+00:00' P3='' P4='' P5='' SMS_DISTRIBUTION_MANAGER 19-11-2013 5.01.41 AM 328 (0x0148)
CStateMsgReporter::DeliverMessages - Created state message file: C:\Program Files\Microsoft Configuration Manager\inboxes\auth\statesys.box\incoming\pz2r16zj.SMX SMS_DISTRIBUTION_MANAGER 19-11-2013 5.01.41 AM 328 (0x0148)
Successfully send state change notification 7F6041B0-3EE2-427F-AB72-B89610A6331C SMS_DISTRIBUTION_MANAGER 19-11-2013 5.01.41 AM 328 (0x0148)
Successfully delete package status file C:\Program Files\Microsoft Configuration Manager\inboxes\distmgr.box\INCOMING\FXIYWOCM.STA SMS_DISTRIBUTION_MANAGER 19-11-2013 5.01.41 AM 328 (0x0148)

 

Hope this helps

Sudheesh Narayanaswamy

Support Escalation Engineer


Collect Hardware Inventory of Local Admins

$
0
0


We had requirements on to collect the information of only local Admins.
We already had blogs which were helping to find information of all local groups.
http://mnscug.org/blogs/sherry-kissinger/244-all-members-of-all-local-groups-configmgr-2012 .
http://myitforum.com/cs2/blogs/skissinger/archive/2010/04/25/report-on-all-members-of-all-local-groups.aspx
In the interest of collecting less data (Save space in DB) I modified the same to collect only Local admins
Steps
1) Import the Cab file

  •  Take the the attached file--> WMI Framework For Local Administrator
  •  In your ConfigMgr 12 console, on Assets and Compliance, Compliance Settings
  •  Right-click on "Configuration Baseline"  and Import this file (http://technet.microsoft.com/en-us/library/hh691016.aspx )
  •  Once done deploy the baseline to the collection of machines from which you need.(http://technet.microsoft.com/en-us/library/hh219289.aspx )

2) Import the MOF file so that SMS_DEF is updated in 2012 this is how you do

  •  On the console, Administration  Client Settings   right-click 'Default Client Settings'and go to properties.
  •   Select Hardware Inventory, then on the right "Set Classes.
  •  Click Import and browse to the localadmin.mof file you saved.

  Content of MOF file
========================================
[ SMS_Report (TRUE),
  SMS_Group_Name ("LocalAdmins"),
  SMS_Class_ID ("MICROSOFT|LocalAdmins|1.0"),
  Namespace ("root\\\\cimv2") ]
class Win32_LocalAdmins : SMS_Class_Template
{
    [SMS_Report (TRUE), key ] string Account;
    [SMS_Report (TRUE)      ] string Domain;
    [SMS_Report (TRUE), key ] string Name;
    [SMS_Report (TRUE)      ] string Type;
};
====================================================

The script use to create a WMI entry is also available in the Zip file uploaded.

=================================

Sudheesh Narayanaswamy

This posting /Script  is provided "AS IS" with no warranties and confers no rights

PowerShell Script to Delete a specific update from WSUS

$
0
0

 

At time troubleshooting on cases we had to delete a specific update from the WSUS and we had done it through deleting it from database which is not a safe method.

This is also helpful at times when you want to remove a specific update and re-import the same from catalogue without a full clean up and sync

================================================================

#Change server name and port number and $True if it is on SSL
[String]$updateServer1 = "CMCAS"
[Boolean]$useSecureConnection = $False
[Int32]$portNumber =8530
#updateid (GUID of the update)to delete
$deleteupdate = "033189f3-6004-48f2-82f4-8d7fca20276d"
# Load .NET assembly
[void][reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")
# Connect to WSUS Server
$updateServer = [Microsoft.UpdateServices.Administration.AdminProxy]::getUpdateServer($updateServer1,$useSecureConnection,$portNumber)
write-host "<<<Connected sucessfully >>>" -foregroundcolor "yellow"
$updatescope = New-Object Microsoft.UpdateServices.Administration.UpdateScope
$u=$updateServer.GetUpdates($updatescope )
foreach ($u1 in $u )
{
$a=New-Object Microsoft.UpdateServices.Administration.UpdateRevisionId
$a=$u1.id

if ($a.UpdateId -eq $deleteupdate)

     write-host "Deleting update " $a.UpdateId "..."
      $updateServer.DeleteUpdate($a.UpdateId)
}

}

trap
{
write-host "Error Occurred"
write-host "Exception Message: "
write-host $_.Exception.Message
write-host $_.Exception.StackTrace
exit
}
# EOF

==============================================================

 

This posting /Script  is provided "AS IS" with no warranties and confers no rights

How to export the DCM baseline from one hierarchy and import to another in a bulk

$
0
0

 

we have scenarios where we might be needs to create and test base lines in lab and import them to production. We can use migration but if only base lines are needed to be imported these are the steps. 

 

How  to export

=============

 

1.       First  need to launch the PowerShell for configuration manager

 

                                   clip_image002

 

2.       Save the below script as a .ps1 file

 

Script to export

=============

 

$data = Get-CMBaseline

$path = "<Location To save the cab file >"

foreach ($l in $data)

{

        $p= $path + $l.LocalizedDisplayName + ".cab"

        write-host    Exporting Base line   $l.LocalizedDisplayName to Path  $p ....

        Export-CMBaseline -Name $l.LocalizedDisplayName -Path   $p

}

  write-host Export finished. Please check the path  $path

 

===========================

3.       Make sure that you set the execution policy to unrestricted  (Set-ExecutionPolicy Unrestricted)

4.  Change the path in the script  (eg : $path="\\CMSITESERVER\ExportCM\")

5.       Once executed from the PowerShell it will start exporting one by one and once done it will give you the finished command.  (Time would vary as per the no of baselines and CI you have)

 

                                    clip_image004

 

 

Now copy the data in the path above to the Configuration Manager 2012 R2 sever where you need to import

 

How  to import

=============

1.       Save the below script as a .ps1 file

Script to export

==============

$path = "<Location where cab files are stored>"

$data= Get-ChildItem -Path $path

foreach ($l in $data)

{

Write-Host Importing $l.FullName .....

Import-CMBaseline -FileName $l.FullName -DuplicateWhileImporting -Force

}

write-host --------------Import Finished----------------

 

2.       Launch the Configuration Manger 2012 R2 PowerShell and then

3.       Make sure that you set the execution policy to unrestricted  (Set-ExecutionPolicy Unrestricted)

4.  Change the path in the script (eg: $path="C:\temp\ExportCM\" )

5.       Execute the import script

 

clip_image001

 

 

 

Once this  done all will be imported

 

This posting /Script  is provided "AS IS" with no warranties and confers no rights

 

Connect to WSUS server from PowerShell

$
0
0

At time while troubleshooting SUP (software update point)in SCCM we get error in WCM.log that we are unable to connect to WSUS server. Most of the time turning out to be proxy or a network issue,

This script will help you connect to the WSUS and let us know if the connection is successful or else will help us with the exception information. hence we could isolate the issue out of SCCM to understand if it is environment or a configuration issue in SCCM

Many a times I have found this handy

#Change server name and port number and $True if it is on SSL
[String]$updateServer1 = "CMCAS"
[Boolean]$useSecureConnection = $False
[Int32]$portNumber =
8530
# Load .NET assembly
[void][reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")
# Connect to WSUS Server
$updateServer = [Microsoft.UpdateServices.Administration.AdminProxy]::getUpdateServer($updateServer1,$useSecureConnection,$portNumber)
write-host "<<<Connected sucessfully >>>" -foregroundcolor "yellow"
trap
{
write-host "Error Occurred"
write-host "Exception Message: "
write-host $_.Exception.Message
write-host $_.Exception.StackTrace
exit
}

# EOF

On success you would get this

image

Or error exception

image

This posting /Script  is provided "AS IS" with no warranties and confers no rights

How to troubleshoot Alert\Mail notification in SCCM 2012

$
0
0

From SCCM 2012 we have the alert and notification feature. Till Sp1 the mail notification was restricted to endpoint protection but from Sp1 we have this for all the component which can create alert. Since it is least used feature at times while troubleshooting we have lack of articles which help us to understand the flow.

In this article what we are trying to see is how can we configure and test the alert and notification feature.

When you configure the Email notification you have a option to test if we can send a mail,

Please understand that the mail will be send from the top of the hierarchy. The logs which logs the information is NotiCtrl.log

The mail is send by the top most sever in the Hierarchy. (ie The central administration site or Primary when we have a primary standalone server)

Whenever an alert is generated and we have a subscription associated to this then the SMS_ALERT_NOTIFICATION component will trigger a mail as per the subscription.

How to configure the alert and configure subscription is there in this link

https://technet.microsoft.com/en-in/library/hh427334.aspx

Now when you click on Test SMTP server this is what is happening

NotiCtrl.log

[NotiCtrl]: NOTIFY job manager ( 1, 0, C:\Program Files\Microsoft Configuration Manager\inboxes\notictrl.box\3.TST ).    SMS_ALERT_NOTIFICATION    3/3/2015 1:09:32 PM    3836 (0x0EFC)
Testing SMTP connection, server name: cmsecondary1.Contoso.com, port: 25    SMS_ALERT_NOTIFICATION    3/3/2015 1:09:32 PM    3836 (0x0EFC)
Impersonation is about to start ...    SMS_ALERT_NOTIFICATION    3/3/2015 1:09:32 PM    3836 (0x0EFC)
Impersonation succeed, current user identity is: contoso\administrator    SMS_ALERT_NOTIFICATION    3/3/2015 1:09:32 PM    3836 (0x0EFC)
Impersonation is reverted.    SMS_ALERT_NOTIFICATION    3/3/2015 1:09:33 PM    3836 (0x0EFC)
Test SMTP connection succeeded. Server name: cmsecondary1.Contoso.com, port: 25, authentication type: Other    SMS_ALERT_NOTIFICATION    3/3/2015 1:09:33 PM    3836 (0x0EFC)
[NotiCtrl]: EVENT raised ( 1, 0, C:\Program Files\Microsoft Configuration Manager\inboxes\notictrl.box\3.TST ).    SMS_ALERT_NOTIFICATION    3/3/2015 1:09:34 PM    3836 (0x0EFC)
[NotiCtrl]: 1 instruction file processed.    SMS_ALERT_NOTIFICATION    3/3/2015 1:09:34 PM    3836 (0x0EFC)

This is done using the WMI methods under the provider class SMS_Subscription. (GetTestSmtpConnectionResult Method and TestSmtpConnection Method)

Once this is done we are sure that the server can send Emails.

On the database you can see the result on the test

select * from [dbo].[AlertEmailTestConnection]

 

image

Now assuming that we have a subscription lets see what happens when an alert is created.

Alert ID for the alert I tried was 1.

 image

Once we have a update in the Alert the smsdbmon will drop the trigger file

smsdbmon .log

RCV: UPDATE on Alert for SMS_Alert_ins_upd_SMSProv [1  ][18336]    SMS_DATABASE_NOTIFICATION_MONITOR    3/3/2015 1:35:59 PM    328 (0x0148)
RCV: UPDATE on AlertForTrigger for SMS_Alert_upd_SMSProv_AlertForTrigger [1  ][18337]    SMS_DATABASE_NOTIFICATION_MONITOR    3/3/2015 1:35:59 PM    328 (0x0148)
RCV: UPDATE on AlertForTrigger for AlertForTrigger_ALE [1  ][18338]    SMS_DATABASE_NOTIFICATION_MONITOR    3/3/2015 1:35:59 PM    328 (0x0148)
SND: Dropped C:\Program Files\Microsoft Configuration Manager\inboxes\notictrl.box\1.ALE  [18338]    SMS_DATABASE_NOTIFICATION_MONITOR    3/3/2015 1:36:00 PM    328 (0x0148)
SQL>>>delete from TableChangeNotifications where RecordID in (18336,18337,18338)    SMS_DATABASE_NOTIFICATION_MONITOR    3/3/2015 1:36:00 PM    328 (0x0148)

NotiCtrl.log

[NotiCtrl]: NOTIFY job manager ( 1, 0, C:\Program Files\Microsoft Configuration Manager\inboxes\notictrl.box\1.ALE ).    SMS_ALERT_NOTIFICATION    3/3/2015 1:26:11 PM    3836 (0x0EFC)
Added new job, alert ID: 1, locale ID: 1033    SMS_ALERT_NOTIFICATION    3/3/2015 1:26:11 PM    3836 (0x0EFC)
[NotiCtrl]: EVENT raised ( 1, 0, C:\Program Files\Microsoft Configuration Manager\inboxes\notictrl.box\1.ALE ).    SMS_ALERT_NOTIFICATION    3/3/2015 1:26:11 PM    3836 (0x0EFC)
[NotiCtrl]: 1 instruction file processed.    SMS_ALERT_NOTIFICATION    3/3/2015 1:26:11 PM    3836 (0x0EFC)
[NotiCtrl]:    Alert Notification Manager has received a new job request    SMS_ALERT_NOTIFICATION    3/3/2015 1:26:11 PM    3836 (0x0EFC)
[NotiCtrl]: WAIT 3 event(s) for 5 minute(s) and 0 second(s).    SMS_ALERT_NOTIFICATION    3/3/2015 1:26:11 PM    3836 (0x0EFC)
Use custom subject template for alert type 24    SMS_ALERT_NOTIFICATION    3/3/2015 1:26:12 PM    1860 (0x0744)
Use custom body template for alert type 24    SMS_ALERT_NOTIFICATION    3/3/2015 1:26:12 PM    1860 (0x0744)
Impersonation is about to start ...    SMS_ALERT_NOTIFICATION    3/3/2015 1:26:12 PM    1860 (0x0744)
Impersonation succeed, current user identity is: contoso\administrator    SMS_ALERT_NOTIFICATION    3/3/2015 1:26:12 PM    1860 (0x0744)
Impersonation is reverted.    SMS_ALERT_NOTIFICATION    3/3/2015 1:26:30 PM    1860 (0x0744)
Successfully sending email to: administrator@contoso.com for Alert: 1    SMS_ALERT_NOTIFICATION    3/3/2015 1:26:30 PM    1860 (0x0744)

image

if you don't have subscription the NotiCtrl.log would look like this

[NotiCtrl]: NOTIFY job manager ( 1, 0, C:\Program Files\Microsoft Configuration Manager\inboxes\notictrl.box\1.ALE ).    SMS_ALERT_NOTIFICATION    3/3/2015 1:47:32 PM    3836 (0x0EFC)
[NotiCtrl]: EVENT raised ( 1, 0, C:\Program Files\Microsoft Configuration Manager\inboxes\notictrl.box\1.ALE ).    SMS_ALERT_NOTIFICATION    3/3/2015 1:47:32 PM    3836 (0x0EFC)
[NotiCtrl]: 1 instruction file processed.    SMS_ALERT_NOTIFICATION    3/3/2015 1:47:32 PM    3836 (0x0EFC)
[NotiCtrl]: WAIT 3 event(s) for 5 minute(s) and 0 second(s).    SMS_ALERT_NOTIFICATION    3/3/2015 1:47:32 PM    3836 (0x0EFC)

This table will tell you the information of the alerts subscription send.

select * from [dbo].[AlertEmailNotification]

image

Hope this information will be useful in troubleshooting alerts and subscriptions in Configuration Manager 2012

Sudheesh N

This posting /Script  is provided "AS IS" with no warranties and confers no rights

Viewing all 81 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>