02-14-2018 04:25 PM - edited 03-19-2019 01:08 PM
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?
Solved! Go to Solution.
07-11-2022 04:38 AM
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
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