cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
399
Views
5
Helpful
4
Replies

Getting the IP address of a IPPhone connected to Call manager

armadata
Level 1
Level 1

Is it possible to get the IP of a IPPhone using AXL, TAPI or sql query?

I have the Device Name and Mac address

BRGDs

MWL

4 Replies 4

stephan.steiner
Spotlight
Spotlight

Sure you can. The DeviceListX report web page on the call manger will give you a list of all the phones you can parse.

The report is explained in detail in the IP Phone Services SDK, and there are a few java code examples that actually use the report to list the phones. You can get the SDK here: http://www.cisco.com/cgi-bin/dev_support/access_level/product_support (CCO login required but if you don't have one, just sing up - it's free)

cgm
Level 1
Level 1

Cisco way AFAIK is to use the DeviceListX report.

The fields available in the report are:

• Device Type

• Device Name

• Device Description

• Calling Search Space

• Device Pool

• IP Address

• Real-Time Information (registration status)

Some sample output:

s="1"/>

Take a look at the CCM_API_overview doc.

kemper51
Level 1
Level 1

you might want to be careful with devicelistx -- i haven't seen the report in a while but it used to be limited to a select number of device types -- 7960 7970 -- if i remember correctly we had issues with 7912 and 7905's not being available in the report.

Also I believe the report is has a specified access control on it so you can only call it once every minute or so.

We currently gather all the info you are requesting using snmp.

those limitations are long gone starting with ccm 4.0. Plus, you can adapt CCM 3.x style files to get the new device types by adding the appropriate device IDs to the script. So in case you have limitations, change your supportedPhones array to the following:

supportedPhones[supportedPhones.length] = 35; // 7960

supportedPhones[supportedPhones.length] = 36; // 7940

supportedPhones[supportedPhones.length] = 30018; // 7970

supportedPhones[supportedPhones.length] = 30044; // 7965

supportedPhones[supportedPhones.length] = 30002; // 7920

supportedPhones[supportedPhones.length] = 20003; // 7905

supportedPhones[supportedPhones.length] = 30022; // 7912

supportedPhones[supportedPhones.length] = 30041; // IP Communicator

If you need additional types, look at the TypeOfProduct table in the CCM DB.

And as far as the limitation goes, 1 minute is it, but you can change that in the script if you like. Though, getting the list of phones every 10 seconds may have negative impacts, and I'd also wonder about the sense of getting the list that frequently. IP addresses may be assigned dynamically, but in a stable network there shouldn't be any changes, should there? And phones should not reboot all the time either.