cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
45461
Views
10
Helpful
15
Replies

Export List of Directory Numbers

rowdygardner
Level 1
Level 1

CUCM 11.6

 

I am trying to export a list of all Directory Numbers and their Description from CUCM.

 

I've tried the following:

1. Select Directory Number from the Call Routing menu. - Only shows up to 250 entries. Previously in CUCM 8.6 I could edit the URL and change recCnt=250 to recCnt=10000 and it would show all entries. It looks like in CUCM 11.6 this no longer works.

2. Route Plan report - Does not show the DN Description.

3. Bulk Administration -> Phones -> Export Phones. - Does not show those directory numbers which are not on phones.

4. Bulk Administration -> Import/Export -> Export -> Select Directory Number (unassigned) - Only shows unassigned Directory Numbers. Does not show the ones that are assigned.

 

None of these methods provide with with an exportable list all all extensions and their description.

 

Does anyone know a way of getting this list of all Directory Numbers and Descriptions in a format I can export?

 

 

15 Replies 15

ziondialskhn
Level 1
Level 1

I've written a script for PowerShell to extract the information that you need and export it to a CSV file.

Just in case you're unfamiliar with PowerShell Credentials, you just need to create the credentials first on the terminal and then pass the credentials to the Script as indicated in this screenshot.

Here are the commands used in the screenshot, please adjust as necessary:

$Credentials = [System.Management.Automation.PSCredential]::new('username', (ConvertTo-SecureString 'password' -AsPlainText -Force)) 
.\Format-CUCMDirectory.ps1 -URL "https://cucmpub:8443/axl/" -Credentials $Credentials -OutputFile "C:\Inventory\directory\directory.csv"

Here's the link to the GitHub Gist: https://gist.github.com/ZionDials/ded3246109147eda6bf04fe8c47b9075