<?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=QuatView</id>
	<title>QuatView - 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=QuatView"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=QuatView&amp;action=history"/>
	<updated>2026-04-16T03:35:57Z</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=QuatView&amp;diff=232&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; === QuatView at the T2B ===  ==== Installing Quatview ====  *Download the quatview from here http://sourceforge.net/projects/quattor/files/quatview/1.1.2/ *ccq3 is missi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=QuatView&amp;diff=232&amp;oldid=prev"/>
		<updated>2015-08-26T12:29:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; === QuatView at the T2B ===  ==== Installing Quatview ====  *Download the quatview from here http://sourceforge.net/projects/quattor/files/quatview/1.1.2/ *ccq3 is missi...&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;
=== QuatView at the T2B ===&lt;br /&gt;
&lt;br /&gt;
==== Installing Quatview ====&lt;br /&gt;
&lt;br /&gt;
*Download the quatview from here http://sourceforge.net/projects/quattor/files/quatview/1.1.2/&lt;br /&gt;
*ccq3 is missing module named MySQLdb. For this you need to do &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum install python-devel&lt;br /&gt;
yum install MySQL-python&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Configuration Overview ====&lt;br /&gt;
&lt;br /&gt;
*Quatview consists out of two parts, a backend and a frontend&lt;br /&gt;
**The backend is essentially a python script that fills a database (mysql) by parsing the xml templates from quattor &lt;br /&gt;
**The script is executed on ccq3&lt;br /&gt;
**The database is located on mon&lt;br /&gt;
**The frontend is a web page that queries this database and displays it&amp;#039;s information&lt;br /&gt;
**The frontend is completely located on mon&lt;br /&gt;
&lt;br /&gt;
==== Backend ====&lt;br /&gt;
 &lt;br /&gt;
*On mon: &lt;br /&gt;
**The database is located on mon since this machine will host the web-interface&lt;br /&gt;
**A new user needs to be created, this is quattor&lt;br /&gt;
**Make sure all privileges are set correctly for this user&lt;br /&gt;
**Add a database named quattor&lt;br /&gt;
*On ccq3:&lt;br /&gt;
**The python script to parse the xml files into the database can be found here /root/quatview/quatview-1.1.2&lt;br /&gt;
**The config file to run the quatview.py should be located here /etc/quatview.conf&lt;br /&gt;
**The runcheck script is extended with following lines to have the qautview script executed&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sys.path.append(&amp;#039;/root/quatview/quatview-1.1.2/&amp;#039;)&lt;br /&gt;
import quatview&lt;br /&gt;
print &amp;quot;Executing quatview: filling the database&amp;quot;&lt;br /&gt;
quatview.main()&lt;br /&gt;
print &amp;quot;Executing quatview: done, exiting&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**REMARK: the ipmi feature is disabled&lt;br /&gt;
&lt;br /&gt;
==== Frontend ====&lt;br /&gt;
&lt;br /&gt;
*On mon:&lt;br /&gt;
**The web pages are located in /var/www/html/quatview/frontend/&lt;br /&gt;
**config.php; contains variables to connect to database&lt;br /&gt;
**index.php; web-interface to search the database&lt;br /&gt;
**myquery.php; home-brew php page that allows to query the database based on input given in the url&lt;br /&gt;
**The main webpage can be found here: http://mon.iihe.ac.be/quatview/frontend/&lt;br /&gt;
**To query the database given an address similar to: http://mon.iihe.ac.be/quatview/frontend/myquery.php?MACaddress=00:30:48:94:6D:80&lt;br /&gt;
&lt;br /&gt;
==== Using the Quatview database ====&lt;br /&gt;
&lt;br /&gt;
*Query the database through a web interface http://mon.iihe.ac.be/quatview/frontend/myquery.php?MACaddress=00:30:48:94:6D:80&lt;br /&gt;
*QR codes can easily be generated on this webpage: http://www.qrdvark.com/qr-generator/&lt;br /&gt;
*A sample QR code is here, try it out on your fancy smartphone :)&lt;br /&gt;
[[Image(moz-screenshot.png)]]&lt;br /&gt;
&lt;br /&gt;
==== Tips and Tricks ====&lt;br /&gt;
 &lt;br /&gt;
*A good tool to work with mysql databases is phpmyadmin, this allows you to easily browse and manipulate your databases&lt;br /&gt;
*If you are new to mysql these page can help you:&lt;br /&gt;
**http://www.nparikh.org/unix/mysql.php&lt;br /&gt;
**http://www.php-mysql-tutorial.com/wikis/mysql-tutorials/retrieve-data-from-a-mysql-database.aspx&lt;br /&gt;
**Some of the comments I use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -h localhost -u quattor -p # connect to the database&lt;br /&gt;
select * from mysql.user;# show all users&lt;br /&gt;
show databases ;&lt;br /&gt;
use database_name;&lt;br /&gt;
show tables;&lt;br /&gt;
select * from table_name;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Some PHP pages that have helped&lt;br /&gt;
**http://www.tizag.com/phpT/index.php&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>