05-23-2014 07:03 PM - edited 03-16-2019 10:53 PM
Hi All,
I've been struggling with this BAT problem for some time.
I'm trying to update the Name for a phone (eg: CSF), device profile, Trunk device, etc, using BAT. The obvious problem with this using BAT, is that I'm trying to update the field which identifies the object you are trying to update. A bit of a tail biter.
To explain this in a different way, this would not a problem with SQL, of course, as you can do something like the following:
UPDATE device SET name='newName' WHERE name='oldName'
I was wondering if anyone has had luck achieving this within BAT? If the functionality is there imagine it would be through the use of a second 'Device Name' field or something of the likes.
Any help would be greatly appreciated.
Regards, Mike
Solved! Go to Solution.
05-24-2014 10:07 PM
You can interface with the CUCM Database utilizing SQL statements. There are several blogs on the subject. The command would be run sql update...
Or you if wanted to use BAT export all details, change the device name, Insert all details, delete out the old records.
05-24-2014 10:07 PM
You can interface with the CUCM Database utilizing SQL statements. There are several blogs on the subject. The command would be run sql update...
Or you if wanted to use BAT export all details, change the device name, Insert all details, delete out the old records.
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