After I posted I realized that I was completely over thinking the processes and that it really was just a matter of bulk modifying the URL’s in all the affected
handles. It even turns out that I had a script already written to do just that but had forgotten all about it.

At NYU we developed a REST interface to our handle servers (allows creation, running audits etc) which can easily be used, in conjunction with a perl script/curl to print out the information you need. If you are interested let me know
and I can send you the code.

On Mar 29, 2012, at 12:01 PM, Sean Reilly wrote:

Hi Tim,

There is no batch-query mechanism in the handle server, but requesting each individual handle should be a relatively lightweight operation. I assume you'd want to take some action that was different depending upon the current value(s) in the handle, if it
existed, so perhaps using a python script would be a more flexible way to create your handles?

I've attached a script that might work, but I've only written it from scratch so there are probably some bugs, but it might give an idea for how a batch-updater might work.

Thanks,
Sean

<update_handles.sh>

On 28 Mar 2012, at 15:13, Tim Donnelly wrote:

Is there a way to batch query handles?

I need to change the URL of several thousand handles, but can’t be sure that the URL format is consistent across the entire range.

I can, and have, done this in the past using a batch MODIFY but then I was sure that the original URL was the same for all records. This time I can’t be sure.

I have a list of all the handles generated from the Server Admin menu, but that doesn’t provide any associated handle data. And I obviously don’t want to query each handle individually so is there some way I can generate a list of all
the handles with URLs?