<?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>postIt &#187; command</title>
	<atom:link href="https://lakm.us/postit/tag/command/feed/" rel="self" type="application/rss+xml" />
	<link>https://lakm.us/postit</link>
	<description>Post-It sticky notes with PasteBin sense</description>
	<lastBuildDate>Thu, 02 Jan 2025 01:33:57 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.18</generator>
	<item>
		<title>Socket monitoring by watching receive an &#8230;</title>
		<link>https://lakm.us/postit/2011/08/socket-monitoring-by-watching-receive-an/</link>
		<comments>https://lakm.us/postit/2011/08/socket-monitoring-by-watching-receive-an/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 08:03:50 +0000</pubDate>
		<dc:creator><![CDATA[Arif]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[scan]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://xp-racy.lan/postit/?p=136</guid>
		<description><![CDATA[Socket monitoring by watching receive and send queue every 5 seconds $ while true; do netstat -tn; sleep 5; clear; done Result: &#160; Active Internet connections &#40;w/o servers&#41; Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 10.238.133.152:43941 98.136.48.103:5050 ESTABLISHED tcp 1 0 10.238.133.152:42541 8.27.254.249:80 CLOSE_WAIT tcp 1 0 10.238.133.152:34355 184.73.222.16:80 CLOSE_WAIT tcp [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Socket monitoring by watching receive and send queue every 5 seconds</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666;">$ </span><span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">true</span>; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #c20cb9; font-weight: bold;">netstat</span> <span style="color: #660033;">-tn</span>; <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">5</span>; <span style="color: #c20cb9; font-weight: bold;">clear</span>; <span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

<p>Result:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
Active Internet connections <span style="color: #7a0874; font-weight: bold;">&#40;</span>w<span style="color: #000000; font-weight: bold;">/</span>o servers<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span> 10.238.133.152:<span style="color: #000000;">43941</span>    98.136.48.103:<span style="color: #000000;">5050</span>      ESTABLISHED
tcp        <span style="color: #000000;">1</span>      <span style="color: #000000;">0</span> 10.238.133.152:<span style="color: #000000;">42541</span>    8.27.254.249:<span style="color: #000000;">80</span>         CLOSE_WAIT
tcp        <span style="color: #000000;">1</span>      <span style="color: #000000;">0</span> 10.238.133.152:<span style="color: #000000;">34355</span>    184.73.222.16:<span style="color: #000000;">80</span>        CLOSE_WAIT
tcp        <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span> 10.238.133.152:<span style="color: #000000;">43210</span>    199.59.148.87:<span style="color: #000000;">443</span>       ESTABLISHED
tcp        <span style="color: #000000;">0</span>    <span style="color: #000000;">229</span> 10.238.133.152:<span style="color: #000000;">43209</span>    199.59.148.87:<span style="color: #000000;">443</span>       ESTABLISHED</pre></td></tr></table></div>

<p>This is to emulate combination of <code>watch</code> and <code>ss</code> in Solaris, more or less same result</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">watch</span> <span style="color: #660033;">-n</span> <span style="color: #000000;">5</span> ss <span style="color: #660033;">-t</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">State      Recv-Q Send-Q      Local Address:Port          Peer Address:Port
ESTAB      <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>          10.238.133.152:<span style="color: #000000;">36045</span>       74.125.224.250:https
ESTAB      <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>          10.238.133.152:<span style="color: #000000;">36044</span>       74.125.224.250:https
CLOSE-WAIT <span style="color: #000000;">1</span>      <span style="color: #000000;">0</span>          10.238.133.152:<span style="color: #000000;">59622</span>      174.129.233.179:www
ESTAB      <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>          10.238.133.152:<span style="color: #000000;">43941</span>        98.136.48.103:mmcc
CLOSE-WAIT <span style="color: #000000;">38</span>     <span style="color: #000000;">0</span>          10.238.133.152:<span style="color: #000000;">49300</span>        199.59.148.87:https
ESTAB      <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>          10.238.133.152:<span style="color: #000000;">33626</span>       74.125.224.191:https
CLOSE-WAIT <span style="color: #000000;">1</span>      <span style="color: #000000;">0</span>          10.238.133.152:<span style="color: #000000;">37621</span>        208.46.163.81:www</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>https://lakm.us/postit/2011/08/socket-monitoring-by-watching-receive-an/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>clrg status -v

Cluster Resource Grou &#8230;</title>
		<link>https://lakm.us/postit/2010/03/clrg-status-v-cluster-resource-grou/</link>
		<comments>https://lakm.us/postit/2010/03/clrg-status-v-cluster-resource-grou/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 00:10:57 +0000</pubDate>
		<dc:creator><![CDATA[Arif]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://xp-racy.lan/postit/?p=47</guid>
		<description><![CDATA[clrg status -v Cluster Resource Groups === &#160; Group Name Node Name Suspended Status ---------- --------- --------- ------ cache1rg lb1 No Online &#160; cache2rg server1 No Online &#160; prirg lb1 No Online server1 No Offline &#160; mngrg testing2 No Online server1 No Offline lb1 No Offline In our specific case of resource groups: clrg status [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><code>clrg status -v </code></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">Cluster Resource Groups ===
&nbsp;
Group Name            Node Name            Suspended            Status
<span style="color: #660033;">----------</span>            <span style="color: #660033;">---------</span>            <span style="color: #660033;">---------</span>            <span style="color: #660033;">------</span>
cache1rg              lb1                  No                   Online
&nbsp;
cache2rg              server1              No                   Online
&nbsp;
prirg                 lb1                  No                   Online
                      server1              No                   Offline
&nbsp;
mngrg                 testing2             No                   Online
                      server1              No                   Offline
                      lb1                  No                   Offline</pre></td></tr></table></div>

<p>In our specific case of resource groups:</p>
<p><code>clrg status -v </code> &#8211; gives the status of cluster<br />
<code>clrg offline mngrg</code> &#8211; takes down the management gui.<br />
<code>clrg offline prirg</code> &#8211; takes down the 3 lb&#8217;s (ucip, scap1, scap2).<br />
<code>clrg offline cache2rg cache1rg</code>  &#8211; takes down the terracotta instances.</p>
]]></content:encoded>
			<wfw:commentRss>https://lakm.us/postit/2010/03/clrg-status-v-cluster-resource-grou/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
