<?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; solaris</title>
	<atom:link href="http://www.sunsolarisadmin.com/tag/solaris/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sunsolarisadmin.com</link>
	<description>Sun Solaris HowTo's Tips Tricks Tutorials</description>
	<lastBuildDate>Wed, 16 Jun 2010 21:07:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.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>Configure Link based IPMP in Solaris</title>
		<link>http://www.sunsolarisadmin.com/networking/configure-link-based-ipmp-in-solaris/</link>
		<comments>http://www.sunsolarisadmin.com/networking/configure-link-based-ipmp-in-solaris/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 21:05:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[if_mpadm]]></category>
		<category><![CDATA[ip-address]]></category>
		<category><![CDATA[IPMP]]></category>
		<category><![CDATA[link based ipmp]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[tracking ipmp]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=111</guid>
		<description><![CDATA[For long we used Tracking IP basd IPMP wherein we track the availability of a gateway on the network using ICMP Echo request. When the gateway IP fails to respond it is considered link is unavailable and NIC fails over to the standby NIC in the IPMP group. The biggest disadvantage here is that we [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->For long we used Tracking IP basd IPMP wherein we track the availability of a gateway on the network using ICMP Echo request. When the gateway IP fails to respond it is considered link is unavailable and NIC fails over to the standby NIC in the IPMP group.</p>
<p><span id="more-111"></span></p>
<div>
<div id="_mcePaste">The biggest disadvantage here is that we use 3 IP addresses:</div>
<div></div>
<div>1 for the Virtual IP</div>
<div id="_mcePaste">1 for the active NIC</div>
<div id="_mcePaste">1 for the Standby NIC</div>
<div></div>
<div>and ofcourse the overhead of the ICMP echo requests sent every seconds.</div>
<div></div>
<div>This can be overcome using the Link based IPMP configuration where you only need only IP Address and there is no overhead of ICMP messages and the failover delay is lot lesser than that of the tracking method. And the added advantage of a very simple configuration.</div>
<div></div>
<div>To configure Link based IPMP, create the hostname.&lt;int name&gt; files for the Active NIC and the standby NIC. For instance here, we use the bge0 and bge3 NICs as the IPMP pair where bge0 is active and bge3 is standby and hence the files <strong>hostname.bge0</strong> and <strong>hostname.bge3</strong>.</div>
</div>
<div></div>
<div>To configure Link based IPMP, create the hostname.&lt;int name&gt; files for the Active NIC and the standby NIC. For instance here, we use the bge0 and bge3 NICs as the IPMP pair where bge0 is active and bge3 is standby and hence the files hostname.bge0 and hostname.bge3.</div>
<div>
<blockquote>
<div><strong>root@solaris10:/etc # ls -l hostname*</strong></div>
<div>-rw-r&#8211;r&#8211;   1 root     root          55 May  6 11:23 hostname.bge0</div>
<div>-rw-r&#8211;r&#8211;   1 root     root          23 May  6 11:23 hostname.bge3</div>
</blockquote>
</div>
<div>
<div>Edit the <strong><span style="text-decoration: underline;">hostname.bge0</span></strong> file and enter the following:</div>
</div>
<div>
<blockquote>
<div><strong>root@solaris10:/etc # vi hostname.bge0</strong></div>
<div>solaris10 netmask + broadcast + group sol10-ipmp up</div>
</blockquote>
<div>where,</div>
<div>&#8220;<strong>solaris10</strong>&#8221; is the hostname which should have a corresponding host entry in the /etc/hosts file.</div>
<div></div>
<div><strong>sol10-ipmp</strong> is the name of the IPMP group.</div>
<div></div>
<div>Edit the <strong><span style="text-decoration: underline;">hostname.bge3</span></strong> and the following</div>
</div>
<div>
<blockquote>
<div><strong>root@solaris10:/etc # vi hostname.bge3</strong></div>
<div>group sol10-ipmp up</div>
</blockquote>
</div>
<div>
<div>Here as you can see the standby NIC only has IPMP group configuration. This is all is needed to setup Link based IPMP. When the server is rebooted this configuration should take effect</div>
<div></div>
<div>To do this on the fly, we can use the ifconfig command:</div>
<div></div>
<div><strong><span style="text-decoration: underline;">NIC bge0</span></strong></div>
<blockquote>
<div><strong>root@solaris10:/etc # ifconfig bge0 plumb</strong></div>
<div><strong>root@solaris10:/etc # ifconfig bge0 192.168.0.1 netmask 255.255.255.0 group sol10-ipmp up</strong></div>
</blockquote>
<div><strong><span style="text-decoration: underline;">NIC bge3</span></strong></div>
</div>
<div>
<blockquote>
<div><strong>root@solaris10:/etc # ifconfig bge3 plumb</strong></div>
<div><strong>root@solaris10:/etc # ifconfig bge3 group sol10-ipmp up</strong></div>
</blockquote>
<blockquote>
<div><strong>root@solaris10:/etc # ifconfig -a</strong></div>
<div>lo0: flags=2001000849&lt;UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL&gt; mtu 8232 index 1</div>
<div>inet 127.0.0.1 netmask ff000000</div>
<div>bge0: flags=1000843&lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4&gt; mtu 1500 index 2</div>
<div>inet 192.168.0.1 netmask ffffff00 broadcast 192.168.0.255</div>
<div>groupname sol10-ipmp</div>
<div>ether 0:a:1d:ee:ab:cd</div>
<div>bge3: flags=1000843&lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4&gt; mtu 1500 index 5</div>
<div>inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255</div>
<div>groupname sol10-ipmp</div>
<div>ether 0:a:1d:ee:ab:d2</div>
</blockquote>
<p>This should do.</p>
<div>To test failover, you can do the hard way of pulling the cables  or use if_mpadm command as follows:</div>
<div>To failover:</div>
</div>
<div>
<blockquote>
<div><strong>root@solaris10:/etc # if_mpadm -d bge0</strong></div>
</blockquote>
</div>
<div>
<div>To failback</div>
</div>
<div>
<blockquote>
<div><strong>root@solaris10:/etc # if_mpadm -r bge0</strong></div>
</blockquote>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/networking/configure-link-based-ipmp-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/</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 [...]]]></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>0</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/</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 [...]]]></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>1</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/</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 [...]]]></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>0</slash:comments>
		</item>
		<item>
		<title>How to find list of files installed by a package</title>
		<link>http://www.sunsolarisadmin.com/package-management/how-to-find-list-of-files-installed-by-a-package/</link>
		<comments>http://www.sunsolarisadmin.com/package-management/how-to-find-list-of-files-installed-by-a-package/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 17:20:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Package Management]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[gcrypt]]></category>
		<category><![CDATA[pacage]]></category>
		<category><![CDATA[pkgchk]]></category>
		<category><![CDATA[pkginfo]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=89</guid>
		<description><![CDATA[&#8220;pkginfo&#8221; command can be useful in Solaris to give a detailed listing of a package including the details of number of installed files, pathnames, directories and executables as follows: # pkginfo -l SUNWlibgcrypt PKGINST:  SUNWlibgcrypt NAME:  Libgcrypt &#8211; Cryptographic Library CATEGORY:  EVO146,application,JDS3 ARCH:  sparc VERSION:  1.1.12,REV=10.0.3.2004.12.15.17.57 BASEDIR:  /usr VENDOR:  Sun Microsystems, Inc. DESC:  Libgcrypt &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><strong>&#8220;pkginfo&#8221;</strong> command can be useful in Solaris to give a detailed listing of a package including the details of number of installed files, pathnames, directories and executables as follows:</p>
<p><span id="more-89"></span><br />
<strong> </strong></p>
<blockquote><p><strong># pkginfo -l SUNWlibgcrypt</strong><br />
PKGINST:  SUNWlibgcrypt<br />
NAME:  Libgcrypt &#8211; Cryptographic Library<br />
CATEGORY:  EVO146,application,JDS3<br />
ARCH:  sparc<br />
VERSION:  1.1.12,REV=10.0.3.2004.12.15.17.57<br />
BASEDIR:  /usr<br />
VENDOR:  Sun Microsystems, Inc.<br />
DESC:  Libgcrypt &#8211; Cryptographic Library<br />
PSTAMP:  fire420041215175708<br />
INSTDATE:  Sep 15 2008 12:08<br />
HOTLINE:  Please contact your local service provider<br />
STATUS:  completely installed<br />
FILES:        6 installed pathnames<br />
2 shared pathnames<br />
2 directories<br />
2 executables<br />
595 blocks used (approx)</p></blockquote>
<p>But, if you want to see what those files and directories are then &#8220;<strong>pkgchk</strong>&#8221; should be your toy. The following should show the list of files and pathnames installed by the package:</p>
<blockquote><p><strong># pkgchk -l SUNWlibgcrypt|egrep &#8220;Pathname|Type&#8221;</strong><br />
Pathname: /usr/bin<br />
Type: directory<br />
Pathname: /usr/bin/libgcrypt-config<br />
Type: regular file<br />
Pathname: /usr/lib<br />
Type: directory<br />
Pathname: /usr/lib/libgcrypt.so<br />
Type: symbolic link<br />
Pathname: /usr/lib/libgcrypt.so.1<br />
Type: symbolic link<br />
Pathname: /usr/lib/libgcrypt.so.1.5.1<br />
Type: regular file</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/package-management/how-to-find-list-of-files-installed-by-a-package/feed/</wfw:commentRss>
		<slash:comments>0</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/</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 + [...]]]></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>1</slash:comments>
		</item>
		<item>
		<title>How to remove ^M characters from file in Unix/Solaris</title>
		<link>http://www.sunsolarisadmin.com/general/how-to-remove-m-characters-from-file-in-unixsolaris/</link>
		<comments>http://www.sunsolarisadmin.com/general/how-to-remove-m-characters-from-file-in-unixsolaris/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 19:12:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[CTRL+M]]></category>
		<category><![CDATA[dos2unix]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[tr]]></category>
		<category><![CDATA[unix2dos]]></category>
		<category><![CDATA[vi]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=81</guid>
		<description><![CDATA[When you sometimes copy a file from Windows to UNIX/Solaris or even Linux systems, you can find these anooying ^M characters everywhere. This is because, the file from Windows is in DOS (ASCII) format and needs to be converted to ISO format. There are many ways to do this. Let&#8217;s start with the easy one [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->When you sometimes copy a file from Windows to UNIX/Solaris or even Linux systems, you can find these anooying ^M characters everywhere. This is because, the file from Windows is in DOS (ASCII) format and needs to be converted to ISO format.</p>
<p><span id="more-81"></span><br />
There are many ways to do this. Let&#8217;s start with the easy one look at each of them</p>
<p><strong>1. Use dos2unix utility<br />
</strong><br />
Solaris pre-installs dos2unix utility into the system to do this job for you. As the name says, it converts the file from DOS format to UNIX format. To do this the syntax is</p>
<blockquote><p><strong># dos2unix &lt;file&gt; &lt;new file&gt;</strong></p></blockquote>
<p>for instance</p>
<blockquote><p><strong># dos2unix test.txt test2.txt</strong></p></blockquote>
<p>Where the test.txt is the file you want the ^M characters removed and test2.txt is the file stripped of the ^M characters.</p>
<p>You may also overwrite the existing file by mentioning the source and destination files as same:</p>
<blockquote><p><strong># dos2unix test.txt test.txt</strong></p></blockquote>
<p><strong>2. Using VI</strong></p>
<p>Open the file with &#8220;vi&#8221; editor and type the following:</p>
<blockquote><p><strong>:%s/^M//g</strong></p></blockquote>
<pre><strong>NOTE: To get the ^M in there, you should type CTRL+V+M</strong></pre>
<p><strong>3. Using &#8220;tr&#8221; utility</strong></p>
<p><strong>&#8220;tr&#8221;</strong> utility is used to translate characters. Using with <strong>&#8220;-d&#8221;</strong> deletes a listed string.</p>
<blockquote><p><strong># tr -d &#8216;\r&#8217; &lt;old.file &gt; &lt;new.file</strong>&gt;</p></blockquote>
<p>Alternatively, use its octel representation as follows:</p>
<blockquote><p><strong># tr -d &#8216;\015&#8242; &lt;old.file &gt; &lt;new.file&gt;</strong></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/general/how-to-remove-m-characters-from-file-in-unixsolaris/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/</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 [...]]]></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>4</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/</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[Solaris 10]]></category>
		<category><![CDATA[Solaris 8]]></category>
		<category><![CDATA[Solaris 9]]></category>
		<category><![CDATA[security]]></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 [...]]]></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>3</slash:comments>
		</item>
		<item>
		<title>How to find the WWN (World Wide Name) in Sun Solaris</title>
		<link>http://www.sunsolarisadmin.com/hardware/how-to-find-the-wwn-world-wide-name-in-sun-solaris/</link>
		<comments>http://www.sunsolarisadmin.com/hardware/how-to-find-the-wwn-world-wide-name-in-sun-solaris/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 22:57:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[fcal]]></category>
		<category><![CDATA[fcinfo]]></category>
		<category><![CDATA[fcode]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[hba]]></category>
		<category><![CDATA[node]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[prtconf]]></category>
		<category><![CDATA[prtpicl]]></category>
		<category><![CDATA[scli]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[worldwide name]]></category>
		<category><![CDATA[wwn]]></category>
		<category><![CDATA[wwnn]]></category>
		<category><![CDATA[wwpn]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=64</guid>
		<description><![CDATA[World Wide Name (WWN) are unique 8 byte (64-bit) identifiers in SCSI or fibre channel similar to that of MAC Addresses on a Network Interface Card (NIC). Talking about the WWN names, there are also World Wide port Name (WWpN), a WWN assigned to a port on a Fabric which is what you would be [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><strong><em>World Wide Name (WWN) </em></strong>are unique 8 byte (64-bit) identifiers in SCSI or fibre channel similar to that of MAC Addresses on a Network Interface Card (NIC).</p>
<p>Talking about the WWN names, there are also</p>
<p><strong><em>World Wide port Name (WWpN)</em></strong>, a WWN assigned to a port on a Fabric which is what you would be looking for most of the time.</p>
<p><strong><em>World Wide node Name (WWnN)</em></strong>, a WWN assigned to a node/device on a Fibre Channel fabric.</p>
<p><span id="more-64"></span></p>
<p>To find the WWN numbers of your HBA card in Sun Solaris, you can use one the following procedures</p>
<p><strong><span style="text-decoration: underline;"><em>Using fcinfo (Solaris 10 only)</em></span></strong></p>
<p>This is probably the easiest way to find the WWN numbers on your HBA card. Here you can see the HBA Port WWN (WWpN) and the Node WWN (WWnN) of the two ports on the installed Qlogic HAB card.</p>
<p>This is also useful in finding the Model number, Firmwar version FCode, supported and current speeds and the port status of the HBA card/port.</p>
<p> </p>
<blockquote><p><strong>root@ sunserver:/root# fcinfo hba-port | grep WWN</strong><br />
HBA Port WWN: 2100001b32xxxxxx<br />
Node WWN: 2000001b32xxxxxx<br />
HBA Port WWN: 2101001b32yyyyyy<br />
Node WWN: 2001001b32yyyyyy</p></blockquote>
<p>For detailed info including Make &amp; model number, Firmware, Fcode and current status and supported/current speeds then</p>
<blockquote><p><strong>root@ sunserver:/root# fcinfo hba-port</strong><br />
HBA Port WWN: 2100001b32xxxxxx<br />
OS Device Name: /dev/cfg/c2<br />
Manufacturer: QLogic Corp.<br />
Model: 375-3356-02<br />
Firmware Version: 4.04.01<br />
FCode/BIOS Version:  BIOS: 1.24; fcode: 1.24; EFI: 1.8;<br />
Type: N-port<br />
State: online<br />
Supported Speeds: 1Gb 2Gb 4Gb<br />
Current Speed: 4Gb<br />
Node WWN: 2000001b32xxxxxx<br />
HBA Port WWN: 2101001b32yyyyyy<br />
OS Device Name: /dev/cfg/c3<br />
Manufacturer: QLogic Corp.<br />
Model: 375-3356-02<br />
Firmware Version: 4.04.01<br />
FCode/BIOS Version:  BIOS: 1.24; fcode: 1.24; EFI: 1.8;<br />
Type: unknown<br />
State: offline<br />
Supported Speeds: 1Gb 2Gb 4Gb<br />
Current Speed: not established<br />
Node WWN: 2001001b32yyyyyy</p></blockquote>
<p> </p>
<p><strong><span style="text-decoration: underline;"><em>Using scli</em></span></strong></p>
<p> </p>
<blockquote><p><strong>root@ sunserver:/root# scli -i | egrep &#8220;Node Name|Port Name&#8221;</strong><br />
Node Name                  : 20-00-00-1B-32-XX-XX-XX<br />
Port Name                  : 21-00-00-1B-32-XX-XX-XX<br />
Node Name                  : 20-01-00-1B-32-YY-YY-YY<br />
Port Name                  : 21-01-00-1B-32-YY-YY-YY</p></blockquote>
<p> </p>
<p>For more detailed info on the HBA Cards run as follows: Similar to fcinfo but also provides Model Name and serial number.</p>
<p> </p>
<blockquote><p><strong>root@ sunserver:/root# scli -i</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Host Name                  : sunserver<br />
HBA Model                  : QLE2462<br />
HBA Alias                  :<br />
Port                       : 1<br />
Port Alias                 :<br />
Node Name                  : 20-00-00-1B-32-XX-XX-XX<br />
Port Name                  : 21-00-00-1B-32-XX-XX-XX<br />
Port ID                    : 11-22-33<br />
Serial Number              : AAAAAAA-bbbbbbbbbb<br />
Driver Version             : qlc-20080514-2.28<br />
FCode Version              : 1.24<br />
Firmware Version           : 4.04.01<br />
HBA Instance               : 2<br />
OS Instance                : 2<br />
HBA ID                     : 2-QLE2462<br />
OptionROM BIOS Version     : 1.24<br />
OptionROM FCode Version    : 1.24<br />
OptionROM EFI Version      : 1.08<br />
OptionROM Firmware Version : 4.00.26<br />
Actual Connection Mode     : Point to Point<br />
Actual Data Rate           : 2 Gbps<br />
PortType (Topology)        : NPort<br />
Total Number of Devices    : 2<br />
HBA Status                 : Online<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Host Name                  : sunserver<br />
HBA Model                  : QLE2462<br />
HBA Alias                  :<br />
Port                       : 2<br />
Port Alias                 :<br />
Node Name                  : 20-01-00-1B-32-YY-YY-YY<br />
Port Name                  : 21-01-00-1B-32-YY-YY-YY<br />
Port ID                    : 00-00-00<br />
Serial Number              : AAAAAAA-bbbbbbbbbb<br />
Driver Version             : qlc-20080514-2.28<br />
FCode Version              : 1.24<br />
Firmware Version           : 4.04.01<br />
HBA Instance               : 3<br />
OS Instance                : 3<br />
HBA ID                     : 3-QLE2462<br />
OptionROM BIOS Version     : 1.24<br />
OptionROM FCode Version    : 1.24<br />
OptionROM EFI Version      : 1.08<br />
OptionROM Firmware Version : 4.00.26<br />
Actual Connection Mode     : Unknown<br />
Actual Data Rate           : Unknown<br />
PortType (Topology)        : Unidentified<br />
Total Number of Devices    : 0<br />
HBA Status                 : Loop down</p></blockquote>
<p> </p>
<p><strong><span style="text-decoration: underline;"><em>Using prtconf</em></span></strong></p>
<blockquote><p>root@ sunserver:/root# prtconf -vp | grep -i wwn<br />
port-wwn:  2100001b.32xxxxxx<br />
node-wwn:  2000001b.32xxxxxx<br />
port-wwn:  2101001b.32yyyyyy<br />
node-wwn:  2001001b.32yyyyyy</p></blockquote>
<p><strong><span style="text-decoration: underline;"><em>Using prtpicl</em></span></strong></p>
<blockquote><p><strong>root@ sunserver:/root# prtpicl -v | grep wwn</strong><br />
:node-wwn  20  00  00  1b  32  xx  xx  xx<br />
:port-wwn  21  00  00  1b  32  xx  xx  xx<br />
:node-wwn  20  01  00  1b  32  yy  yy  yy<br />
:port-wwn  21  01  00  1b  32  yy  yy  yy</p></blockquote>
<p> </p>
<p><strong><span style="text-decoration: underline;"><em>Using luxadm</em></span></strong></p>
<p>Run the following command to obtain the physical path to the HBA Ports</p>
<blockquote><p><strong>root@ sunserver:/root$ luxadm -e port</strong><br />
/devices/pci@400/pci@0/pci@9/SUNW,qlc@0/fp@0,0:devctl              CONNECTED<br />
/devices/pci@400/pci@0/pci@9/SUNW,qlc@0,1/fp@0,0:devctl            NOT CONNECTED</p></blockquote>
<p> </p>
<p>With the physical path obtained from the above command, we can trace the WWN numbers as follows. here I use the physical path to the one that is connected:</p>
<blockquote><p><strong>root@ sunserver:/root$ luxadm -e dump_map /devices/pci@400/pci@0/pci@9/SUNW,qlc@0/fp@0,0:devctl</strong><br />
Pos  Port_ID Hard_Addr Port WWN         Node WWN         Type<br />
0    123456  0         1111111111111111 2222222222222222 0&#215;0  (Disk device)<br />
1    789123  0         1111111111111111 2222222222222222 0&#215;0  (Disk device)<br />
2    453789  0         2100001b32xxxxxx 2000001b32xxxxxx 0x1f (Unknown Type,Host Bus Adapter)</p></blockquote>
<p> </p>
<p>Hope this helps. If you know of any more way then please feel free to post it to the comments and I shall amend it to the article.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/hardware/how-to-find-the-wwn-world-wide-name-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
