Book Image

LYNC SERVER COOKBOOK

Book Image

LYNC SERVER COOKBOOK

Overview of this book

Table of Contents (19 chapters)
Lync Server Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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 Files\Microsoft Lync Server 2013\Debugging 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:

  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:\temp,...