Hi,
$ yum install DPM-interfaces
Greig
On 01/02/08 10:17, Graeme Stewart wrote:
> Hi Greig
>
> So where do you get the DPM python module from then?
>
> We're up to date with DPM-client, but it's only got the C library...
>
> Cheers
>
> Graeme
>
>
> On 30 Jan 2008, at 15:08, Greig Alan Cowan wrote:
>
>> Graeme,
>>
>> you can use this bit of python to list the space tokens. Make sure
>> that you have /opt/lcg/lib/python in your PYTHONPATH.
>>
>> Cheers,
>> Greig
>>
>> #! /usr/bin/env python
>> #
>> # Greig A Cowan, 2008
>> #
>>
>> import dpm
>>
>> def print_mdinfo( mds):
>> for md in mds:
>> print 's_type\t', md.s_type
>> print 's_token\t', md.s_token
>> print 's_uid\t', md.s_uid
>> print 's_gid\t', md.s_gid
>> print 'ret_pol\t', md.ret_policy
>> print 'ac_lat\t', md.ac_latency
>> print 'u_token\t', md.u_token
>> print 't_space\t', md.t_space
>> print 'g_space\t', md.g_space
>> print 'pool\t', md.poolname
>> print 'a_life\t', md.a_lifetime
>> print 'r_life\t', md.r_lifetime, '\n'
>>
>> print '################'
>> print '# Space tokens #'
>> print '################'
>>
>> tok_res, tokens = dpm.dpm_getspacetoken('')
>>
>> if tok_res > -1:
>> md_res, metadata = dpm.dpm_getspacemd( list(tokens) )
>> if md_res > -1:
>> print_mdinfo( metadata)
>>
>>
>>
>>
>> On 30/01/08 15:00, Graeme Stewart wrote:
>>> http://scotgrid.blogspot.com/2008/01/srm22-configuration-for-fdrccrc.html
>>>
>>> Cheers
>>> Graeme
|