Lync Server Management Shell
The Lync Server 2013 Management Shell
provides a number of cmdlets that can be used to test various functions
of a server. A useful cmdlet for verifying the overall health of a
server is Test-CSComputer server
, which verifies that all
services are running, that the local computer group membership is
correctly populated with the necessary Lync Server Active Directory
groups, and that the required Windows Firewall ports have been opened.
The Test-CSComputer
cmdlet must be run from the local computer and uses the following syntax:
Test-CSComputer –Report "C:\Test-CSComputer Results.xml"
After running the cmdlet, open the generated XML file to view a detailed analysis of each check.
Synthetic Transactions
A feature carried over from Lync Server 2010
are synthetic transactions that are a set of PowerShell cmdlets used to
simulate actions taken by servers or users in the environment. These
synthetic transactions allow an administrator to conduct realistic
tests against a service. In the case of a Director, the most useful
synthetic transaction is the Test-CSRegistration cmdlet, which
simulates a user signing in to the specified server.
Running the Test-CSRegistration cmdlet
requires providing a target server, user credential, and SIP address. A
registrar port can optionally be included. The user credential
parameter’s username and password must be collected by an
authentication dialog and saved to a variable, as seen in this command:
$Credential = Get-Credential "COMPANYABC\tom"
After the credentials have been collected, the cmdlet can be run with the user credential variable previously saved.
Test-CSRegistration –TargetFQDN
DIR1-SF.companyabc.com –UserCredential $Credential – UserSipAddress
sip:[email protected] –RegistrarPort 5061 –Verbose
TargetFQDN : DIR1-SF.companyabc.com
Result : Success
Latency : 00:00:10.9506726
As seen in the output, the registration test was successful.
Telnet
Telnet is a simple method of checking whether
a specific TCP port is available from a client machine. From a machine
that is having trouble contacting a Director, use the following steps
to verify connectivity to the Registrar service:
Tip
The Telnet client is not installed by default
in modern Windows operating systems. On a desktop operating system it
must be installed by using the Turn Windows Features On or Off option
found in Programs and Features. On a server operating system it can be
installed through the Features section of Server Manager.
1. Open a command prompt.
2. Type the following command:
telnet <Director pool FQDN> 5061
If the window goes blank and only a
flashing cursor is seen, the connection was successful and the port can
be contacted without issue. If the connection fails, an error will be
returned. Check that the services are running on the Director and that
no firewalls are blocking the traffic.
Time
A key component of any service
running successfully in Lync Server 2013 is the computer time. Be sure
to verify that the clocks on any Lync Server 2013 servers are correctly
set and have the appropriate time zones configured. If the clocks
between a server and a client are off by more than five minutes,
Kerberos authentication will begin to fail, which will prevent users
from authenticating successfully.