728x90

$urlEntry = New-CsSimpleUrlEntry -Url "https://schdule.spidomain"

$simpleUrl = New-CsSimpleUrl -Component "WebScheduler" -Domain "*" -SimpleUrlEntry $urlEntry -ActiveUrl "https://schdule.spidomain"


Set-CsSimpleUrlConfiguration -Identity Global -SimpleUrl @{Add=$simpleUrl} -Verbose


Enable-CsComputer


https://schdule.spidomain/scheduler 접속하여 서비스 확인

728x90
728x90

1. 레지스터리 키삭제 방법

reg delete HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Lync\user@sipdomain /force

또는 

reg delete HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Lync\%username%@sipdomain /force


2. 프로파일 폴더 삭제 방법 

RD /Q /S C:\Users\%username%\AppData\Local\Microsoft\Office\15.0\Lync\username@sip.domain

혹은

RD /Q /S C:\Users\사용자이름\AppData\Local\Microsoft\Office\15.0\Lync\username@sip.domain


끝.

728x90
728x90

참고 - URL

https://technet.microsoft.com/ko-kr/library/gg398069(v=ocs.15).aspx

728x90
728x90

CU 설치 시, 아래 박스안의 오류가 발생 되었다.

해결 방법

제어판>방화벽>Windows 방화벽을 통해 프로그램 또는 기능 허용

Windows Management Instrumentation(WMI) 체크

 

Install-CsDatabase : Command execution failed: Cannot determine where to instal
l database files because Windows Management Instrumentation on the database ser
ver is unavailable from your computer or user account. To continue, you can res
olve this issue, or you can specify where you want to install the files.
At line:1 char:1
+ Install-CsDatabase -ConfiguredDatabases -SqlServerFqdn be01.site1.mani4u.com

 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
    + CategoryInfo          : InvalidOperation: (:) [Install-CsDatabase], Depl
   oymentException
    + FullyQualifiedErrorId : ProcessingFailed,Microsoft.Rtc.Management.Deploy
   ment.InstallDatabaseCmdlet 

 

 

참조

http://www.wardvissers.nl/2011/01/05/microsoft-lync-error-microsoft-rtc-management-deployment-deploymentexception-cannot-determine-where-to-install-database-files-because-windows-management-instrumentation-on-the-datab/

Step 1:

  1. Click Start, and then click Control Panel.
  2. Open the Windows Firewall program.
  3. Click Change Settings to the Windows Firewall Settings dialog box.
  4. Verify that Windows Firewall is turned on, and then click the Exceptions tab.
  5. In the To enable an exception, select its check box window, scroll to locate the Remote Administration Program or Port exception.
  6. Make sure that the Remote Administration Program or Port exception is selected.
  7. Click OK to close the Windows Firewall Settings dialog box.

                image

Step 2: I had named the pool different than the server name, so I needed to add an A record or CNAME Record to DNS to get past.

 

 

끝.

728x90
728x90

최신 Lync Server 2013 Cumulative Update 파일을 다운로드 받아 둡니다.

파워쉘을 관리자 권한으로 실행합니다.

 

Step1. Get-CsPoolUpgradeReadinessState 명령어 후 State Value가 "REDY"인지 확인

PS C:\> Get-CsPoolUpgradeReadinessState


PoolName : LyncPool01.site1.mani4u.com
State : InSufficientActiveFrontEnds
TotalFrontends : 1
TotalActiveFrontends : 1
UpgradeDomains : {
UpgradeDomainName: UpgradeDomain1
IsReadyForUpgrade: True
Total FrontEnds: 1
Total Active FrontEnds: 1
Frontends: FE01.site1.mani4u.COM
}

State가 "InSufficientActiveFrontEnds"으로 표기 된다면 "stop-cswindowservice" 후

Get-CsPoolUpgradeReadinessState를 하면 State Value가 "REDY"로 변경 됩니다.

Step2. LyncServerUpdateInstaller.exe 설치

설치 완료 후 재부팅

Step3. Install-CsDatabase 설치

Install-CsDatabase -ConfiguredDatabases -SqlServerFqdn be01.site1.mani4u.com
-Verbose

 

 

Step4. Enable the Mobility service

Enable-CsTopology

 

Step5. Enable the Unified Communications Web API

%ProgramFiles%\Microsoft Lync Server 2013\Deployment\Bootstrapper.exe

 

