Oh super Heinz,
das ist genau das was ich suche. Das sind zwar vier Schritte die nacheinander ausgeführt werden müssen aber das lässt sich sicher mit einem Script automatisieren. Ich werde mich mal dransetzen.
Ich poste für andere interessierte gleich mal die Schritte ...
To obtain GUID needed for NTBackup:
1. To find the GUID of your tape drive, type
rsm view /tlibrary /guiddisplay
2. Extract GUID for physical_media with the following command:
rsm view /tphysical_media /b /cgA2C51A3B13C74981A6E5B2BC7146DA5C
where A2C51A3B13C74981A6E5B2BC7146DA5C is the GUID for the tape device
(and will be constant for each device)
3. Take the physical_media GUID obtained in Step 2 and use it with the /cg
switch to obtain the GUID for the partition on the current tape:
rsm view /tpartition /b /cg2F189F1F73E8490A914BCE0737020126
4. Take the partition GUID obtained in Step 3 and use it with the /cg
switch to obtain the GUID for the logical_media on the current tape:
rsm view /tlogical_media /b /cgD3AB4A730A3745A491A52E62119302DF
5. Take the GUID obtained in Step 4 and parse it into the following format:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
{8} {4} {4} {4} {12}