04-07-2017 01:21 AM - edited 03-17-2019 06:47 PM
All,
Is it possible to obtain how many users are logged in using Jabber?
Thanks
D
Solved! Go to Solution.
04-10-2017 09:20 AM
I logged this with TAC eventually and their official response was that there is not a way of doing this when in Deskphone CTI mode. Only for Softphone mode or XMPP client.
D
04-07-2017 03:02 AM
Hi,
The Real Time Monitoring Tool can provide you the following info:
The Real-Time Monitoring Tool provides a set of important performance counters that assist you in monitoring the overall performance of the IM and Presence service and Cisco Jabber. The IM and Presence and Cisco Jabbersummaries in RTMT allow you to monitor important common information in a single monitoring pane.
To display information on important performance counters that reflect the overall performance of IM and Presence andCisco Jabber, select IM and Presence > IM and Presence Summary or IM and Presence > Cisco Jabber Summary.
Under IM and Presence Summary, review the following information:
PE Active JSM Sessions
XCP JSM IM Sessions
Total IMs Handled
Current XMPP Clients Connected
Total Ad hoc Chat Rooms
Total Persistant Chat Rooms
Under Cisco Jabber Summary, review the following information:
http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/service/9_0/rtmt/CUCM_BK_CA3A517A_00_cisco-unified-rtmt-administration-90/CUCM_BK_CA3A517A_00_cisco-unified-real-time-monitoring-tool_chapter_01001.html#CUP0_RF_C4E94E1A_00
HTH
Manish
04-10-2017 09:20 AM
I logged this with TAC eventually and their official response was that there is not a way of doing this when in Deskphone CTI mode. Only for Softphone mode or XMPP client.
D
02-17-2018 08:14 PM
I had a similar question... I need a list of users that control their phones with the Jabber client.
risport70 provides cti devices including device, state, and user. You have to access risport70 with Python or PHP. I was hoping someone else would have posted the code. I put the following code together. I need a list of users that control their phones with CTI. You will have to manipulate the zeep response my_service dictionary to fit your needs.
#Python script to accumulate set of open CTI devices pulled from RISService70 when script is run several times a week. Script assumes there are Open CTI connections in PHONELIST
from requests import Session
from requests.auth import HTTPBasicAuth # or HTTPDigestAuth, or OAuth1, etc.
from zeep import Client
from zeep.transports import Transport
PHONELIST = 'SEPBADCEEF00D10,SEPBADCEEF00D11,SEPBADCEEF00D12,SEPBADCEEF00D13'
user_list = []
for item in open('userlist.txt', 'r'):
item.rstrip()
user_list.append(item.rstrip())
session = Session()
session.auth = HTTPBasicAuth('admin', 'password')
session.verify = False
client = Client('https://yourserver.yourdomain.com:8443/realtimeservice2/services/RISService70?wsdl',
transport=Transport(session=session))
client.set_ns_prefix('soap', 'http://schemas.cisco.com/ast/soap')
my_service = client.service.selectCtiItem('', {
'MaxReturnedItems':'1000',
'CtiMgrClass':'Line',
'Status':'Open',
'NodeName':'',
'SelectAppBy':'UserId',
'AppItems':{},
'DevNames':{
'item':{'DevName':PHONELIST},},
'DirNumbers':{},
})
my_list = []
cucm1 = my_service['SelectCtiItemResult']['CtiNodes']['item'][0]
cucm2 = my_service['SelectCtiItemResult']['CtiNodes']['item'][1]
cucm3 = my_service['SelectCtiItemResult']['CtiNodes']['item'][2]
for j in cucm1['CtiItems']['item']:
my_list.append(j['UserId'])
for j in cucm2['CtiItems']['item']:
my_list.append(j['UserId'])
for j in cucm3['CtiItems']['item']:
my_list.append(j['UserId'])
my_set = set(my_list + user_list)
outfile = open('userlist.txt', 'w')
for item in my_set:
item += '\n'
outfile.write(item)
outfile.close()
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide