WEBSITE

IIS 7.0 : Enabling and Configuring FRT - Configuring FRT by Using Appcmd

1/24/2011 5:21:31 PM
You can also create FRT rules by using command line utilities such as Appcmd, Windows PowerShell, and Windows Management Instrumentation (WMI). The Appcmd syntax is as follows.
%systemroot%\system32\inetsrv\AppCmd configure trace "URL" /enable [/path:path]
[/statuscodes:code][/timeTaken:timeSpan] [/areas:areas] [/verbosity:detailLevel]

To delete an FRT rule, you can use the following Appcmd syntax.
%systemroot%\system32\inetsrv\AppCmd configure trace "URL" /disable [/path:path]

Don’t forget that for the rules to take effect, the Web site must have FRT enabled. You can do this in IIS Manager as described earlier in this chapter, or use Appcmd as follows, where WebSiteName is the name of the Web site. Similarly, use /disablesite to disable FRT for a Web site.
%systemroot%\system32\inetsrv\AppCmd configure trace "WebSiteName" /enablesite


The parameters to these commands are explained in Table 1.

Table 1. Parameters for Appcmd to Configure FRT
ParameterDescription
URLThe URL that you want to trace.
pathThe type of content you want to trace. Must be *, *.aspx, *.asp, or custom. If omitted, uses “*” by default.
statuscodesThe status code that you want to trace. If omitted, uses “500,400,401,403” by default.
timeTakenA duration in seconds for response times beyond which a request is considered to have failed. If omitted, 1 minute is the default.
areasThe list of providers and subareas that you want to enable for the trace rule. This is based on the providers that are registered in the configuration—by default, it can contain the ASP, ASPNET, ISAPI, or WWW Server providers. If ASP.NET is installed, you can further specify Infrastructure, Module, Page, or AppServices. If WWW Server, you can further specify Authentication, Security, Filter, StaticFile, CGI, Compression, Cache, RequestNotifications, IISGeneral, or All. If not specified, traces all registered providers and their subareas.
verbosityThe level of detail you want IIS 7.0 to report. Must be General, Critical Errors, Errors, Warnings, Information, or Verbose. If not specified, Verbose is used as the default.
Other  
 
Top 10
Review : Sigma 24mm f/1.4 DG HSM Art
Review : Canon EF11-24mm f/4L USM
Review : Creative Sound Blaster Roar 2
Review : Philips Fidelio M2L
Review : Alienware 17 - Dell's Alienware laptops
Review Smartwatch : Wellograph
Review : Xiaomi Redmi 2
Extending LINQ to Objects : Writing a Single Element Operator (part 2) - Building the RandomElement Operator
Extending LINQ to Objects : Writing a Single Element Operator (part 1) - Building Our Own Last Operator
3 Tips for Maintaining Your Cell Phone Battery (part 2) - Discharge Smart, Use Smart
REVIEW
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
VIDEO TUTORIAL
- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
Popular Tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8
Visit movie_stars's profile on Pinterest.