cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1380
Views
0
Helpful
11
Replies

C-series(TC5) list contents of corporate phonebook trough SSH

Tom Leinos
Level 1
Level 1

Hi, how can i list contents of a corporate phonebook on c-series device trough ssh?

xcommand phonebook seach PhonebookType: Corporate (only shows folders)

xcommand phonebook search (only show local  "my contacts" phonebook).

I have a codec that does not want to show any contents but it shows the corporate folder.

It would be alot more simple to debug this way, if i could do this trough ssh.

Are there any log files / debug commands that shows why the phonebook contents was not listed?

br. Tom

1 Accepted Solution

Accepted Solutions

hi,

xCommand Phonebook Search phonebooktype: corporate

OK
*r ResultSet ResultInfo Offset: 0
*r ResultSet ResultInfo Limit: 50
*r ResultSet ResultInfo TotalRows: 7
*r ResultSet Folder 1 Name: "00 Cisco TSEC APAC Showcase"
*r ResultSet Folder 1 FolderId: "c_8"
*r ResultSet Folder 2 Name: "01 Cisco Personel"
*r ResultSet Folder 2 FolderId: "c_12"
*r ResultSet Folder 3 Name: "02 Cisco Production Meeting Rooms"
*r ResultSet Folder 3 FolderId: "c_15"
*r ResultSet Folder 4 Name: "03 Cisco TSEC MCUs"
*r ResultSet Folder 4 FolderId: "c_16"
*r ResultSet Folder 5 Name: "04 Cisco APAC Demo Pod"
*r ResultSet Folder 5 FolderId: "c_18"
*r ResultSet Folder 6 Name: "05 Cisco TSEC EMEA"
*r ResultSet Folder 6 FolderId: "c_19"
*r ResultSet Folder 7 Name: "All Systems"
*r ResultSet Folder 7 FolderId: "c_1"
** end
xCommand Phonebook Search phonebooktype: corporate folderid: c_1

OK
*r ResultSet ResultInfo Offset: 0
*r ResultSet ResultInfo Limit: 50
*r ResultSet ResultInfo TotalRows: 51
*r ResultSet Contact 1 Name: "BJN C90 (SEP005060848B3E) (SIP)"
*r ResultSet Contact 1 ContactId: "e_4730"
*r ResultSet Contact 1 ContactMethod 1 ContactMethodId: "147"
*r ResultSet Contact 1 ContactMethod 1 Number: "SIP:xxxxxxxx"
*r ResultSet Contact 1 ContactMethod 1 Protocol: SIP
*r ResultSet Contact 1 ContactMethod 1 CallRate: 384
*r ResultSet Contact 2 Name: "BJN Entrance SX20 (SEP0050600723EA) (SIP)"
*r ResultSet Contact 2 ContactId: "e_4675"
*r ResultSet Contact 2 ContactMethod 1 ContactMethodId: "148"
*r ResultSet Contact 2 ContactMethod 1 Number: "SIP:xxxxxxx"
*r ResultSet Contact 2 ContactMethod 1 Protocol: SIP
*r ResultSet Contact 2 ContactMethod 1 CallRate: 384
*r ResultSet Contact 3 Name: "BJN Jie Wei EX90 (SEP0050600633CD) (SIP)"
*r ResultSet Contact 3 ContactId: "e_4615"
*r ResultSet Contact 3 ContactMethod 1 ContactMethodId: "149"
*r ResultSet Contact 3 ContactMethod 1 Number: "SIP:xxxxxxxx"
*r ResultSet Contact 3 ContactMethod 1 Protocol: SIP
*r ResultSet Contact 3 ContactMethod 1 CallRate: 384

ignore the contact number, cause I black them off.

View solution in original post

11 Replies 11

Teck Chye Tang
Cisco Employee
Cisco Employee

Hi,

You can add in the field "folderID" and put in the right ID in your command and if there are contacts in the folder, they should be listed

Hi could you show me a working example, i have tried with the folderID with corporate phonebooks without sucess.

xcommand Phonebook Search  PhonebookType: Corporate

OK

*r ResultSet ResultInfo TotalRows: 1

*r ResultSet Folder 1 Name: "Test"

*r ResultSet Folder 1 FolderId: "c_11"

xcommand Phonebook Search FolderId: "c_11"

*r PhonebookSearchResult Reason: "Nonexisting PhonebookGroup"

** end

br. Tom

hi,

xCommand Phonebook Search phonebooktype: corporate

