Access Archived Files

Table of Contents:

Grant access to other user using GUI

Access other user’s data using GUI

Grant archive access to other user(s) using the Command Line

Access other users’ archived files using Command Line


Grant Access To Other User Using GUI

You need to login into an internal login node.  External login nodes will not work.  Please see the login page here.

Once logged in, enter the following commands.

$ module load java
$ dsmj -se=userid

On the main page, go to Utilities , Node Access List, it will open up a window which shows you who has the access privileges to your node.

To add new users to your access list, click Add on the right hand side of the panel. Select Archived Objects on Permit Access to. Add the userid to the column Grant Access to Node and leave * on the User column. If you only want to grant the access of some certain files/directories, you can select that file/directory on the Filespace and Directory column, or fill in the Filename and Include subdirectories part.

Tivoli with GUI_access others data_1

Click OK to submit the rule.
You can view/change/delete these access rules on the Node Access List window.




Access Other User’s Data Using GUI

After you launched the GUI of TSM (see above), on the main window, go to UtilitiesAccess Other Node.

On the popped-up window, enter userid that you would like to access on both column Node Name and User Name. Click Set and you can navigate and retrieve as normal.


Grant Archive Access To Other User(s) Using the Command Line

The TSM command to grant access to your files is “set access“.  The syntax for “set access” is:

 Set Access Archive/Backup $filespect $nodename $userid 

If the parameter $userid is omitted, by default it points to all users(*).

To grant user2 access to your archived files:

$ dsmc -se=my_userid
Protect> set access archive * user2
ANS1148I 'Set Access' command successfully completed

To grant user2 access to some of your archived files:

$ dsmc -se=my_userid
Protect> set access archive path-to-file user2


To query who can access your files:

$ dsmc q access -se=my_userid 
Type     Node        User        Path
----     ----------------------------
Archive  user2       *           *

To delete the access rules, for example:

$ dsmc delete access -se=jiangd03 
Index Type     Node        User        Path
----- ----     ----------------------------
  1   Archive  THAKUB02    thakub02    /hpc/users/jiangd03/*/*
  2   Archive  THAKUB01    *           /hpc/users/jiangd03/find-active-user-mail/*
  3   Archive  THAKUB01    *           /hpc/users/jiangd03/find-active-user-mail/*/*
Enter Index of rule(s) to delete, or quit to cancel:

This command will list all the access rules by index. You can enter the index number if you want to delete that rule.



Access other user’s archived files using command line

After the access is granted by user1, you can query and retrieve user1‘s archived file:

$ dsmc q archive -se=my_userid -fromnode=user1 -fromowner=user1 path-to-file

$ dsmc retrieve -se=my_userid -fromnode=user1 -fromowner=user1 path-to-file path-to-my-dir

Note: After retrieval, the owner and group of the retrieved file will automatically changed to be the same as retriever.