Network Management

Troubleshoot duplicate phone count in VNQM

This article describes the issue when VNQM license shows a higher phone count than the actual number of phones in the environment. The following error may be displayed on the website: "This information may be incomplete since not all VOIP phones on your network are being monitored by VNQM"

First published date

10/19/2018 8:21 PM

Last published date

1/11/2023 11:48 AM

Overview

In such cases, there are duplicate entries on the VoIPCCMmonitoring table showing 2 entries instead of only 1 entry every call manager thus causing it to duplicate the phone count

Product section

VoIP & Network Quality Manager

Cause

This issue occurs when the Cisco Unified Communications Manager (CUCM) phone tables have duplicates, or if there are multiple CUCMs with existing phones. 

Resolution

WARNING
  • Consult your System Administrator before performing the following steps.
  • This procedure requires a full back up of the SQL Server database in case you need to roll back later.

1. SQL method (Preferred)
Query to remove duplicates

Verify that your Cisco Unified Communications Manager phone tables are updated and that phones are not duplicated across the tables. Otherwise, the issue will recur on the next poll.

  1. Connect to the SQL Server using Remote Desktop Connection.
  2. Log in to the SQL Server Management Studio using a System Administrator account.
  3. Create a Full Database Backup (SQL Server). For instructions, click here  (© 2017 Microsoft, available at https://www.microsoft.com/, obtained on 14 November 2018).
    Note: VERY IMPORTANT – DO NOT SKIP THIS STEP.
  4. Expand the SQL Server and locate the SolarWinds database.
  5. Right-click the SolarWinds database and select New Query.
  6. Type the following query:
-- Scripts are not supported under any SolarWinds support program or service.
-- Scripts are provided AS IS without warranty of any kind. SolarWinds further
-- disclaims all warranties including, without limitation, any implied warranties
-- of merchantability or of fitness for a particular purpose. The risk arising
-- out of the use or performance of the scripts and documentation stays with you.
-- In no event shall SolarWinds or anyone else involved in the creation,
-- production, or delivery of the scripts be liable for any damages whatsoever
-- (including, without limitation, damages for loss of business profits, business
-- interruption, loss of business information, or other pecuniary loss) arising
-- out of the use of or inability to use the scripts or documentation.
BEGIN

​CREATE TABLE CcmPhonesDupIDs
(
ID int,
nr int
)

INSERT INTO CcmPhonesDupIDs
SELECT
ID,
row_number() OVER (PARTITION BY VoipCCMMonitoringID, MAC_Address ORDER BY VoipCCMMonitoringID, MAC_Address) AS
nr
FROM VoipCCMPhones

DELETE FROM VoipCCMPhoneStats_Hourly WHERE VoipCCMPhonesID IN( SELECT ID FROM CcmPhonesDupIDs WHERE nr>1)
DELETE FROM VoipCCMPhoneStats_Daily WHERE VoipCCMPhonesID IN( SELECT ID FROM CcmPhonesDupIDs WHERE nr>1)
DELETE FROM VoipCCMPhoneStats_Detail WHERE VoipCCMPhonesID IN( SELECT ID FROM CcmPhonesDupIDs WHERE nr>1)
DELETE FROM VoipCCMPhonesCiscoData WHERE VoipCCMPhonesID IN( SELECT ID FROM CcmPhonesDupIDs WHERE nr>1)
DELETE FROM VoipCCMPhonesAvayaData WHERE VoipCCMPhonesID IN( SELECT ID FROM CcmPhonesDupIDs WHERE nr>1)
DELETE FROM VoipCCMPhones WHERE ID IN( SELECT ID FROM CcmPhonesDupIDs WHERE nr>1)

DROP TABLE CcmPhonesDupIDs

END
GO
  1. ​​​​​Click Execute. The phone count license should now reflect the actual number of phones across all your CUCMs.


2. Orion web console method
Remove all phones
This method removes all call manager data.

  1. Go to VNQM Settings > Manage Call Managers.
  2. Remove all the call managers in that cluster.
  3. Run the database maintenance.
  4. Add the call managers back in.
  5. Make sure that all phone records should be removed.

Disclaimer: Please note, any content posted herein is provided as a suggestion or recommendation to you for your internal use. This is not part of the SolarWinds software or documentation that you purchased from SolarWinds, and the information set forth herein may come from third parties. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment.  You elect to use third party content at your own risk, and you will be solely responsible for the incorporation of the same, if any.