Submit a ticketCall us

WebinarUpcoming Webinar: Easily Automate Backups and Simplify Log Message Management

Backing up your network configuration and logging data are a few steps to helping keep your network safe. In this in-depth webinar, we’ll show you how these tasks can be automated to save your IT team time while maintaining accurate archives of your data.

Register now.

Home > Success Center > VoIP & Network Quality Manager (VNQM) > VNQM - Knowledgebase Articles > Troubleshoot duplicate phone count in VNQM

Troubleshoot duplicate phone count in VNQM

Overview

This article describes the issue when VNQM license shows a higher phone count than the actual number of phones in the environment.

Environment

  • VNQM version 4.X

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

There are two ways to resolve this issue: 

 

Query to remove duplicates

  • 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. 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.
  2. Connect to the SQL Server using Remote Desktop Connection.
  3. Log in to the SQL Server Management Studio using a System Administrator account.
  4. Create a Full Database Backup (SQL Server)
    Note: VERY IMPORTANT – DO NOT SKIP THIS STEP.
  5. Expand the SQL Server and locate the SolarWinds database.
  6. Right-click the SolarWinds database and select New Query.
  7. Type the following query:

    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

  8. Click Execute. The phone count license should now reflect the actual number of phones across all your CUCMs.

 

Remove all phones

  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.

 

Last modified

Tags

Classifications

Public