11-25-2020 07:55 AM
Hi,
In an existing setup, the customer wants to modify the name, display, line text label fields of around 200 phones. The existing phones has extra configuration such as second lines, call pickup groups, separate call forward settings. My objective is only to modify the names and the remaining fields needs to remain the same for all the phones using bulk option.
The customer is having 1000+ IP phones with different models, so it would be difficult to shortlist by exporting and importing it back. Also, I need to do the same for some Analog phones which are connected over Analog VG.
So I am looking for the option to do it in Bulk.
The CUCM version is 12.5.
Please advise.
Thanks,
Thirruselvaa
11-25-2020 08:07 AM
There are not a lot of options, either you use BAT with custom files, or you go the programmatic way and use AXL
11-25-2020 08:12 AM
Hi Jaime,
Thanks for your response. Can you please elaborate me how to do it in bulk.
I am not supposed to change any other settings apart from name changes only. Remaining settings such as call forward, call pickup settings needs to remain the same.
Also, if you have any document for how to do it over programmatic way using AXL, I can try that too.
Thanks,
Thirruselvaa
11-25-2020 08:25 AM
The topic of using custom files with BAT has been discussed many times, you can find plenty of references and even the Cisco BAT guide explains it, review those and then test it out with a single device to understand the steps.
The AXL reference is over at devnet if you're interested, you'd need to write down the necessary code to perform the changes you want.
11-25-2020 08:44 AM
Hi Jaime,
I am not finding the sample custom file where I can modify all the settings such as line text label, description, Display etc., I tried to find it in other post, but not getting it.
Can you help me in getting the sample custom file. Even in Cisco documents, it was not clear.
Thanks,
Thirruselvaa
11-25-2020 11:04 AM - edited 11-26-2020 01:28 AM
If you have SecureCRT I could send you a VBs that we have used to change this via the CLI? It requires you to first do SQL lookups from CLI to get the PKIDs of the devices and directory numbers that you intend to change the information on. I have it semi documented in a readme text file.
The script loops through the gathered information and change it one by one, so it’s not the fastest way to do it, but it works and for the most is hands off. At least when you have collected and prepared the input file needed to run the script. That’s when the SQL query in CLI comes into play.
11-25-2020 10:49 AM - edited 11-25-2020 10:50 AM
python script using Axl will be the easiest option.
11-25-2020 11:21 PM
Hello Roger,
If possible, please give me the option using secure crt and send me the document that you have created so that I can try and update you.
Hello Nithin,
Please send me the python script and I will try to do it using AXL. If you have any document for the same as well, it would be helpful.
Again a special thanks to all of you who cares to respond to my request.
11-26-2020 05:03 AM - edited 11-26-2020 06:13 AM
11-26-2020 05:07 AM
u need to make ur own script. check in Github. use the below SQL query in the Script.
Changing CUCM line description via Sql
run sql UPDATE numplan SET description = REPLACE(description, '2001', '4000') WHERE description LIKE '%2001%'
Changing CUCM line text label via Sql
run sql UPDATE devicenumplanmap SET label = REPLACE(label, '2001', '4000) where label LIKE '2001%'
11-26-2020 07:33 AM
I'd like to add that doing changes via CLI is NOT recommended and would be all the way down in the preferred options to do this, because it provides no validation of the data (like the GUI or AXL) and without proper knowledge of what, and how to do it, it could break things in the DB.
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