SURFsara supports using the handle tools for an initial bulk upload. And only for an initial upload! This assists the user to do an initial upload when populating a new handle prefix. The tool to use is the hdl-genericbatch. This script is supplied by the handle software. The usage is described in the Handle Tech Manual chapter 4.
This function allows a user to execute a batch file in the correct format. Following is an example of a batch file /tmp/initial_bulk with 2 handles. The prerequisite is following:
- the user has created a private/public keypair and the public key has been uploaded in a predefined handle. In the example the public key has been put in: 21.T12995/USER01 at index 310. These values are provided by SURFsara.
Each handle value line is composed of:
- value_index + space + value_type + space + ttl + space + permission_ set + space + value_data
The format is described in the Handle Tech Manual chapter 4.9.
When creating a batch file the the user will need to make sure the owner is set to the correct prefix. Otherwise you are not able to update the handle anymore
Once the batch file has been created you can run it:
This will setup a connection to a primary handle server and upload the new handles. The automated mirroring will replicate the handles to other primary handle servers and mirror systems. Because of the implementation of the handle tool
(hdl-genericbatch) you are not able to control which primary handle system will be used to upload the handles. This is why we only support this for an initial upload. The logfile will show if everything went fine.
Afterwards it will show 2 new handles:
These 2 new handles will consist of 2 records each:
- index 1 : URL url in the handle
- index 100 : HS_ADMIN owner of the handle