[cisco-voip] [External] Is it possible to bulk export phones from CLI or API?

Wes Sisk (wsisk) wsisk at cisco.com
Thu Feb 18 14:20:29 EST 2021


Not easily. You’d need to join ~4-5 tables to get that information. Any especial characters would botch record delineation in CLI output.

https://developer.cisco.com/docs/axl/#!12-5-cucm-data-dictionary


-Wes

On Feb 18, 2021, at 2:11 PM, Louis Koekemoer (MEA) <Louis.Koekemoer at dimensiondata.com<mailto:Louis.Koekemoer at dimensiondata.com>> wrote:

I am mainly interested in 4 fields on the bulk phone reports

Device Name,Description,Directory Number 1,Line CSS 1

And for UDP reports
Device Profile Name,Description,Directory Number 1,Line CSS 1

From: Hunter Fuller <hf0002 at uah.edu<mailto:hf0002 at uah.edu>>
Sent: Thursday, 18 February 2021 21:07
To: Louis Koekemoer (MEA) <Louis.Koekemoer at dimensiondata.com<mailto:Louis.Koekemoer at dimensiondata.com>>
Cc: cisco-voip <cisco-voip at puck.nether.net<mailto:cisco-voip at puck.nether.net>>
Subject: Re: [External] [cisco-voip] Is it possible to bulk export phones from CLI or API?


What kind of data do you need to report?

I usually do stuff like this using a python tool I wrote, called axlrows. Here is an example:

>>> gen = get_phones(name="SEP700B4F9C44B8")
>>> phones = get_phones(name="SEP700B4F9C44B8")
>>> for phone in phones:
        print(phone.name<http://phone.name/>, ":", phone.description)
SEP700B4F9C44B8 : Hunter Fuller (Cisco 8851 SIP) - Home
It looks like to match "every" phone, you could write get_phones(protocol="SIP")

You can get the tool here, though it is admittedly poorly documented, so if you need assistance, let me know off-list.

https://github.com/uah/axlrows

--
Hunter Fuller (they)
Router Jockey
VBH Annex B-5
+1 256 824 5331

Office of Information Technology
The University of Alabama in Huntsville
Network Engineering


On Thu, Feb 18, 2021 at 12:47 PM Louis Koekemoer (MEA) <Louis.Koekemoer at dimensiondata.com<mailto:Louis.Koekemoer at dimensiondata.com>> wrote:
Hi,

I recently upgraded my CUCM clusters to CUCM 12.5su3. I hit a bit of an issue. 2 bugs. 1 on exporting all devices or all UDP, all details and 2 generating UDP reports or Phone reports. I need to do these on a weekly basis and I have 3 cluster with around 7000-1000 UDP per cluster and up to 33000 phones/devices per cluster. Now as per the below it breaks on around 700-800 devices. I logged a TAC case and this is what TAC identified. Firstly the customer is not happy with bleeding edge(Not released yet). I am not very clued up on API’s but is there possible a way I can either “export” all devices, all details via cli or with a API? I have a few more clusters to upgrade but all put on hold due to this.


1. https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvv67192

Symptom:
Export of Bulk Phones Job , stays in "Processing" State and does not "Completes"
Export of Bulk UDP Job , stays in "Processing" State and does not "Completes"

Conditions:
Export fails if it's more than 520 phone records through Phone -> Export Phone/UDP -> All Details

Workaround:
1. Export phones around 400 records through Phone -> Export Phone -> Specific Details
2. Export 800+ records through Import/Export -> Export operation.


The known fixed version is CCM.12.5(1.14900.42) but is going to be released in late February.

2. https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvw44625


Symptom:
When customer submits bat job for (Bulk Administration --> Phones --> Generate Phone Reports) failed event can be observed from Job Scheduler page.

Issue started after upgrading to CUCM 12.5 SU3

Conditions:
Generate Phone Report under Bulk Administration

Workaround:
While Generating the  Phone Report,
Bulk Administration --> Phones --> Generate Phone Reports  after selecting mandatory fields,
under IP Phone services fields two checkboxes are there for speed dial services and IP Phone services, if the user can checked those boxes and run the job Report will generate successfully

The known fixed version is CCM.12.5(1.14900.42) but is going to be released in late February.

<image001.png>
Louis Koekemoer (MEA)
Engineer - IPT - L4
m. +27 71 6808790
t. +27 11 5754317
email. louis.koekemoer at dimensiondata.com<mailto:louis.koekemoer at dimensiondata.com>
dimensiondata.com<https://www.dimensiondata.com/>
<image002.jpg><https://twitter.com/DiDataMEA>
<image003.jpg><https://www.linkedin.com/company/dimension-data-middle-east-and-africa>
<image004.jpg><https://www.facebook.com/DiDataMEA>
<image005.png><https://www.instagram.com/_dimensiondata_>
<image006.png><https://www.dimensiondata.com/>
.
.

This email and all contents are subject to the following disclaimer:
https://www.dimensiondata.com/email-disclaimer

_______________________________________________
cisco-voip mailing list
cisco-voip at puck.nether.net<mailto:cisco-voip at puck.nether.net>
https://puck.nether.net/mailman/listinfo/cisco-voip


itevomcid
_______________________________________________
cisco-voip mailing list
cisco-voip at puck.nether.net<mailto:cisco-voip at puck.nether.net>
https://puck.nether.net/mailman/listinfo/cisco-voip

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20210218/fad5abe6/attachment.htm>


More information about the cisco-voip mailing list