<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Sun Solaris System Admin</title>
	
	<link>http://www.sunsolarisadmin.com</link>
	<description>Sun Solaris HowTo's Tips Tricks Tutorials</description>
	<lastBuildDate>Fri, 19 Jun 2009 18:45:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image><link>http://creativecommons.org/licenses/by-sa/2.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image>
		<creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.0/</creativeCommons:license><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/SunSolarisadmin" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>dladm – Display Link status,speed,duplex,statistics,MTU</title>
		<link>http://feedproxy.google.com/~r/SunSolarisadmin/~3/7Ko7kgxLU9k/</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 Link [...]]]></description>
			<content:encoded><![CDATA[<p><div align="center"><script type="text/javascript"><!--
google_ad_client = "pub-6006760557805242";
//SUNSOLARISADMIN_336
google_ad_slot = "0971773718";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>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>
<img src="http://feeds.feedburner.com/~r/SunSolarisadmin/~4/7Ko7kgxLU9k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>Find Chasis Serial Number using sneep</title>
		<link>http://feedproxy.google.com/~r/SunSolarisadmin/~3/0jGc8LRtntU/</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><div align="center"><script type="text/javascript"><!--
google_ad_client = "pub-6006760557805242";
//SUNSOLARISADMIN_336
google_ad_slot = "0971773718";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><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>
<img src="http://feeds.feedburner.com/~r/SunSolarisadmin/~4/0jGc8LRtntU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/hardware/find-chasis-serial-number-using-sneep/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.sunsolarisadmin.com/hardware/find-chasis-serial-number-using-sneep/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>PCP script to find open TCP ports and PIDs related in Solaris</title>
		<link>http://feedproxy.google.com/~r/SunSolarisadmin/~3/80uLq4DUa5o/</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 here. [...]]]></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>
<img src="http://feeds.feedburner.com/~r/SunSolarisadmin/~4/80uLq4DUa5o" height="1" width="1"/>]]></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>2</slash:comments>
		<feedburner:origLink>http://www.sunsolarisadmin.com/solaris-8/pcp-script-to-find-open-tcp-ports-and-pids-related-in-solaris/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>How to find the WWN (World Wide Name) in Sun Solaris</title>
		<link>http://feedproxy.google.com/~r/SunSolarisadmin/~3/FuUQHrMpKdU/</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 looking for [...]]]></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 0&#215;1f (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>
<img src="http://feeds.feedburner.com/~r/SunSolarisadmin/~4/FuUQHrMpKdU" height="1" width="1"/>]]></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>0</slash:comments>
		<feedburner:origLink>http://www.sunsolarisadmin.com/hardware/how-to-find-the-wwn-world-wide-name-in-sun-solaris/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>psrinfo – Find number of Physical &amp; Virtual Processors in Solaris 10</title>
		<link>http://feedproxy.google.com/~r/SunSolarisadmin/~3/2-C1tKNfiDg/</link>
		<comments>http://www.sunsolarisadmin.com/general/psrinfo-find-number-of-physical-virtual-processors-in-solaris-10/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 01:54:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Processor]]></category>
		<category><![CDATA[psrinfo]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sparc]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[sun4v]]></category>
		<category><![CDATA[sunos]]></category>
		<category><![CDATA[SUNW]]></category>
		<category><![CDATA[t5120]]></category>
		<category><![CDATA[t5140]]></category>
		<category><![CDATA[ultrasparc]]></category>
		<category><![CDATA[virtual-processor]]></category>
		<category><![CDATA[x86]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=61</guid>
		<description><![CDATA[In Solaris 10, if you want to find the processor type and the number of physical processors installed on the system and the number of Virtual Processors available on the system then the psrinfo command does job for you.

To simply display the number of Physical processors, simply run the command with the -p option as [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->In Solaris 10, if you want to find the processor type and the number of physical processors installed on the system and the number of Virtual Processors available on the system then the psrinfo command does job for you.</p>
<p><span id="more-61"></span></p>
<p>To simply display the number of Physical processors, simply run the command with the -p option as follows:</p>
<blockquote><p><strong>root@sunserver # psrinfo -p<br />
</strong>2</p></blockquote>
<p>where 2 implies that there are 2 physical processors installed on the system.</p>
<p>If you would like to check the number of Virtual Processors on each of these Physical processors then type the command with the &#8220;-pv&#8221; arguement as follows:</p>
<blockquote><p><strong>root@ server:/root$ uname -a</strong></p>
<p>SunOS server 5.10 Generic_137111-02 sun4v sparc SUNW,SPARC-Enterprise-T5120</p>
<p><strong>root@server:/root$ psrinfo -pv</strong></p>
<p>The physical processor has 32 virtual processors (0-31)</p>
<p>  UltraSPARC-T2 (cpuid 0 clock 1165 MHz)</p></blockquote>
<p>The above indicates that there was only one physical processor (UltraSPARC-T2) on the T5120 server which has 32 Virtual processors. Each virtual processor is an entity with its own interrupt ID, capable of executing independent threads.</p>
<p>In simple terms, the number of Virtual Processors supported by a physical CPU is</p>
<blockquote><p><strong><em>&#8220;Number of Core&#8221; x &#8220;Number of threads&#8221;</em></strong></p></blockquote>
<p>For instance, the above is on a T5120 server with the UltraSPARC-T2. This CPU  has 4 cores and each core can support 8 threads and that gives us 32 Virtual processors.</p>
<p>The number of Virtual processors on a Server is simply the total Virtual processors supported on each of the physical processor.</p>
<p>In the following T5140 server there are 2 Physical UltraSPARC-T2+ processors with 6 cores, each supporting 8 threads which means we get 48 Virtual processors per Physical processor and hence a total of 96 Virtual processors (sum of VPs on individual processors) for the server:</p>
<blockquote><p><strong>root@ bserver:/root$ uname -a</strong></p>
<p>SunOS bserver 5.10 Generic_137111-02 sun4v sparc SUNW,T5140</p>
<p><strong>root@ bserver:/root$ psrinfo -pv</strong></p>
<p>The physical processor has 48 virtual processors (0-23 32-55)</p>
<p>  UltraSPARC-T2+ (cpuid 0 clock 1167 MHz)</p>
<p>The physical processor has 48 virtual processors (64-71 80-119)</p>
<p>  UltraSPARC-T2+ (cpuid 64 clock 1167 MHz)</p></blockquote>
<p>In earlier versions of Solaris, the <strong><em>-p</em></strong> arguement is not supported and hence wouldn&#8217;t provide this summarised output on the counts of the physical and Virtual CPUs.</p>
<img src="http://feeds.feedburner.com/~r/SunSolarisadmin/~4/2-C1tKNfiDg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/general/psrinfo-find-number-of-physical-virtual-processors-in-solaris-10/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://www.sunsolarisadmin.com/general/psrinfo-find-number-of-physical-virtual-processors-in-solaris-10/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>Error:  Your “crontab” on  unexpected end of line. This entry has been ignored</title>
		<link>http://feedproxy.google.com/~r/SunSolarisadmin/~3/WyIkQY40Jgk/</link>
		<comments>http://www.sunsolarisadmin.com/general/error-your-crontab-on-unexpected-end-of-line-this-entry-has-been-ignored/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 20:36:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=60</guid>
		<description><![CDATA[Everytime you edit your crontabe file, the error &#8220;Your &#8220;crontab&#8221; on &#60;server&#62; unexpected end of line. This entry has been ignored&#8221; is sent to the users email. This happens if there is a blank line in your crontab file.

For instance, in the following crontab file there is a blank line between the last two cron [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->Everytime you edit your crontabe file, the error <span style="color: #ff0000;"><strong>&#8220;Your &#8220;crontab&#8221; on &lt;server&gt; unexpected end of line. This entry has been ignored&#8221;</strong></span> is sent to the users email. This happens if there is a blank line in your crontab file.</p>
<p><span id="more-60"></span><br />
For instance, in the following crontab file there is a blank line between the last two cron jobs.</p>
<blockquote><p><strong>root@sunsolaris# crontab -l</strong><br />
# The root crontab should be used to perform accounting data collection.<br />
#<br />
# The rtc command is run to adjust the real time clock if and when<br />
# daylight savings time changes.<br />
#<br />
10 1 * * 0,4 /etc/cron.d/logchecker<br />
10 2 * * 0  /usr/lib/newsyslog<br />
15 3 * * 0 /usr/lib/fs/nfs/nfsfind</p>
<p>30 4 * * * /usr/local/bin/disk_check,sh<br />
;;;;<br />
;;;<br />
;;<br />
;</p></blockquote>
<p>To resolve the problem edit the crontab file and look for the blank line and delete the line. In the above, after editing the crontab, it should look lie the follows:</p>
<blockquote><p><strong>root@sunsolaris# crontab -l</strong><br />
# The root crontab should be used to perform accounting data collection.<br />
#<br />
# The rtc command is run to adjust the real time clock if and when<br />
# daylight savings time changes.<br />
#<br />
10 1 * * 0,4 /etc/cron.d/logchecker<br />
10 2 * * 0  /usr/lib/newsyslog<br />
15 3 * * 0 /usr/lib/fs/nfs/nfsfind<br />
30 4 * * * /usr/local/bin/disk_check,sh<br />
;;;<br />
;;<br />
;</p></blockquote>
<p>You can see the  blank line removed from the crontab file.</p>
<img src="http://feeds.feedburner.com/~r/SunSolarisadmin/~4/WyIkQY40Jgk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/general/error-your-crontab-on-unexpected-end-of-line-this-entry-has-been-ignored/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.sunsolarisadmin.com/general/error-your-crontab-on-unexpected-end-of-line-this-entry-has-been-ignored/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>How to mount an ISO image in SUN Solaris</title>
		<link>http://feedproxy.google.com/~r/SunSolarisadmin/~3/VF3ia_PCxlA/</link>
		<comments>http://www.sunsolarisadmin.com/general/how-to-mount-an-iso-image-in-sun-solaris/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 20:16:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[CD.DVD]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=59</guid>
		<description><![CDATA[
In Sun Solaris, we can use the Loopback File driver to mount an ISO image without having to write the ISO image onto a CD or DVD.
Following procedure should help you mount an ISO image in Sun Solaris

Attach a Block Device
sunsolaris# lofiadm -a /export/software/iso_image.iso
/dev/lofi/1
Mount the ISO Image block device
sunsolaris# mount -F hsfs -o ro /dev/lofi/1 [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
In Sun Solaris, we can use the Loopback File driver to mount an ISO image without having to write the ISO image onto a CD or DVD.</p>
<p>Following procedure should help you mount an ISO image in Sun Solaris</p>
<p><span id="more-59"></span></p>
<p><strong><span style="text-decoration: underline;">Attach a Block Device</span></strong></p>
<blockquote><p><strong>sunsolaris# lofiadm -a /export/software/iso_image.iso<br />
</strong>/dev/lofi/1</p></blockquote>
<p><strong><span style="text-decoration: underline;">Mount the ISO Image block device</span></strong></p>
<blockquote><p><strong>sunsolaris# mount -F hsfs -o ro /dev/lofi/1 /mnt</strong></p></blockquote>
<p>Where /mnt is the mount point.</p>
<p>This should mount the ISO image.</p>
<p>To confirm, change directory to /mnt and do a &#8220;ls&#8221; to lis the files</p>
<blockquote><p><strong>sunsolaris# cd /mnt</strong></p>
<p><strong>sunsolaris# ls</strong></p></blockquote>
<p>if at anytime, you want to look at these block devices simply type &#8220;lofiadm&#8221; command with no arguement.</p>
<blockquote><p><strong>sunsolaris# lofiadm</strong><br />
Block Device File<br />
/dev/lofi/1 /export/software/iso_image.iso</p></blockquote>
<p>When we are done with the files on the mounted ISO, we can unmount and detach the Block device we attached earlier:</p>
<blockquote><p><strong>sunsolaris# umount /mnt</strong></p>
<p><strong>sunsolaris# lofiadm -d /dev/lofi/1</strong></p></blockquote>
<p>For instructions on how to mount an ISO image in Linux, <a title="Mount an ISO image in openSUSE &amp; SUSE Linux" href="http://www.susegeek.com/general/how-to-mount-an-iso-image-in-suse-linux-opensuse/" target="_self">click here</a></p>
<img src="http://feeds.feedburner.com/~r/SunSolarisadmin/~4/VF3ia_PCxlA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/general/how-to-mount-an-iso-image-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.sunsolarisadmin.com/general/how-to-mount-an-iso-image-in-sun-solaris/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>Howto Take Screenshots in Solaris 7/8/9/10 (CDE)</title>
		<link>http://feedproxy.google.com/~r/SunSolarisadmin/~3/TZmRzbRby30/</link>
		<comments>http://www.sunsolarisadmin.com/general/howto-take-screenshots-in-solaris-78910-cde/#comments</comments>
		<pubDate>Tue, 13 May 2008 16:55:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[CDE]]></category>
		<category><![CDATA[GIMP]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[magick]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[XPR]]></category>
		<category><![CDATA[XWD]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=58</guid>
		<description><![CDATA[
This is one of those not so technical tip but certainly the one we need when it comes to talk to Sun Support or creating a documentation. yes, its taking screenshots in Sun Solaris Operating Environment using CDE. Sun Solaris X utilities uses &#8220;xwd&#8220;, an application that is standard among the X utilities can be [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
This is one of those not so technical tip but certainly the one we need when it comes to talk to Sun Support or creating a documentation. yes, its taking screenshots in Sun Solaris Operating Environment using CDE. Sun Solaris X utilities uses &#8220;<strong>xwd</strong>&#8220;, an application that is standard among the X utilities can be used to take screenshots. <br id="hea:2" /><br id="hea:3" /><strong>xwd</strong> dumps the output of a window into a file that can be viewed with <strong>xwud</strong>, or converted with convert (part of ImageMagick package), <strong>xv</strong> or another tool to a more usable image type, like png.</p>
<p><span id="more-58"></span><br id="hea:4" /><br id="hea:5" />There are also more convenient tools to make a Screenshot. You should use more reliable import (part of ImageMagick package) instead of xwd. <br id="hea:6" /><br id="hea:7" /><strong><span style="text-decoration: underline;">To Take Screenshot of a Frame</span></strong></p>
<p>When logged onto the CDE, open a terminal session and run the command as follows:</p>
<blockquote><p><strong>sunsolaris# xwd -frame &gt; screenshot.xwd</strong></p></blockquote>
<p>This will prompt you to select a window (the cursor becomes a +), then it will take a picture of the window (as it appears on the screen), the &#8220;-frame&#8221; options will have it also include the window managers decorative borders, then the file is converted to png.<br id="hea:9" /><br id="hea:12" /><strong><span style="text-decoration: underline;">Fullscreen Screenshot</span></strong></p>
<p>A full screen screenshot can be done without any frame being set</p>
<p><strong>sunsolaris# xwd -root &gt; screenshot.xwd</strong></p>
<p><span style="text-decoration: underline;"><strong>Screenshot and Convert togethor</strong></span></p>
<blockquote><p><strong>sunsolaris# xwd -frame | convert xwd:- screenshot.png</strong></p></blockquote>
<p><strong><span style="text-decoration: underline;">Screenshot after &#8220;n&#8221; seconds</span></strong></p>
<p>Now, comes the interesting bit, you can take screenshots after a delay time (say 10 seconds). All you do is to use a sleep command as follows<br id="hea:21" /><br id="hea:22" /><strong>sunsolaris# sleep 10; xwd -root -out screenshot.xwd<br id="hea:23" /></strong></p>
<p><strong><span style="text-decoration: underline;">To print the image captured using Laserjet</span></strong></p>
<p><strong></strong></p>
<blockquote><p><br id="hea:36" /><strong>xpr -device ljet /tmp/myimage | lp -d printer</strong></p></blockquote>
<p>where &#8220;printer&#8221; is the installed printer.<br id="hea:37" /><br id="hea:38" />This file can now be converted to PNG, JPG,GIF using GIMP or any other image editing software.</p>
<img src="http://feeds.feedburner.com/~r/SunSolarisadmin/~4/TZmRzbRby30" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/general/howto-take-screenshots-in-solaris-78910-cde/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.sunsolarisadmin.com/general/howto-take-screenshots-in-solaris-78910-cde/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>How to Enable or Disable a processor in Sun Solaris</title>
		<link>http://feedproxy.google.com/~r/SunSolarisadmin/~3/7GRfk3Z2YrY/</link>
		<comments>http://www.sunsolarisadmin.com/hardware/how-to-enable-or-disable-a-processor-in-sun-solaris/#comments</comments>
		<pubDate>Fri, 09 May 2008 19:26:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[Processor]]></category>
		<category><![CDATA[psradm]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=57</guid>
		<description><![CDATA[
In multiprocessor environments, Sun Solaris can allow enabling or disabling Processors. This although is not something that we would do all the time but can come handy when troubleshooting hardware issues.
Sun Solaris has the psradm utility which allows enabling or disabling a Processor on the system. The psradm utility changes the operational status of processors. [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
In multiprocessor environments, Sun Solaris can allow enabling or disabling Processors. This although is not something that we would do all the time but can come handy when troubleshooting hardware issues.</p>
<p>Sun Solaris has the psradm utility which allows enabling or disabling a Processor on the system. The psradm utility changes the operational status of processors. The legal states for the processor are on-line, offline, spare, Faulted, and no-intr. An online processor processes LWPs (lightweight  processes) and can be interrupted by I/O devices in the system.</p>
<p><span id="more-57"></span></p>
<p>To enable or disable a processor on the system we need to know the Processor ID. This can be found using the psrinfo utility as follows:</p>
<blockquote><p><strong>sunsolaris# psrinfo</strong><br />
0       on-line   since 05/09/2008 19:41:32</p></blockquote>
<p>where 0 is the processor ID.</p>
<p>To know the path of the psradm command</p>
<blockquote><p><strong>sunsolaris# which psradm<br />
</strong>/usr/sbin/psradm</p></blockquote>
<p><strong><span style="text-decoration: underline;">To disable a processor</span></strong></p>
<blockquote><p><strong>sunsolaris# psradm -f 0</strong></p></blockquote>
<p>where &#8216;0&#8242; is the processor ID and &#8216;-f&#8217; indicates the processor is taken offline (disable)</p>
<p><strong><span style="text-decoration: underline;">To enable a processor</span></strong></p>
<blockquote><p><strong>sunsolaris# psradm -n 0</strong></p></blockquote>
<p>where &#8216;0&#8242; is the processor ID and &#8216;-n&#8217; indicates the processor is brought online (enable)</p>
<img src="http://feeds.feedburner.com/~r/SunSolarisadmin/~4/7GRfk3Z2YrY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/hardware/how-to-enable-or-disable-a-processor-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.sunsolarisadmin.com/hardware/how-to-enable-or-disable-a-processor-in-sun-solaris/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>How to display Processor information in Sun Solaris</title>
		<link>http://feedproxy.google.com/~r/SunSolarisadmin/~3/3zQCcjEaWpE/</link>
		<comments>http://www.sunsolarisadmin.com/hardware/how-to-display-processor-information-in-sun-solaris/#comments</comments>
		<pubDate>Fri, 09 May 2008 19:16:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[CPU]]></category>
		<category><![CDATA[Processor]]></category>
		<category><![CDATA[prtconf]]></category>
		<category><![CDATA[prtdiag]]></category>
		<category><![CDATA[psrinfo]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=56</guid>
		<description><![CDATA[
Sun solaris has various different utilities to find the processor information on your hardware. Let&#8217;s have a look at the different utilities that can display the processor informations and the way they display information.

Using psrinfo
psrinfo displays more detailed information of the Processors including the number of Physical processors on the system and the number of [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
Sun solaris has various different utilities to find the processor information on your hardware. Let&#8217;s have a look at the different utilities that can display the processor informations and the way they display information.</p>
<p><span id="more-56"></span></p>
<p><strong><span style="text-decoration: underline;">Using psrinfo</span></strong></p>
<p>psrinfo displays more detailed information of the Processors including the number of Physical processors on the system and the number of virtual processors on the system. Each virtual processor is in its own a seperate entity.</p>
<p>Run psrinfo as root without arguments gives a quick summary of the processors with its IDs and the time since online.</p>
<blockquote><p><strong># which psrinfo<br />
</strong>/usr/sbin/psrinfo</p></blockquote>
<blockquote><p><strong>sunsolaris# psrinfo<br />
</strong>0       on-line   since 05/09/2008 19:41:32</p></blockquote>
<p>For a more detailed output use the verbose option. This gives much more detailed information including processor type, operating speed etc for every available processor.</p>
<blockquote><p><strong>sunsolaris# psrinfo -v<br />
</strong>Status of virtual processor 0 as of: 05/09/2008 20:05:34<br />
  on-line since 05/09/2008 19:41:32.<br />
  The i386 processor operates at 2000 MHz,<br />
        and has an i387 compatible floating point processor.<br />
       <br />
<strong><span style="text-decoration: underline;">Using prtiag</span></strong></p></blockquote>
<p>This can once again give a summarised information on the processor version and its ID.</p>
<blockquote><p><strong>sunsolaris# which prtdiag</strong><br />
/usr/sbin/prtdiag</p></blockquote>
<blockquote><p><strong>sunsolaris# prtdiag<br />
</strong>System Configuration: VMware, Inc. VMware Virtual Platform<br />
BIOS Configuration: Phoenix Technologies LTD 6.00 04/17/2006</p>
<p>==== Processor Sockets ====================================</p>
<p>Version                          Location Tag<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Pentium(R) Pro                   CPU socket #0</p>
<p>&#8230;..<br />
&#8230;.</p></blockquote>
<p><strong><span style="text-decoration: underline;">Using prtconf</span></strong></p>
<p>Based on the installed drivers, you can find the information on the CPUs on the system.</p>
<blockquote><p><strong>sunsolaris# which prtconf</strong><br />
/usr/sbin/prtconf</p></blockquote>
<blockquote><p><strong>sunsolaris#prtconf</strong><br />
System Configuration:  Sun Microsystems  i86pc<br />
Memory size: 512 Megabytes<br />
System Peripherals (Software Nodes):<br />
&#8230;<br />
..<br />
&#8230;<br />
cpus (driver not attached)<br />
      cpu, instance #0 (driver not attached)</p></blockquote>
<p>Not much information on my solaris 10 system running on a virtual server.</p>
<img src="http://feeds.feedburner.com/~r/SunSolarisadmin/~4/3zQCcjEaWpE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/hardware/how-to-display-processor-information-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.sunsolarisadmin.com/hardware/how-to-display-processor-information-in-sun-solaris/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
	</channel>
</rss>
