日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

How to track an installation through client log-fi

發(fā)布時(shí)間:2025/6/17 编程问答 51 豆豆
生活随笔 收集整理的這篇文章主要介紹了 How to track an installation through client log-fi 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.


原文連接

https://deploymentparts.wordpress.com/2015/08/14/how-to-track-an-installation-through-client-log-files/?tdsourcetag=s_pctim_aiomsg



If you ever need to track a software deployment on a client, you’ll have a bunch of log-files where you find answers. During a software?deployment (and download) the following client log-files is invoked in the following order:

  • AppDiscovery.log

  • AppIntentEval.log

  • AppDiscovery.log

  • CAS.log

  • ContentTransferManager.log

  • DataTransferService.log

  • ContentTransferManager.log

  • CAS.log

  • AppEnforce.log

  • AppIntentEval.log

  • The log-files can be found on the client?C:\Windows\CCM\Logs.?When tracking the deployment, two identifiers?are needed; the unique ID of the applications Deployment Type, and the ContentID. The first can be?found up front, while the latter?can be found in AppDiscovery.log.

    ?

    Credit due: Adam Pazik wrote a great article which inspired to this post.

    How to get the Unique ID used?for tracking (the long version)

    When tracking?an installation,?the unique ID of the applications deployment type is used.?If you just want to get that one, skip to the end of this section. If you want to know more, read on..

    Everything in ConfigMgr?has a unique ID, and the same goes for?both Applications and their Deployment Types. The unique ID for Applications (CI_UniqueID) looks like this:

    ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/Application_f9d92c28-d4b6-40f6-bf9e-9c50a0db9856/4

    The ScopeId_ part is the Authoring Scope, which is unique to the site server, the Application_ part is?unique to the application, and finally the “/4” indicates that this is the fourth revision of the application (each time you change something in the Console, the revision increases).?If you are interested, you can determine the Authoring Scope using?this PowerShell code:

    12$Site = Invoke-WmiMethod -Namespace Root\SMS\Site_MTL -ComputerName CM2012 -Path SMS_Identification -name GetSiteID$Site.SiteID

    This would produce “{9D808D91-5ABE-48AC-908B-ADA69B7208CE}” in my test environment, which you can see matches the ScopeId part of the?applications Unique ID.

    Similar?the applications deployment type also has an unique ID:

    ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e/5

    The same goes for the ScopeId_, DeploymentType_ and?revision part.?If you want to retrieve all Unique ID’s for an applications deployment type (say “Reader 11.0.12”), you can use the following code:

    12$APPQuery = Get-WmiObject -Namespace Root\SMS\Site_MTL -Class SMS_DeploymentType -ComputerName CM2012 -Filter "LocalizedDisplayName='Reader 11.0.12'"$APPQuery.CI_UniqueID

    This will?produce the following output:

    12345ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e/1ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e/2ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e/3ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e/4ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e/5

    Now, when?tracking an installation the unique ID of the deployment type is used, but?without the revision part (eg?ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e). If you want to retrieve just that, you can use the ModelName property of?SMS_DeploymentType instead of CI_UniqueID. The ModelName is actually the?desired configuration management model name for the configuration item, but it gives just what we need. Change the previous PowerShell code slightly, and you get:

    12$APPQuery = Get-WmiObject -Namespace Root\SMS\Site_MTL -Class SMS_DeploymentType -ComputerName CM2012 -Filter "LocalizedDisplayName='Reader 11.0.12'"$APPQuery.ModelName

    This gives us the unique part ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e?we can use to track the installation?in the ConfigMgr client log files.

    ?

    ?

    ?

    Time to follow the white rabbit…

    In the example shown here, an application has been deployed to a collection in which the computer is a member.?Now, from the top down:

    ?

    PolicyAgent.log: Tell the client that it have stuff to do

    First the?client needs to know that it has new application assignments.?The client determines this?during its machine policy cycle, which runs?each 60 minute by default. You can also trigger this?by running the?Machine Policy Retrieval & Evaluation Cycle from the ConfigMgr Client, or from the ConfigMgr Console using?Client Notification > Download Computer Policy. You can?verify that the machine policy is started using?PolicyAgent.log:

    1Requesting Machine policy from authority 'SMS:MTL'

    And further down the line, you can see it is told to get the policy for the application:

    1Initializing download of policy 'CCM_Policy_Policy5.PolicyID="ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/Application_f9d92c28-d4b6-40f6-bf9e-9c50a0db9856/CA",PolicySource="SMS:MTL",PolicyVersion="5.00"' from 'http://CM02.METAL.LOCAL/SMS_MP/.sms_pol?ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/Application_f9d92c28-d4b6-40f6-bf9e-9c50a0db9856/CA.SHA256:E8EA1B1EF90C3985CEF6B76C212F06ECC0A716B93E48ABF50FC8159D5C526206'

    ?

    AppDiscovery.log: Is the application already installed?

    All applications (not packages) in ConfigMgr 2012 contains detection methods, to?determine if the application is installed. The detection method(s) run before and after an application is installed. This can be tracked in the AppDiscovery.log file, using the Deployment Type’s Unique ID. You can notice that AppDiscovery?is?Performing detection of app deployment type Reader 11.0.12 and?Did not detection app deployment type Reader 11.0.12 (which is tracked using the unique id).

    1234Entering ExecQueryAsync for query "select * from CCM_AppDeliveryType where (AppDeliveryTypeId = "ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e" AND Revision = 5)"?? AppDiscovery??? 14-08-2015 06:05:06 2912 (0x0B60)????Performing detection of app deployment type Reader 11.0.12(ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e, revision 5) for system.??? AppDiscovery??? 14-08-2015 06:05:06 2912 (0x0B60)+++ Application not discovered. [AppDT Id: ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e, Revision: 5]?? AppDiscovery??? 14-08-2015 06:05:06 2912 (0x0B60)+++ Did not detect app deployment type Reader 11.0.12(ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e, revision 5) for system. AppDiscovery??? 14-08-2015 06:05:06 2912 (0x0B60)

    A note on the side: If the?detection method does not work properly, and the ConfigMgr client was unable to verify that the application was properly installed (using the detection method), you will get a return code of 0x87D00324 in Software Center on the client.

    Also, you will see that if an application is deployed to a computer, which already has the application installed (as determined by the detection method), the installation files will never be downloaded to the computer. This is a nice consequence of the Application Model in ConfigMgr 2012.

    ?

    AppIntentEval.log: Does the application have any dependencies?

    AppIntentEval.log now takes over, and determines if there are any required dependencies to the application:

    1234No dependencies for DeploymentType ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e/5.? AppIntentEval?? 14-08-2015 06:05:06 2896 (0x0B50)* Evaluating Application policies for Machine?? AppIntentEval?? 14-08-2015 06:05:06 2896 (0x0B50)DT id = ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/RequiredApplication_f9d92c28-d4b6-40f6-bf9e-9c50a0db9856/5, technology = Script??? AppIntentEval?? 14-08-2015 06:05:06 2896 (0x0B50)ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e/5 :- Current State = NotInstalled, Applicability = Applicable, ResolvedState = Installed, ConfigureState = NotNeeded, Title = Reader 11.0.12?? AppIntentEval?? 14-08-2015 06:05:06 2896 (0x0B50)

    ?

    AppDiscovery.log: Lets continue and get the content

    Back in AppDiscovery.log we see that the installation should continue, and which content should be used for the installation (the Content Id):

    1ActionType - Install will use Content Id: Content_049f55eb-9172-4b84-890d-332a3a735a59 + Content Version: 1 for AppDT "Reader 11.0.12" [ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e], Revision - 5? AppDiscovery??? 14-08-2015 06:05:06 2912 (0x0B60)

    The Content Id Content_049f55eb-9172-4b84-890d-332a3a735a59 is now used to track the content download.

    ?

    CAS.log: Do the client already have the content?

    The CAS (Content Access Service), which maintains the local package cache, checks if it already has the content. In this case the content is not present in the cache:

    1234567**** Received request for content Content_049f55eb-9172-4b84-890d-332a3a735a59.1, size(KB) 195144, under context System with priority Medium.?? ContentAccess?? 14-08-2015 06:05:06 2896 (0x0B50)CacheManager: There are currently 0 bytes used for cached content items (0 total, 0 active, 0 tombstoned, 0 expired).?? ContentAccess?? 14-08-2015 06:05:06 2896 (0x0B50)...Location update from CTM for content Content_049f55eb-9172-4b84-890d-332a3a735a59.1 and request {38877591-5991-4383-A010-FE2D4818BAE1}? ContentAccess?? 14-08-2015 06:05:07 2200 (0x0898)???Download location found 0 - http://DP01.METAL.LOCAL/SMS_DP_SMSPKG$/Content_049f55eb-9172-4b84-890d-332a3a735a59.1??? ContentAccess?? 14-08-2015 06:05:07 2200 (0x0898)???Download request only, ignoring location update? ContentAccess?? 14-08-2015 06:05:07 2200 (0x0898)Download started for content Content_049f55eb-9172-4b84-890d-332a3a735a59.1 ContentAccess?? 14-08-2015 06:05:07 2200 (0x0898)

    If the content already was in the client cache, CAS.log would write the following instead:

    123**** Received request for content Content_049f55eb-9172-4b84-890d-332a3a735a59.1, size(KB) 195144, under context System with priority Medium.?? ContentAccess?? 14-08-2015 05:05:58 2776 (0x0AD8)Saved Content ID Mapping Content_049f55eb-9172-4b84-890d-332a3a735a59.1, C:\WINDOWS\ccmcache\2? ContentAccess?? 14-08-2015 05:05:58 2776 (0x0AD8)Content for Content_049f55eb-9172-4b84-890d-332a3a735a59.1 was found in cache, content size is 195144K? ContentAccess?? 14-08-2015 05:05:58 2776 (0x0AD8)

    CAS.log now instructs ContentTransferManager.log to initiate the download.

    ?

    ContentTransferManager.log: Who should download the content?

    ConfigMgr 2012 normally uses BITS to download content from the distribution point. However, ConfigMgr 2012 also supports Alternative Content Providers (such as 1E Nomad) to handle the content download. ContentTransferManager.log is the one who determines how the content should be downloaded. In this case, the download request is handed over to DataTransferService.log:

    1Created and Sent Location Request '{222EE95B-3BD8-48C4-8AF1-1A8C640CF361}' for package Content_049f55eb-9172-4b84-890d-332a3a735a59 ContentTransferManager? 14-08-2015 06:05:07 2992 (0x0BB0)

    ?

    DataTransferService.log: Downloading the content

    In DataTransferService.log it is possible to track the complete download process.

    12345DTSJob {42D941B4-602C-497C-A0C8-92A7A597F882} created to download from 'http://DP01.METAL.LOCAL:80/SMS_DP_SMSPKG$/Content_049f55eb-9172-4b84-890d-332a3a735a59.1' to 'C:\WINDOWS\ccmcache\9'.?? DataTransferService 14-08-2015 06:05:07 1020 (0x03FC)...DTSJob {416331FB-E02A-42EA-91ED-21273B387EB4} in state 'DownloadingData'.?? DataTransferService 14-08-2015 06:05:14 2200 (0x0898)DTSJob {42D941B4-602C-497C-A0C8-92A7A597F882} in state 'RetrievedData'. DataTransferService 14-08-2015 06:05:35 1388 (0x056C)DTSJob {42D941B4-602C-497C-A0C8-92A7A597F882} successfully completed download.? DataTransferService 14-08-2015 06:05:35 1388 (0x056C)

    ?

    ContentTransferManager.log: Notified of download complete

    Following the chain back to the surface, we see that ContentTransferManager.log is notified:

    1CTM job {7FDCA2EB-9E5E-4C8E-B766-BF6D9483C22A} successfully processed download completion.? ContentTransferManager? 14-08-2015 06:05:36 2200 (0x0898)

    ?

    CAS.log: Notified of download complete, again

    Which in turn notifies CAS.log:

    1Download completed for content Content_049f55eb-9172-4b84-890d-332a3a735a59.1 under context System? ContentAccess?? 14-08-2015 06:05:36 2200 (0x0898)

    ?

    AppEnforce.log: Installing the application

    Now we have the installation files, it is time to start the installation. AppEnforce.log reveals the details of this:

    12345678910111213141516171819202122232425+++ Starting Install enforcement for App DT "Reader 11.0.12" ApplicationDeliveryType - ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e, Revision - 5, ContentPath - C:\WINDOWS\ccmcache\9, Execution Context - System? AppEnforce? 14-08-2015 06:05:39 2912 (0x0B60)????A user is logged on to the system.? AppEnforce? 14-08-2015 06:05:39 2912 (0x0B60)????Performing detection of app deployment type Reader 11.0.12(ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e, revision 5) for system.??? AppEnforce? 14-08-2015 06:05:39 2912 (0x0B60)+++ Application not discovered. [AppDT Id: ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e, Revision: 5]?? AppEnforce? 14-08-2015 06:05:39 2912 (0x0B60)????App enforcement environment:????Context: Machine????Command line: "setup.exe"????Allow user interaction: No????UI mode: 1????User token: null????Session Id: 4294967295????Content path: C:\WINDOWS\ccmcache\9????Working directory:? AppEnforce? 14-08-2015 06:05:39 2912 (0x0B60)????Prepared working directory: C:\WINDOWS\ccmcache\9?? AppEnforce? 14-08-2015 06:05:39 2912 (0x0B60)????Prepared command line: "C:\WINDOWS\ccmcache\9\setup.exe"??? AppEnforce? 14-08-2015 06:05:39 2912 (0x0B60)????Executing Command line: "C:\WINDOWS\ccmcache\9\setup.exe" with system context?? AppEnforce? 14-08-2015 06:05:39 2912 (0x0B60)????Working directory C:\WINDOWS\ccmcache\9 AppEnforce? 14-08-2015 06:05:39 2912 (0x0B60)????Post install behavior is NoAction?? AppEnforce? 14-08-2015 06:05:39 2912 (0x0B60)????Waiting for process 2384 to finish.? Timeout = 120 minutes. AppEnforce? 14-08-2015 06:05:39 2912 (0x0B60)????Process 2384 terminated with exitcode: 0??? AppEnforce? 14-08-2015 06:06:28 2912 (0x0B60)????Looking for exit code 0 in exit codes table...? AppEnforce? 14-08-2015 06:06:28 2912 (0x0B60)????No action needed after successful enforcement?? AppEnforce? 14-08-2015 06:06:28 2912 (0x0B60)????Performing detection of app deployment type Reader 11.0.12(ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e, revision 5) for system.??? AppEnforce? 14-08-2015 06:06:28 2912 (0x0B60)+++ Discovered application [AppDT Id: ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e, Revision: 5]??? AppEnforce? 14-08-2015 06:06:28 2912 (0x0B60)++++++ App enforcement completed (49 seconds) for App DT "Reader 11.0.12" [ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e], Revision: 5, User SID: ] ++++++?? AppEnforce? 14-08-2015 06:06:28 2912 (0x0B60)

    Here you can see all the good installation stuff, as well as the second check using the detection method of the Application.

    ?

    AppIntentEval.log: Final check

    Finally, the AppIntentEval.log reveals that the application is installed (Current State = Installed):

    123No dependencies for DeploymentType ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e/5.? AppIntentEval?? 14-08-2015 06:06:30 1020 (0x03FC)* Evaluating Application policies for Machine?? AppIntentEval?? 14-08-2015 06:06:30 1020 (0x03FC)ScopeId_9D808D91-5ABE-48AC-908B-ADA69B7208CE/DeploymentType_fbfe859a-4810-4ba2-b86d-2013c62f586e/5 :- Current State = Installed, Applicability = Applicable, ResolvedState = Installed, ConfigureState = NotNeeded, Title = Reader 11.0.12? AppIntentEval?? 14-08-2015 06:06:30 1020 (0x03FC)

    This concludes this small walk through of the client log-files used when deploying software.

    Now, what would be really cool is that if one wrote a PowerShell script to track the files log-files! Perhaps some day..


    轉(zhuǎn)載于:https://blog.51cto.com/yimiyinei/2177464

    總結(jié)

    以上是生活随笔為你收集整理的How to track an installation through client log-fi的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。

    主站蜘蛛池模板: 黄色动漫免费在线观看 | 骚av在线 | xxx日韩| 亚洲视频图片小说 | 精品人妻一区二区三区四区在线 | 男人操女人下面视频 | 亚洲69av | 亚洲精品乱码久久久久久蜜桃不卡 | 视频精品一区二区 | 亚洲影院av | 亚洲天天 | 福利网站在线观看 | 最新av免费 | 久久99精品波多结衣一区 | 亚洲春色在线 | 国产一区二区三区电影在线观看 | 电车痴汉在线观看 | 亚洲色图导航 | 91精品影视| 欧美黑丝少妇 | 国产免费av片在线观看 | 超级黄色录像 | 黄色污污视频 | 亚洲av成人无码久久精品 | 国产又爽又黄无码无遮挡在线观看 | av网站天堂 | 日韩色图一区 | 国产精品视频999 | 一道本在线视频 | 四虎影院国产精品 | 荫蒂被男人添免费视频 | 国精产品一区二区三区 | 精品无码av一区二区三区不卡 | 国产又粗又黄又爽又硬 | 日本人体视频 | 色婷婷激情网 | 欧美中文字幕在线视频 | a中文字幕 | 8x8ⅹ成人永久免费视频 | 日韩毛片在线 | 九色国产在线 | 精品一区二区三区四区五区 | 少妇人妻丰满做爰xxx | av在线网页 | 欧美h网站 | 国产精品爽爽久久 | 欧美黄色一级生活片 | 免费一级全黄少妇性色生活片 | 免费在线观看你懂的 | 久久精品视频中文字幕 | aa免费视频 | 男人天堂av网站 | 久久九九色 | 中日韩中文字幕 | 日韩av二区 | 一级在线免费观看 | 亚洲男女视频在线观看 | 黄色片视频免费观看 | 长篇高h肉爽文丝袜 | 国产一二区在线观看 | 亚洲女人初尝黑人巨大 | 国产精品欧美综合 | av在线h| 久久久久久色 | 国产三级视频 | 欧美精品91 | 国产成人自拍视频在线观看 | 日本三级吃奶头添泬无码苍井空 | 国产精品久久久久久69 | 亚洲天堂视频在线 | 成人免费在线 | 丰满熟妇人妻中文字幕 | 黄色中文视频 | 穿情趣内衣被c到高潮视频 欧美性猛交xxxx黑人猛交 | 丰满大乳奶做爰ⅹxx视频 | 一二三av| 久草手机在线观看 | 成人区人妻精品一区二区不卡视频 | 疯狂做爰高潮videossex | 亚洲av无码国产精品久久久久 | 老司机av导航 | 青娱乐久久 | 成人国产精品免费观看动漫 | 国内毛片毛片毛片毛片 | 亚洲一区二区视频网站 | 毛片免费全部无码播放 | 久久久久久久福利 | 五月天三级 | 婷婷五月综合激情 | 午夜性视频 | 天天操免费视频 | 韩国一区二区三区在线观看 | 69sex久久精品国产麻豆 | 精品熟妇无码av免费久久 | 色综合啪啪 | 制服.丝袜.亚洲.中文.综合懂色 | 婷婷一级片 | 黄色工厂这里只有精品 | 国产aaaaa毛片 |