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

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:

主站蜘蛛池模板: 长白| 永年县| 阜新| 辽宁省| 苍山县| 大田县| 内江市| 蕲春县| 洱源县| 建平县| 永寿县| 两当县| 泽普县| 阜城县| 手游| 吉隆县| 西乌珠穆沁旗| 卢湾区| 綦江县| 呼伦贝尔市| 涿鹿县| 武乡县| 泰顺县| 石屏县| 东乡| 南丹县| 同仁县| 乐陵市| 宁阳县| 鄄城县| 津南区| 得荣县| 东台市| 荣昌县| 新营市| 石台县| 夏河县| 九江市| 桓仁| 汝南县| 炉霍县|