정상적으로 반영 되었는지 확인 방법

첫번째. Product

Get-WmiObject -class Win32_Product | where {$_.name -like "*Lync Server*"} | Sort-Object Name | Select Name, Version |ft -AutoSize

 

 

 

PS C:\> Get-WmiObject -class Win32_Product | where {$_.name -like "*Lync Server*
"} | Sort-Object Name | Select Name, Version |ft -AutoSize

Name Version
---- -------
Microsoft Lync Server 2013, Administrative Tools 5.0.8308.920
Microsoft Lync Server 2013, Application Host 5.0.8308.920
Microsoft Lync Server 2013, Audio Test Service 5.0.8308.920
Microsoft Lync Server 2013, Conferencing Server 5.0.8308.920
Microsoft Lync Server 2013, Core Components 5.0.8308.920
Microsoft Lync Server 2013, Front End Server 5.0.8308.920
Microsoft Lync Server 2013, Reach Fonts 5.0.8308.0
Microsoft Lync Server 2013, Web Components Server 5.0.8308.920
Microsoft Lync Server 2013, Web Conferencing Server 5.0.8308.920
Microsoft Lync Server 2013, XMPP Translating Gateway 5.0.8308.920


PS C:\>

 

 

두번째. Back End Databases 버전 체크

Test-CsDatabase -ConfiguredDatabases -SqlServerFqdn be01.site1.mani4u.com

 

아래는 CU 생성 날자별 DB 버전입니다.

Enterprise의 경우 xds와 lis는 CMS에만 존재합니다.

버전 확인 URL 참조

http://blogs.technet.com/b/dodeitte/archive/2013/07/02/how-to-verify-if-lync-server-2013-database-updates-completed-successfully.aspx

 

 

끝.

 

 

 

 

감사합니다.

728x90
728x90

 

 

Lync 2013 설치시 명령어

 

http://technet.microsoft.com/en-us/library/gg398103.aspx

http://technet.microsoft.com/en-us/library/gg412871.aspx

Install-WindowsFeature RSAT-ADDS

 

 

 

 

Import-Module ServerManager

 

 

 

 

Add-WindowsFeature Web-Server, Web-Static-Content, Web-Default-Doc, Web-Http-Errors, Web-Asp-Net, Web-Net-Ext, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Http-Logging, Web-Log-Libraries, Web-Request-Monitor, Web-Http-Tracing, Web-Basic-Auth, Web-Windows-Auth, Web-Client-Auth, Web-Filtering, Web-Stat-Compression, Web-Dyn-Compression, NET-WCF-HTTP-Activation45, Web-Asp-Net45, Web-Mgmt-Tools, Web-Scripting-Tools, Web-Mgmt-Compat, Desktop-Experience, BITS -Source f:\sources\sxs

728x90
728x90

아래 명령을 파워쉘로 확인

Get-WmiObject -class Win32_Product | where {$_.name -like "*Lync Server*"} | Sort-Object Name | Select Name, Version |ft -AutoSize

 

 

 

PS C:\> Get-WmiObject -class Win32_Product | where {$_.name -like "*Lync Server*
"} | Sort-Object Name | Select Name, Version |ft -AutoSize

Name                                                                 Version
----                                                                   -------
Microsoft Lync Server 2013, Administrative Tools     5.0.8308.920
Microsoft Lync Server 2013, Application Host         5.0.8308.920
Microsoft Lync Server 2013, Audio Test Service       5.0.8308.920
Microsoft Lync Server 2013, Conferencing Server      5.0.8308.920
Microsoft Lync Server 2013, Core Components          5.0.8308.920
Microsoft Lync Server 2013, Front End Server         5.0.8308.920
Microsoft Lync Server 2013, Reach Fonts              5.0.8308.0
Microsoft Lync Server 2013, Web Components Server    5.0.8308.920
Microsoft Lync Server 2013, Web Conferencing Server  5.0.8308.920
Microsoft Lync Server 2013, XMPP Translating Gateway 5.0.8308.920


PS C:\>

 

물론 프로그램 추가/제거에서도 확인은 가능 함.

728x90
728x90

url - http://www.myskypelab.com/2014/02/lync-edge-testing-suite-part-1-lync.html

 

 

Features:

  • One tool for testing both ends of the connection. Run the Lync Edge Port Tester on your Edge server and on an internal and external network machine.
  • Test both UDP and TCP ports are open in both directions.
  • Select a profile from the list (Edge Outside, Edge Inside, Front End, Client Outside, Client Inside) to check all the relevant ports for that connection type.
  • Open all the required firewall ports temporarily with the press of a button.
  • Can be used to test connections to a live Edge (or Front End) server. If you run the tool on a live edge server it will automatically learn which ports are currently in use and only allow you to Listen on unused ports.
  • Can be used on a Consolidated Edge configuration or on an Edge running with a single external IP address (ie. all 443 services running on different ports). The Single External IP check box allows for this configuration.
  • Tool Tips to provide you with contextual help.
  • All in one interface. (Over 100 interface objects! Yep, that was a lot of typing...)
728x90
728x90

INF 템플릿을 이용한 Lync 인증서 생성 하는 방법에 대해서 작성합니다.

이방법은 exchange/iis 등도 사용하면 될 듯합니다.

일단 장점이라면 UI보다는 빠르네요.

 

순서

1. 템플릿 생성

2. Certreq 명령을 통한 req 파일 생성

3. AD 인증웹을 통한 인증서 발급

4. 생성 된 인증서를 F/E에 설치

5. F/E 인증서 배포

 

시작

1. 템플릿 생성(확장자는 INF)   예) cert.inf

   빨간색 부분만 수정하시면 됩니다.

[Version]
Signature="$Windows NT$"

[NewRequest]
Subject = "CN=LyncPool01.mani4u.com"
Exportable = true
ExportableEncrypted = true
HashAlgorithm = sha1
KeyLength = 4096
KeySpec = AT_KEYEXCHANGE
KeyUsage = "CERT_DIGITAL_SIGNATURE_KEY_USAGE | CERT_KEY_ENCIPHERMENT_KEY_USAGE"
KeyUsageProperty = "NCRYPT_ALLOW_DECRYPT_FLAG | NCRYPT_ALLOW_SIGNING_FLAG"
MachineKeySet = true
ProviderName = "Microsoft RSA SChannel Cryptographic Provider"
ProviderType = 12
SMIME = false
RequestType = CMC
FriendlyName = "LyncPool01.mani4u.com"

[Extensions]
2.5.29.17 = "{text}"
_continue_ = "dns=LyncPool01.mani4u.com&"
_continue_ = "dns=LyncWeb01.mani4u.com&"
_continue_ = "dns=LyncExtWeb01.mani4u.com&"
_continue_ = "dns=JoinLync01.mani4u.com&"
_continue_ = "dns=FE01.mani4u.com&"
_continue_ = "dns=FE02.mani4u.com&"
_continue_ = "dns=FE03.mani4u.com&"
_continue_ = "dns=FE04.mani4u.com&"
_continue_ = "dns=lyncdiscover.mani4u.com&"
_continue_ = "dns=lyncdiscoverinternal.mani4u.com"

 

2.5.29.37 = "{text}"
_continue_ = "1.3.6.1.5.5.7.3.2,"
_continue_ = "1.3.6.1.5.5.7.3.1" 

 

2. Certreq 명령을 통한 req 파일 생성

#주의(명령프롬프트창을 관리자 권한으로 실행 해야 합니다.) 

 명령어 certreq.exe -new cert.inf cert.req

 

3. AD 인증웹을 통한 인증서 발급 

 a.인증서 url에 접속

 b.인증서 요청

 c.Base 64 인코딩 CMC 또는 PKCS #10 파일을 사용하여...갱신 요청을 제출 합니다.

 d.2번에서 생성 된 cert.req 파일을 오픈하여 모든 txt를 복사한 다음 저장된 요청의 box에 붙여 넣습니다.

    인증서 템플릿 종류는 "웹서비스"로 선택하여 제출

 e.인증서 다운로드 저장

 

4. 생성 된 인증서를 F/E에 설치

 mmc를 사용하여 인증서스냅인을 추가하여 발급 받은 인증서를 설치

 

 

5. F/E 인증서 배포

 a.Deployment Wizard 실행>Install or Update Lync...>Step3:Request,Install or Assign Certficates

 b.defaykt certificate 선택 후 Assign

 c.새로설치 된 인증서로 활당

 

캡쳐를 못해 죄송...^^

 

끝.

728x90
728x90

해당 쿼리는 BackEnd Server에서 실행 합니다.

 

 USE LCSCDR
 
declare @SipAddress nvarchar(200),
  @StartDate datetime,  -- 검색 날자 시작 변수
  @EndDate datetime,   -- 검색 날자 끝 변수
  @CurrPage int  --  페이지처리 변수
select @SipAddress = 'test@mani4u.com', @CurrPage = 1, @StartDate = cast('2015-01-01' as datetime), @EndDate = cast('2015-05-30' as datetime)
select @SipAddress, @CurrPage, @StartDate, @EndDate
; WITH ConnectionLog AS
(
 SELECT  ROW_NUMBER() OVER(ORDER BY reg.RegisterTime desc) AS rownum
    , DATEADD(minute, DATEDIFF(minute, sysutcdatetime(), sysdatetime()), reg.SessionIdTime) AS SessionIdTimeS 
    , reg.SessionIdSeq
    , usr.UserUri AS SipAddress 
    , DATEADD(minute, DATEDIFF(minute, sysutcdatetime(), sysdatetime()), reg.RegisterTime) AS LoginTime 
    , DATEADD(minute, DATEDIFF(minute, sysutcdatetime(), sysdatetime()), reg.DeRegisterTime) AS LogoutTime 
    , reg.IpAddress 
    ,CASE WHEN reg.[DeRegisterTypeId] = 1 THEN N'정상종료' 
      WHEN reg.[DeRegisterTypeId] = 2 THEN N'접속만료' 
      WHEN reg.[DeRegisterTypeId] = 3 THEN N'비정상종료' 
      WHEN reg.[DeRegisterTypeId] = 4 THEN N'사용자속성변경' 
      WHEN reg.[DeRegisterTypeId] = 5 THEN N'POOL변경' 
      WHEN reg.[DeRegisterTypeId] = 6 THEN N'Client버전문제' 
      ELSE N'알수없음' END AS LogoutReason 
    ,CASE WHEN reg.[RegistrarId] = 1 THEN N'Lync 2013 Client' 
      WHEN reg.[RegistrarId] = 1003 THEN N'Lync 2013 Client' 
      WHEN reg.[RegistrarId] = 1002 THEN N'MSPL' 
      WHEN reg.[RegistrarId] = 2002 THEN N'MSPL'  
      WHEN reg.[RegistrarId] = 2003 THEN N'MSPL'  
      ELSE N'ETC' END AS ClientVer 
    , REPLACE(ser.ServerFQDN,'.adatum.com','') AS ServerFQDN 
    , REPLACE(poo.PoolFQDN,'.adatum.com','') AS PoolFQDN 
    , reg.EdgeServerId 
    , CASE WHEN reg.IsInternal = 1 THEN N'내부' ELSE N'외부' END AS IsInternal 
    , reg.IsUserServiceAvailable 
    , reg.IsPrimaryRegistrar 
    , reg.IsPrimaryRegistarCentral 
    , reg.ResponseCode 
    , reg.DiagnosticId 
    , reg.DeviceId 
    , reg.EndpointId 
    , reg.EndpointEra 
    , (SELECT top 1 [Version]  FROM [LcsCDR].[dbo].[ClientVersions] where reg.ClientVersionId=[VersionId])  as VersionName
 FROM  Registration reg 
   INNER JOIN Users usr  
    ON reg.UserId = usr.UserId 
    INNER JOIN Pools poo  
    ON reg.PoolId = poo.PoolId  
    INNER JOIN Servers ser  
    ON reg.RegistrarId = ser.ServerId  
   INNER JOIN (
     SELECT [VersionId]  FROM [LcsCDR].[dbo].[ClientVersions]
     where 1=1
     and (charindex('Android', Version) > 0
      or charindex('iPhone', Version) > 0
      or charindex('iPad', Version) > 0)
   ) VER
   ON VER.[VersionId] = reg.ClientVersionId
 WHERE  (1 = 1)  
 --AND   (usr.UserUri = @SipAddress)  
    AND   dateadd(minute, datediff(minute, sysutcdatetime(), sysdatetime()), reg.[RegisterTime])  
    BETWEEN DATEADD(day,0,CONVERT(VARCHAR(10), @StartDate,23))  
 AND DATEADD(day,1,CONVERT(VARCHAR(10), @EndDate,23)) 
)
SELECT * FROM ConnectionLog
 --WHERE rownum BETWEEN (@CurrPage-1) * 50 + 1 AND @CurrPage * 50

 

728x90

+ Recent posts