I would like to share few troubleshooting tips based on UCS deployment experiences. Assume that, you had successfully deployed Lync 2013 and exchange 2013 in the organization and enabled UCS. However, client contacts were still not migrated to exchange server. Following steps may help to narrow down the issue;
Is there any exchange connectivity errors on Lync client as mentioned below ? If so, verify auto discover configuration on exchange CAS server,
Run following command if you haven’t set the auto discover record on the CAS box. Also make sure that auto discover DNS record is accessible from client machine.
“Get-ClientAccessServer | Set-ClientAccessServer -AutoDiscoverServiceInternalUri https://autodiscover.domain.com/autodiscover/autodiscover.xml” .
Following PowerShell cmdlet would be helpful to identify if or not a user’s contacts can be accessed through the Unified Contact Store. If it is failed , verify the UCS configuration.
$cred = get-credential
Test-CsUnifiedContactStore -UserSipAddress firstname.lastname@example.org -TargetFqdn lync.domain.com –UserCredential $cred
Following cmdlet will test Lync Server Storage Service status on a Front End Server. Make sure that test result is successful , if not cross check Lync services manually.
Test-CsExStorageConnectivity -SipUri email@example.com -Binding NetTCP -DeleteItem -HostNameStorageService pool.domain.com
Verify UCS service policy has been assigned to the users. Following cmdlet will list user’s service policy.
get-CsUser -Identity testuser
Verify partner application is successfully created ,following cmdlet would list the configuration of partner application.
Enable centralized logging and select lyssanducs as tracing scenario. You should run this command from windows cmd window.
Clscontroller.exe –start –scenario lyssanducs –pools pool.domain.com
Stop the logging on the agent and output the log file to notepad. Following command would help you;
ClsController.exe -stop –scenario lyssanducs –pools pool.domain.com
Search-csclsLogging –computers fe.domain.com –components lyss –loglevel all –outputfilepath “c:\test.txt”
You can also use Lync debugging tool for collecting the logs. Following figure shows that Lync server has replied to contact subscription request that it has already migrated to exchange server.