отладка ConfigMgr 2012 и расширенное логирование клиентов

Все уже год назад написали об этом, а у меня только руки дошли.

Скрытая возможность ConfigMgr 2012 — показ дополнительной информации в консоли. В свойствах ярлыка после пути к консоли добавляем SMS:DebugView:

2

В консоли появляется новая рабочая область Tools:

3

 

Теперь можно писать WQL-запросы или опрашивать WMI через графическую оболочку:

4

5

Можно просматривать ряд свойств объектов, которые могут быть полезны при разработке через SDK или устранении неполадок. Выбираем нужные объекты (пакеты, запросы, коллекции, etc), переключаемся в режим отладки:

6 7

Отладка клиентов заключается в расширенном логировании. Для этого меняем значение параметра LogLevel на 0 в HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\CCM\Logging\@Global:

8

Создаём ключ реестра DebugLogging в HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\CCM\Logging, создаём параметр Enabled со значением True:

9

Перезапускаем службу SMS Agent Host и смотрим расширенные логи. Вот, например, куски MP_Hinv.log (приём отчёта по инвентаризации от клиента) для сравнения:

Hinv Retry: ******************* Start of Task *********************
Hinv Sax: loading E:\Program Files\Microsoft Configuration Manager\inboxes\auth\dataldr.box\HinvAttachment3GUB7RLP.xml
Delta report from client SCCMCAS, action description = Hardware
Hinv Task: Translate report attachment to file «E:\Program Files\Microsoft Configuration Manager\inboxes\auth\dataldr.box\HBG5EO68.MIF» returned 0
Hinv Retry: ******************* End of Task *********************

—————————————————-

Hinv Retry: ******************* Start of Task *********************
Hinv Task: Client authentication level is TRUST
Hinv: Loading global mapping table from the SQL data base.
Hinv: Loading hinv class definition policy timestamp from database: Server: sccm12.firma.local, DB: CM_QQQ
Hinv: SMS_Units(NOIDMIF_Field) on property ArchitectureName
Hinv: SMS_Units(NOIDMIF_Field) on property AttributeKeyValues
Hinv: SMS_Units(NOIDMIF_Field) on property ComponentName
Hinv: SMS_Units(NOIDMIF_Field) on property MIFAttributesVerbatim
Hinv: SMS_Units(NOIDMIF_Field) on property MIFClassVerbatim
Hinv: SMS_Units(NOIDMIF_Field) on property MIFGroupVerbatim
Hinv: SMS_Units(NOIDMIF_Field) on property MIFKeysVerbatim
Hinv: Loaded class definition map; DB policy timestamp = 2013-01-16 22:43:13.000
Hinv: Normalized DB policy timestamp: 20130116224313.000000+000.
Hinv: Inventory Mapping Table loaded.
Hinv: temp output file is E:\Program Files\Microsoft Configuration Manager\inboxes\auth\dataldr.box\D3WA46OK.HTMP
Hinv Sax: loading E:\Program Files\Microsoft Configuration Manager\inboxes\auth\dataldr.box\HinvAttachment262NL15A.xml
Mp invalid unicode character found: after decoding len=14, «Inventory Data»
Inv: setting the thread LCID to 1033
Delta report from client SCCM12, action description = Hardware
Hinv: processing report header for machine SCCM12
Hinv: Client’s InventoryAction time stamp is 20130116224313.000000+000
Hinv Sax: Inserting class instance CCM_SystemDevices, attr=Deleted
Mp invalid unicode character found: after decoding len=80, «Microsoft Office Live Meeting 2007 Document Writer (redirected 5) (redirected 2)»
Hinv Sax: Inserting class instance CCM_SystemDevices, attr=Deleted
Mp invalid unicode character found: after decoding len=54, «Отправить в OneNote 2013 (redirected 5) (redirected 2)»
Hinv Sax: Inserting class instance CCM_SystemDevices, attr=Deleted
Mp invalid unicode character found: after decoding len=44, «Microsoft XPS Document Writer (redirected 2)»
Hinv Sax: Inserting class instance CCM_SystemDevices, attr=Deleted
Mp invalid unicode character found: after decoding len=33, «Fax (redirected 5) (redirected 2)»
Hinv Sax: Inserting class instance CCM_SystemDevices, attr=Deleted
Mp invalid unicode character found: after decoding len=44, «pdfFactory Pro (redirected 5) (redirected 2)»
Hinv Sax: Inserting class instance CCM_SystemDevices, attr=Deleted
Mp invalid unicode character found: after decoding len=59, «Microsoft XPS Document Writer (redirected 5) (redirected 2)»
Hinv Sax: Inserting class instance Win32_PnpEntity, attr=Deleted
Mp invalid unicode character found: after decoding len=80, «Microsoft Office Live Meeting 2007 Document Writer (redirected 5) (redirected 2)»
Hinv Sax: Inserting class instance Win32_PnpEntity, attr=Deleted
Mp invalid unicode character found: after decoding len=54, «Отправить в OneNote 2013 (redirected 5) (redirected 2)»
Mp invalid unicode character found: after decoding len=44, «Microsoft XPS Document Writer (redirected 2)»
Mp invalid unicode character found: after decoding len=33, «Fax (redirected 5) (redirected 2)»
Mp invalid unicode character found: after decoding len=44, «pdfFactory Pro (redirected 5) (redirected 2)»
Mp invalid unicode character found: after decoding len=59, «Microsoft XPS Document Writer (redirected 5) (redirected 2)»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=14, «Server Manager»
Mp invalid unicode character found: after decoding len=37, «6.2.9200.16384 (win8_rtm.120725-1247)»
Mp invalid unicode character found: after decoding len=36, «Microsoft® Windows® Operating System»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=28, «Microsoft Management Console»
Mp invalid unicode character found: after decoding len=37, «6.2.9200.16384 (win8_rtm.120725-1247)»
Mp invalid unicode character found: after decoding len=36, «Microsoft® Windows® Operating System»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=33, «5.00.7804.1000 (SCCM.121121-2315)»
Mp invalid unicode character found: after decoding len=40, «System Center 2012 Configuration Manager»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=31, «Windows host process (Rundll32)»
Mp invalid unicode character found: after decoding len=37, «6.2.9200.16384 (win8_rtm.120725-1247)»
Mp invalid unicode character found: after decoding len=36, «Microsoft® Windows® Operating System»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=33, «5.00.7804.1000 (SCCM.121121-2315)»
Mp invalid unicode character found: after decoding len=40, «System Center 2012 Configuration Manager»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=15, «Registry Editor»
Mp invalid unicode character found: after decoding len=37, «6.2.9200.16384 (win8_rtm.120725-1247)»
Mp invalid unicode character found: after decoding len=36, «Microsoft® Windows® Operating System»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=33, «5.00.7804.1000 (SCCM.121121-2315)»
Mp invalid unicode character found: after decoding len=40, «System Center 2012 Configuration Manager»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=33, «5.00.7804.1000 (SCCM.121121-2315)»
Mp invalid unicode character found: after decoding len=40, «System Center 2012 Configuration Manager»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=22, «Desktop Window Manager»
Mp invalid unicode character found: after decoding len=37, «6.2.9200.16384 (win8_rtm.120725-1247)»
Mp invalid unicode character found: after decoding len=20, «Window Manager\DWM-1»
Mp invalid unicode character found: after decoding len=36, «Microsoft® Windows® Operating System»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=21, «RDP Clipboard Monitor»
Mp invalid unicode character found: after decoding len=37, «6.2.9200.16384 (win8_rtm.120725-1247)»
Mp invalid unicode character found: after decoding len=36, «Microsoft® Windows® Operating System»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=20, «Update Trusted Sites»
Mp invalid unicode character found: after decoding len=33, «5.00.7804.1000 (SCCM.121121-2315)»
Mp invalid unicode character found: after decoding len=25, «E:\Program Files\SMS_CCM\»
Mp invalid unicode character found: after decoding len=40, «System Center 2012 Configuration Manager»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=33, «5.00.7804.1000 (SCCM.121121-2315)»
Mp invalid unicode character found: after decoding len=40, «System Center 2012 Configuration Manager»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=16, «Windows Explorer»
Mp invalid unicode character found: after decoding len=37, «6.2.9200.16384 (win8_rtm.120725-1247)»
Mp invalid unicode character found: after decoding len=36, «Microsoft® Windows® Operating System»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=33, «5.00.7804.1000 (SCCM.121121-2315)»
Mp invalid unicode character found: after decoding len=40, «System Center 2012 Configuration Manager»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=25, «E:\Program Files\SMS_CCM\»
Mp invalid unicode character found: after decoding len=35, «System Center Configuration Manager»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=22, «Desktop Window Manager»
Mp invalid unicode character found: after decoding len=37, «6.2.9200.16384 (win8_rtm.120725-1247)»
Mp invalid unicode character found: after decoding len=20, «Window Manager\DWM-3»
Mp invalid unicode character found: after decoding len=36, «Microsoft® Windows® Operating System»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=22, «Desktop Window Manager»
Mp invalid unicode character found: after decoding len=37, «6.2.9200.16384 (win8_rtm.120725-1247)»
Mp invalid unicode character found: after decoding len=20, «Window Manager\DWM-2»
Mp invalid unicode character found: after decoding len=36, «Microsoft® Windows® Operating System»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=30, «Host Process for Windows Tasks»
Mp invalid unicode character found: after decoding len=37, «6.2.9200.16420 (win8_gdr.120919-1813)»
Mp invalid unicode character found: after decoding len=36, «Microsoft® Windows® Operating System»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=27, «SQLAGENT — SQL Server Agent»
Mp invalid unicode character found: after decoding len=49, «2011.0110.3000.00 ((SQL11_PCU_Main).121019-1325 )»
Mp invalid unicode character found: after decoding len=69, «E:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\»
Mp invalid unicode character found: after decoding len=25, «NT SERVICE\SQLSERVERAGENT»
Mp invalid unicode character found: after decoding len=20, «Microsoft SQL Server»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=19, «Console Window Host»
Mp invalid unicode character found: after decoding len=37, «6.2.9200.16384 (win8_rtm.120725-1247)»
Mp invalid unicode character found: after decoding len=25, «NT SERVICE\SQLSERVERAGENT»
Mp invalid unicode character found: after decoding len=36, «Microsoft® Windows® Operating System»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=21, «TSTheme Server Module»
Mp invalid unicode character found: after decoding len=37, «6.2.9200.16384 (win8_rtm.120725-1247)»
Mp invalid unicode character found: after decoding len=36, «Microsoft® Windows® Operating System»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=25, «Windows Command Processor»
Mp invalid unicode character found: after decoding len=37, «6.2.9200.16384 (win8_rtm.120725-1247)»
Mp invalid unicode character found: after decoding len=36, «Microsoft® Windows® Operating System»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=33, «5.00.7804.1000 (SCCM.121121-2315)»
Mp invalid unicode character found: after decoding len=40, «System Center 2012 Configuration Manager»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=13, «COM Surrogate»
Mp invalid unicode character found: after decoding len=37, «6.2.9200.16384 (win8_rtm.120725-1247)»
Mp invalid unicode character found: after decoding len=36, «Microsoft® Windows® Operating System»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=30, «SQL Server Windows NT — 64 Bit»
Mp invalid unicode character found: after decoding len=45, «2011.0110.2100.060 ((SQL11_RTM).120210-1917 )»
Mp invalid unicode character found: after decoding len=31, «NT SERVICE\MSSQL$MICROSOFT##WID»
Mp invalid unicode character found: after decoding len=40, «SQL Server 2012 Database Engine Services»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=20, «Microsoft SQL Server»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=19, «Console Window Host»
Mp invalid unicode character found: after decoding len=37, «6.2.9200.16384 (win8_rtm.120725-1247)»
Mp invalid unicode character found: after decoding len=36, «Microsoft® Windows® Operating System»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=28, «Microsoft Management Console»
Mp invalid unicode character found: after decoding len=37, «6.2.9200.16384 (win8_rtm.120725-1247)»
Mp invalid unicode character found: after decoding len=36, «Microsoft® Windows® Operating System»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=36, «Configuration Manager Trace Log Tool»
Mp invalid unicode character found: after decoding len=36, «5.00.7804.1000 (hermbld.121121-2357)»
Mp invalid unicode character found: after decoding len=62, «C:\Program Files (x86)\Configmgr 2012 Toolkit SP1\ClientTools\»
Mp invalid unicode character found: after decoding len=26, «Configmgr 2012 Toolkit SP1»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=40, «System Center 2012 Configuration Manager»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=26, «Reporting Services Service»
Mp invalid unicode character found: after decoding len=49, «2011.0110.3000.00 ((SQL11_PCU_Main).121019-1325 )»
Mp invalid unicode character found: after decoding len=93, «E:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\bin\»
Mp invalid unicode character found: after decoding len=23, «NT SERVICE\ReportServer»
Mp invalid unicode character found: after decoding len=20, «Microsoft SQL Server»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=33, «5.00.7804.1000 (SCCM.121121-2315)»
Mp invalid unicode character found: after decoding len=40, «System Center 2012 Configuration Manager»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=66, «E:\Program Files\Microsoft Configuration Manager\AdminConsole\bin\»
Mp invalid unicode character found: after decoding len=35, «System Center Configuration Manager»
Mp invalid unicode character found: after decoding len=21, «Microsoft Corporation»
Mp invalid unicode character found: after decoding len=33, «5.00.7804.1000 (SCCM.121121-2315)»
Mp invalid unicode character found: after decoding len=40, «System Center 2012 Configuration Manager»
Mp invalid unicode character found: after decoding len=21, «Motherboard resources»
Mp invalid unicode character found: after decoding len=14, «Generic volume»
Mp invalid unicode character found: after decoding len=47, «Intel(R) Xeon(R) CPU E5649 @ 2.53GHz»
Mp invalid unicode character found: after decoding len=39, «Отправить в OneNote 2013 (redirected 2)»
Mp invalid unicode character found: after decoding len=18, «Fax (redirected 2)»
Mp invalid unicode character found: after decoding len=39, «Отправить в OneNote 2013 (redirected 2)»
Mp invalid unicode character found: after decoding len=18, «Fax (redirected 2)»
Mp invalid unicode character found: after decoding len=39, «Background Intelligent Transfer Service»
Mp invalid unicode character found: after decoding len=42, «C:\Windows\System32\svchost.exe -k netsvcs»
Mp invalid unicode character found: after decoding len=13, «Share Process»
Mp invalid unicode character found: after decoding len=12, «X64-based PC»
ConvertUnits: Property units are SMSUNIT_SKIP_PROPERTY. Class=»CCM_System» Property=»LocalDateTime» Value=»20130130200748.630000+120″
Parsing done. Processed 55 instances
Hinv Sax: Done
Inv file time set to 20130130200748.000000+120
Hinv: Written report with total of 84765 bytes
Hinv: removing temp file E:\Program Files\Microsoft Configuration Manager\inboxes\auth\dataldr.box\D3WA46OK.HTMP
Hinv: DeleteMIF done.
Hinv Translate from «E:\Program Files\Microsoft Configuration Manager\inboxes\auth\dataldr.box\HinvAttachment262NL15A.xml» done, hr=0
Hinv report translation created «E:\Program Files\Microsoft Configuration Manager\inboxes\auth\dataldr.box\HR7FWUCQ.MIF» successfully
Hinv: Translate done.
Hinv Task: Translate report attachment to file «E:\Program Files\Microsoft Configuration Manager\inboxes\auth\dataldr.box\HR7FWUCQ.MIF» returned 0
Hinv Retry: ******************* End of Task *********************

Как видите, разница в детализации информации огромна.

Leave a Reply