DCache area space
From SysadminWiki
The two scripts described in this Wiki are accessible in the repository (https://www.sysadmin.hep.ac.uk/svn/fabric-management/dcache/admintools).
- area_space.py - create-area_space-html.py
The first script, area_space.py, gives information regarding the space (total, free, precious) in different areas of dCache. The areas are pools and pool groups (pgroup). For that goal, it reads the Pool Manager configuration file and gets space info from the dCache web page (http://DCACHE_ADMIN:2288/usageInfo). Please use the help option to get more information about its usage.
The second script, create-area_space-html.py, prints an HTML page summarising all the information returned by the area_space.py scripts. It can be run periodically as a cron with something like: "/root/scripts/create-area_space-html.py > /opt/d-cache/areaspace/index.html".
The dCache HTTP cell can be enabled to display the information in its web interface. If the previous directory is used, then the "/opt/d-cache/config/httpd.batch" file should be modified, so that in the section headed by "define context httpdSetup endDefine", the following line is added:
set alias areaspace directory ${ourHomeDir}/areaspace
The way they are coded right now, the two scripts should be running in the dCache admin node.
