INSTALL GUIDE FOR glueman-clientContents:
1. IntroductionThis manual is for users of the glueman-client and will give users a guide on how to install and use the glueman-client. If users require further advanced technology information, please refer to the document Architectural overview of glueman-client.1.1 glueman-client overviewglueman-client is a component that makes queries to the glueman-provider, it receives information about entities and represents them according to different formats (XML, ldif, ...).glueman-client version: 1.0. organization: CNAF-INFN developers: Sergio Andreozzi, Marco Canaparo, Michele Carpené 1.2 How to use this ManualIf you follow this instructions, here's what you'll end up with:
The organization of the rest of the user manual is as follows:
2. Installation Instructionsglueman-client is a component very easy to install.2.1 Prerequisites2.1.1 SoftwareThese instructions were written based on Scientific Linux 4.6 installation.Make sure you've installed the following packages on your Scientific Linux 4 installation before continuing
2.1.3 LicenceCopyright 2008 Istituto Nazionale di Fisica Nucleare http://www.infn.it 2.2 Installation Steps2.2.1 Prerequisites SatifiedIf you want to make sure that all the prerequisites have been satisfied before the installation, execute the following instructions.In order to check the correct installation of OpenPegasus type the following command. Moreover you can check that the version of tog-pegasus package is 2.7 rpm -qa | grep tog-pegasusIn order to check the correct installation of log4cpp type the following command rpm -qa | grep log4cppIn order to check the correct installation of xerces-c type the following command. Moreover you can check that the version of is 2.8 rpm -qa | grep xerces-c 2.2.2 Downloading glueman-clientwget http://downloads.sourceforge.net/glueman/glueman-client-1.0-1.i386.rpm 2.2.3 Installing glueman-clientrpm -i glueman-client-1.0-1.i386.rpm 2.3 ConfigurationsSample configuration files have now been installed in the /etc/glue/client/conf/default directory. This sample file should work fine for getting started with glueman-client. You'll need to make just one change before you proceed.In the new version of glueman-client it is possible to specify by command line a lot of values of configuration. Executing the following command $ glueman-client -his possible to know all the possibile parameters you can pass to glueman-client. Here's what you should see after having executing the command before: *** Usage of glueman-client *** With -u option you can specify the user of the host where glueman-provider is installed, with -p his password. -l indicates the location where it is supposed that it is installed glueman-provider --portnumber specifies the port number where openpegasus server is listening to --local specifies if a connection to localhost is requested -f you can specifies the desidered format for information (for example xml or ldif) -o you can specify if you want data printed on screen or on file --log you can specify a different lof file respect to the default log file --prioritylevel you can specify the priority level of the logger. The lower it is the level, the higher will be the number of messages printed in the log file So, in the beta release of glueman-client log.conf file disappeared Moreover, it is not mandatory to create a new file called client.conf. Anyway if you prefer configuration file to passing arguments by command line, you can check the section below. 2.3.1 Configuration : client.confCreate a new file in the directory /etc/glue/client/conf/local and name it client.conf.In the new version of glueman-client, client.conf file has a different format. In this file we gathered all the information previously present in log.conf and client.conf file. Moveover we do not use iniparser library any more, but another library called anyoption. For these reasons the format of glueman-client configuration file changed a bit. In client.conf you have to specify how glueman-client can reach an OpenPegasus cimserver with glueman-provider installed. In particular you have to specify:
user : USERTTL is a parameter that specifies the time to live of the cache of glueman-client. With gluman-client rpm a client.conf file is installed. This file is important because it determines the glueman-client's default behaviour user : ROOT 2.3.2 Configuration : glueloggerThe gluelogger file is responsibile for automatic rotation, compression and removal of the log file. it is handled daily. gluelogger file installed with glueman-client rpm is shown below#It specifies what is the log file to handle: /var/log/glue/log/client.log. For this file:
If want to use a different log file, please modify gluelogger file in /etc/logrotate.d/ directory in order to let it handle your file log. 3. Quick startIn order to test the client typeglueman-client -u YOURACCOUNT -p YOURPASSWORD -l GLUEMAN-PROVIDER-LOCATIONAnyway if you modified client.conf file with user, password and location information you can type simply glueman-clientIf you want to check the behaviour of glueman-client look at /var/log/glue/log/client.log file. 4. Functionalities descriptionglueman-client enables to connect to an OpenPegasus server which exposes GLUE2-based information of grid resources and renders the output in different data formats (i.e. xml, ldif).It is important to underline that GLUEMan performs validation of data and only meaningful info are exposed (where meaningful means both properties and associations make sense). In order to build the rendering, the GLUEMan client performs a hierarchical navigation of the data following the structure of GLUE and the desidered rendering structure. 5. Example of glueman-client Usage ScenariosIn order to be used glueman-client requires a running OpenPegasus server with GLUE2-related providers (see here for installing and configuring the server side).Then select the server do you want to query and acquire the necessary information: username, password, location, port. APPENDIX:How to install OpenPegasus with src.rpm (not SL4 operating system)In order to install OpenPegasus on Scientific Linux 3 (or other platform) download the following file (see Download section) 1. Download tog-pegasus source rpm wget http://www.openpegasus.org/pr/uploads/40/14962/tog-pegasus-2.7.0-2.src.rpm 2. Install the Source RPM using the following command: rpm -ih tog-pegasus-2.7.0-2.src.rpm 3. Build the binaries RPMs for OpenPegasus 2.7.0 using rpmbuild -bb --define 'LINUX_VERSION {distro}' /usr/src/redhat/SPECS/tog-pegasus.spec
4. The resulting binary RPMs will be placed in the following location /usr/src/redhat/RPMS/{arch}/tog-pegasus-2.7.0-2.{distro}.{arch}.rpm
5. Install OpenPegasus cd /usr/src/redhat/RPMS/{arch}/ |