简介
本文档介绍在Cisco IM and Presence(IM&P)节点上出现重复用户警报时要执行的示例和过程。
先决条件
要求
Cisco 建议您了解以下主题:
使用的组件
本文档不限于特定的软件和硬件版本。
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您的网络处于活动状态,请确保您了解所有命令的潜在影响。
背景信息
重复用户警报通常显示如下。
Monitoring Automation
Additional comments•05-21-2021 09:12:19
Created by: ALE4855981
Message key: ENTER024::APP_LXT_ENTER024_33f00f5388443c6e24801bce325255711c2bb4a475076ba004ac48df6664deb9
Additional Comments: Timestamp: 2021-05-21 13:12:46
Device:
IP address: Not Supported
Component: Not Supported
Severity: 3
Event Name: APP_LXT_MAJOR
Event SourceNode: ENTER024-LXT1
Message: LayerX.Alarms(10.10.10.10) LayerX ALERT_QUEUE table 0x0000033D 0 204
Custom Message: Alarm ID: 51111 (DuplicateUserid) : Event Message: (%[AlertName=SyslogSeverityMatchFound][AlertDetail= At Fri May 21 08:11:00 CDT 2021 on node impPub.ciscolab.com, the following SyslogSeverityMatchFound events generated: #012SeverityMatch : Alert#012MatchedEvent : May 21 08:10:24 impPub local7 1 : 62: impPub.ciscolab.com: May 21 2021 13:10:24.476 UTC : %UC_ReplWatcher-1-DuplicateUserid: %[AppID=Cisco IM and Presence Data Monitor][ClusterID=][NodeID=impPub]: Cisco IM and Presence Data Monitor has detected that two or more users on the system share the same UserID value.#012AppID : Cisco Syslog Agent#012ClusterID : #012NodeID : impPub#012 TimeStamp : Fri May 21 08:10:24 CDT 2021][AppID=Cisco AMC Service][ClusterID=][NodeID=cucmPub]: RTMT Alert
注意:《思科IM&P配置指南》只提及识别重复用户的单一方法。 但是,在某些情况下,utils users validate all命令不会显示任何信息或显示空输出。
故障排除
对于这些场景,建议执行以下步骤:
步骤1:登录到IM&P的管理网页(GUI),然后导航到System Troubleshooter选项卡。
第二步:如果发现任何重复的用户条目,您可以看到上述用户的用户ID。
第三步:请注意该用户ID,并返回到IM&P的命令行界面(CLI)
第四步:运行以下命令:
从enduser运行sql select *,其中enduser.userid='_user_ID'
系统打印可为该特定用户找到的所有条目(在本例中,用户ID为"user92")
admin:run sql select * from enduser where enduser.userid='user92'
pkid userid xcp_user_id tkuserlocale imaddress xep106imaddress directoryuri mailid status fkdirectorypluginconfig deletedtimestamp passwordreverse tkuserprofile tkassignmentstate ocsprimaryuseraddress fkucccmcipprofile tkphonepresence primarynodeid xep106userid xep106mailid auth_pwd login_stamp logout_stamp auth_count pwd_stamp last_status fkucserviceprofile enablecalendarpresence enablecups discoveryuseridentity
==================================== ======= =========== ============ =================== =================== =================== =================== ====== ==================================== ================ ================================================================ ============= ================= ======================= ================= =============== ============= ============ =================== ======== =========== ============ ========== ========== =========== ================== ====================== ========== =====================
633780c3-182b-153a-654a-6d073c2248ac user92 11412 1 user92@ciscolab.com user92@ciscolab.com user92@ciscolab.com user92@ciscolab.com 1 b5acd3a6-5ac2-055b-cf27-ba4f818533d6 NULL aeef2675d3e72b6fbee00a9badf5d944aa016e0a7a302ac9704b79180f63f21e 1 0 sip:user92@ciscolab.com NULL NULL NULL user92 user92@ciscolab.com 0 2020-05-06 NULL t t
3a15e537-db7c-4b1f-8ff2-1daf5c5d4a05 user92 35283 1 user92@ciscolab.com user92@ciscolab.com user92@ciscolab.com 1 NULL NULL NULL d0d177e67ddc687c526364580c9d0c6ce9b0fb47dc51fed3ced90807105d9de9 100 1 NULL NULL 2802 user92 user92@ciscolab.com 0 2020-07-23 NULL f f
在这种情况下,您会看到该特定用户的两个条目。
要清除这些内容,请执行以下步骤:
步骤1:运行以下命令:
从终端用户运行sql delete,其中enduser.userid='user_ID'
第二步:导航到CUCM Administration页面> User Management > End User > Select the duplicated user and bounce(uncheck & then re-check)the user's Home Node Cluster复选框,以便为同一用户创建单个条目
第三步:最后一次运行此查询以验证是否只显示该用户的单个条目:
从终端用户运行sql select *,其中enduser.userid='your user ID'
admin:run sql select * from enduser where enduser.userid='user92'
pkid userid xcp_user_id tkuserlocale imaddress xep106imaddress directoryuri mailid status fkdirectorypluginconfig deletedtimestamp passwordreverse tkuserprofile tkassignmentstate ocsprimaryuseraddress fkucccmcipprofile tkphonepresence primarynodeid xep106userid xep106mailid auth_pwd login_stamp logout_stamp auth_count pwd_stamp last_status fkucserviceprofile enablecalendarpresence enablecups discoveryuseridentity
==================================== ======= =========== ============ =================== =================== =================== =================== ====== ==================================== ================ ================================================================ ============= ================= ======================= ================= =============== ============= ============ =================== ======== =========== ============ ========== ========== =========== ================== ====================== ========== =====================
633780c3-182b-153a-654a-6d073c2248ac user92 11412 1 user92@ciscolab.com user92@ciscolab.com user92@ciscolab.com user92@ciscolab.com 1 b5acd3a6-5ac2-055b-cf27-ba4f818533d6 NULL aeef2675d3e72b6fbee00a9badf5d944aa016e0a7a302ac9704b79180f63f21e 1 0 sip:user92@ciscolab.com NULL NULL NULL user92 user92@ciscolab.com 0 2020-05-06 NULL t t