<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=APEL</id>
	<title>APEL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=APEL"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=APEL&amp;action=history"/>
	<updated>2026-04-20T09:46:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=APEL&amp;diff=924&amp;oldid=prev</id>
		<title>OLIVIER DEVROEDE omdevroe@vub.ac.be at 12:54, 9 February 2018</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=APEL&amp;diff=924&amp;oldid=prev"/>
		<updated>2018-02-09T12:54:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:54, 9 February 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l52&quot;&gt;Line 52:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 52:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== In case of data not being published ===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;In case the data is not being published, the gap needs to be closed. &amp;lt;br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the info on how to do this can be found in this page: [[ApelGapPublishing]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>OLIVIER DEVROEDE omdevroe@vub.ac.be</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=APEL&amp;diff=17&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; === APEL === ncm-apel only writes the configuration file for both the ce/gk and the rgma-server *RGMA_SERVER: /opt/glite/etc/glite-apel-publisher/publisher-config.xml  *CE...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=APEL&amp;diff=17&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; === APEL === ncm-apel only writes the configuration file for both the ce/gk and the rgma-server *RGMA_SERVER: /opt/glite/etc/glite-apel-publisher/publisher-config.xml  *CE...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
=== APEL ===&lt;br /&gt;
ncm-apel only writes the configuration file for both the ce/gk and the rgma-server&lt;br /&gt;
*RGMA_SERVER: /opt/glite/etc/glite-apel-publisher/publisher-config.xml &lt;br /&gt;
*CE/GK: /opt/glite/etc/glite-apel-pbs/parser-config.xml&lt;br /&gt;
&lt;br /&gt;
What is needed (only once) is to configure the mysql-server on the RGMA-server to accept the APEL data.&lt;br /&gt;
This data is fed into the db through cron-jobs &lt;br /&gt;
*RGMA_SERVER: /etc/cron.d/apel-publisher.ncm-cron.cron &lt;br /&gt;
*CE/GK: /etc/cron.d/apel-pbs-log-parser.ncm-cron.cron&lt;br /&gt;
&lt;br /&gt;
Run the commands in these jobs to see if all is working well.&lt;br /&gt;
==== Initial configuration ====&lt;br /&gt;
*set APEL_HOME vairable (eg check the cron job)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export APEL_HOME=/opt/glite&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run the following script to setup the accounting DB-structure on the RGMA-server only: &amp;lt;tt&amp;gt;/opt/glite/share/glite-apel-core/scripts/apel-db-config.py&amp;lt;/tt&amp;gt;&lt;br /&gt;
Follow the instructions on what to add as variables (values such as user, db adn password can be found in the /opt/glite/etc/glite-apel-publisher/publisher-config.xml file). Eg.&lt;br /&gt;
&amp;lt;tt&amp;gt;  /opt/glite/share/glite-apel-core/scripts/apel-db-config.py --user accounting --password yeah_right  --database accounting    --gkhost gridce.iihe.ac.be  --cehost gridce.iihe.ac.be -o ./accounting.sql &amp;lt;/tt&amp;gt;&lt;br /&gt;
It will create a .sql-file. Then one has to run&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p &amp;lt; ./accounting.sql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then run the cron-jobs to test the config.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Remark 1&amp;#039;&amp;#039;&amp;#039;: when you see something like&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 apel-publisher - Checking valid CPU spec data exists&lt;br /&gt;
 apel-publisher - program aborted&lt;br /&gt;
 apel-publisher - Cannot generate any accounting records because no cpu spec value is defined in the SpecRecords table, &lt;br /&gt;
 spec values are added when running the CPUProcessor, check user documentation for more help&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
First run the cron-job on the CE, it will fix this.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Remark 2&amp;#039;&amp;#039;&amp;#039;: because we have separate private routes from our CE to pur RGMA-server, we had to add an extra line in the accounting.sql to allow connection through this interface (CE is gridce.iihe.ac.be, private address is gridce.wn.iihe.ac.be).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
use mysql;&lt;br /&gt;
INSERT INTO user (host,user,password,create_priv, drop_priv) VALUES (&amp;#039;gridce.wn.iihe.ac.be&amp;#039;,&amp;#039;accounting&amp;#039;,password(&amp;#039;yeah_right&amp;#039;),&amp;#039;Y&amp;#039;,&amp;#039;Y&amp;#039;);&lt;br /&gt;
flush privileges;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Accessing the mysql database ===&lt;br /&gt;
&lt;br /&gt;
*To access the database on APEL&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u accounting -h apel.iihe.ac.be -p&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*The password can be found in &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat /etc/accounting.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>