<?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; TCP port</title>
	<atom:link href="http://www.sunsolarisadmin.com/tag/tcp-port/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sunsolarisadmin.com</link>
	<description>Sun Solaris HowTo's Tips Tricks Tutorials</description>
	<lastBuildDate>Wed, 21 Sep 2011 19:57:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<image>
<link>http://www.sunsolarisadmin.com</link>
<url>http://www.sunsolarisadmin.com/wp-content/mbp-favicon/favicon.ico</url>
<title>Sun Solaris System Admin</title>
</image>
		<item>
		<title>PCP script to find open TCP ports and PIDs related in Solaris</title>
		<link>http://www.sunsolarisadmin.com/solaris-8/pcp-script-to-find-open-tcp-ports-and-pids-related-in-solaris/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pcp-script-to-find-open-tcp-ports-and-pids-related-in-solaris</link>
		<comments>http://www.sunsolarisadmin.com/solaris-8/pcp-script-to-find-open-tcp-ports-and-pids-related-in-solaris/#comments</comments>
		<pubDate>Tue, 12 May 2009 22:35:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris 8]]></category>
		<category><![CDATA[Solaris 9]]></category>
		<category><![CDATA[pcp]]></category>
		<category><![CDATA[PID]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[TCP port]]></category>

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

