Running Server Diagnostics (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.
The LCSCmd.exe command provides the Diag action to check the health and status of servers within an Office Communications Server environment.
Here is a sample syntax to run the Diag action.
LCSCmd.exe /<context>[:<Server FQDN>] /Role:{SE | EE | Proxy | WorkgroupProxy | AP} /Action:Diag /DiagnosticLevel[:<bitmask that selects the diagnostic subtasks to run>] [/UserUri1:<User Name for first enterprise user.>] [/UserAccount1:<Sign-in account of the first enterprise user.>] [/UserPassword1:<Password of the first enterprise user.>] [/UserPool1:<Server or Pool FQDN to use for the first enterprise user.>] [/UserUri2:<User name for second enterprise user.>] [/UserAccount2:<Sign-in account of the second enterprise user.>] [/UserPassword2:<Password of the second enterprise user.>] [/UserPool2:<Server or Pool FQDN to use for the second enterprise user.>] [/FederatedUserUris:<Semicolon separated list of federated user URIs to check for connectivity.>]
Such as:
LCSCmd.exe /Server /Role:EE /Action:Diag /diagnosticlevel
Where:
Parameter | Description |
---|---|
<context> |
Executes the action for the specified computer. If no FQDN is specified, the current computer is used. |
/Role |
Specifies the role of the server. (Applies to Server context.) |
/Action |
Takes a string that specifies the action name. |
/RefDomain |
Specifies the reference domain FQDN. |
/Global |
Specifies the global setting location. |
/GroupDomain |
Specifies the FQDN of the domain where Office Communications Server universal groups are located. |
/UserUri1 |
Specifies the user URI (For instance, alice@contoso.com). Required for logon and IM tests. |
/UserAccount1 |
Specifies the sign-in name (For instance, alice@contoso.com or contoso.com\alice). Required for logon and IM tests. |
/UserPassword1 |
Specifies the user password. Required for logon and IM tests. |
/UserPool1 |
Specifies the target server to use. If not specified, the pool of the local computer will be used. |
/UserUri2 |
Specifies the user URI (For instance, bob@contoso.com). Required for logon and IM tests. |
/UserAccount2 |
Specifies the sign-in account (For instance, bob@contoso.com or contoso.com\bob). Required for logon and IM tests. |
/UserPassword2 |
Specifies the user password. Required for logon and IM tests. |
/UserPool2 |
Specifies the target server to use. If not specified, the pool of the local computer will be used. |
/FederatedUserUris |
Specifies a list of federated user URIs to probe delimited by semi-colon (for example, alice@contoso.com; bob@contoso.com). |
/L |
Specifies the log file path. If not specified, %TEMP%\<ActionName>[<Date>][<Time>].html is used. To disable logging, use a dash character (-) as the log file name. |
/XML |
Specifies whether the log file to be generated should be in XML format instead of HTML. |
/? |
Shows Help on usage. |