10-06-2004 08:12 AM - edited 03-15-2019 03:04 AM
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
10-08-2004 12:04 AM
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)
05-29-2005 09:58 AM
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.
06-15-2005 03:17 PM
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.
06-16-2005 01:13 AM
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.
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