Logging (Command Line)
Microsoft Office Communications Server 2007 and Microsoft Office Communications Server 2007 R2 will reach end of support on January 9, 2018. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.
By default, the results of LCSCmd commands are logged to the %temp% folder to a file named context_action[date][time].html. For example, consider the following command.
LCSCmd /forest /action:CheckAllPoolsState
If this command were run on December 15, 2008 at 4:32:30 PM, the log file would be named Forest_CheckAllPoolsState[2008_12_15][16_32_30].html.
Note
The context will always be initial caps, but the casing of the action in the file name will match the casing you use in the command. For example, if you use all lowercase in the command (/action:checkallpoolsstate), the action will be all lowercase in the file name: Forest_checkallpoolsstate[2008_12_15}{16_32_30}.html.
For actions that include the /Role parameter, the role is also included in the file name. For example, if you run the Activate action on the Server context with a role of EE (Enterprise Edition), your log file would be named something like this:
Server_EE_Activate[2008_12_15][16_32_30].html
Similarly, if you run the ActivateApp action on the AppServer context, by default the log file name will include the application ID. For example, if you specify the Microsoft.Rtc.Application.Caa ID, your log file name will be something like this:
AppServer_Microsoft.Rtc.Application.Caa_ActivateApp[2008_12_15][16_32_30].html
The log file name will be displayed as part of the command output.
...
Executing "Check Active Directory Object CN={9C647842-4218-4DB6-A317-41A477FDDCC4}"
Executing "Validate Pool FQDN DNS registration"
Check the log file "C:\DOCUME~1\ADMIN~1\LOCALS~1\Temp\Forest_CheckAllPoolsSate[2008__12_15][16_32_30].html" for details.
...
If you want to specify your own path and file name, use the /L parameter in your command.
LCSCmd /forest /action:CheckAllPoolsState /l:C:\MyLogs\PoolStateLog1.html
Note
If your path contains spaces, you must put double quotes around the full path: /l:C:\My logs\PoolStateLog1.html.
Note
The folder you specify will be populated with the HTML file as well as its supporting graphics files.
You can disable logging altogether by following the /L parameter with a hyphen.
LCSCmd /forest /action:CheckAllPoolsState /l:-
To save the log as an XML file rather than HTML, include the /XML parameter.
LCSCmd /forest /action:CheckAllPoolsState /XML