BRKCCT-1593 Troubleshooting in The UCCX
BRKCCT-1593 Troubleshooting in The UCCX
BRKCCT-1593 Troubleshooting in The UCCX
How
1. Find this session in the Cisco Live Mobile App
2. Click “Join the Discussion”
3. Install Spark or go directly to the space
4. Enter messages/questions in the space
cs.co/ciscolivebot#BRKCCT-1593
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
What’s most important is ..
Questions ?
Evidence …
Answers !!
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
Agenda
• Problem Isolation
• System Monitoring Tools – CLI, CUIC & RTMT
• UCCX Engine - CUCM Interaction
• Cisco Finesse
• Live Data
• Database and Reporting
• HA Failover
• Chat and Email
Problem Isolation
Troubleshooting Understand the Problem Statement
“Configuration was done a year ago, and
now we are facing ..”
“Agents are unable to login.”
“Appadmin is not responding.”
“Agents are not receiving calls.”
“Database Replication Down !”
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
Asking The Right Questions
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 8
Asking The Right Questions
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
Evidence - System Monitoring Tools
RTMT – Real Time Monitoring Tool
• Java based plug-in for UCCX. Installable on Windows or Linux
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
RTMT – System Summary Memory | CPU | Disk
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
RTMT – Performance Charts CCX Engine JVM Heap
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
RTMT – Performance Charts CCX Database Stats
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
RTMT – Alert Central Catch Problems Before Users do !
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
RTMT – Log Central Several Ways to View Logs
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
RTMT – Scheduled Trace Collection
Intermittent Issue?
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
System Monitoring Tools –
Command Line
Command Line Tools – Basic Health Check
• CLI: show status
• CLI: utils service list
• CLI: utils diagnose test
• CLI: show network cluster
• CLI: show myself
• CLI: show process load [cpu|memory] [cont|num XX]
• CLI: utils uccx ?
• CLI: show uccx ?
• CLI: set uccx ?
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
Command Line Tools – Tailing Logs
• Currently active logs can be tailed at real-time
• CLI: show open files regexp [MIVR|MADM|MCVD|Desktop-webservices]
• CLI: file tail activelog <relative path from /common/log/taos-log location>
• file tail activelog <relative path from /common/log/taos-log location>
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
System Monitoring Tools - CUIC
Utilization Monitoring – License and Call Handling
• CUIC provides stock reports for this
• License Utilization Hourly report
• Application Performance Analysis report
• Application Summary Report
• Aborted and Rejected Report
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
License Utilization Hourly Grid and Chart Views
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
License Utilization Hourly Grid and Chart Views
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
Call Failures – Aborted and Rejected Reports
Aborted Contacts
• Exception occurred in the script workflow – ABORT!
Rejected Contacts
• System reached maximum capacity – REJECT!
• Cause Codes :
• Reject - TRIGGER_MAX_SESSION
• Reject - REMOTE_TIMEOUT
• Reject - CHANNELS BUSY
• Aborted – Too many transfer failures
Reports give helpful contact details and
• Aborted – Max Steps Executed (1000) exact timestamps!
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 25
UCCX Engine and CUCM Interaction
UCCX and CUCM Integration
PSTN
Router/GW
UCCX
Communications Manager
Cluster
Finesse Agent Desktops
SIP (5060)
SIP/H323/MGCP
(5060/1720/2427)
LDAP (389 | 3268)
CTI/JTAPI (2748)
AD/LDAP Recording
AXL (443 | 8443)
CTI (12028)
SCCP | SIP (2000 | 5060)
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 27
UCCX Call flow – PSTN call flow
6 2 1
PSTN
4 3 6 Router/GW
23 5 5 4 5
Agent 1. Inbound PSTN Call to VGW.
Stations
UCCX 2. VoIP leg to CUCM.
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
UCCX Engine in Partial Service?
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 31
UCCX Engine in Partial Service?
• If CM Telephony Subsystem is in Partial Service, check the Port Monitor
Tool
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
Analyze the UCCX Engine logs
Call States - Reference
STATE LOG DESCRIPTION
RECEIVED Call.received() Call was received at a configured CTI Route Point
ABANDONED Call.abandoned() Call was dropped by the caller or CTI port during consult
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
//Call is offered to the CTI RP. cgn=1001 and cn=8222
2872713: Mar 28 09:15:31.264 IST %MIVR-SS_TEL-7-UNK:Route Connection=[8222::1/(P1-abhi_1)
GCID=(1,7057)->ACTIVE]->OFFERED, reason=1, Event= (P1-abhi_1) 7057/1 CallCtlConnOfferedEv
8222::1 [#827] Cause:100 CallCtlCause:100 CiscoCause:0 FeatReason:12, cause=100,
metacode=129, isMaster=true
//The call for the trigger 8222 is accepted at CTI port 9989
2872739: Mar 28 09:15:31.329 IST %MIVR-SS_TEL-7-UNK:CallID: 13, MediaID: 7057/1 Accepting
call for CTI Route Point: 8222 on CTI Port: 9989, ciscoCause=0
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
//Call is accepted and the call is ringing at the CTI port
2872740: Mar 28 09:15:31.329 IST %MIVR-SS_TEL-7-UNK:Call.accepted()
JTAPICallContact[id=13,implId=7057/1,state=STATE_ACCEPTED_IDX,inbound=true,App
name=app_new,task=null,session=19000000014,seq
num=0,cn=8222,dn=8222,cgn=1001,ani=null,dnis=null,clid=null,atype=DIRECT,lrd=null
,ocn=8222,route=RP[num=8222],OrigProtocolCallRef=0000000000001B9101685E5300000000
,DestProtocolCallRef=null,TP=9989]
2872741: Mar 28 09:15:31.329 IST %MIVR-SS_TEL-7-UNK:CallID:13 MediaId:7057/1,
TerminalConnection to Terminal: renji_9989 is RINGING, [9989::1/(P1-abhi_1)
GCID=(1,7057)->ACTIVE]->ALERTING
//TaskID created: 37000000025
2872744: Mar 28 09:15:31.330 IST %MIVR-SS_TEL-7-UNK:CallID:13 MediaId:7057/1
Task:37000000025 associated with Task ID: 37000000025
//Agent selected and the state is changed to RESERVED
2872829: Mar 28 09:15:32.657 IST %MIVR-SS_CM-7-UNK:RmCm contact 16784273[7057/1]
(12) .addAssociatedResource(abhi)
2872830: Mar 28 09:15:32.657 IST %MIVR-SS_RM-7-UNK:Rsrc: abhi New State:RESERVED
Old State:AVAILABLE Reason code:0
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
//Consult transfer starts
2872835: Mar 28 09:15:32.658 IST %MIVR-SS_TEL-7-UNK:CallID:13 MediaId:7057/1
Task:37000000025, transfer(6000, 12000, ACKNOWLEDGED)
//Consult call is offered at the agent's phone
2872869: Mar 28 09:15:32.690 IST %MIVR-SS_TEL-7-UNK:OrigCall=CallID:13
MediaId:7057/1 Task:37000000025, ConsultEvent= (P1-abhi_1) 7058/1
CallCtlConnOfferedEv 6000::4 [#881] Cause:100 CallCtlCause:100 CiscoCause:0
FeatReason:12
//Consult call ringing on agent's extension
2872893: Mar 28 09:15:33.271 IST %MIVR-SS_TEL-7-UNK:CallID:13 MediaId:7057/1
Task:37000000025, ConsultCallObserver RINGING
//Agent answers the call
2872937: Mar 28 09:15:38.227 IST %MIVR-SS_TEL-7-UNK:CallID:13 MediaId:7057/1
Task:37000000025, ConsultCallObserver TALKING - CallCtlConnEstablished,
[6000::1/(P1-abhi_1) GCID=(1,7058)->ACTIVE]->ESTABLISHED
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
Common call failure scenario-1
Partition and CSS issue: it is important to note that the original calling number should be
able to reach BOTH THE CTI ROUTE POINT AND THE CTI PORTS.
In the MIVR logs, the following error message is seen:
302849: Dec 02 23:14:25.566 PST %MIVR-SS_TEL-3-ROUTE_FAILED:Route failed: All
Call
ids=JTAPICallContact[id=10,implId=1481/1,state=STATE_RECEIVED_IDX,inbound=true
,App name=sample_1,task=null,session=1000000011,seq
num=0,cn=7420,dn=7420,cgn=1009,ani=null,dnis=null,clid=null,atype=DIRECT,lrd=n
ull,ocn=7420,route=RP[num=7420],TP=null,List of Active
Connections=[7420::1/(P1-sydney_cti_1) GCID=(1,1481)->ACTIVE]-
>OFFERED,Extension=7410,Exception=com.cisco.jtapi.InvalidPartyExceptionImpl:
Attempt to redirect to an unknown destination,Failure reason= call will be
rejected, CTIERR_REDIRECT_CALL_UNKNOWN_DESTINATION=0x8ccc0034::Attempt to
redirect to an unknown
destination,Contact.Reject.reason=TRIGGER_FAIL,(SelectRouteTime,ObtainingIdleC
hannelTime,RedirectTime=0,0,16)
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
99016: Dec 01 09:22:53.644 IST 99066: Dec 01 09:22:54.039 IST %JTAPI- 99067: Dec 01 09:22:54.211 IST %JTAPI-PROTOCOL-
%JTAPI-PROTOCOL-7-UNK:(P1- PROTOCOL-7-UNK:(P1-10.106.112.196) 7-UNK:(P1-10.106.112.196) received Event:
10.106.112.196) received [MIVR_SS_TEL_TPG_ROUTE_EXE-44-24- com.cisco.cti.protocol.NewCallEvent {
Event: ROUTE_CALL_EV] sending: eventSequence = 397
com.cisco.cti.protocol.NewCall com.cisco.cti.protocol.CallRedirectReq lineCallManagerID = 2
Event { uest { lineID = 64
eventSequence sequenceNumber = 148 lineHandleSpecified = true
= 395 lineCallManagerID = 2 deviceName = CCG1_8000
lineCallManagerID lineID = 30 callCallManagerID = 1
= 2 callLegCallManagerID = 1 callLegID = 32362289
lineID callLegID = globalCallManagerID = 1
= 30 32362287 callID = 1464
lineHandleSpecified redirectAddress = 8000 callingParty = 1009
= true unconditional = true calledParty = 8000
deviceName callingSearchSpace = 0 originalCalledParty = 4000
= ACD calledAddressOption = 0 state = 2
callCallManagerID redirectReason = 0 origin = 1
= 1 preferredOriginalCalledParty = 8000 userData = null
callLegID modifiedCallingParty = null auxiliaryData = 1
= 32362287 farEndpointCallManagerID = 1
globalCallManagerID farEndpointType = 1
= 1 reason = 6
callID callingPartyName =
= 1464 calledPartyName =
callingParty
= 1009
calledParty
= 4000
originalCalledParty
= 4000
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
The call from the CTI Route point to the CTI
Port is a REDIRECT, therefore the original
calling party should have access to both the
route points and ports.
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 40
Remember.. Select
Resource
Timeout < RNA
Steps in Script on IPCC Line Max Calls (2)
(Interruptible) Busy Trigger (1)
MoH 2 Second
Timeout before
(Non-Multicast) Accept (Script)
CUCM
Avoid Providers
Shared Lines Unsupported Local, CTI
Actions Ports, RPs in
separate DPs
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
Troubleshooting Finesse
Cisco Finesse
-Browser-based
-Co-resident with CCX
- Open REST APIs
- Customizable desktop
- Cisco and third party gadgets
- Integrated administration
- E.164 support
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
Finesse health
• Finesse depends on the following services for its normal functioning :
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
Checking Finesse health
Service status on the GUI shows
‘STARTED’ – does this mean Finesse is
usable?
NO. Service state : STARTED = Finesse
Tomcat status only
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 45
Slowness? Check Finesse Health
https://host.domain.com:8445/finesse-dp/rest/DiagnosticPortal/GetPerformanceInformation
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
Finesse Issues – Further Analysis
• From Real-Time Monitoring Tool (RTMT) collect logs for Cisco Finesse, Cisco
Unified CCX Engine, Cisco Unified CCX Notification Service
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 47
Failure Scenario – Finesse Monitoring Error
Problem: Monitoring Fails to Start
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
Failure Scenario – Finesse Monitoring Error
Problem: Monitoring Fails to Start
CCX Engine detects BiB Is Enabled, Uses JTAPI to Begin Monitoring Call Setup
CCX Engine log:
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 49
Failure Scenario – Finesse Monitoring Error
Problem: Monitoring Fails to Start
JTAPI Shows the Supervisor’s Monitoring Call State Go Dialtone > Dialing > Disconnected with Error:
JTAPI log:
%JTAPI-CTI-7-UNK:(P2-
rmcm){Line:SEP88755651168C:2001:NewYork:(1,100)|Call:[GCID=(2017/1),CID=19750048]}
CallStateChanged (V2) [state=DISCONNECTED cause=UNALLOCATEDNUMBER destType=UNKNOWN destCM=0
fwdDest=: SecStat=1 unCg=2001 unCd= unOrigCd= unLRP= cg=2001 …….
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 50
Failure Scenario – Finesse Monitoring Error
Problem: Monitoring Fails to Start
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 51
Troubleshooting High Availability
High Availability
• LAN: Both nodes share AXL, Unified CM Telephony and RMCM Provider list
configuration
HA over LAN (HAoLAN) HA over WAN (HAoWAN)
CM Publisher CM Subscriber CM Publisher CM Subscriber
WAN
• WAN: Both nodes have unique AXL, Unified CM Telephony and RMCM
Provider list configuration
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
Failover Issues – Further Analysis
• From Real-Time Monitoring Tool (RTMT) collect logs for
• Cisco Unified CCX Cluster View Daemon (MCVD) logs
Engine Failure
Engine logs – MIVR logs
Database Failure
Online logs – CCX Database
Event Viewer logs
Application logs
System logs
Finesse logs
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
High Availability
Scenario 1: Lost Connectivity
Secondary CVD detects missing keep-alives from Primary CVD
%MCVD-CVD-5-HEARTBEAT_MISSING_HEARTBEAT:
CVD does not receive heartbeat from node for a long period: nodeId=1,dt=2049
Primary CCX Server Secondary CCX Server .....
%MCVD-CVD-5-HEARTBEAT_MISSING_HEARTBEAT:
CVD M ? ? S ? M CVD CVD does not receive heartbeat from node for a long period: nodeId=1,dt=10245
%MCVD-CVD-4-HEARTBEAT_SUSPECT_NODE_CRASH:CVD suspects node crash:
Engine ! Engine state=Heartbeat State,nodeInfo=Node id=1 ip=192.168.12.5
%MCVD-CVD-4-HEARTBEAT_SUSPECT_NODE_CRASH:CVD suspects node crash:
state=Convergence State,nodeInfo=Node id=1 ip=192.168.12.5
Database Database
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 55
High Availability
Scenario 2: Partitioned Network – ISLAND MODE
Primary CVD detects missing Heartbeats
Primary CCX Server Secondary CCX Server and assumes Primary has failed
%MCVD-CVD-5-HEARTBEAT_MISSING_HEARTBEAT:
CVD M M S ? M CVD CVD does not receive heartbeat from node for a long period: nodeId=2,dt=10197
%MCVD-CVD-4-HEARTBEAT_SUSPECT_NODE_CRASH:CVD suspects node
Engine ! Engine crash:
state=Convergence State,nodeInfo=Node id=2 ip=192.168.13.5
Database Database
Secondary CVD detects missing Heartbeats
Reporting Reporting and assumes Primary has failed
%MCVD-CVD-5-HEARTBEAT_MISSING_HEARTBEAT:
CVD does not receive heartbeat from node for a long period: nodeId=1,dt=10242
Finesse Finesse %MCVD-CVD-4-HEARTBEAT_SUSPECT_NODE_CRASH:CVD suspects node crash:
state=Heartbeat State,nodeInfo=Node id=1 ip=192.168.12.5
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
High Availability
Recovery from Network partition
Primary CVD detects Secondary and keeps Master
%MCVD-CVD-7-UNK:Split after network partition is detected,new nodeId=2
Primary CCX Server Secondary CCX Server %MCVD-CVD-7-UNK:Engine bestCandidate runs on nodeId=1
because primaryEngineComputerName=UC85CCXPRI
CVD M M M ? S CVD %MCVD-CVD-7-UNK:Master Cisco Unified CCX Engine conditional-Keep-
LocalMaster
from localServiceCisco Unified CCX Engine on node 1
Engine Engine
!
Database Database Secondary CVD detects Primary and drops Master
%MCVD-CVD-7-UNK:Split after network partition is detected, new nodeId=1
Reporting Reporting %MCVD-CVD-7-UNK:Engine bestCandidate runs on nodeId=1
because primaryEngineComputerName=UC85CCXPRI
%MCVD-CVD-7-UNK:Master Cisco Unified CCX Engine DropLocalMaster from
Finesse Finesse localServiceCisco Unified CCX Engine on node 2, conditional=true
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
Finesse Failover Behavior before 11.6
Scenario CCX HA Behavior Finesse Server Finesse Client Recovery
HA Behavior Behavior
CCX Engine Failure Failover to HA node Failover to HA node Failover to HA node Finesse follows
Engine mastership
CCX Notification No Failover Finesse goes Out of Sessions closed Finesse unavailable
Service Failure Service until Notification
Service comes online
Finesse Tomcat No Failover Finesse goes Out of Sessions closed Finesse unavailable
Failure Service until Tomcat Service
comes online
Finesse Service OOS No Failover Finesse goes Out of Sessions closed Finesse unavailable
Service until issue fixed
Island Mode Both HA nodes Both Finesse servers Clients connect to Clients reconnect to
become Master In Service either Master node
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 58
Finesse Failover Enhancements (11.6)
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 59
Finesse Failover Enhancements (11.6)
Unified CCX HA
Failure Scenario Behavior Cisco Finesse - Node 1 Cisco Finesse - Node 2
Engine Mastership Return to IN_SERVICE as Return to IN_SERVICE as
Unified CCX Engine fails over from changes from master soon as it connects to the soon as it connects to the
master to Non-Master node to non-master. new master engine. new master engine.
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 62
Key Flow Points
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 63
Logging required
• Engine logs (MIVR) – ICD_RTDM, SS_RMCM, upto Xdebugging5
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 64
UCCX Engine as Live Data Source
• Engine drafts JSON updates to JMS (ActiveMQ) every 3 seconds
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 65
UCCX Engine as Live Data Source
• For Event based Rooms, Engine sends empty heartbeats
558509: Jan 26 18:57:26.274 EST %MIVR-SS_RMCM-7-UNK:HeartBeatAction : Sending
JMS message : [] for destinations [topic://ChatAgentStats,
topic://ChatQueueStatistics, topic://AgentCSQStats,
topic://AgentStateDetailStats]
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 66
SocketIO debugs
• The Socket IO Server receives messages from the JMS bus for the Topic.
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 67
SocketIO debugs
• Socket IO Server processes the messages and maps them to the appropriate
rooms.
• Room name=ResourceIAQStats*agent1, Status=ENQUEUED
0000005789: 10.106.87.133: Jan 26 2016 18:57:27.007 +0530:
%CCBU_pool-19-thread-1-6-MessageDispatcher:
%[client_count=-
1][message={"id":"agent1","operation":"UPDATE","ResourceIAQStats":
{"resourceId":"agent1","resourceName":"agent1",".....
..
room_name=ResourceIAQStats*agent1][socket_io_server_type=WS/WSS][status=ENQUEU
ED]: Event Detail Trace
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 68
SocketIO debugs
• SocketIO message dispatcher sending the update to clients
• The Message Dispatcher receives the discrete room named messages and transmits
them to all the clients that subscribe to the room.
• Operation = UPDATE, Status=SENT
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 69
SocketIO debugs
• 4. On the Browser Side logs (F12) we see the following:
Message received on
socket::{"id":"agent1","operation":"UPDATE","ResourceIAQStats":{"resourceId"
:"agent1","resourceName":"agent1","resourceState":3,"durationInStateMillis":
264720,"nHandledContacts":6,"nPresentedContacts":8,"avgTalkDuration":1165394
,"longestTalkDuration":2266049,"avgHoldDuration":0,"longestHoldDuration":0,"
avgHandleDuration":0,"avgWorkDuration":0,"totalTalkTime":6992368,"totalHoldT
ime":0,"maxReadyTime":10199923,"avgReadyTime":1156099,
The above message can also be tallied with Finesse side Client logs to check browser updates coming
in.
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
Live Data – Checklist
NTP • Synchronized
• Resolution Forward and Reverse
DNS • Diagnostic test : utils diagnose test
Hostname • Lowercase
• Mismatch, Unsupported Algorithms
Certificates
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 71
Remember.. Browser
Versions
Browser
Field Note
Cache
Awareness
(Incognito)
Disable
Supported
Compatibility
Sizing Limits
mode
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 72
UCCX Database and Reporting
UCCX Databases
IBM Informix
Platform DB
Finesse CUIC
CM DB
UCOS
RHEL
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 74
UCCX Replication Types
Publisher Subscriber
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 75
DB Replication States
utils dbreplication status – Provides the status of Platform DB replication.
CUIC and Finesse share the platform DB.
utils uccx dbreplication status – Provides the status of the UCCX DB replication.
All the CCX historical, configuration and repository data is stored on this DB.
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 76
CCX Database Replication
• View from CCX Admin or CLI
• Connected / Active state shows healthy replication
• Dropped / Timed Out status indicates replication issue
File Purpose
/usr/local/cm/db/informix/etc/sqlhosts.uccx Entries for Informix SQLHOSTS for the UCCX Instance
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 78
Database Repair - Checklist
Enable/Disable
CDS/HDS forcedatasync
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 79
Database Replication Reset
• Replication can be broken if Subscriber is unavailable for too long and send
queues buffer is exceeded Alert Raised!
• Typically 3-4 days (*can vary with load) DBReplicationStopped
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 80
Disable/Enable CDS/HDS
Tools -> Datastore Control Center ->
Replication Servers
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 81
Disable/Enable CDS/HDS
Tools -> Datastore Control Center ->
Replication Servers
Node 1 Node 2
CDS
CDS
HDS HDS
RDS RDS
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 82
Disable/Enable CDS/HDS
Tools -> Datastore Control Center ->
Replication Servers
HDS HDS
RDS RDS
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 83
Disable/Enable CDS/HDS
Tools -> Datastore Control Center ->
Replication Servers
Node 1 Node 2
CDS
CDS
HDS HDS
Enable CDS/HDS
RDS RDS
1. Setup HDS replication.
2. Merge HDS data.
3. Copy node 1 CDS to node 2.
4. Activate node 2 CDS.
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 84
Common Scenario : Configuration Issue
Making Config Changes – Error occurred while saving
• Both DBs must be AVAILABLE!
• WORKAROUND?
• Temporarily Disable CDS on Subscriber
CCX Administration (MADM) Logs:
%MADM-ADM_CFG-7-UNK:ICDServlet :: Exception occurred
The SUBSCRIBER node of the HA is not available
%MADM-ADM_CFG-3-ADM_EXCEPTION:Unknown ADM Exception:
CCX Serviceability Admin -> Tools -> Datastore Exception=java.lang.RuntimeException: The SUBSCRIBER node of the HA is not available
Control Center -> Replication Servers
• Disable CDS and HDS
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 85
Synchronize Data - GUI
Tools -> Datastore Control Center ->
Datastores
CDS CDS
HDS HDS
RDS RDS
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 86
Synchronize Data - GUI
Tools -> Datastore Control Center ->
Datastores
RDS RDS
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 87
Force Database Sync – CLI Command
Local DB Remote DB
CDS CDS
HDS HDS
RDS RDS
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 88
Force Database Sync – CLI Command
Local DB Remote DB
CDS
Overwrite Target = Local! CDS
HDS HDS
RDS RDS
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 89
Force Database Sync – CLI Command
Local DB Remote DB
CDS
Overwrite Target = Local! CDS
HDS HDS
RDS RDS
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 91
Reporting Review - Datasources
CUIC Data Sources:
Subscriber’s CUIC
Also uses Subscriber’s
db_cra
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 92
Database Issues – Further Analysis
• From Real-Time Monitoring Tool (RTMT) collect logs for
• Cisco Unified CCX Database
DB
online.uccx.log file for
issues related to database
service
DB REPLICATION
uccx_repl_output_util.log
file for issues related to
database replication or at a
minimum gather these logs
for TAC
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 93
Reporting Review – User Accounts
• uccxhruser - ”Historical Reporting User”
• CUIC, Wallboards, 3rd Party Reporting Software, Workforce Management
uccxwallboard
Wallboard User limited to
RtCSQsSummary and
RtICDStatistics tables
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 94
Scenario: Reporting and Database Performance
• Historical Reports slow to execute..
• Overall high server CPU utilization..
• Sluggishness in the system..
• Appadmin is slow..
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 95
Reporting and Database Performance
• Review the configured CUIC reports and their frequency
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 96
Reporting and Database Performance
• If tables have millions of rows, review purge config:
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 97
Reporting and Database Performance
• DBPerf Script:
2 parameters - total duration and interval at which to get data
UCM
UCCX
SocialMiner
End User
Finesse Client
Internet DMZ MS Exchange Corporate
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 100
From Customer to Agent
Cloud Mail 3
UCCX
2 4
Social Miner
Customer chat 5
Finesse Client
Intranet
DMZ Exchange
Exchange-Finesse Email Architecture with Social Miner – note that the exchange can be in the DMZ too.
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 101
IMAP HTTPS HTTP/S XMPP XMPP HTTP/REST Traffic Proxied via Finesse Tomcat
(Agent) (BOSH) Server to Server
Interacts w/ Private REST APIs Communication
Hosted in SocialMiner Shared BOSH Connection
Hosted in UCCX Cisco Unified
UCCX
OpenAjax Hub
Cisco Tomcat
& Other
Services
SocialMiner
XMPP Service
SocialMiner
Cisco Tomcat
& Other
Services
Reply Template JSP loaded via SocialMiner Tomcat Chat XMPP Service
Gadget to Gadget Communication via HTML5 Interacts w/ Private REST APIs Customer Website
Object Missing
Object Mismatch
Object Normal
Email
Fetch Emails
Notify New Contact
Notify New Contact
Load Email UI
Get Email Body and Attachments
Reserve Contact
Fetch Complete Email
Load Complete Email
Upload/Download
Upload/Download Attachments / Reply
Attachments / Reply
Email Reply Contact Handled
Contact Handled
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 104
Email & Chat Fault Tolerance
SocialMiner
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 105
Reinject Email Contacts
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 106
Finesse Agent Email – Failure Scenario 1
• Verify that there are no auto-routing rules that moved the email
• Verify CSQ alias folder has not been deleted or moved
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 107
Finesse Agent Email – Failure Scenario 2
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 108
Finesse Web Chat Message Flow
SocialMiner Finesse Client
Web Server UCCX
Chat Request
New Contact Notification
Contact Dialog Event
End Session
Session Complete
Session Complete
Contact Dialog Event
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 109
Failure Scenario – Non-Voice Gadget
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 110
SocialMiner with UCCX - Checklist
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 111
SocialMiner Logs
Runtime Logs
• The Main SocialMiner Engine (Runtime)
• RTMT – SocialMiner Runtime
• CCBU-runtime.*.startup.log, Error-runtime.*.startup.log
API Logs
• Main API logs for the SocialMiner REST API
• RTMT – CCP API Logs
• CCBU-ccpapi.*.startup.log, Error-ccpapi.*.startup.log
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 112
What’s most important is ..
Questions ?
Evidence …
Answers !!
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 113
Cisco Spark
Questions?
Use Cisco Spark to communicate
with the speaker after the session
How
1. Find this session in the Cisco Live Mobile App
2. Click “Join the Discussion”
3. Install Spark or go directly to the space
4. Enter messages/questions in the space
cs.co/ciscolivebot#BRKCCT-1593
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
• Please complete your Online Complete Your Online
Session Evaluations after each
session
Session Evaluation
• Complete 4 Session Evaluations
& the Overall Conference
Evaluation (available from
Thursday) to receive your Cisco
Live T-shirt
• All surveys can be completed via
the Cisco Live Mobile App or the
Communication Stations
Don’t forget: Cisco Live sessions will be available
for viewing on-demand after the event at
www.ciscolive.com/global/on-demand-library/.
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Continue Your Education
• Demos in the Cisco campus
• Walk-in Self-Paced Labs : LABCCT-2011
• Tech Circle
• Meet the Engineer 1:1 meetings
• Related sessions
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 116
Call to action !
• UCCX solution health check (Once a month)
BRKCCT-1593 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 117
Thank you