These scripts are for VO Admins that would like to perform the various tasks without using VOMRS Web UI.
Requirements:
- In order to use the scripts you have to be a VO Admin
- You have to have a certificate proxy in the standard location (/tmp/x509up_u...) or set in env.variable X509_USER_PROXY
- You have to install vomrs-client. You can download it from here. In order to install rpm you have to have root access on the install node
In order to use the scripts you will need to:
- Download tar archive:
wget http://www.fnal.gov/docs/products/vomrs/RPMS/vomrs_cleanup_scripts.tar.gz .
- Untar it
tar xvfz vomrs_cleanup_scripts.tar.gz
- setup VOMRS_LOCATION. It should point to vomrs-client installation (/opt/vomrs-1.3)
List all the members that are expired before 2010-10-01:
./manage_expired_members.sh -l -d 2010-10-01 vomrs.cern.ch 8443 vo/atlas
List and remove all the members that are expired before 2010-10-01:
./manage_expired_members.sh -lr -d 2010-10-01 vomrs.cern.ch 8443 vo/atlas
List and create the file of all expired members before 2010-10-01:
./manage_expired_members.sh -l -o atlas_exp_members.txt -d 2010-10-01 vomrs.cern.ch 8443 vo/atlas
You can edit the file and then use it to delete selected members from this file with expiration date before a specific date:
./remove_expired_members.sh -d 2010-10-01 -f atlas_exp_members.txt -d 2010-10-01 vomrs.cern.ch 8443 vo/atlas