官术网_书友最值得收藏!

Enabling deployment-level tracing

Deployment-level tracing would enable tracing for all the server roles. However, this tracing can only be configured from a machine that has the Deployment Tool role installed.

Deployment-level tracing can only be configured using Windows PowerShell commands.

How to do it…

By following this recipe, we can enable deployment-level tracing on the machine that is running the Deployment Tool server role.

We need to perform the following steps to achieve this:

  1. Log in to the machine as a local administrator and launch Windows PowerShell by clicking on Start | All Programs | Accessories | Windows PowerShell | Windows PowerShell.
  2. In the PowerShell window, type the following command:
    Add-PSSnapin Microsoft.Crm.PowerShell
    
  3. To turn on the deployment-wide tracing, type the following commands:
    $Setting = Get-CrmSetting TraceSettings
    $Setting.Enabled = $True 
    Set-CrmSetting $setting
    
  4. To turn off the deployment-wide tracing, type the following commands:
    $Setting = Get-CrmSetting TraceSettings
    $Setting.Enabled = $False 
    Set-CrmSetting $setting
    
  5. To check the current status of the deployment-wide tracing, type the following command:
    Get-CrmSetting TraceSettings
    
    Note

    The trace files are located at C:\crmdrop\logs.

How it works…

Deployment-level tracing provides deployment-wide tracing information. This setting should be carefully enabled as this would log tracing from every server where the Dynamics CRM 2011 server roles are running.

The deployment-level trace setting is stored in the MSCRM_CONFIG database. Use the following T-SQL command to find the deployment tracing setting in the database:

SELECT [ColumnName],[IntColumn],[BitColumn],[NVarCharColumn]
FROM [MSCRM_CONFIG].[dbo].[DeploymentProperties]
WHERE ColumnName LIKE'Trace%'

The default values will be as shown in the following screenshot:

主站蜘蛛池模板: 密山市| 鲜城| 慈利县| 望奎县| 沂源县| 友谊县| 读书| 东乡| 巴塘县| 章丘市| 抚远县| 体育| 雅江县| 阿坝县| 河北省| 思南县| 河北省| 铁力市| 临沂市| 神木县| 政和县| 乌兰县| 锡林浩特市| 尖扎县| 理塘县| 天水市| 青阳县| 凤冈县| 香格里拉县| 新泰市| 铜梁县| 马公市| 德令哈市| 吕梁市| 阳高县| 塔城市| 贞丰县| 天门市| 石首市| 习水县| 垦利县|