<?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 10</title>
	<atom:link href="http://www.sunsolarisadmin.com/tag/solaris-10/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>dladm &#8211; Display Link status,speed,duplex,statistics,MTU</title>
		<link>http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/</link>
		<comments>http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 18:45:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[aggregation]]></category>
		<category><![CDATA[bytes]]></category>
		<category><![CDATA[dladm]]></category>
		<category><![CDATA[duplex]]></category>
		<category><![CDATA[link speed]]></category>
		<category><![CDATA[link status]]></category>
		<category><![CDATA[mtu]]></category>
		<category><![CDATA[nxge]]></category>
		<category><![CDATA[packets]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[sun]]></category>

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

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/solaris-10/enabledisable-ip-forwarding-in-solaris-10-without-reboot/</guid>
		<description><![CDATA[IP packet forwarding is the process of routing packets between network interfaces on one system. A packet arriving on one network interface and addressed to a host on a different network is forwarded to the appropriate interface. In Solaris 10, IP Forwarding can be enabled or disabled using the routeadm &#38; ifconfig commands as against [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
IP packet forwarding is the process of routing packets between network interfaces on one system. A packet arriving on one network interface and addressed to a host on a different network is forwarded to the appropriate interface.</p>
<p>In Solaris 10, IP Forwarding can be enabled or disabled using the routeadm &amp; ifconfig commands as against the ndd commands in Solaris 9 and earlier. The advantage is the change dynamic and real-time and the change persist across reboot unlike the ndd command.</p>
<p><span id="more-46"></span></p>
<p><strong><u>Enable/Disable IP Forwarding globally</u></strong> </p>
<p>To globally enable IP Forwarding in Solaris 10 use the routeadm command as follows:</p>
<p><strong>In IPv4</strong></p>
<blockquote><p><strong>solaris10# routeadm -e ipv4-forwarding</strong></p></blockquote>
<p><strong>In IPv6</strong></p>
<blockquote><p><strong>solaris10# routeadm -e ipv6-forwarding</strong></p></blockquote>
<p>The switches &#8220;-e&#8221; enables IP Forwarding.</p>
<p><strong>To disable IP Forwarding</strong></p>
<p>In IPv4</p>
<blockquote><p><strong>solaris10# routeadm -d ipv4-forwarding</strong></p></blockquote>
<p>In IPv6</p>
<blockquote><p><strong>solaris10# routeadm -d ipv6-forwarding</strong></p></blockquote>
<p>The switches &#8220;-d&#8221; enables IP Forwarding.</p>
<p>After the change run the following command for the changes to take effect.</p>
<blockquote>
<blockquote><p><strong>solaris10# routeadm -u</strong></p></blockquote>
</blockquote>
<p><strong><u>Enable/Disable IP Forwarding per interface</u></strong> </p>
<p>To enable IP Forwarding on a specific interface (say ce0) using the ifconfig command</p>
<p>In IPv4</p>
<blockquote><p><strong>solaris10# ifconfig ce0 router</strong></p></blockquote>
<p>In IPv6</p>
<blockquote><p><strong>solaris10# ifconfig ce0 inet6 router</strong></p></blockquote>
<p>To disable IP Forwarding for an interface (say ce0)</p>
<p>In IPv4</p>
<blockquote><p><strong>solaris10# ifconfig ce0 -router</strong></p></blockquote>
<p>In IPv6</p>
<blockquote><p><strong>solaris10# ifconfig ce0 inet6 -router</strong></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-10/enabledisable-ip-forwarding-in-solaris-10-without-reboot/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Solaris 10 &#8211; Change IP Address without reboot</title>
		<link>http://www.sunsolarisadmin.com/solaris-10/solaris-10-change-ip-address-without-reboot/</link>
		<comments>http://www.sunsolarisadmin.com/solaris-10/solaris-10-change-ip-address-without-reboot/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 19:45:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[ip-address]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/solaris-10/solaris-10-change-ip-address-without-reboot/</guid>
		<description><![CDATA[Adding or editing the IP address on a Solaris 10 server is different from the previous versions of the OS (Solaris 9, Solaris 8 etc). In the previous versions of the Solaris Operating System, you need to edit the /etc/hosts file and add/edit the entry for the IP address and the hostname. Example: 192.168.1.1   sun1 [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--></p>
<p>Adding or editing the IP address on a Solaris 10 server is different from the previous versions of the OS (Solaris 9, Solaris 8 etc).</p>
<p>In the previous versions of the Solaris Operating System, you need to edit the <strong>/etc/hosts</strong> file and add/edit the entry for the IP address and the hostname.</p>
<p><span id="more-34"></span></p>
<p><strong><u>Example:</u></strong></p>
<blockquote><p><em><font color="#990000">192.168.1.1   sun1</font></em></p></blockquote>
<p>However, in Solaris 10, you should edit the <strong>/etc/hosts</strong> file (a symlink to <strong>/etc/inet/hosts file</strong>) and the  <strong>/etc/inet/ipnodes</strong> file and add an entry for IP address and hostname.</p>
<p>Once done, restart the Network service using</p>
<blockquote><p><strong># svcadm restart network/physical</strong></p></blockquote>
<p>or reboot the server for the changes to take effect.</p>
<p>Although, the /etc/inet/ipnodes files is primarily for IPv6 only, without adding an entry to the file, the IP address (IPv4) doesn&#8217;t become active. This seems to be a known problem but the good news is this is now fixed in the Solaris 10 U4 (08/07 build).</p>
<p>Also, ensure that the /etc/netmasks file with the network ID and the netmask.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-10/solaris-10-change-ip-address-without-reboot/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
