Tracing from a command line with OCSTracer

The OCSTracer.exe tool is a command-line utility (part of the Lync Server 2013 Debugging Tools, as the previous tools), which enables logging from a command line. We will see some practical examples in this section.

How to do it...

  1. From a command line, go to the C:Program FilesMicrosoft Lync Server 2013Debugging Tools folder and run the following command to log the S4 component, with verbose level (TL_Verbose) on the TF_Component as follows:
    ocstracer start /component:S4,TL_Verbose,TF_Component
    
  2. To stop all the tracing, we can use the ocstracer stop command. If we want to stop only a part of the tracing, we have to launch a command similar to the one used for the launch, replacing start with stop.
  3. We will receive an on-screen notification about the number of buffers and events recorded, as shown in the following screenshot:
    How to do it...
  4. To select a path and a filename for the log, we can use the following command (the selected path for the example is c: emp, and the filename is test.txt):
    Ocstracer start /component:S4,TL_Verbose,TF_Component /logfilefolder:c:	emp /logfilename:test.txt
    

To modify the default settings for OCSTracer, it is also possible to edit the OCSTracer.ini file. All the default starting parameters, including the log file's path, are stored here.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.21.21.47