12-08-2011 03:53 AM - edited 03-16-2019 08:26 AM
Hi,
I need to change the the partition of a number of directory numbers using BAT in Call Manger 8.5, how do I do this?
thanks in advacnce
Simon
Solved! Go to Solution.
12-16-2011 07:01 AM
Hmm... let's put this one down to project stress :-)
I've tested this one on a non-dev PC so it should be fine.
12-08-2011 04:55 AM
Hi Simon
It depends on the usage of the DNs. BAT isn't great for selecting lines on an ad-hoc basis, as you can't use an input file to specify them.
If it's a phone that has the line, you can go to Bulk Admin/Phones/Update Lines/Query and select all lines in a particular partition, or use the other 'find' properties on that page to pick out particular phones, but it's not very granular.
If it's a UDP you have similar limited filtering capabilities.
Other options would be direct DB edits or an AXL utility that would make the changes based on an input file.
How many of what type of devices do you need to change?
Aaron
12-08-2011 05:12 AM
Hi Aaron, I need to do 21 in the first instance and then as we more new users onto our new system will need to change DN's in batches of 200 - 500.
cheers
12-08-2011 06:04 AM
Hi
OK - one option would be for these devices to be inserted into a 'new' partition when you are staging them. Then you can just move everything from this partition to the new one using BAT (rather than needing to cherry pick individual ones).
Give me 30 and I'll post up a little tool you can use to bump lines accross based on an input file.
Aaron
12-08-2011 06:23 AM
OK.. here goes.
You'll need an input file, CSV with this format:
DN,oldpartition,newpartition
e.g.
1234,pt-old,pt-new
Copy the attached .exe and your CSV into the same folder, then run the command like so (all one line, any line breaks are just due to this website):
ExtensionsMovePartition.exe -input=input.csv -hostname=192.168.0.86 -username=ccmadministrator
-password=c4llmgr
As always, start with a one or two line input CSV to verify it works as you wish before doing a big one!
Regards
Aaron
12-12-2011 06:44 AM
Aaron, Apologies for the delay in responding to your last post. Have download app, tried to run but got following error:
Exception in Thread "main" java.lang.NoclassDeffounderror: extensions remapdn/extensionMovePartiton
Caused by: Java.lang.ClassNotFoundException: extensionsremapdn.ExtensionMovePartition
at java.net.URLClassloader$q.run(unkonow Source)
at java.security.AccessController.doProvileged(Native Method)
at java.net.URLClassLoader.findclass(unknown Source)
at java.lang.ClassLoader.loadClass(unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(unknown Source)
at java.lang.ClassLoader.loadClass(unknown Source)
Could not find the main class: extensionsremapdn.ExtensionMovePartiton. Program will exit.
Can you advise what to do next, thanks.
12-12-2011 07:11 AM
12-12-2011 08:49 AM
Hi Aaron,
Still get the same error?
12-16-2011 07:01 AM
12-16-2011 11:14 AM
Aaron:
I have a situtation where I need to move a batch of directory numbers assigned to analog devices on a VG224 from one partition to another, then copy those directory numbers to another partition. Basically, we have the analog numbers in an active partition that we need to assign TOD routing (without affecting the other non-analog DNs). Therefore, I will need to move those analog DNs to a new partition, and then duplicate the numbers into a Closed partition.
1. Will the application you provided above work with CUCM 7.1? (just want to verify)
2. Do you have something that can COPY DNs to a new partition?
Thanks in advanced!
John
04-10-2014 06:13 AM
Thank you for this! This was a feature I've been hoping to see in BAT. You saved me a lot of manual work.
Thanks again,
Sean
01-02-2018 07:36 AM
Hi Aaron,
First of all.. Thanks for building the tool. I tried working on it for v11.5, but this did not seem to work on v11.5 CUCM. Have you updated this or plan on updating this anytime soon?
Thanks,
Ashish
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: