Use of BAT file - How do you completely delete 150 phones and their associate DNs?

Answered Question
Mar 19th, 2014
User Badges:

How do you completely delete 150 phones and their associate DNs? All the phones are in the same device pool. I prefer BAT way.

Version of the CUCM: 8.6.2

Type of phones: 7962 phones - associated with the same device pool.

Additinal questions: Is there a way to delete elegantly all the phones and their associated DNs when all the phones are associated to the same device pool? I rather not work with specific extensions and MAC addresses.

 

Thank you,

Calin Lupas

Correct Answer by Rob Huffman about 3 years 5 months ago

Hi Calin,

Using BAT this will require 2 - passes. 1 for the phones and 1 for "unassigned DN's". this is nicely shown in the attached doc;

 

http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/bat/8_0_1/bat-80...

 

Of course for the DN's you could delete them via the Route Plan report>Unassigned DN>select all>Delete

 

Cheers!

Rob

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
George Thomas Wed, 03/19/2014 - 17:03
User Badges:
  • Blue, 1500 points or more

I would do an export of the phones, sort by Device pool, remove the rest of the phones and massage the BAT file a bit so that it only contains the fields that BAT require BAT for the deletion job.

Calin Lupas Thu, 03/20/2014 - 05:34
User Badges:

Is there a way to delete the associated DNs on the phones when I delete the phones? 

Correct Answer
Rob Huffman Thu, 03/20/2014 - 07:41
User Badges:
  • Super Red, 40000 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 IP Telephony, Unified Communications

Hi Calin,

Using BAT this will require 2 - passes. 1 for the phones and 1 for "unassigned DN's". this is nicely shown in the attached doc;

 

http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/bat/8_0_1/bat-80...

 

Of course for the DN's you could delete them via the Route Plan report>Unassigned DN>select all>Delete

 

Cheers!

Rob

Calin Lupas Thu, 03/20/2014 - 08:03
User Badges:

Thanks Rob. Looks like there is a need for a 2 BAT files. 

Delete-unassigned-DNs method does not work well for us since our CUCM is not extremely clean. 

Is there a way to somehow collect all the DNs associated with all the phones in the device pool? This way, I could easily create the BAT file for the future unassigned DNs.

 

Thanks,

Calin

Actions

This Discussion

Related Content