<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Prune&#039;s Blog &#187; Solaris</title>
	<atom:link href="http://www.lecentre.net/blog/archives/category/unix/solaris/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lecentre.net/blog</link>
	<description>Internet, UNIX, Video, Leisure...</description>
	<lastBuildDate>Thu, 19 Jan 2012 20:38:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Darwin Streaming Server (DSS) 6.0.3, on Solaris 10</title>
		<link>http://www.lecentre.net/blog/archives/288</link>
		<comments>http://www.lecentre.net/blog/archives/288#comments</comments>
		<pubDate>Tue, 27 May 2008 09:18:30 +0000</pubDate>
		<dc:creator>Prune</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.lecentre.net/blog/?p=288</guid>
		<description><![CDATA[DSS 6.0.3 is out ! Check this out at http://dss.macosforge.org/ I&#8217;m not sure what this new version brings, few things seems to have changed. I hope for the best.. They claim to be 64 bits compatible on OsX, with some speed up changes. Don&#8217;t know what this will bring on Solaris or Linux. Whatever, this [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-289" title="dsslogo" src="http://www.lecentre.net/blog/wp-content/uploads/2008/05/dsslogo.png" alt="" width="64" height="64" /></p>
<p>DSS 6.0.3 is out ! Check this out at <a title="http://dss.macosforge.org/" href="http://dss.macosforge.org/" target="_blank">http://dss.macosforge.org/</a></p>
<p>I&#8217;m not sure what this new version brings, few things seems to have changed. I hope for the best..<br />
They claim to be 64 bits compatible on OsX, with some speed up changes. Don&#8217;t know what this will bring on Solaris or Linux.</p>
<p>Whatever, this version will not compile out of the tar.</p>
<p>Sverker Abrahamsson have made a patch for Linux <a title="http://www.abrahamsson.com/dss-6.0.3.patch" href="http://www.abrahamsson.com/dss-6.0.3.patch" target="_blank">here</a>.<br />
He also provide a pre-patched source code <a title="http://www.abrahamsson.com/DarwinStreamingServer-6.0.3-1.src.rpm" href="http://www.abrahamsson.com/DarwinStreamingServer-6.0.3-1.src.rpm" target="_blank">there</a>.</p>
<p>This will not compile on Solaris 10<br />
So here are 2 patches for Solaris 10. I compiled using the coolthread Sun GCC, but it should be OK with whatever GCC you use.<br />
Note that I had to so something dirty with the Timezone detection, and I still don&#8217;t know what the impact can be on a production server. I&#8217;ll come back here if I see any trouble one on production.</p>
<p>I also have few errors (warnings, in fact), that should be OK when running but detected by the pre-processor :</p>
<pre lang="cpp">RTCPUtilitiesLib/RTCPAPPNADUPacket.h: In destructor `NaduList::~NaduList()':
RTCPUtilitiesLib/RTCPAPPNADUPacket.h:205: warning: comparison between signed and unsigned integer expressions</pre>
<p>FYI, I&#8217;m not using DSS on production right now, and DSS 6 will have to be heavily tested before it is validated.</p>
<p>So&#8230;</p>
<p><strong>[EDIT]</strong><br />
<em>Thanks to Stefan Parvu, I added in the patch the Solaris x86 things. So DSS now also compile on it (tested on Sun Fire X4100 Server with AMD Opteron(tm) Processor &#8211; gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath))<br />
</em><br />
<strong>[EDIT]</strong></p>
<ul>
<li><a href='http://www.lecentre.net/blog/wp-content/uploads/2008/10/dss-603-orig-to-solaris10-v3patch.gz'>dss-603-orig-to-solaris10-v3patch.gz</a><br />
Use this patch if you just download the plain source.<br />
gunzip the patch.<br />
untar the DSS source code and rename the directory &laquo;&nbsp;DarwinStreamingSrvr6.0.3-Source-Solaris10&#8243;.<br />
At the same level as the source directory, use &laquo;&nbsp;patch < dss-603-orig-to-solaris10-v3patch".<br />
go inside the DSS directory, then use &laquo;&nbsp;<em>./buildtarball 6.0.3</em>&nbsp;&raquo; to compile it.<br />
Your install package will be in something like <em>DarwinStreamingSrvr6.0.3-SunOS.tar.gz</em></li>
<li><a href="http://www.lecentre.net/blog/wp-content/uploads/2008/05/dss-603-linux-to-solaris-v2.patch">dss-603-linux-to-solaris-v2.patch</a><br />
Use this if you start from the modified source code for Linux, provided by Sverker. Compile it the same way as above.</li>
</ul>
<p>Then, Copy the tar file on your production server, untar it, and use the &laquo;&nbsp;<em>./Install</em>&nbsp;&raquo; script for install in /usr/local.</p>
<p>I&#8217;m working on a modified installer script where you can change the root installation dir. Soon to come&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lecentre.net/blog/archives/288/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>ISC Dhcpd and failover shutdown</title>
		<link>http://www.lecentre.net/blog/archives/280</link>
		<comments>http://www.lecentre.net/blog/archives/280#comments</comments>
		<pubDate>Wed, 16 Apr 2008 16:51:42 +0000</pubDate>
		<dc:creator>Prune</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.lecentre.net/blog/?p=280</guid>
		<description><![CDATA[As I was trying to install a ISC DHCP server with failover I just find out&#8230; nothing ! Of course many people are talking about how to set up a DHCP server&#8230; like : apt-get dhcpd server dhcpd start And that&#8217;s it. I do need more, first because I work on Solaris (10) and because, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-279" title="isc-gears2" src="http://www.lecentre.net/blog/wp-content/uploads/2008/04/isc-gears2.png" alt="" width="102" height="149" />As I was trying to install a ISC DHCP server with failover I just find out&#8230; nothing !</p>
<p>Of course many people are talking about how to set up a DHCP server&#8230; like :</p>
<blockquote><p>apt-get dhcpd<br />
server dhcpd start</p></blockquote>
<p>And that&#8217;s it.</p>
<p>I do need more, first because I work on Solaris (10) and because, heh, I&#8217;m not doing basic stuffs.<br />
<span id="more-280"></span><br />
First of all, you have 3 &laquo;&nbsp;stable&nbsp;&raquo; versions online you can download. Just tell me if you can find the differences between them. I just found that the latest is IPv6, not the other. I chosed to go with the latest, 4.0.0, but with IPv6 disabled.</p>
<p>Compilation was fine. I just had to add a LDFLAG so the compiled binary knows how to find the libcrypto shared object library, which is in /opt/sfw/lib on Solaris 10.</p>
<p>Then comes the configuration.</p>
<p>I went through some website talking about the failover config parameters. You can also find them in the Man pages. This is pretty simple.<br />
On the master :</p>
<pre lang="shell">failover peer "dhcp-failover" {
# ce serveur est le maitre
primary;
# L'adresse IP local du serveur maitre
address 172.16.8.95;
# Le port IP local du serveur maitre
port 1520;
# L'adresse IP du serveur esclave
peer address 172.16.8.96;
# Le port IP du serveur esclave
peer port 1520;
# Le temps (en secondes) de pooling pour definir quand le serveur d'en face est mort
max-response-delay 30;
# Le nombre de message BNDUPD avant de considerer que le serveur d'en face est mort
max-unacked-updates 10;
# Permet d'eviter l'etat ou un serveur repond aux messages de failover mais plus aux requetes
load balance max seconds 3;
# Pendant combien de temps (en secondes) un serveur DHCP qui a repondu sur l'autre moitie de le plage
# que la sienne continue-t-il a repondre aux requetes
mclt 1800;
# Cela permet de specifier comment couper en deux la plage d'adresses dynamiques
# Il utilise un mecanisme de hashage et 128 permet de mettre autant d'adresses IP sur chaque serveur.
split 128;
}</pre>
<p>On the Secondary :</p>
<pre lang="shell">failover peer "dhcp-failover" {
# ce serveur est le maitre
secondary;
# L'adresse IP local du serveur maitre
address 172.16.8.96;
# Le port IP local du serveur maitre
port 1520;
# L'adresse IP du serveur esclave
peer address 172.16.8.95;
# Le port IP du serveur esclave
peer port 1520;
# Le temps (en secondes) de pooling pour definir quand le serveur d'en face est mort
max-response-delay 30;
# Le nombre de message BNDUPD avant de considerer que le serveur d'en face est mort
max-unacked-updates 10;
# Permet d'eviter l'etat ou un serveur repond aux messages de failover mais plus aux requetes
load balance max seconds 3;
}</pre>
<p>Then I configured a subnet, options, etc. I also created a special &laquo;&nbsp;empty&nbsp;&raquo; subnet containing the IP I am serving DHCP on :<br />
# Local Subnet</p>
<pre lang="shell">
subnet 172.16.8.0 netmask 255.255.252.0 {
        option routers 172.16.11.254;
        authoritative;
        }
</pre>
<p>Then you can start it&#8230; I used the -d (debug) and -f (foreground) options to debug.<br />
I won&#8217;t spend too much time here in explanations, but it wasn&#8217;t starting. The error message was : no pool defined for any interface.<br />
I am using Vlan, virtual interfaces, etc. So, the physical interface is e1000g1. The vlan tagged one is e1000g54001. The virtual vlan tagged interface is on e1000g54001:4 (the 4th interface).<br />
For doing this, you just plumb interface e1000g54001, giving it no IP, letting it down. Then you use the &laquo;&nbsp;addif&nbsp;&raquo; option of ifconfig to add the virtual interface over e1000g54001.</p>
<p>For any reason (a bug ?) dhcpd can&#8217;t see the IP&#8217;s on virtual interfaces if the physical interface is not up.<br />
Just do a &laquo;&nbsp;ifconfig e1000g54001 up&nbsp;&raquo;.<br />
Then add the e1000g54001 interface at the end of the dhcpd command line to bind against it.</p>
<p>Everything went find then.<br />
Wow!!!!<br />
and what if I stop one of the node ?</p>
<p>Unfortnatly, stopping one node with a kill command set the other node in a mode where it does not answer any request. The reson is that the living node does not know if the other is still alive or not. To be sure not to answer twice to a request, it stop answering for some time. I havn&#8217;t been able to know for how long yet. maybe 24 hours. I read few things about it, and never found how to change this behaviour. I would like to minimize this value to 5 minuts, maybe less, so if you have an idea, come along.</p>
<p>Then I heard of omshell and dhcpctl. This is a way to connect to the dhcp server and give him live commands.<br />
After a lot of researches, I finaly found how to use it. First, configure omshell to start up, in both nodes config file : </p>
<pre lang="shell">
key omapiname {
algorithm hmac-md5;
secret "XXXXXXXXXX";
};
omapi-key omapiname;
omapi-port 7911;
</pre>
<p>&laquo;&nbsp;omapiname&nbsp;&raquo; can be any name. Replace the XXX with a key, which can be anything, I think.<br />
You can also use dnssec-keygen to creake a key and copy the public part as a key : </p>
<pre lang="shell">
dnssec-keygen -a HMAC-MD5 -b 512 -n HOST dhcpd_key_file
</pre>
<p>Restart dhcpd and you&#8217;re all set.<br />
Start omshell, and connect to one of the node, the one you want to stop : </p>
<pre lang="shell">
# /opt/dhcp/dhcp-4.0.0/bin/omshell
> server 172.16.248.18
> port 7911
> key rtlomapi "XXXXXX"
> connect

> new control
obj: control
> open
obj: control
state = 00:00:00:00
> set state=2
obj: control
state = 2
> update
obj: control
state = 2
</pre>
<p>You&#8217;ll see in the logs : </p>
<pre lang="shell">
 Apr 16 18:15:22 cetus dhcpd: [ID 702911 local7.info] failover peer dhcp-failover: peer moves from normal to shutdown
Apr 16 18:15:22 cetus dhcpd: [ID 702911 local7.info] failover peer dhcp-failover: I move from normal to partner-down
Apr 16 18:15:23 cetus dhcpd: [ID 702911 local7.info] peer dhcp-failover: disconnected
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.lecentre.net/blog/archives/280/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Autoconf, aclocal and libtool on Solaris 10</title>
		<link>http://www.lecentre.net/blog/archives/271</link>
		<comments>http://www.lecentre.net/blog/archives/271#comments</comments>
		<pubDate>Thu, 20 Mar 2008 16:29:25 +0000</pubDate>
		<dc:creator>Prune</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.lecentre.net/blog/archives/271</guid>
		<description><![CDATA[I was just trying to compile le latest Icecast from SVN on Solaris 10 Sparc, and reached a lot of troubles with automake. Aclocal was complaining not having the libtool macro. On this host we have a special folder with every tools, /opt/tools : apr-util-1.2.8 coreutils-5.94 grep-2.5.1a libshout-2.2.2 neon rsync-2.6.8 tcpdump-3.9.4 IQ-300-SOL.tar.Z ase1254sol64 gcc icecast-2.3.1 [...]]]></description>
			<content:encoded><![CDATA[<p>I was just trying to compile le latest Icecast from SVN on Solaris 10 Sparc, and reached a lot of troubles with automake.</p>
<p>Aclocal was complaining not having the libtool macro.</p>
<p>On this host we have a special folder with every tools, /opt/tools :</p>
<pre lang="bash" >
apr-util-1.2.8             coreutils-5.94             grep-2.5.1a                libshout-2.2.2             neon                       rsync-2.6.8                tcpdump-3.9.4
IQ-300-SOL.tar.Z           ase1254sol64               gcc                        icecast-2.3.1              libtool-1.5.24             neon-0.26.2                subversion                 tcpflow
apr                        autoconf-2.60              gcc-4.0.3                  lame-3.96.1                lsof                       openserver-12.5.1-x86      subversion-1.4.2           tcpflow-0.21
apr-1.2.8                  automake-1.10              gcc-coolthreads            libpcap                    lsof-4.77-64-100606-sparc  pushconfig                 sybase                     vim
apr-util                   coreutils                  grep                       libpcap-0.9.4              ncurses-5.5                rsync                      tcpdump                    vim-7.0.017
</pre>
<p><span id="more-271"></span><br />
I just changed the PATH env variable, so I can find libtool and automake libraries :</p>
<pre lang="bash" >
export PATH=/opt/tools/automake-1.10/bin:/opt/tools/autoconf-2.60/bin:/opt/tools/libtool-1.5.24/bin:$PATH
</pre>
<p>But during the autogen.sh from Icecast, I got errors like this :</p>
<pre lang="bash" >
# ./autogen.sh
Checking for automake version
found automake
found aclocal
Generating configuration files for icecast, please wait....
aclocal  -I m4
autoheader
libtoolize --automake
automake --add-missing
src/avl/Makefile.am:7: Libtool library used but `LIBTOOL' is undefined
src/avl/Makefile.am:7:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/avl/Makefile.am:7:   to `configure.in' and run `aclocal' and `autoconf' again.
src/avl/Makefile.am:7:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
src/avl/Makefile.am:7:   its definition is in aclocal's search path.
src/httpp/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined
src/httpp/Makefile.am:5:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/httpp/Makefile.am:5:   to `configure.in' and run `aclocal' and `autoconf' again.
src/httpp/Makefile.am:5:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
src/httpp/Makefile.am:5:   its definition is in aclocal's search path.
src/log/Makefile.am:7: Libtool library used but `LIBTOOL' is undefined
src/log/Makefile.am:7:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/log/Makefile.am:7:   to `configure.in' and run `aclocal' and `autoconf' again.
src/log/Makefile.am:7:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
src/log/Makefile.am:7:   its definition is in aclocal's search path.
src/net/Makefile.am:7: Libtool library used but `LIBTOOL' is undefined
src/net/Makefile.am:7:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/net/Makefile.am:7:   to `configure.in' and run `aclocal' and `autoconf' again.
src/net/Makefile.am:7:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
src/net/Makefile.am:7:   its definition is in aclocal's search path.
src/thread/Makefile.am:7: Libtool library used but `LIBTOOL' is undefined
src/thread/Makefile.am:7:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/thread/Makefile.am:7:   to `configure.in' and run `aclocal' and `autoconf' again.
src/thread/Makefile.am:7:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
src/thread/Makefile.am:7:   its definition is in aclocal's search path.
src/timing/Makefile.am:7: Libtool library used but `LIBTOOL' is undefined
src/timing/Makefile.am:7:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/timing/Makefile.am:7:   to `configure.in' and run `aclocal' and `autoconf' again.
src/timing/Makefile.am:7:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
src/timing/Makefile.am:7:   its definition is in aclocal's search path.
autoconf
I am going to run ./configure with no arguments - if you wish
...
</pre>
<p>After few reserch, I found nothing usefull, until I found a way to get the path aclocal is using to search for macro:</p>
<pre lang="bash" >
aclocal --print-ac-dir
/opt/tools/automake-1.10/share/aclocal
</pre>
<p>This directory was not present, butI had a /opt/tools/automake-1.10/share/aclocal-1.10.</p>
<p>My solution was to symlink it :</p>
<pre lang="bash" >
ln -s /opt/tools/automake-1.10/share/aclocal-1.10 /opt/tools/automake-1.10/share/aclocal
</pre>
<p>I then had a look into the libtool install. I found there an aclocal directory, with two .m4 file inside.<br />
Once again, my quick solution was to copy those files inside the aclocal directory :</p>
<pre lang="bash" >
cp  /opt/tools/libtool-1.5.24/share/aclocal/*  /opt/tools/automake-1.10/share/aclocal
</pre>
<p>Another solution would have been to change the aclocal path to also check the libtool dirs, but I&#8217;m too busy to find out how. Give a comment if you know that <img src='http://www.lecentre.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.lecentre.net/blog/archives/271/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CoolStack 1.2 IS OUT !!</title>
		<link>http://www.lecentre.net/blog/archives/125</link>
		<comments>http://www.lecentre.net/blog/archives/125#comments</comments>
		<pubDate>Fri, 16 Nov 2007 15:02:58 +0000</pubDate>
		<dc:creator>Prune</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.lecentre.net/blog/archives/125</guid>
		<description><![CDATA[Coolstack is a bundeled package of Opensource  applications optimized for Sun&#8217;s T1 hardware. More infos on CoolToolswebsite.The last version (1.1) was born &#171;&#160;old&#160;&#187;, with only outdated packages.The new one, 1.2, comes with almost all latest versions :    Apache version upgraded to 2.2.6. Added mod_fcgid-2.2, mod_jk-1.2.25, mod_proxy, SMF support. PHP version upgraded to 5.2.4. Configure and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/11/coolthreads.gif" alt="Coolthreads" title="Coolthreads" align="left" />Coolstack is a bundeled package of Opensource  applications optimized for Sun&#8217;s T1 hardware. More infos on <a href="http://cooltools.sunsource.net/index.html" title="CoolTools" target="_blank">CoolTools</a>website.The last version (1.1) was born &laquo;&nbsp;old&nbsp;&raquo;, with only outdated packages.The new one, 1.2, comes with almost all latest versions : 
<p style="font: normal normal normal 12px/normal Helvetica; margin: 0px"> </p>
<ul>
<li>Apache version upgraded to 2.2.6. Added mod_fcgid-2.2, mod_jk-1.2.25, mod_proxy, SMF support.</li>
<li>PHP version upgraded to 5.2.4. Configure and compiler options changed. Added dtrace extension, FastCGI support. Added a configuration script, setup-ws7-php.sh for use with Sun Web Server 7.0. Default location of php.ini is now in /opt/coolstack/php5/etc irrespective of whether you&#8217;re using mod_php, php binary or php-cgi.</li>
<li>APC version upgraded to 3.0.14.</li>
<li>gmp library compiler optimization level changed from -fast to -xO4.</li>
<li>openldap CFLAGS now includes -D_AVL_H_.</li>
<li>MySQL version upgraded to 5.0.45. Compiler optimization flags changed, added support for ndbcluster and Solaris SMF support.</li>
<li>Memcached version upgraded to 1.2.2. libevent version upgraded to 1.3d along with some patches which are now in 1.3e. Changed compiler flags to include &laquo;&nbsp;-mt&nbsp;&raquo; and remove &laquo;&nbsp;-xipo&nbsp;&raquo; (memcached only).</li>
<li>Squid version upgraded to 2.6.16. Added SMF support.</li>
<li>Tomcat version upgraded to 5.5.23. Added SMF support. Tomcat now installs in /opt/coolstack/tomcat.</li>
<li>Ruby version upgraded to 1.8.6, rails to 1.2.3.</li>
<li>Added lighttpd 1.4.18.</li>
<li>Perl extensions DBI-1.59, DBD-mysql-4.005 and Sys-Syslog-0.18 have been added, DB_File removed.</li>
<li>Added pcre-7.1 as part of CSKruntime package. Currently used by lighttpd only.</li>
</ul>
<p> Check it out <a href="http://cooltools.sunsource.net/coolstack" title="CoolStack" target="_blank">here</a>. Let&#8217;s have a try before the Week-end time comes <img src='http://www.lecentre.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.lecentre.net/blog/archives/125/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding a Sun Hardware serial number</title>
		<link>http://www.lecentre.net/blog/archives/121</link>
		<comments>http://www.lecentre.net/blog/archives/121#comments</comments>
		<pubDate>Mon, 22 Oct 2007 12:55:14 +0000</pubDate>
		<dc:creator>Prune</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.lecentre.net/blog/archives/121</guid>
		<description><![CDATA[Every time you call the Sun support, they ask for the serial number of the host you&#8217;re calling for. As usual, you go to your wiki page and all you get is the Account number. DAMN !! Of course you can have the serial number from the ALOM/ILOM. But what if you are already logged [...]]]></description>
			<content:encoded><![CDATA[<p>Every time you call the Sun support, they ask for the serial number of the host you&#8217;re calling for. As usual, you go to your wiki page and all you get is the Account number. DAMN !!</p>
<p>Of course you can have the serial number from the ALOM/ILOM. But what if you are already logged and too lazy to open a new connection to it ?</p>
<p>There comes the IPMItool.<br />
On solaris 10, use &laquo;&nbsp;/usr/sfw/bin/ipmitool&nbsp;&raquo;<br />
You can have almost everything you have in the ALOM. You can GET values (like the CPU temp) and also SET values.</p>
<p>Get back to our Support problem. The Serial number. It is hidden in the &laquo;&nbsp;fru&nbsp;&raquo; parameter. Be carefull, you&#8217;ll get tons of serial number.</p>
<p>The right one is the &laquo;&nbsp;Product Serial&nbsp;&raquo; of the &laquo;&nbsp;Rack Mount Chassis&nbsp;&raquo; :</p>
<pre lang="bash">
FRU Device Description : mb.fru (ID 4)
Chassis Type          : Rack Mount Chassis
Chassis Part Number   : 541-4444-44
Chassis Serial        : UNKNOWN
Board Product         : ASSY,MOTHERBOARD,X4100 M2
Board Serial          : 1005LCB-444444444
Board Part Number     : 501-4444-01
Board Extra           : 50
Board Extra           : G1F_MB
Product Manufacturer  : SUN MICROSYSTEMS
Product Name          : SUN FIRE X4100 M2
Product Part Number   : 602-4444-01
Product Serial        : 4444AL44AA          <-------------------- here</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.lecentre.net/blog/archives/121/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Playing with SNMP Mibs</title>
		<link>http://www.lecentre.net/blog/archives/118</link>
		<comments>http://www.lecentre.net/blog/archives/118#comments</comments>
		<pubDate>Wed, 10 Oct 2007 14:12:48 +0000</pubDate>
		<dc:creator>Prune</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.lecentre.net/blog/archives/118</guid>
		<description><![CDATA[First, get a look at this site, offering a large compilation of mibs : http://www.oidview.com/mibs/detail.html Find your equipment dealer, click on its name then chose to download the ASN.1 zip file. It will contail every mib file you choosed. Thanks !! Then, if you are running Solaris, copy the mibs file to /etc/sma/snmp/mibs Then, when [...]]]></description>
			<content:encoded><![CDATA[<p>First, get a look at this site, offering a large compilation of mibs : <a href="http://www.oidview.com/mibs/detail.html" title="http://www.oidview.com/mibs/detail.html" target="_blank">http://www.oidview.com/mibs/detail.html</a></p>
<p>Find your equipment dealer, click on its name then chose to download the ASN.1 zip file. It will contail every mib file you choosed.<br />
Thanks !!</p>
<p>Then, if you are running Solaris, copy the mibs file to /etc/sma/snmp/mibs<br />
Then, when doing your snmpwalk,  use the &laquo;&nbsp;-m all&nbsp;&raquo; option to use all of the mibs files :</p>
<pre> $ snmpwalk -m all -v2c -c public mlx1- 1.3.6.1.4.1.1991.1.1.1.1   
FOUNDRY-SN-AGENT-MIB::snChasSerNum.0 = STRING: "QSFDSF444"
FOUNDRY-SN-AGENT-MIB::snChasPwrSupplyStatus.0 = INTEGER: 268
FOUNDRY-SN-AGENT-MIB::snChasFanStatus.0 = INTEGER: 24
FOUNDRY-SN-AGENT-MIB::snChasEnablePwrSupplyTrap.0 = INTEGER: enabled(1)
FOUNDRY-SN-AGENT-MIB::snChasEnableFanTrap.0 = INTEGER: enabled(1)
FOUNDRY-SN-AGENT-MIB::snChasIdNumber.0 = STRING: "SDSD33DF"
FOUNDRY-SN-AGENT-MIB::snChasEnableTempWarnTrap.0 = INTEGER: enabled(1)
FOUNDRY-SN-AGENT-MIB::snChasFlashCard.0 = INTEGER: 0
FOUNDRY-SN-AGENT-MIB::snChasFlashCardLeds.0 = INTEGER: 0
FOUNDRY-SN-AGENT-MIB::snChasNumSlots.0 = INTEGER: 4
FOUNDRY-SN-AGENT-MIB::snChasArchitectureType.0 = INTEGER: 4
FOUNDRY-SN-AGENT-MIB::snChasProductType.0 = INTEGER: 12</pre>
<p>More to come soon (I hope) on Foundry snmp monitoring&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lecentre.net/blog/archives/118/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing our SunBLADE !!</title>
		<link>http://www.lecentre.net/blog/archives/95</link>
		<comments>http://www.lecentre.net/blog/archives/95#comments</comments>
		<pubDate>Mon, 27 Aug 2007 10:07:37 +0000</pubDate>
		<dc:creator>Prune</dc:creator>
				<category><![CDATA[Non classé]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.lecentre.net/blog/archives/95</guid>
		<description><![CDATA[We received our &#171;&#160;do it yourself&#160;&#187; Sun Blade last friday. We were so exited, we decided to rackmount it immediatly. And here are the pictures ! We have no pictures of the rackmount itself, but it is far more intuitive than the one of the Netra 4200. The only strange thing is you have to [...]]]></description>
			<content:encoded><![CDATA[<p>We received our &laquo;&nbsp;do it yourself&nbsp;&raquo; Sun Blade last friday. We were so exited, we decided to rackmount it immediatly. And here are the pictures !</p>
<p>We have no pictures of the rackmount itself, but it is far more intuitive than the one of the Netra 4200. The only strange thing is you have to put some cage nut outside of the rack. Then you screw a metal  part in each corner, and you finaly plug a strong metal rack in each side, no screw there. you are done, just put your 130 Kg Sun Blade rackin it (or remove everything you can, like fans and power supply, and you&#8217;ll get a 50 kg box).</p>
<p>And this is what you get :</p>
<p><a href="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007003.jpg" title="Sunblade empty"><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007003.jpg" title="Sunblade empty" alt="Sunblade empty" width="350" /><br />
</a>And the back :<br />
<a href="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007004.jpg" title="Sunblade empty back"><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007004.jpg" title="Sunblade empty back" alt="Sunblade empty back" width="350" /></a></p>
<p><span id="more-95"></span></p>
<p>Then you can start putting all your things inside the Sun Blade. This is an AMD Opetron Blade, which seems to be a used one, as you can see the dust on the CPU radiators :</p>
<p><a href="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007007.jpg" title="Sunblade blade closed"><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007007.jpg" title="Sunblade blade closed" alt="Sunblade blade closed" width="350" /></a></p>
<p><a href="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007008.jpg" title="Sunblade amd blade1"><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007008.jpg" title="Sunblade amd blade1" alt="Sunblade amd blade1" width="350" /></a><a href="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007009.jpg" title="Sunblade amd blade2"><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007009.jpg" title="Sunblade amd blade2" alt="Sunblade amd blade2" width="350" /></a></p>
<p><a href="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007010.jpg" title="Sunblade amd blade3"><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007010.jpg" title="Sunblade amd blade3" alt="Sunblade amd blade3" width="350" /></a> <a href="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007011.jpg" title="Sunblade amd blade4"><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007011.jpg" title="Sunblade amd blade4" alt="Sunblade amd blade4" width="350" /></a></p>
<p>Then the  SAN fibre channel card :<br />
<a href="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007013.jpg" title="Sunblade HD"><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007013.jpg" title="Sunblade HD" alt="Sunblade HD" width="350" /></a><a href="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007014.jpg" title="Sunblade SAN"><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007014.jpg" title="Sunblade SAN" alt="Sunblade SAN" width="350" /></a></p>
<p>And the Hard Drives :<br />
<a href="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007016.jpg" title="Sunblade HD"><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007016.jpg" title="Sunblade HD" alt="Sunblade HD" width="350" /> </a><a href="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007018.jpg" title="Sunblade HD2"><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007018.jpg" title="Sunblade HD2" alt="Sunblade HD2" width="350" /><br />
</a><a href="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007017.jpg" title="Sunblade HD3"><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007017.jpg" title="Sunblade HD3" alt="Sunblade HD3" width="350" /> </a><a href="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007019.jpg" title="Sunblade end"><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007019.jpg" title="Sunblade end" alt="Sunblade end" width="350" /></a></p>
<p>Don&#8217;t forget to get the right plug as our was delivered with big 16 ampers blue plug like this :<br />
<a href="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007.jpg" title="SunBlade plug1"><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007.jpg" title="SunBlade plug1" alt="SunBlade plug1" width="350" /></a> <a href="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007002.jpg" title="SunBlade plug2"><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/24082007002.jpg" title="SunBlade plug2" alt="SunBlade plug2" width="350" /></a></p>
<p>[Edit - 20070913]</p>
<p>We had a &laquo;&nbsp;crash&nbsp;&raquo; problem many times with the Sunblade. It&#8217;s like some (not all) blades were shutdown sometimes after 2 or 3 weeks up, but doing nothing. The Network IO cards and FC cards were also down.<br />
A Sun support guy  went in and ask us for a spacial cable to connect directly to the blade. That was the answer of the small plub in the front of each blade : a multi IO interface.</p>
<p>There you go with the plug picture and the cable offering : dual USB, serial, RJ45 and video (VGA ?) output.<br />
<a href="http://www.lecentre.net/blog/wp-content/uploads/2007/09/dsc01896.JPG" title="bladeIO"><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/09/dsc01896.JPG" title="bladeIO" alt="bladeIO" width="350" /> </a><a href="http://www.lecentre.net/blog/wp-content/uploads/2007/09/dsc01897.JPG" title="bladeIO 2"><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/09/dsc01897.JPG" title="bladeIO 2" alt="bladeIO 2" width="350" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lecentre.net/blog/archives/95/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiling Jack on Solaris 10</title>
		<link>http://www.lecentre.net/blog/archives/94</link>
		<comments>http://www.lecentre.net/blog/archives/94#comments</comments>
		<pubDate>Fri, 24 Aug 2007 11:59:44 +0000</pubDate>
		<dc:creator>Prune</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.lecentre.net/blog/archives/94</guid>
		<description><![CDATA[For the aim of a new project I had to compile Jack, the audio software patch, on Solaris 10 x86. Jack is very usefull and goes between your sound card and your applications. Each Jack compliant piece, which may be Alsa for the soundcard or ecaSound for audio software, will have a virtual input and/or [...]]]></description>
			<content:encoded><![CDATA[<p>For the aim of a new project I had to compile <a href="http://jackaudio.org/" title="http://jackaudio.org/">Jack</a>, the audio software patch, on Solaris 10 x86. Jack is very usefull and goes between your sound card and your applications. Each Jack compliant piece, which may be Alsa for the soundcard or ecaSound for audio software, will have a virtual input and/or output. Then, using a Jack tool, you can patch (which is a technical word for wire) any input to any output.</p>
<p>This will enable us to patch some of the RME 32AES soundcard input to some software our developpers just made.<br />
<span id="more-94"></span><br />
One thing the Dev team forgot, is that we are exclusively working on Solaris 10, on Sun&#8217;s hardware. This  may sound easy as Jack is known to compile on Linux, OsX and Windows. But unfortunately, Jack does not compile on Solaris 10 !!</p>
<p>Googling to find a similar problem, we just found that FreeBSD had the same problem one year ago. Strange&#8230;</p>
<p>Cutting the story short, I had to dig into the code and kind of clean it up to have it compiling. I will just show you the final result as the changes are only trivial sanityse. You just have to edit config/os/generic/time.h and config/os/generic/time.c. It&#8217;s like some code in the .h should have been set in the .c file.</p>
<p>These are the final files. Change the original so it look like this :<br />
<strong>In config/os/generic/time.h :</strong></p>
<pre lang="cpp">
#ifndef __jack_time_h__
#define __jack_time_h__

#include <jack>

jack_time_t jack_get_microseconds_from_system ();

inline jack_time_t jack_get_microseconds (void);

/*
inline jack_time_t
jack_get_microseconds (void) {
        return jack_get_microseconds_from_system ();
}
*/

#endif /* __jack_time_h__ */
</jack></pre>
<p><strong>config/os/generic/time.c :</strong></p>
<pre lang="cpp">
void jack_init_time ()
{
        /* nothing to do on a generic system - we use the system clock */
}
void jack_set_clock_source (jack_timer_type_t clocksrc)
{
        /* only one clock source on a generic system */
}

inline jack_time_t
jack_get_microseconds (void) {
        return jack_get_microseconds_from_system ();
        }
</pre>
<p>[EDIT]<br />
After some testing it seems libjack is having a bug when trying to link to jackd. A friend of mine, Daniel, Dev Team Manager, found the bug, and do a solution. You just have to change few lines in libjack/client.c, line 834 :</p>
<p>replace :</p>
<pre lang="cpp">
        snprintf (req.object_path, sizeof (req.object_path),
                  "%s", va->load_name);
        snprintf (req.object_data, sizeof (req.object_data),
                  "%s", va->load_init);
</pre>
<p>by :</p>
<pre lang="cpp">
      snprintf (req.object_path, sizeof (req.object_path),
                  "%s", va->load_name ? va->load_name: "");
      snprintf (req.object_data, sizeof (req.object_data),
                  "%s", va->load_init ? va->load_init : "");
</pre>
<p>[EDIT]<br />
Even if Jack compiles well, it seems it is still buggy in usage. For the moment we switched back to Linux, waiting to have time to do the whole debug. Maybe the lattency on the Solaris kernel will never enable us to use Jack on Solaris&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lecentre.net/blog/archives/94/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Solaris Zones featured and ServerSideLess WIKI</title>
		<link>http://www.lecentre.net/blog/archives/91</link>
		<comments>http://www.lecentre.net/blog/archives/91#comments</comments>
		<pubDate>Tue, 14 Aug 2007 08:18:45 +0000</pubDate>
		<dc:creator>Prune</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.lecentre.net/blog/archives/91</guid>
		<description><![CDATA[Scrolling through the web lead me to this stuffs. First is a &#171;&#160;Framework&#160;&#187; for helping  Solaris Zones deployment : BrandZ. BrandZ will help you manage the creation of zones. It will allow you to have a simple Solaris zone, the same but with different software installed, up to a full Linux zone in a minute [...]]]></description>
			<content:encoded><![CDATA[<p>Scrolling through the web lead me to this stuffs.</p>
<p>First is a &laquo;&nbsp;Framework&nbsp;&raquo; for helping  Solaris Zones deployment : <a href="http://www.opensolaris.org/os/community/brandz/" title="BrandZ" target="_blank">BrandZ</a>.<br />
BrandZ will help you manage the creation of zones. It will allow you to have a simple Solaris zone, the same but with different software installed, up to a full Linux zone in a minute (or so <img src='http://www.lecentre.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p>The second one is a (yet to be tested by me) Wiki : <a href="http://www.tiddlywiki.com/" title="TiddlyWiki" target="_blank">TiddlyWiki</a>.<br />
What&#8217;s a Wiki ?    It&#8217;s a website you can easily change, tune, arrange&#8230;.<br />
What&#8217;s so special with this on ?    It&#8217;s HTML, CSS and Javascript based so you won&#8217;t need any &laquo;&nbsp;server side logic&nbsp;&raquo;, which means no SSI, no PHP, no damn perl or python !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lecentre.net/blog/archives/91/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Netra x4200 M2</title>
		<link>http://www.lecentre.net/blog/archives/85</link>
		<comments>http://www.lecentre.net/blog/archives/85#comments</comments>
		<pubDate>Mon, 13 Aug 2007 12:11:18 +0000</pubDate>
		<dc:creator>Prune</dc:creator>
				<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.lecentre.net/blog/archives/85</guid>
		<description><![CDATA[We had our first Sun Netra x4200 M2, which is the new release of x4200. Netra means it is nore robust than SunFire, and is designed to comply to the US Army specs. I had to put some PCI cards in it. One of the main feature of the M2 version is to support 3 [...]]]></description>
			<content:encoded><![CDATA[<p>We had our first Sun Netra x4200 M2, which is the new release of x4200. Netra means it is nore robust than SunFire, and is designed to comply to the US Army specs.</p>
<p><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/09082007009.png" title="x4200top" alt="x4200top" align="left" width=250px />I had to put some PCI cards in it. One of the main feature of the M2 version is to support 3 full size PCI (PCI-X) cards. You can also have 2 PCI-Express cards. You will find in below the &laquo;&nbsp;extension board&nbsp;&raquo; inside the server. When you open the server, the top board slides to the back of the server. Then you can access the PCI-E and the RAM slots (under the white cover at the front). This is quite funny to see on a server but the 3 flat cables used to connect this IO board to the motherboard seems week. Don&#8217;t play too much with it.</p>
<p>The front fan module also seems to be a little bit lazy. Maybe it won&#8217;t move once the top is closed&#8230;</p>
<p><img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/09082007008.png" title="x4200face" alt="x4200face" align="left" width=250px /></p>
<p>On the front you will see the DVD rom and 2 hotswap SAS disks.</p>
<p>The main problem we had concerns the PCI-X slots. As you&#8217;ll see in next pictures, there is nothing to &laquo;&nbsp;lock&nbsp;&raquo; the card once in place. When I say nothing i&#8217;m wrong. You have the small green plastic thing you can move  from &laquo;&nbsp;open&nbsp;&raquo; to &laquo;&nbsp;close&nbsp;&raquo;. The only problem is that even on the close position they are damn too small to reach the edge of the PCI card.<br />
<br/><br />
<img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/09082007006.png" title="x4200pci1" alt="x4200pci1"   width=250px /> <img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/09082007.png" title="x4200pci2" alt="x4200pci2"  width=250px  /></p>
<p>Only the PCI on the right (when looking from the top, like on pictures) have a locking system, a screw to put from the outside.</p>
<p>I think I will open a case at Sun about this issue. I may also open a case about the shitty rackmount they give with it : instead of the clean rackmount of the T2000, with a slider for cables at the back, it&#8217;s a &laquo;&nbsp;do it yourself&nbsp;&raquo; old russian way rackmount. You get a heavy package with metal parts hidden in it and a thousands screw bag. No docs !<br />
Hopefully with a 15 mins searching on Sun&#8217;s website you can find the x4200 rackmount doc. You will then learn you need to use the M4, M5 and M6 screw. Looking to the paper packaged inside the screwbag, you will see that you have 4 types of M4, 4 of M5 and as many as M6. You choose <img src='http://www.lecentre.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I spent some time last week, moving T2000 from one room to another, taking about 15 mins a server, unmounting to remounting.<br />
It took me half a day for 2 x4200&#8230; and the backside of the rack if a mess with cables everywhere.<br />
Ooops, I forgot : once in the rackmount, there is no locking facility. Be carefull when you plug cables at the back as your new x4200 may jump out ou crash to the front door (you have a locking system when you take the x4200 out).<br />
<img src="http://www.lecentre.net/blog/wp-content/uploads/2007/08/09082007005.png" title="x4200top2" alt="x4200top2"   width=250px /> </p>
<p>Pictures of the rackmount to come.<br />
X4200 is an AMD based host so it have an ILOM. You can get the console using the remote display tool which is a java JNLP application. We had issue here when using it on OsX. On my host for example, I have a SSL key problem which disallow me to use it. I had to use another osX&#8230; If you have any info on that I can provide the error code.</p>
<p>Whatever, once started I see no differences between this and the past one.<br />
The new challenge will to have QFS working on Linux (Ubuntu).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lecentre.net/blog/archives/85/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