OK
*r ResultSet ResultInfo Offset: 0
*r ResultSet ResultInfo Limit: 50
*r ResultSet ResultInfo TotalRows: 7
*r ResultSet Folder 1 Name: "00 Cisco TSEC APAC Showcase"
*r ResultSet Folder 1 FolderId: "c_8"
*r ResultSet Folder 2 Name: "01 Cisco Personel"
*r ResultSet Folder 2 FolderId: "c_12"
*r ResultSet Folder 3 Name: "02 Cisco Production Meeting Rooms"
*r ResultSet Folder 3 FolderId: "c_15"
*r ResultSet Folder 4 Name: "03 Cisco TSEC MCUs"
*r ResultSet Folder 4 FolderId: "c_16"
*r ResultSet Folder 5 Name: "04 Cisco APAC Demo Pod"
*r ResultSet Folder 5 FolderId: "c_18"
*r ResultSet Folder 6 Name: "05 Cisco TSEC EMEA"
*r ResultSet Folder 6 FolderId: "c_19"
*r ResultSet Folder 7 Name: "All Systems"
*r ResultSet Folder 7 FolderId: "c_1"
** end
xCommand Phonebook Search phonebooktype: corporate folderid: c_1

OK
*r ResultSet ResultInfo Offset: 0
*r ResultSet ResultInfo Limit: 50
*r ResultSet ResultInfo TotalRows: 51
*r ResultSet Contact 1 Name: "BJN C90 (SEP005060848B3E) (SIP)"
*r ResultSet Contact 1 ContactId: "e_4730"
*r ResultSet Contact 1 ContactMethod 1 ContactMethodId: "147"
*r ResultSet Contact 1 ContactMethod 1 Number: "SIP:xxxxxxxx"
*r ResultSet Contact 1 ContactMethod 1 Protocol: SIP
*r ResultSet Contact 1 ContactMethod 1 CallRate: 384
*r ResultSet Contact 2 Name: "BJN Entrance SX20 (SEP0050600723EA) (SIP)"
*r ResultSet Contact 2 ContactId: "e_4675"
*r ResultSet Contact 2 ContactMethod 1 ContactMethodId: "148"
*r ResultSet Contact 2 ContactMethod 1 Number: "SIP:xxxxxxx"
*r ResultSet Contact 2 ContactMethod 1 Protocol: SIP
*r ResultSet Contact 2 ContactMethod 1 CallRate: 384
*r ResultSet Contact 3 Name: "BJN Jie Wei EX90 (SEP0050600633CD) (SIP)"
*r ResultSet Contact 3 ContactId: "e_4615"
*r ResultSet Contact 3 ContactMethod 1 ContactMethodId: "149"
*r ResultSet Contact 3 ContactMethod 1 Number: "SIP:xxxxxxxx"
*r ResultSet Contact 3 ContactMethod 1 Protocol: SIP
*r ResultSet Contact 3 ContactMethod 1 CallRate: 384

ignore the contact number, cause I black them off.

Thanks, Now for a second question that is related to this one.

I have 2 c-series devices. The First one lists corporate phonebook contents just fine. and second one lists the folders but not the contents. Both have indentical configuration and they are both running in the same network. They are fetching phonebooks with TMS SOHO/Behind Firewall Mode.

How could i figure out why it is not listing the phonebook?

example:

xcommand Phonebook Search PhonebookType: Corporate folderid: c_21

OK

*r ResultSet ResultInfo TotalRows: 0

br. Tom

Magnus ohm & Co: Do you have any advice?

Can i find why the polling fails for the corporate folder contents? IN TMS or perhaps on the device itself?

br. Tom

Hi Tom ,

I have seen this issue in recently and found config issue .

Please compare the working and non working config . After changing config reboot the system it should fix .

If you still not get the phone book then purge and add system again .

Kind regards,

Dharmmesh

Hi, i have tried this. Did not help. Is there any debug files where i could see whats going on?

hi,

maybe you can try to take a wireshark trace on both the TMS and the Codec and see how long does it takes for the phonebook to reach the codec.

For the working case and non-working case.

Hi, i did that also, i have compared the 2 pcap's from 2 devices. They look the same.

The only difference was this TMS Respond message to the faulty device (c-series):

The other device(working) got the following response from tms:

It looks like TMS is the cause of the problem. It does not give the phonebook information.

hi,

This trace is from endpoint end?  I suppose you ahev to look at the TMS end to see if TMS send out successfully, it could be a network timeout and as such endpoint did not succesfully get the entries from TMS?

Suggest you open a TAC case and let the TAC assist you further.

Hi Tom

So you do get a feedback from the TMS and when you look in the endpoint phonebook you see the folder but not any entries is that the case?

Then there is nothing wrong with the TMS connection at least. Go to TMS --> admin tools --> config --> general settings and set the route phonebook entries to NO. What is the result now?

/Magnus

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: