Skip to main content

Find Deprecated Phones via SQL

·1211 words·6 mins
Table of Contents

As with every CUCM release, some phones will not be supported anymore. For this example, let us look at how to find a list of phones on CUCM 11.X that are deprecated in release 12.X and newer.

The deprecated and supported phone lists are included in the 12.5 compatibility matrix. The following two queries help extract the necessary data for deprecated and unsupported device models and phone counts.

Deprecated Phone Models #

The following table lists all the phone models that are deprecated for this release of Unified Communications Manager, along with the Unified CM release where the phone model first became deprecated.

Deprecated Phone Models for this Release First Deprecated as of Unified CM
Cisco Unified Wireless IP Phone 7921
Cisco Unified IP Phone 7970
Cisco Unified IP Phone 7971
12.0(1) and later releases
Cisco IP Phone 12 S
Cisco IP Phone 12 SP
Cisco IP Phone 12 SP+
Cisco IP Phone 30 SP+
Cisco IP Phone 30 VIP
Cisco Unified IP Phone 7902G
Cisco Unified IP Phone 7905G
Cisco Unified IP Phone 7910
Cisco Unified IP Phone 7910G
Cisco Unified IP Phone 7910+SW
Cisco Unified IP Phone 7910G+SW
Cisco Unified IP Phone 7912G
Cisco Unified Wireless IP Phone 7920
Cisco Unified IP Conference Station 7935
11.5(1) and later releases

Relevant data, attributes, tables #

Tables #

device contains information about the phones
typemodel translates the typemodel integers (enums) to the human-readable phone model names

Attributes #

typemode.name

Conditions #

typemodel.name in ( list of deprecated phones)

Query #

Use the following query to get the count for each deprecated phone model.

SELECT 
  COUNT(*), 
  typemodel.name AS phonemodel 
FROM 
  device 
  INNER JOIN typemodel ON typemodel.enum = device.tkmodel 
WHERE 
  typemodel.name IN (
    'Cisco 7970', 'Cisco 7971', 'Cisco 7921', 
    'Cisco 12 SP+', 'Cisco 12 SP', 'Cisco 12 S', 
    'Cisco 30 VIP', 'Cisco 30 SP+', 
    'Cisco 7902', 'Cisco 7905', 'Cisco 7910', 
    'Cisco 7912', 'Cisco 7920'
  ) 
GROUP BY 
  typemodel.name 
ORDER BY 
  typemodel.name

Return #

The query will return a table with two columns, one containing the deprecated phone model and the other the count of how many there are in the environment.

run sql SELECT COUNT(*), typemodel.name as phonemodel FROM device INNER JOIN typemodel ON typemodel.enum=device.tkmodel WHERE typemodel.name in ( 'Cisco 7970', 'Cisco 7971', 'Cisco 7921', 'Cisco 12 SP+', 'Cisco 12 SP', 'Cisco 12 S', 'Cisco 30 VIP', 'Cisco 30 SP+', 'Cisco 7902', 'Cisco 7905', 'Cisco 7910', 'Cisco 7912', 'Cisco 7920' ) GROUP BY typemodel.name ORDER BY typemodel.name 

(count(*)) phonemodel 
========== ========== 
7          Cisco 7921 
1          Cisco 7970
...

Unsupported Phone Models #

This query is much longer and lists all phone models/counts by excluding system devices, all supported models and deprecated models.

Cisco Endpoints at End of Support
Cisco Unified SIP Phone 3911, 3951
Cisco Unified IP Phone 6911, 6921, 6941, 6945, 6961, 7906G, 7911G, 7931G, 7940G, 7941G, 7960G, 7961G, 8941
Cisco Unified IP Phone Expansion Module 7925G, 7925G-EX, 7926G
Cisco Unified IP Conference Station 7935, 7936, 7937G
Cisco TelePresence EX60
Cisco TelePresence MX200-G1, MX200-G2, MX300-G1, MX300-G2
Cisco TelePresence 500-32, 500-37, 1000 MXP, 1100, 1300-65, 1300-47, 3000 Series

Relevant data, attributes, tables #

Tables #

device contains information about the phones
typemodel translates the typemodel integers (enums) to the human-readable phone model names

Attributes #

typemode.name

Conditions #

typemodel.name NOT IN ( list of supported or deprecated phones)

Query #

Use the following query to get the count for each unsupported phone model.

SELECT 
  COUNT(*), 
  typemodel.name AS phonemodel 
FROM 
  device 
  INNER JOIN typemodel ON typemodel.enum = device.tkmodel 
WHERE 
  typemodel.name NOT IN (
    'Cisco 3905', 'Cisco 6901', 'Cisco 7841', 
    'Cisco 7811', 'Cisco 7821', 'Cisco 7841', 
    'Cisco 7861', 'Cisco 7832', '7915 12-Button Line Expansion Module', 
    '7915 24-Button Line Expansion Module', 
    '7916 12-Button Line Expansion Module', 
    '7916 24-Button Line Expansion Module', 
    'Cisco 7942', 'Cisco 7962', 'Cisco 7945', 
    'Cisco 7965', 'Cisco 8811', 'Cisco 8821', 
    'Cisco 8841', 'Cisco 8851', 'Cisco 8851NR', 
    'Cisco 8861', 'Cisco 8831', 'Cisco 8845', 
    'Cisco 8865', 'Cisco 8865NR', 'Cisco 8832', 
    'Cisco 8945', 'Cisco 8961', 'Cisco 9951', 
    'Cisco 9971', 'Cisco Dual Mode for Android', 
    'Cisco Dual Mode for iPhone', 'Cisco Jabber for Tablet', 
    'Cisco Jabber for Mac', 'Cisco Unified Client Services Framework', 
    'Cisco IP Communicator', 'Cisco ATA 190', 
    'Cisco ATA 191', 'Cisco DX650', 
    'Cisco DX70', 'Cisco DX80', 'Cisco TelePresence IX5000', 
    'Cisco TelePresence EX60', 'Cisco TelePresence EX90', 
    'Cisco TelePresence MX200 G2', 
    'Cisco TelePresence MX300 G2', 
    'Cisco TelePresence MX700', 'Cisco TelePresence MX800', 
    'Cisco TelePresence MX800 Dual', 
    'Cisco TelePresence SX10', 'Cisco TelePresence SX20', 
    'Cisco TelePresence SX80', 'Cisco Webex DX80'
  ) 
  AND typemodel.name NOT IN (
    'Analog Phone', 'Cisco VGC Phone', 
    'Cisco IOS Conference Bridge (HDV2)', 
    'MGCP Trunk', 'CTI Port', 'Conference Bridge', 
    'Media Termination Point', 'Interactive Voice Response', 
    'Cisco IOS Media Termination Point (HDV2)', 
    'Third-party SIP Device (Advanced)', 
    'Third-party SIP Device (Basic)', 
    'Tone Announcement Player', 'SIP Trunk', 
    'Universal Device Template', 'Voice Mail Port', 
    'MGCP Station', 'Music On Hold', 
    'CTI Route Point', 'Remote Destination Profile', 
    'Cisco IOS Software Media Termination Point (HDV2)', 
    'SCCP gateway virtual phone', 'Route List', 
    'Cisco TelePresence Conductor', 
    'Gatekeeper'
  ) 
  AND typemodel.name NOT IN (
    'Cisco 7970', 'Cisco 7971', 'Cisco 7921', 
    'Cisco 12 SP+', 'Cisco 12 SP', 'Cisco 12 S', 
    'Cisco 30 VIP', 'Cisco 30 SP+', 
    'Cisco 7902', 'Cisco 7905', 'Cisco 7910', 
    'Cisco 7912', 'Cisco 7920'
  ) 
GROUP BY 
  typemodel.name 
ORDER BY 
  typemodel.name

Return #

The query will return a table with two columns, one containing the unsupported phone model and the other the count of how many there are in the environment.

run sql SELECT COUNT(*), typemodel.name AS phonemodel FROM device INNER JOIN typemodel ON typemodel.enum = device.tkmodel WHERE typemodel.name NOT IN ('Cisco 3905', 'Cisco 6901', 'Cisco 7841', 'Cisco 7811', 'Cisco 7821', 'Cisco 7841', 'Cisco 7861', 'Cisco 7832', '7915 12-Button Line Expansion Module', '7915 24-Button Line Expansion Module', '7916 12-Button Line Expansion Module', '7916 24-Button Line Expansion Module', 'Cisco 7942', 'Cisco 7962', 'Cisco 7945', 'Cisco 7965', 'Cisco 8811', 'Cisco 8821', 'Cisco 8841', 'Cisco 8851', 'Cisco 8851NR', 'Cisco 8861', 'Cisco 8831', 'Cisco 8845', 'Cisco 8865', 'Cisco 8865NR', 'Cisco 8832', 'Cisco 8945', 'Cisco 8961', 'Cisco 9951', 'Cisco 9971', 'Cisco Dual Mode for Android', 'Cisco Dual Mode for iPhone', 'Cisco Jabber for Tablet', 'Cisco Jabber for Mac', 'Cisco Unified Client Services Framework', 'Cisco IP Communicator', 'Cisco ATA 190', 'Cisco ATA 191', 'Cisco DX650', 'Cisco DX70', 'Cisco DX80', 'Cisco TelePresence IX5000', 'Cisco TelePresence EX60', 'Cisco TelePresence EX90', 'Cisco TelePresence MX200 G2', 'Cisco TelePresence MX300 G2', 'Cisco TelePresence MX700', 'Cisco TelePresence MX800', 'Cisco TelePresence MX800 Dual', 'Cisco TelePresence SX10', 'Cisco TelePresence SX20', 'Cisco TelePresence SX80', 'Cisco Webex DX80') AND typemodel.name NOT IN ('Analog Phone', 'Cisco VGC Phone', 'Cisco IOS Conference Bridge (HDV2)', 'MGCP Trunk', 'CTI Port', 'Conference Bridge', 'Media Termination Point', 'Interactive Voice Response', 'Cisco IOS Media Termination Point (HDV2)', 'Third-party SIP Device (Advanced)', 'Third-party SIP Device (Basic)', 'Tone Announcement Player', 'SIP Trunk', 'Universal Device Template', 'Voice Mail Port', 'MGCP Station', 'Music On Hold', 'CTI Route Point', 'Remote Destination Profile', 'Cisco IOS Software Media Termination Point (HDV2)', 'SCCP gateway virtual phone', 'Route List', 'Cisco TelePresence Conductor', 'Gatekeeper') AND typemodel.name NOT IN ('Cisco 7970', 'Cisco 7971', 'Cisco 7921', 'Cisco 12 SP+', 'Cisco 12 SP', 'Cisco 12 S', 'Cisco 30 VIP', 'Cisco 30 SP+', 'Cisco 7902', 'Cisco 7905', 'Cisco 7910', 'Cisco 7912', 'Cisco 7920') GROUP BY typemodel.name ORDER BY typemodel.name

(count(*)) phonemodel
========== ==================== 
16         Cisco 6921
1          Cisco 6941 
1          Cisco 7936 
54         Cisco 7937 
1          Cisco 7941 
1          Cisco 7960
735        Cisco 8941
1          Cisco ATA 186
3          Cisco ATA 187 
...