@ECHO OFF
REM
REM By Richard Brynteson
REM Avtex
REM 2012
REM some modifications Lambert Consulting
REM run as admin to avoid snooper crach, if it is still crashing - reinstall Lync debug tools
CD "C:\Program Files\Common Files\Microsoft Lync Server 2013\ClsAgent"
goto menu
REM
REM DISPLAY MENU
:menu
echo What would you like to trace?
echo.
echo.
echo 1 Incoming and Outgoing Calls
echo 2 Address Book
echo 3 Application Sharing
echo 4 Audio Video Conferencing Issue
echo 5 Conferencing Auto Attendant
echo 6 Call Park
echo 7 CLS Logging
echo 8 Device Update
echo 9 Hosted Migration
echo 10 Hybrid Voice
echo 11 Instant Messaging and Presence
echo 13 LILR Legacy
echo 14 LILR Lyss
echo 15 Lyss and UCS
echo 16 Media Connectivity
echo 17 Meeting Join
echo 18 Monitoring and Archiving
echo 19 Response Group
echo 20 SP
echo 21 User Replication
echo 22 Voice Mail
echo 23 WAC
echo 24 XMPP
echo 25 Always On
echo 26 Quit
echo.
:choice
set /P C=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]?
if "%C%"=="26" goto quit
if "%C%"=="25" goto alwayson
if "%C%"=="24" goto xmpp
if "%C%"=="23" goto wac
if "%C%"=="22" goto voicemail
if "%C%"=="21" goto user
if "%C%"=="20" goto sp
if "%C%"=="19" goto rgs
if "%C%"=="18" goto monarc
if "%C%"=="17" goto meeting
if "%C%"=="16" goto media
if "%C%"=="15" goto lyssanducs
if "%C%"=="14" goto lilrlyss
if "%C%"=="13" goto lilrlegacy
if "%C%"=="12" goto im
if "%C%"=="10" goto hybrid
if "%C%"=="9" goto hosted
if "%C%"=="8" goto device
if "%C%"=="7" goto clslog
if "%C%"=="6" goto callpark
if "%C%"=="5" goto conf
if "%C%"=="4" goto av
if "%C%"=="3" goto appsharing
if "%C%"=="2" goto addressbook
if "%C%"=="1" goto inoutcalls
goto choice
:alwayson
set log=AlwaysOn
goto trace
:xmpp
set log=XMPP
goto trace
:wac
set log=WAC
goto trace
:voicemail
set log=VoiceMail
goto trace
:user
set log=UserReplicator
goto trace
:sp
set log=sp
goto trace
:rgs
set log=RGS
goto trace
:monarc
set log=MonitoringAndArchiving
goto trace
:meeting
set log=MeetingJoin
goto trace
:media
set log=MediaConnectivity
goto trace
:hosted
set log=HostedMigration
goto trace
:lyssanducs
set log=LYSSAndUCS
goto trace
:lilrlyss
set log=LILRLYSS
goto trace
:lilrlegacy
set log=LILRLegacy
goto trace
:im
set log=IMandPresence
goto trace
:hybrid
set log=HybridVoice
goto trace
:device
set log=DeviceUpdate
goto trace
:clslog
set log=cls
goto trace
:callpark
set log=CPS
goto trace
:conf
set log=CAA
goto trace
:inoutcalls
set log=IncomingAndOutgoingCall
goto trace
:appsharing
set log=ApplicationSharing
goto trace
:av
set log=AudioVideoConferencingIssue
goto trace
:addressbook
set log=AddressBook
goto trace
:trace
REM
REM START LOGGING
REM
ClsController.exe -start -scenario %log%
ECHO Logging has been enabled. Reproduce your issue now.
PAUSE
REM
REM
REM
ClsController.exe -stop -scenario %log%
ClsController.exe -flush
ECHO Logging has been disabled.
PAUSE
REM
REM
REM
Set TDate=CLS_%date:~4,2%-%date:~7,2%-%date:~10,4%_%time:~0,2%%time:~3,2%_%time:~6,5%.txt
ClsController.exe -search -loglevel verbose > %userprofile%\desktop\%Tdate%
"C:\Program Files\Microsoft Lync Server 2013\Debugging Tools\Snooper.exe" %userprofile%\desktop\%Tdate%
:quit
break
:end
@rem ===== BATCH SCRIPT END =====
No comments:
Post a Comment