<?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>Sun Solaris System Admin &#187; sun</title>
	<atom:link href="http://www.sunsolarisadmin.com/tag/sun/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sunsolarisadmin.com</link>
	<description>Sun Solaris HowTo's Tips Tricks Tutorials</description>
	<lastBuildDate>Wed, 21 Sep 2011 19:57:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<image>
<link>http://www.sunsolarisadmin.com</link>
<url>http://www.sunsolarisadmin.com/wp-content/mbp-favicon/favicon.ico</url>
<title>Sun Solaris System Admin</title>
</image>
		<item>
		<title>GNU Tools out of the box in Solaris 11</title>
		<link>http://www.sunsolarisadmin.com/solaris-11/gnu-tools-out-of-the-box-in-solaris-11/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=gnu-tools-out-of-the-box-in-solaris-11</link>
		<comments>http://www.sunsolarisadmin.com/solaris-11/gnu-tools-out-of-the-box-in-solaris-11/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 22:39:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris 11]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[GNU]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=133</guid>
		<description><![CDATA[Leaving aside the performance improvements and re-engineering and architectural changes in Solaris 11, one of the significant and noticeable changes that comes along with Solaris 11 is the introduction of a lot of GNU tools out of the box. To make it even better, they replace the UNIX default versions. This is my opinion is <a href='http://www.sunsolarisadmin.com/solaris-11/gnu-tools-out-of-the-box-in-solaris-11/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><div style="float: left"><script type="text/javascript"><!--
google_ad_client = "pub-6220434432369569";
/* sunsoladm_336x280_post */
google_ad_slot = "5048319182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></p>
<div id="_mcePaste">Leaving aside the performance improvements and re-engineering and architectural changes in Solaris 11, one of the significant and noticeable changes that comes along with Solaris 11 is the introduction of a lot of GNU tools out of the box. To make it even better, they replace the UNIX default versions.</div>
<div id="_mcePaste">This is my opinion is significant shift in approach from Sun (Oracle)  for good reasons allowing users, admins to use more powerful features of the GNU tools that were missing from the default versions.</div>
<div><span id="more-133"></span></div>
<div id="_mcePaste">To mention a couple,</div>
<div>1. With GNU find utility, you have more control on your ability to search with features like the depth of the directories in recursive searches.</div>
<div>2. With GNU tar utility, you can now tar and gunzip togethor in a single command.</div>
<div id="_mcePaste">All the installed GNU tools are under</div>
<blockquote>
<div id="_mcePaste"><em>/usr/gnu/bin</em></div>
</blockquote>
<div>and the following is the list of GNU tools available out of the box with the default installation:</div>
<blockquote>
<div>awk</div>
<div id="_mcePaste">basename</div>
<div id="_mcePaste">captoinfo</div>
<div id="_mcePaste">cat</div>
<div id="_mcePaste">chgrp</div>
<div id="_mcePaste">chmod</div>
<div id="_mcePaste">chown</div>
<div id="_mcePaste">chroot</div>
<div id="_mcePaste">cksum</div>
<div id="_mcePaste">clear</div>
<div id="_mcePaste">cmp</div>
<div id="_mcePaste">comm</div>
<div id="_mcePaste">cp</div>
<div id="_mcePaste">csplit</div>
<div id="_mcePaste">cut</div>
<div id="_mcePaste">date</div>
<div id="_mcePaste">dd</div>
<div id="_mcePaste">df</div>
<div id="_mcePaste">diff</div>
<div id="_mcePaste">diff3</div>
<div id="_mcePaste">diffmk</div>
<div id="_mcePaste">dirname</div>
<div id="_mcePaste">du</div>
<div id="_mcePaste">echo</div>
<div id="_mcePaste">egrep</div>
<div id="_mcePaste">env</div>
<div id="_mcePaste">eqn</div>
<div id="_mcePaste">expand</div>
<div id="_mcePaste">expr</div>
<div id="_mcePaste">factor</div>
<div id="_mcePaste">false</div>
<div id="_mcePaste">fgrep</div>
<div id="_mcePaste">find</div>
<div id="_mcePaste">fmt</div>
<div id="_mcePaste">fold</div>
<div id="_mcePaste">grep</div>
<div id="_mcePaste">grn</div>
<div id="_mcePaste">groups</div>
<div id="_mcePaste">head</div>
<div id="_mcePaste">hostid</div>
<div id="_mcePaste">id</div>
<div id="_mcePaste">indxbib</div>
<div id="_mcePaste">infocmp</div>
<div id="_mcePaste">infotocap</div>
<div id="_mcePaste">join</div>
<div id="_mcePaste">kill</div>
<div id="_mcePaste">link</div>
<div id="_mcePaste">ln</div>
<div id="_mcePaste">logname</div>
<div id="_mcePaste">ls</div>
<div id="_mcePaste">make</div>
<div id="_mcePaste">mkdir</div>
<div id="_mcePaste">mkfifo</div>
<div id="_mcePaste">mknod</div>
<div id="_mcePaste">mktemp</div>
<div id="_mcePaste">mv</div>
<div id="_mcePaste">ncurses5-config</div>
<div id="_mcePaste">neqn</div>
<div id="_mcePaste">nice</div>
<div id="_mcePaste">nl</div>
<div id="_mcePaste">nohup</div>
<div id="_mcePaste">nroff</div>
<div id="_mcePaste">od</div>
<div id="_mcePaste">paste</div>
<div id="_mcePaste">patch</div>
<div id="_mcePaste">pathchk</div>
<div id="_mcePaste">pic</div>
<div id="_mcePaste">pr</div>
<div id="_mcePaste">printf</div>
<div id="_mcePaste">pwd</div>
<div id="_mcePaste">refer</div>
<div id="_mcePaste">reset</div>
<div id="_mcePaste">rm</div>
<div id="_mcePaste">rmdir</div>
<div id="_mcePaste">sdiff</div>
<div id="_mcePaste">sed</div>
<div id="_mcePaste">sh</div>
<div id="_mcePaste">sleep</div>
<div id="_mcePaste">soelim</div>
<div id="_mcePaste">sort</div>
<div id="_mcePaste">split</div>
<div id="_mcePaste">stty</div>
<div id="_mcePaste">sum</div>
<div id="_mcePaste">sync</div>
<div id="_mcePaste">tail</div>
<div id="_mcePaste">tar</div>
<div id="_mcePaste">tee</div>
<div id="_mcePaste">test</div>
<div id="_mcePaste">tic</div>
<div id="_mcePaste">toe</div>
<div id="_mcePaste">touch</div>
<div id="_mcePaste">tput</div>
<div id="_mcePaste">tr</div>
<div id="_mcePaste">true</div>
<div id="_mcePaste">tset</div>
<div id="_mcePaste">tsort</div>
<div id="_mcePaste">tty</div>
<div id="_mcePaste">uname</div>
<div id="_mcePaste">unexpand</div>
<div id="_mcePaste">uniq</div>
<div id="_mcePaste">unlink</div>
<div id="_mcePaste">uptime</div>
<div id="_mcePaste">wc</div>
<div id="_mcePaste">which</div>
<div id="_mcePaste">who</div>
<div id="_mcePaste">whoami</div>
<div id="_mcePaste">xargs</div>
<div id="_mcePaste">yes</div>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-11/gnu-tools-out-of-the-box-in-solaris-11/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>tcpdrop &#8211; Drop TCP connections in Solaris</title>
		<link>http://www.sunsolarisadmin.com/solaris-7/tcpdrop-drop-tcp-connections-in-solaris/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tcpdrop-drop-tcp-connections-in-solaris</link>
		<comments>http://www.sunsolarisadmin.com/solaris-7/tcpdrop-drop-tcp-connections-in-solaris/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 22:07:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris 7]]></category>
		<category><![CDATA[Solaris 8]]></category>
		<category><![CDATA[Solaris 9]]></category>
		<category><![CDATA[Sun X86 platform]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[tcp]]></category>
		<category><![CDATA[tcp drop]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=118</guid>
		<description><![CDATA[tcpdrop is a free utility to drop an established TCP connection in Sun solaris. It is a port of the tcpdrop utility from FreeBSD and openBSD. tcpdrop doesn&#8217;t do what it says on the tin and nothing more but does it very well. tcpdrop works in Solaris 10,9,8 Let&#8217;s put it to work. tcpdrop solaris <a href='http://www.sunsolarisadmin.com/solaris-7/tcpdrop-drop-tcp-connections-in-solaris/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><div style="float: left"><script type="text/javascript"><!--
google_ad_client = "pub-6220434432369569";
/* sunsoladm_336x280_post */
google_ad_slot = "5048319182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>tcpdrop is a free utility to drop an established TCP connection in Sun solaris. It is a port of the tcpdrop utility from FreeBSD and openBSD. tcpdrop doesn&#8217;t do what it says on the tin and nothing more but does it very well. tcpdrop works in Solaris 10,9,8</p>
<p><span id="more-118"></span></p>
<p>Let&#8217;s put it to work. tcpdrop solaris package is available for download from www.sunfreeware.com. Click one of the following links for Solaris 10 for x86 or SPARC.</p>
<p><strong><a title="Download tcpdrop for SPARC" href="ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/tcpdrop_solaris-20080516-sol10-sparc-local.gz" target="_blank">tcpdrop (Solaris 10 &#8211; SPARC)</a></strong></p>
<p><strong><a title="tcpdrop for Solaris 10 x86" href="ftp://ftp.sunfreeware.com/pub/freeware/intel/10/tcpdrop_solaris-20080516-sol10-x86-local.gz" target="_blank">tcpdrop (Solaris 10 &#8211; x86)</a></strong></p>
<p>Once downloaded unzip and install tcpdrop as follows:</p>
<blockquote>
<div id="_mcePaste"># gunzip tcpdrop_solaris-20080516-sol10-x86-local.gz</div>
<div></div>
<div># pkgadd -d tcpdrop_solaris-20080516-sol10-x86-local</div>
<div id="_mcePaste">The following packages are available:</div>
<div id="_mcePaste">1  SMCtcpdr     tcpdrop_solaris</div>
<div id="_mcePaste">(x86) 20080516</div>
<div id="_mcePaste">Select package(s) you wish to process (or &#8216;all&#8217; to process</div>
<div id="_mcePaste">all packages). (default: all) [?,??,q]:</div>
<div id="_mcePaste">Processing package instance &lt;SMCtcpdr&gt; from &lt;/root/tcpdrop_solaris-20080516-sol10-x86-local&gt;</div>
<div id="_mcePaste">tcpdrop_solaris(x86) 20080516</div>
<div id="_mcePaste">Ceri Davies</div>
<div id="_mcePaste">Using &lt;/usr/local&gt; as the package base directory.</div>
<div id="_mcePaste">## Processing package information.</div>
<div id="_mcePaste">## Processing system information.</div>
<div id="_mcePaste">2 package pathnames are already properly installed.</div>
<div id="_mcePaste">## Verifying disk space requirements.</div>
<div id="_mcePaste">## Checking for conflicts with packages already installed.</div>
<div id="_mcePaste">## Checking for setuid/setgid programs.</div>
<div id="_mcePaste"></div>
<div>Installing tcpdrop_solaris as &lt;SMCtcpdr&gt;</div>
<div id="_mcePaste">## Installing part 1 of 1.</div>
<div id="_mcePaste">/usr/local/bin/tcpdrop</div>
<div id="_mcePaste">/usr/local/doc/tcpdrop/OPENSOLARIS.LICENSE</div>
<div id="_mcePaste">/usr/local/doc/tcpdrop/README</div>
<div id="_mcePaste">/usr/local/man/man8/tcpdrop.8</div>
<div id="_mcePaste">[ verifying class &lt;none&gt; ]</div>
<div id="_mcePaste">Installation of &lt;SMCtcpdr&gt; was successful.</div>
</blockquote>
<div></div>
<p>I&#8217;m testing on Solaris 10 9/10 (x86).</p>
<blockquote><p># cat /etc/release<br />
Oracle Solaris 10 9/10 s10x_u9wos_14a X86<br />
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.<br />
Assembled 11 August 2010</p></blockquote>
<p>I&#8217;ve established two ssh connections to the server.</p>
<blockquote><p># netstat -an|grep EST<br />
192.168.1.66.22      192.168.1.65.49980   15872     51 49640      0 ESTABLISHED<br />
192.168.1.66.22      192.168.1.65.50050   16640      0 49640      0 ESTABLISHED</p></blockquote>
<p>Add <strong><em>/usr/local/bin</em></strong> to the PATH environment variable if it isn&#8217;t already there.</p>
<p>To drop a connection, the syntax for tcpdrop is</p>
<blockquote><p># tcpdrop &lt;server address&gt; &lt;server listening port&gt; &lt;client address&gt; &lt;client source port&gt;</p></blockquote>
<p>In our case, to disconnect the 2nd connection,</p>
<blockquote><p># tcpdrop 192.168.1.66 22 192.168.1.65 50050<br />
192.168.1.66:22 &lt;-&gt; 192.168.1.65:50050: dropped</p></blockquote>
<p>where</p>
<p><span style="color: #ff0000;">192.168.1.66</span> is the local server IP</p>
<p><span style="color: #ff0000;">22</span> is the TCP port SSH server that we are listening for a connection</p>
<p><span style="color: #ff0000;">192.168.1.65</span> is the client IP</p>
<p><span style="color: #ff0000;">50050</span> is the source port of the clients ssh connection.</p>
<p>Let&#8217;s check netstat now:</p>
<blockquote><p>#  netstat -an|grep EST<br />
192.168.1.66.22      192.168.1.65.49980   16896     67 49640      0 ESTABLISHED</p></blockquote>
<p>There it is the connection is dropped!</p>
<p><a href="http://www.sunsolarisadmin.com/wp-content/uploads/2010/11/tcpdrop2.png"><img class="alignnone size-medium wp-image-124" title="tcpdrop2" src="http://www.sunsolarisadmin.com/wp-content/uploads/2010/11/tcpdrop2-300x189.png" alt="" width="300" height="189" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-7/tcpdrop-drop-tcp-connections-in-solaris/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Error &#8216;shmget&#8217; call failed with error number 22 (Invalid argument)</title>
		<link>http://www.sunsolarisadmin.com/general/error-shmget-call-failed-with-error-number-22-invalid-argument/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=error-shmget-call-failed-with-error-number-22-invalid-argument</link>
		<comments>http://www.sunsolarisadmin.com/general/error-shmget-call-failed-with-error-number-22-invalid-argument/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 22:16:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[ase]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[CPU]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[shared memory]]></category>
		<category><![CDATA[shmget]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[sybase]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=108</guid>
		<description><![CDATA[The following  error on the Sybase ASE intalled on Sun Solaris can occur if the Maximum shared memory allocated is max&#8217;d out or if none is allocated, it takes the default value which is &#8220;Total Physical Memory /4&#8243;. Backup Server: 4.142.2.58: [0] The &#8216;shmget&#8217; call failed with error number 22 (Invalid argument). Refer to your <a href='http://www.sunsolarisadmin.com/general/error-shmget-call-failed-with-error-number-22-invalid-argument/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->The following  error on the Sybase ASE intalled on Sun Solaris can occur if the Maximum shared memory allocated is max&#8217;d out or if none is allocated, it takes the default value which is <strong>&#8220;Total Physical Memory /4&#8243;</strong>.</p>
<blockquote><p><span style="color: #ff0000;"><em>Backup Server: 4.142.2.58: [0] The &#8216;shmget&#8217; call failed with error number 22 (Invalid argument). Refer to your operating system documentation for further details.</em></span></p></blockquote>
<p><span id="more-108"></span>To confirm, if maximum shared memory has been manually set,</p>
<blockquote><p><strong># projects -l</strong></p>
<p>user.asetest<br />
projid : 101<br />
comment: &#8220;Sybase ASE&#8221;<br />
users  : (none)<br />
groups : (none)<br />
attribs: project.max-shm-memory=(privileged,4294967296,deny)</p></blockquote>
<p>For instance, here we have set the Maximum Shared memory to 4GB to the user account which owns and runs the Sybase ASE. And, the last line &#8220;<span style="text-decoration: underline;"><em><strong>attribs: project.max-shm-memory=(privileged,4294967296,deny)</strong></em></span>&#8221; basically, sets the maximum shared memory for the user processes to 4GB (4294967296).</p>
<p>This is equivalent to doing</p>
<blockquote><p><strong># cat /etc/projects</strong></p></blockquote>
<p>If something similar doesn&#8217;t exist then the ASE is using the system defaults.</p>
<p>In any case, we need to increase the Maximum Shared memory. In our case increasing it to 7GB fixed the problem.</p>
<p>To add a new Project entry,</p>
<blockquote><p><strong># projadd -p 101 -U asetest -c &#8220;Sybase ASE&#8221; -K &#8220;max-shm-memory=(privileged,7GB,deny)&#8221; user.asetest</strong></p></blockquote>
<p>This would create a new project with ID 101, name user.asetest for user asetest and set the Maximum Shared Memory to 7GB.</p>
<p>To modify an existing Project entry,</p>
<blockquote><p><strong># projmod -sK &#8220;project.max-shm-memory=(privileged,7GB,deny)&#8221; user.asetest</strong></p></blockquote>
<p>This should help!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/general/error-shmget-call-failed-with-error-number-22-invalid-argument/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fix errors in commands in Sun ILOM</title>
		<link>http://www.sunsolarisadmin.com/hardware/fix-errors-in-commands-in-sun-ilom/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fix-errors-in-commands-in-sun-ilom</link>
		<comments>http://www.sunsolarisadmin.com/hardware/fix-errors-in-commands-in-sun-ilom/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 20:17:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[ilom]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[SP]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[sunservice]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=105</guid>
		<description><![CDATA[There has been more than one instance when the Sun ILOM was not responsive to commands or were throwing errors. For instance, when you try to run the following command to reset the ILOM -&#62; reset /SP Are you sure you want to reset /SP (y/n)? y Performing hard reset on /SP failed reset: No <a href='http://www.sunsolarisadmin.com/hardware/fix-errors-in-commands-in-sun-ilom/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->There has been more than one instance when the Sun ILOM was not responsive to commands or were throwing errors. For instance, when you try to run the following command to reset the ILOM</p>
<blockquote><p>-&gt; reset /SP<br />
Are you sure you want to reset /SP (y/n)? y<br />
Performing hard reset on /SP failed<br />
reset: No such inventory</p></blockquote>
<p>or when you try to reset the ILOM password, you may get the error &#8220;<em><strong>Set: No such object value</strong></em>&#8221;<br />
<span id="more-105"></span>To resolve the problem, you can actually logon to the ILOM as the user &#8220;sunservice&#8221; with the password of the ILOM root user and then reboot the ILOM (equivalne to &#8220;reset /SP&#8221;) with the command &#8220;reboot&#8221; as follows. Clearly as you can see from this warning SUN doesn&#8217;t recommend it so use it at your own risk:</p>
<blockquote><p><span style="color: #ff0000;"><strong>login as: sunservice</strong></span><br />
Using keyboard-interactive authentication.<br />
Password:</p>
<p>Copyright 2007 Sun Microsystems, Inc. All rights reserved.<br />
Use is subject to license terms.</p>
<p>WARNING: The &#8220;sunservice&#8221; account is provided solely to allow<br />
Sun Services to perform diagnosis and recovery tasks. Customer use of<br />
the &#8220;sunservice&#8221; account may interfere with the correct operation of<br />
ILOM and is not supported other than to perform recovery procedures as<br />
documented by Sun Microsystems. Normal ILOM operations should always be<br />
performed using the root account. Further usage of the &#8220;sunservice&#8221;<br />
account implies your agreement with these terms.<br />
<span style="color: #ff0000;"><strong>[(flash)root@SERV-ILOM:~]# reboot<br />
/sbin/reboot</strong></span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/hardware/fix-errors-in-commands-in-sun-ilom/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>How to find System Serial Number in x86 using ipmitool</title>
		<link>http://www.sunsolarisadmin.com/hardware/how-to-find-system-serial-number-in-x86-using-ipmitool/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-find-system-serial-number-in-x86-using-ipmitool</link>
		<comments>http://www.sunsolarisadmin.com/hardware/how-to-find-system-serial-number-in-x86-using-ipmitool/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 20:10:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[chasis]]></category>
		<category><![CDATA[fru]]></category>
		<category><![CDATA[ipmitool]]></category>
		<category><![CDATA[serial number]]></category>
		<category><![CDATA[sneep]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[x86]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=102</guid>
		<description><![CDATA[As we discussed earlier here, you can find the serial number of a Sun Hardware using the utility &#8220;sneep&#8221;. However, in Sun X86 systems, you can use the pre-installed tool &#8220;ipmitool&#8221; to find the system serial number. It is not as straight forward as sneep but still is simpl procedure. Run the command # ipmitool <a href='http://www.sunsolarisadmin.com/hardware/how-to-find-system-serial-number-in-x86-using-ipmitool/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->As we discussed earlier <a title="Sneep - Find chasis serial number" href="http://www.sunsolarisadmin.com/hardware/find-chasis-serial-number-using-sneep/" target="_blank">here</a>, you can find the serial number of a Sun Hardware using the utility &#8220;sneep&#8221;. However, in Sun X86 systems, you can use the pre-installed tool &#8220;ipmitool&#8221; to find the system serial number. It is not as straight forward as sneep but still is simpl procedure.</p>
<p><span id="more-102"></span><br />
Run the command</p>
<blockquote><p><strong># ipmitool fru | grep &#8220;Product Serial&#8221;</strong></p></blockquote>
<p>where &#8220;FRU&#8221; is a Field Replaceable Unit. The problem here is it&#8217;s going to output too many serial numbers to confuse. The one we are interested is a 10 digit alpha-numeric number.</p>
<p>However, extending the command as</p>
<blockquote><p><strong># ipmitool fru print |egrep &#8220;Mainboard|/SYS&#8221; | awk &#8216;{print $7}&#8217;<br />
</strong>91)</p></blockquote>
<p>Would give you the ID number of the &#8220;/SYS&#8221; or &#8220;Mainboard&#8221; (91 here) which mostly has the serial number of the system. We then run the &#8220;ipmitool&#8221; as follows with that ID number to find the system serial number.</p>
<blockquote><p><strong># ipmitool fru print 91 |grep &#8220;Product Serial&#8221; | awk &#8216;{print $4}&#8217;</strong></p></blockquote>
<p>where &#8220;91&#8243; was the ID number.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/hardware/how-to-find-system-serial-number-in-x86-using-ipmitool/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Install Sybase Perl module in Solaris 10</title>
		<link>http://www.sunsolarisadmin.com/solaris-10/install-sybase-perl-module-in-solaris-10/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-sybase-perl-module-in-solaris-10</link>
		<comments>http://www.sunsolarisadmin.com/solaris-10/install-sybase-perl-module-in-solaris-10/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 22:01:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Package Management]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[chain]]></category>
		<category><![CDATA[cpan]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dbd::sybase]]></category>
		<category><![CDATA[dbi]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[perl5]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris10]]></category>
		<category><![CDATA[sparc]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[sybase]]></category>
		<category><![CDATA[x86]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=96</guid>
		<description><![CDATA[Installing Perl modules in Sun Solaris is not as straight forward but is not very difficult as well.  Perl module installations in Sun Solaris needs GNU Make rather than the default make tool installed. And, requires using perlgcc to build the Makefile.PL than the default perl binary. Installing Sybase Perl Module requires the following preinstalled <a href='http://www.sunsolarisadmin.com/solaris-10/install-sybase-perl-module-in-solaris-10/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->Installing Perl modules in Sun Solaris is not as straight forward but is not very difficult as well.  Perl module installations in Sun Solaris needs GNU Make rather than the default make tool installed. And, requires using perlgcc to build the Makefile.PL than the default perl binary.</p>
<p><span id="more-96"></span></p>
<p>Installing Sybase Perl Module requires the following preinstalled</p>
<p>1. Sybase Server/Client already installed on your server<br />
2. GNU Make</p>
<p><span style="text-decoration: underline;"><strong>Install GNU Make</strong></span></p>
<p>Assuming you have already installed Sybase Server/Client on your system, lets download and install GNU Make.</p>
<p>GNU Make package can be downloaded from sunfreeware.com website. At the time of writing, the version available for download is Make 3.81</p>
<p><a title="Download GNU Make in Solaris 10 SPARC" href="ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/make-3.81-sol10-sparc-local.gz" target="_blank">Download GNU Make for Solaris 10 (SPARC)</a></p>
<p><a title="Download GNU Make in Solaris 10 x86" href="ftp://ftp.sunfreeware.com/pub/freeware/intel/10/make-3.81-sol10-x86-local.gz" target="_blank">Download Make for Solaris 10 (x86)</a></p>
<p><em><span style="text-decoration: underline;"><strong>Unzip and Install GNU Make</strong></span></em></p>
<p>From the directory where the file is downloaded</p>
<blockquote><p><strong># gunzip make-3.81-sol10-x86-local.gz<br />
# pkgadd -d make-3.81-sol10-x86-local</strong></p></blockquote>
<p>This should install &#8220;make&#8221; under <strong>/usr/local/bin</strong></p>
<blockquote><p><strong># which make<br />
/usr/local/bin/make</strong></p></blockquote>
<p>Download Perl Modules from <a title="CPAN" href="www.cpan.org" target="_blank">www.cpan.org</a>. The modules we are interested in are</p>
<p>1. <a title="Perl DBI module" href="http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.609.tar.gz" target="_blank">DBI (Database Independent Interface for Perl)</a></p>
<p>2. <a title="Perl DBD::Sybase module" href="http://search.cpan.org/CPAN/authors/id/M/ME/MEWP/DBD-Sybase-1.09.tar.gz" target="_blank">DBD::Sybase (Sybase database Driver for the DBI module)</a></p>
<p><em>NOTE: I find in Solaris 10 Update 6, DBI module is already installed which means we only need to install DBD::Sybase module.</em></p>
<p>To verify either of the modules is already installed on the system,</p>
<p>For DBI, file <em><strong>DBI.pm</strong></em> should exist under</p>
<blockquote><p><em><strong>x86</strong></em></p>
<p>/usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int/DBI.pm</p>
<p><em><strong>SPARC</strong></em></p>
<p>/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/DBI.pm</p></blockquote>
<p>For <em><strong>DBD::Sybase</strong></em></p>
<blockquote><p><em><strong>x86</strong></em></p>
<p>/usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/DBD/Sybase.pm</p>
<p><em><strong>SPARC</strong></em></p>
<p>/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/DBD/Sybase.pm</p></blockquote>
<p>Now, assuming both these modules are not installed</p>
<p><span style="text-decoration: underline;"><strong>Install Perl DBI Module</strong></span></p>
<p>Download the DBI Module from <a title="Perl DBI module download" href="http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.609.tar.gz" target="_blank">here</a></p>
<p>From the download directory,</p>
<blockquote><p><strong># gunzip DBI-1.609.tar.gz<br />
# tar -xvf DBI-1.609.tar<br />
# cd DBI-1.609</strong></p></blockquote>
<p>The above steps should (g)unzip, untar the downloaded source files.</p>
<p>Export <strong>$SYBASE</strong> &amp; <strong>$LD_LIBRARY_PATH</strong> environment variables. We have the Sybase client installed under</p>
<p><strong>/opt/sybase/oc15.0-EBF16084/OCS-15_0</strong></p>
<p>which means the libraries exist under</p>
<p><strong>/opt/sybase/oc15.0-EBF16084/OCS-15_0/lib</strong></p>
<blockquote><p><strong># export SYBASE=/opt/sybase/oc15.0-EBF16084/OCS-15_0<br />
# export LD_LIBRARY_PATH=/opt/sybase/oc15.0-EBF16084/OCS-15_0/lib:$LD_LIBRARY_PATH<br />
</strong></p></blockquote>
<p>If this step is skipped, the following error comes up in the next step:</p>
<p><span style="color: #ff0000;"><strong>Can&#8217;t find the lib directory under /export/home/sybase! at Makefile.PL line 118, &lt;IN&gt; line 44.</strong></span></p>
<p>Now comes the tricky bit, use /usr/perl5/bin/perlgcc instead of default perl as follows:</p>
<blockquote><p><strong># /usr/perl5/bin/perlgcc Makefile.PL</strong></p></blockquote>
<p>Let&#8217;s now compile and install using GNU Make from source directory</p>
<blockquote><p><strong># /usr/local/bin/make<br />
# /usr/local/bin/make test<br />
# /usr/local/bin/make install<br />
</strong></p></blockquote>
<p>To make sure the install compelted successfully. Check if the DBI.pm file exists as shown earlier.</p>
<p><span style="text-decoration: underline;"><strong>Install Perl DBD::Sybase module</strong></span></p>
<p>Download DBD::Sybase perl module from <a title="Download DBD::Sybase Perl module" href="http://search.cpan.org/CPAN/authors/id/M/ME/MEWP/DBD-Sybase-1.09.tar.gz" target="_blank">here</a>.</p>
<p>From the downloaded directory:</p>
<blockquote><p><strong># gunzip DBD-Sybase-1.09.tar.gz<br />
# tar -xvf DBD-Sybase-1.09.tar<br />
# cd DBD-Sybase-1.09</strong></p></blockquote>
<p>The above should (g)unzip, untar the downloaded file and change into the source directory.</p>
<p>Export the <strong>$SYBASE &amp; $LD_LIBRARY_PATH</strong> environment variables if you have already not done so.</p>
<blockquote><p><strong># export SYBASE=/opt/sybase/oc15.0-EBF16084/OCS-15_0<br />
# export LD_LIBRARY_PATH=/opt/sybase/oc15.0-EBF16084/OCS-15_0/lib:$LD_LIBRARY_PATH</strong></p></blockquote>
<p>Run perlgcc against the Makefile.PL as follows:</p>
<blockquote><p><strong># /usr/perl5/bin/perlgcc Makefile.PL</strong></p></blockquote>
<p>Select the default CHAIN mode or modify as required, then enter the Sybase Server, a Sybase Username and password and a Database as and when promted. This will allow the installation test connection. Make sure this DB connection is updated in the Sybase &#8220;interfaces&#8221; file.</p>
<p><em>NOTE: Once the installation is completed. Either the PWD file created by this procedure or the entire Source directory should be deleted as the PWD file will contain these DB access details. Also, it is advisable to provide a test DB access detail rather than a live environment.<br />
</em><br />
Let&#8217;s now compile and install using GNU Make from source directory</p>
<blockquote><p><strong># /usr/local/bin/make</strong></p></blockquote>
<p>Now, re-export <strong>$SYBASE</strong> as follows:</p>
<p><strong># export SYBASE=/opt/sybase/oc15.0-EBF16084</strong></p>
<p><em>[NOTE: This may vary in your environment]</em></p>
<blockquote><p><strong># /usr/local/bin/make test<br />
# /usr/local/bin/make install</strong></p></blockquote>
<p>This should install the Sybase Perl module. To confirm the installation was successful, look for Sybase.pm as explained earlier.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-10/install-sybase-perl-module-in-solaris-10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>OBP Error: FATAL: system is not bootable, boot command is disabled</title>
		<link>http://www.sunsolarisadmin.com/hardware/obp-error-fatal-system-is-not-bootable-boot-command-is-disabled/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=obp-error-fatal-system-is-not-bootable-boot-command-is-disabled</link>
		<comments>http://www.sunsolarisadmin.com/hardware/obp-error-fatal-system-is-not-bootable-boot-command-is-disabled/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 19:03:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[OBP]]></category>
		<category><![CDATA[OK prompt]]></category>
		<category><![CDATA[Open Boot Prompt]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=86</guid>
		<description><![CDATA[When you run any boot command like &#8220;boot net&#8221; or &#8220;boot -s&#8221; from the OK prompt (OBP), you may end up with the error FATAL: system is not bootable, boot command is disabled Don&#8217;t panic!!! This error indicates that interrupted the boot process prematurely, most likely when the memory checks were run with &#8220;STOP + <a href='http://www.sunsolarisadmin.com/hardware/obp-error-fatal-system-is-not-bootable-boot-command-is-disabled/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->When you run any boot command like &#8220;boot net&#8221; or &#8220;boot -s&#8221; from the OK prompt (OBP), you may end up with the error</p>
<blockquote><p><strong>FATAL: system is not bootable, boot command is disabled</strong></p></blockquote>
<p>Don&#8217;t panic!!!</p>
<p><span id="more-86"></span><br />
This error indicates that interrupted the boot process prematurely, most likely when the memory checks were run with &#8220;<strong>STOP + A&#8221;</strong> or a break from console.</p>
<p>To resolve this problem simply Power OFF and power ON the system. Alternatively, you can perform a &#8220;<strong>reset-all</strong>&#8221; from the OK prompt.</p>
<p>This should help!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/hardware/obp-error-fatal-system-is-not-bootable-boot-command-is-disabled/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>dladm &#8211; Display Link status,speed,duplex,statistics,MTU</title>
		<link>http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dladm-display-link-statusspeedduplexstatisticsmtu</link>
		<comments>http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 18:45:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[aggregation]]></category>
		<category><![CDATA[bytes]]></category>
		<category><![CDATA[dladm]]></category>
		<category><![CDATA[duplex]]></category>
		<category><![CDATA[link speed]]></category>
		<category><![CDATA[link status]]></category>
		<category><![CDATA[mtu]]></category>
		<category><![CDATA[nxge]]></category>
		<category><![CDATA[packets]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=78</guid>
		<description><![CDATA[In the past we have to mess around with the NDD commands and stats tools like kstat to find the network link status, speed, duplex information in Sun Solaris. With Solaris 10, this has become much easier with the dladm utility. dladm is the admin utility for Data-Link Interface which helps to display informarthe like <a href='http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->In the past we have to mess around with the NDD commands and stats tools like kstat to find the network link status, speed, duplex information in Sun Solaris. With Solaris 10, this has become much easier with the dladm utility.</p>
<p><strong>dladm</strong> is the admin utility for Data-Link Interface which helps to display informarthe like Link Status (UP/DOWN), Speed, Duplex, MTU, VLAN Tagged and crucially statistics of network traffic on each of the interfaces historically as well as in real time. dladm can also configure and admin Link Aggregation on multiple NICs which we will not focus here.<br />
<span id="more-78"></span><br />
<span style="text-decoration: underline;"><strong>Show Link Status/Speed/Duplex</strong></span></p>
<blockquote><p><strong># dladm show-dev</strong><br />
nxge0           link: down      speed: 0     Mbps       duplex: unknown<br />
nxge1           link: down      speed: 0     Mbps       duplex: unknown<br />
nxge2           link: up        speed: 1000  Mbps       duplex: full<br />
nxge3           link: up        speed: 1000  Mbps       duplex: full</p></blockquote>
<p>As you can see above the &#8220;<strong>show-dev</strong>&#8221; option lists all the network interfaces with Link Status (UP/DOWN), current speed in Mbps and Duplex (Half/Full)</p>
<p><span style="text-decoration: underline;"><strong>Show Link Status</strong></span></p>
<blockquote><p><strong># dladm show-link</strong><br />
nxge0           type: non-vlan  mtu: 1500       device: nxge0<br />
nxge1           type: non-vlan  mtu: 1500       device: nxge1<br />
nxge2           type: non-vlan  mtu: 1500       device: nxge2<br />
nxge3           type: non-vlan  mtu: 1500       device: nxge3</p></blockquote>
<p>Here<strong> &#8220;show-link&#8221;</strong> option reveals the MTU and the VLAN tagging detail on each of the interfaces on the system.</p>
<p><span style="text-decoration: underline;"><strong>Show Stats of all Interfaces for all time</strong></span></p>
<blockquote><p><strong># dladm show-dev -s</strong><br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge0           0         0           0       0         0           0<br />
nxge1           0         0           0       0         0           0<br />
nxge2           179625752557169463759657      581104982 3964684165410<br />
nxge3           22240891  1834257868  0       5198483   395084708   0</p></blockquote>
<p>The <strong>&#8220;-s&#8221;</strong> option along with <strong>&#8220;show-dev&#8221;</strong> or <strong>&#8220;show-link&#8221;</strong> displays network traffic statistics including Input/Output packets, input/output errors.</p>
<p><span style="text-decoration: underline;"><strong>Stats in real-time</strong></span></p>
<p>To show the stats of a particular interface in real-time use the<strong> &#8220;-i&#8221; </strong>option which is the interval in seconds. The first line shows again historic stats and later on the real-time information for every &#8220;n&#8221; seconds (5 seconds in our example)</p>
<blockquote><p><strong># dladm show-link -s -i 5 nxge2</strong><br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge2           179637824757173944575957      581119516 3964706801670<br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge2           961       319105             0       150       17874       0<br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge2           887       263850             0       117       16505       0</p></blockquote>
<p>If we fail to mention the interface then it takes the default interface (1st in the list). As you can see from the example below, we see stats for nxge0 which is not connected.</p>
<blockquote><p><strong># dladm show-link -s -i 5</strong><br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge0           0         0           0       0         0           0<br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge0           0         0           0       0         0           0</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Find Chasis Serial Number using sneep</title>
		<link>http://www.sunsolarisadmin.com/hardware/find-chasis-serial-number-using-sneep/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=find-chasis-serial-number-using-sneep</link>
		<comments>http://www.sunsolarisadmin.com/hardware/find-chasis-serial-number-using-sneep/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 18:32:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[asset tag]]></category>
		<category><![CDATA[chasis serial number]]></category>
		<category><![CDATA[csn]]></category>
		<category><![CDATA[eeprom]]></category>
		<category><![CDATA[psn]]></category>
		<category><![CDATA[serial number]]></category>
		<category><![CDATA[sneep]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=75</guid>
		<description><![CDATA[sneep (Serial Number in EEPROM) is a cool utility for Solaris that can retreive the Chasis Serial Number (CSN) or the Product Serial Number (PSN). This comes real handy when taking inventory or when having to work with Sun Support. sneep can also store useful information like system Assett Tag or Location into the EEPROM <a href='http://www.sunsolarisadmin.com/hardware/find-chasis-serial-number-using-sneep/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><em><strong>sneep</strong></em> (<em><strong>Serial Number in EEPROM</strong></em>) is a cool utility for Solaris that can retreive the Chasis Serial Number (CSN) or the Product Serial Number (PSN). This comes real handy when taking inventory or when having to work with Sun Support. sneep can also store useful information like system Assett Tag or Location into the EEPROM which can be retreived later on.<br />
<span id="more-75"></span><br />
Sneep searches for the serial number in  several  data  sources,  including  the  system  eeprom, platform-specific hardware-based sources, the  configuration      files  for  the  Sun  &#8220;<em><strong>explorer</strong></em>&#8220;  and &#8220;<em><strong>Configuration Service Tracker (CST)</strong></em>&#8221; tools, and its own  backup  file. This order of searched can be altered.</p>
<p><span style="text-decoration: underline;"><strong>Display Serial Number</strong></span></p>
<p>To simply display the serial number run sneep with no arguements</p>
<blockquote><p><strong># sneep<br />
</strong>0011223344</p></blockquote>
<p>To display the serial number and its associated tag in the EEPROM and infact all stored Tag/Value pairs.</p>
<blockquote><p><strong># sneep -T</strong><br />
&#8220;ChassisSerialNumber&#8221;   &#8220;0011223344&#8243;</p></blockquote>
<p><span style="text-decoration: underline;"><strong>Store Information in EEPROM</strong></span></p>
<p>To store information into the EEPROM like the asset tag use the &#8220;-t&#8221; to set the tag name and the &#8220;-s&#8221; option to set its value as below:<span> </span></p>
<blockquote><p><strong># sneep -t &#8220;AssetTag&#8221; -s 001234</strong></p></blockquote>
<p>To display all information</p>
<blockquote><p><strong># sneep -T</strong><br />
&#8220;AssetTag&#8221;  &#8220;001234&#8243;<br />
&#8220;ChassisSerialNumber&#8221;   &#8220;0011223344&#8243;</p></blockquote>
<p><span style="text-decoration: underline;"><strong>Install Sneep</strong></span></p>
<p>Sneep is not installed by default in Solaris. <a title="Download Sneep from Sun website" href="http://www.sun.com/sneep" target="_blank">Click here</a> to download the latest version of Sneep utility. (requires a sunsolve account)</p>
<p>Install as follows from the directory where the sneep package (<strong>SUNWsneep</strong>) is downloaded to:</p>
<blockquote><p><strong># uncompress SUNWsneep2.6.tar.Z<br />
# tar -xvf SUNWsneep2.6.tar<br />
# pkgadd -d . SUNWsneep<br />
</strong></p></blockquote>
<p>To confirm the installation</p>
<blockquote><p><strong># pkginfo -l SUNWsneep</strong><br />
PKGINST:  SUNWsneep<br />
NAME:  Serial Number in EEPROM<br />
CATEGORY:  service<br />
ARCH:  sparc,i386<br />
VERSION:  2.6<br />
BASEDIR:  /opt/SUNWsneep<br />
VENDOR:  Sun Microsystems, Inc.<br />
DESC:  Persistent, software-accesible storage of Chassis Serial Number (CSN) across OS and application changes. Works on all Sun platforms. Can also store and retrieve arbitrary other values in EEPROM.<br />
PSTAMP:  cvs-sustain-build20080930010154<br />
INSTDATE:  Jun 04 2009 17:22<br />
HOTLINE:  Support provided through normal Sun support channels<br />
EMAIL:  sneep-support@sun.com<br />
STATUS:  completely installed<br />
FILES:       25 installed pathnames<br />
5 directories<br />
3 executables<br />
1315 blocks used (approx)</p></blockquote>
<p>If you didn&#8217;t accept to create a link file in <strong>/usr/sbin</strong> during the pkgadd, add a symbolic link as follows;</p>
<blockquote><p><strong># ln -s /opt/SUNWsneep/bin/sneep .</strong></p></blockquote>
<p>To check the man page</p>
<blockquote><p><strong># man -M /opt/SUNWsneep/man  sneep</strong></p></blockquote>
<p>For command help</p>
<blockquote><p><strong># sneep -h</strong></p>
<p>Save and retrieve Chassis Serial Number  ( CSN ) using EEPROM.</p>
<p>usage:</p>
<p>sneep [-aFhlTvVx] [-t tag] [-s setting ] [-P ds1:ds2...] \<br />
[-d default] [-o separator]<br />
setcsn -c serialnumber<br />
showplatform -p csn</p>
<p>-h              This help message<br />
For detailed information, consult the man page. Try<br />
man -M /opt/SUNWsneep/man  sneep</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/hardware/find-chasis-serial-number-using-sneep/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>PCP script to find open TCP ports and PIDs related in Solaris</title>
		<link>http://www.sunsolarisadmin.com/solaris-8/pcp-script-to-find-open-tcp-ports-and-pids-related-in-solaris/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pcp-script-to-find-open-tcp-ports-and-pids-related-in-solaris</link>
		<comments>http://www.sunsolarisadmin.com/solaris-8/pcp-script-to-find-open-tcp-ports-and-pids-related-in-solaris/#comments</comments>
		<pubDate>Tue, 12 May 2009 22:35:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris 8]]></category>
		<category><![CDATA[Solaris 9]]></category>
		<category><![CDATA[pcp]]></category>
		<category><![CDATA[PID]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[TCP port]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=69</guid>
		<description><![CDATA[PCP is a very useful security and adminitration script that can help you quickly find Processes (PIDs) having particular TCP Port(s) open, TCP ports open by specific PIDs or even list all the TCP Ports open by all PIDs running on your system. The PCP script works on Solaris 10/9/8 and can be downloaded from <a href='http://www.sunsolarisadmin.com/solaris-8/pcp-script-to-find-open-tcp-ports-and-pids-related-in-solaris/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->PCP is a very useful security and adminitration script that can help you quickly find Processes (PIDs) having particular TCP Port(s) open, TCP ports open by specific PIDs or even list all the TCP Ports open by all PIDs running on your system.</p>
<p><span id="more-69"></span><br />
The PCP script works on Solaris 10/9/8 and can be downloaded from <a title="PCP Script download" href="http://www.unix.ms/pcp/pcp.txt" target="_blank">here</a>. Simply save the pcp.txt file to your Solaris Server as a Shell scripts (say pcp.sh) and change permissions to execute.</p>
<blockquote><p><strong># chmod 755 pcp.sh</strong></p></blockquote>
<p><span style="text-decoration: underline;"><strong>PIDs for TCP Port</strong></span></p>
<p>Run PCP with <strong>&#8220;-p&#8221;</strong> option to show the PIDs of processes having a TCP port (say Port 22)</p>
<p><img class="alignnone size-full wp-image-70" title="pcp1" src="http://www.sunsolarisadmin.com/wp-content/uploads/2009/05/pcp1.png" alt="pcp1" width="471" height="194" /></p>
<p>For instance, to find PIDs opening TCP port 22.</p>
<p><span style="text-decoration: underline;"><strong>TCP Ports open by PIDs</strong></span></p>
<p>Run PCP with <strong>&#8220;-P&#8221;</strong> option to show the TCP ports open by specific PID</p>
<p>For instance, here I try to find the TCP ports open by PID 18805</p>
<p><img class="alignnone size-full wp-image-72" title="pcp3" src="http://www.sunsolarisadmin.com/wp-content/uploads/2009/05/pcp3.png" alt="pcp3" width="468" height="223" /></p>
<p><span style="text-decoration: underline;"><strong>All PIDs for all open TCP Ports</strong></span></p>
<p>Use the <strong>&#8220;-a&#8221;</strong> option to list all TCP ports open with all the PIDs</p>
<p><img class="alignnone size-full wp-image-71" title="pcp2" src="http://www.sunsolarisadmin.com/wp-content/uploads/2009/05/pcp2.png" alt="pcp2" width="464" height="458" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-8/pcp-script-to-find-open-tcp-ports-and-pids-related-in-solaris/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

