SURF supports using the handle tools for an initial bulk upload, and only for an initial upload! This assists the user in populating a new handle prefix with the initially available data. The tool to use is the hdl-genericbatch and is supplied by the handle software. It's usage is described in the Handle Tech Manual in chapter 4.
This function allows a user to execute a batch file in the correct format. The following is an example of a batch file /tmp/initial_bulk with 2 handles. It prerequisites the following:
- the user has created a private/public keypair and the public key has been uploaded in a predefined handle. In this example the public key has been put in: 21.T12995/USER01 at index 310. These values are provided by SURF.
Each handle value line is composed of:
- value_index + space + value_type + space + ttl + space + permission_ set + space + value_data
This format is described in the Handle Tech Manual chapter 4.9.
Owner must be set to correct prefix
When creating a batch file the the user will need to make sure the owner is set to the correct prefix. Otherwise you will not be 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