Note
Microsoft Lync integration with BMC Virtual Chat is a legacy feature. This feature is available only if you enabled it before upgrading to BMC Virtual Chat 9.1.02.
Typically, system administrators configure application pools, set up certificates, and configure trusted applications on the Microsoft Lync server. The following instructions are general guidelines to follow when preparing your Lync server for BMC Virtual Chat. For complete instructions on configuring Lync servers, refer to the Microsoft Lync documentation.
Before you begin
- You must know the fully qualified domain name of the machine on which to set up the trusted application pool.
- You must know the name of the local certificate authority. The examples below use MyEServiceDev-LYNC-DC-CA.
- To create a trusted application, you must have an open port on the local firewall that is running on the Application Server so that other servers can successfully send messages to the application.
- Complete the prerequisites described in Prerequisites for a Microsoft Lync integration.
To create the BMC Virtual Chat trusted application pool
On the application server, start the Lync Server Management Shell.
Example: Click Start > All Programs > Microsoft Lync Server 2013 > Lync Server Management Shell.In the Lync Server Management Shell, run the Get-CsService -Registrar command to get the registrar name, or Lync server.
In the following example, the registrar name is LYNC-FE.MyEServiceDev.local.- Run the Get -CsSite command to get the site ID.
In the following example, the site ID is 1. Run the
New-CsTrustedApplicationPool -Identity <trustAppPoolServer> -Registrar <registrarName> -Site <siteID>command to create the following pool: LYNC-APP.MyEServiceDev.local<trustAppPoolServer>— fully qualified domain name of the Trusted Application Pool machine<registrarName>— fully qualified domain name of the Lync server<siteID>— the site IDIn the Lync Server Management Shell, run the
Enable-CsTopologycommand to add the trusted pool to the Lync topology.
The command returns no message or feedback.Tip
Check the Lync Server Control Panel to verify that the application pool was created successfully and added to the topology.
- Install the replication service on the LYNC-APP.MyEServiceDev.local machine.
- From a command prompt, change to the Microsoft Lync Server\Deployment folder.
Example: cd \Program Files\Microsoft Lync Server 2013\Deployment Type the following command:
Bootstrapper.exe /BootStrapLocalMgmt /MinCache
This process takes several minutes to complete, as shown in the example below.
- From a command prompt, change to the Microsoft Lync Server\Deployment folder.
- In the Lync Server Management Shell, enable and start the replication service by typing the following commands:
Enable-CsReplicaStart-CsReplica In the Lync Server Management Shell, force the replication process to execute by typing the following command:
Invoke-CsManagementStoreReplicationThe replication process can take several minutes to complete.
Check the status with the
CsManagementStoreReplicationStatuscommand.
The UpToDate status of the LYNC-APP.MyEServiceDev.local Application Pool is set to False.To force replication, run the
Invoke-CsManagementStoreReplicationcommand.Run the
Get-CsManagementStoreReplicationStatuscommand again.
Replication has now taken place because the UpToDate status of the LYNC-APP.MyEServiceDev.local Application Pool is now set to True.Note
You may have to run
Get-CsManagementStoreReplicationStatusa few times before the UpToDate status the application pool sets to True. It sometimes takes 5 minutes before it succeeds.If you check the Lync Control Panel on the Lync Front End Server and click Refresh, Replication is now active as shown below.
To request and set up a certificate
The following instructions assume that a local certificate authority is used to request the certificate. If the certificate is obtained from a third-party certificate authority (not part of the domain), you must manually set up the certificate in Microsoft Internet Information Services (IIS).
- In the Lync Server Management Shell, run the
Request-CsCertificatecommand to request a certificate from the local Certificate Authority, VirtualAgent-LYNC-DC-CA. Type the following command:Request-CsCertificate -New -Type default -CA LYNC-DC.MyEService.local\MyEServiceDev-LYNC-DC-CA -Verbose - From the verbose output, note the Thumbprint value. You need this value to set the certificate.
- From the Lync Server Management Shell, run the
Set-CsCertificatecommand with the Thumbprint value. Type the following command:Set-CsCertificate -Type Default -Thumbprint <ThumbPrintValue>
The certificate creation and assignment for the Application Server is complete.
To create the BMC Virtual Chat trusted application
- In the Lync Server Management Shell, type the following command:
New-CsTrustedApplication Pool - At the prompts, enter the following values:
- ApplicationID: ServiceCenterAgent
- TrustedApplicationPoolFqdn: trustedApplicationPool (such as LYNC-APP.MyEServiceDev.local)
- Port: openPort (such as 14001)
- Type the following command:
Enable-CsTopology
The Trusted Application is now set up. Verify this using the Lync Server Control Panel on the Lync 2013 Server. From Topology > Trusted Applications, you will see the Trusted Application that was just setup, as shown below.
To create a trusted application end point
The Trusted Application EndPoint is the Lync contact that interacts with the application.
- In the Lync Server Management Shell, run the
New-CsTrustedApplicationEndpointcommand with the following parameters: - Exit the Lync Server Management Shell.
To add the trusted application end point as a Lync contact
- Open the Lync client.
Click the Contact Search box and enter the SIP Address of the trusted application end point, .
The new contact appears in the list.Important
The contact appears Offline because the VirtualAgentIntelligentImBot application has not yet been installed.
- Hover over the name and click the plus
to add it as a contact.
The BMC Virtual Chat bot is now a contact but is not online and available.
Where to go from here
Installing the Intelligent Instant Message Bot for BMC Virtual Chat