<?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>Technical Diary &#187; solaris</title>
	<atom:link href="http://andriigrytsenko.net/tag/solaris/feed/" rel="self" type="application/rss+xml" />
	<link>http://andriigrytsenko.net</link>
	<description>With Andrii Grytsenko</description>
	<lastBuildDate>Tue, 17 Aug 2010 08:25:33 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>lsof installation on solaris 10</title>
		<link>http://andriigrytsenko.net/2010/08/lsof-installation-on-solaris-10/</link>
		<comments>http://andriigrytsenko.net/2010/08/lsof-installation-on-solaris-10/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 08:22:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[lsof]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://andriigrytsenko.net/?p=847</guid>
		<description><![CDATA[Details inside the post.

Get new version of package:
wget ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/lsof_1106-4.80-sol10-sparc-local.gz
Unpack it:
gunzip lsof_1106-4.80-sol10-sparc-local.gz
And run installation command as root:
pkgadd -d lsof_1106-4.80-sol10-sparc-local                                      [...]]]></description>
			<content:encoded><![CDATA[<p>Details inside the post.<br />
<span id="more-847"></span></p>
<p>Get new version of package:</p>
<pre>wget ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/lsof_1106-4.80-sol10-sparc-local.gz</pre>
<p>Unpack it:</p>
<pre>gunzip lsof_1106-4.80-sol10-sparc-local.gz</pre>
<p>And run installation command as root:</p>
<pre>pkgadd -d lsof_1106-4.80-sol10-sparc-local                                                                   

The following packages are available:
  1  SMClsof     lsof
                 (sparc) 4.80        

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: <span style="color: #ff0000;">all</span>
## Verifying package  dependencies in zone 

Files that are setuid and/or setgid will be installed and/or modified
for package  on zone .                         

Do you want to continue with the installation of  [y,n,?] <span style="color: #ff0000;">y</span>
..............skipped................
Do you want to install these as setuid/setgid files [y,n,?,q] <span style="color: #ff0000;">y</span>

..............skipped................
Installation of  on zone  was successful.</pre>
<p>And finally check it out:</p>
<pre>lsof -v
....skipped....
<span style="color: #ff0000;">revision: 4.80</span></pre>
<p>Done.</p>
]]></content:encoded>
			<wfw:commentRss>http://andriigrytsenko.net/2010/08/lsof-installation-on-solaris-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clean up the shared memory in Solaris</title>
		<link>http://andriigrytsenko.net/2010/03/clean-up-the-shared-memory-in-solaris/</link>
		<comments>http://andriigrytsenko.net/2010/03/clean-up-the-shared-memory-in-solaris/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 15:44:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://andriigrytsenko.net/?p=713</guid>
		<description><![CDATA[Here is short trick how to clean the shared memory up in Solaris OS. 

Here is short info about the host(solaris 5.9, arch sparc):
uname -a
SunOS hostname1 5.9 Generic_118558-25 sun4u sparc SUNW,Sun-Fire-V890 Solaris

To see all shared memory segment, use ipcs

user1@~>ipcs -m -a
IPC status from  as of Wed Mar 10 16:26:20 CET 2010
T    [...]]]></description>
			<content:encoded><![CDATA[<p>Here is short trick how to clean the shared memory up in Solaris OS. </p>
<p><span id="more-713"></span></p>
<p>Here is short info about the host(solaris 5.9, arch sparc):</p>
<pre>uname -a
SunOS hostname1 5.9 Generic_118558-25 sun4u sparc SUNW,Sun-Fire-V890 Solaris
</pre>
<p>To see all shared memory segment, use <em>ipcs</em></p>
<pre>
user1@~>ipcs -m -a
IPC status from <running system> as of Wed Mar 10 16:26:20 CET 2010
T         ID      KEY        MODE        OWNER    GROUP  CREATOR   CGROUP NATTCH      SEGSZ  CPID  LPID   ATIME    DTIME    CTIME
Shared Memory:
m       4608   0x5efaa728 --rw-r-----   oracle oinstall   oracle oinstall     23 3992993792  5720 18925 16:24:47 16:24:47 11:59:42
m    5246977   0x517b6233 --rw-r--r-- user1   os_int user1   os_int     32    7352048 10685 16417 16:21:26 16:21:26 16:13:35
m    1969154   0x22b80b3e --rw-r--r-- user1   os_int user1   os_int      3   72552448 10689 11443 16:14:19 16:13:51 16:13:37
m    1967619   0x1b68b6e6 --rw-r--r-- user1   os_int user1   os_int      8  438326272 10689 16417 16:21:26 16:21:26 16:13:38
m    1966084   0x5724f977 --rw-r--r-- user1   os_int user1   os_int     14  212926464 10689 11379 16:14:27 16:13:50 16:13:40
m    1966085   0x534aab2a --rw-r--r-- user1   os_int user1   os_int     10  216572928 10689 11442 16:14:38 16:13:51 16:13:42
m   11391045   0x7bfc552e --rw-r--r-- user2   os_int user2   os_int      0    7352048  8047  9445 14:43:22 14:43:40 13:41:22
m   10461766   0x63fcba9b --rw-r--r-- user2   os_int user2   os_int      0   72552448  8114  9457 14:43:22 14:43:38 13:41:25
m    9721415   0x5cad6643 --rw-r--r-- user2   os_int user2   os_int      0  583097344  8114  9459 14:43:22 14:43:38 13:41:27
m    9655368   0x1869a8d4 --rw-r--r-- user2   os_int user2   os_int      0  212926464  8114  9466 14:43:22 14:43:38 13:41:29
m    9753673   0x148f5a87 --rw-r--r-- user2   os_int user2   os_int      0  216572928  8114  9473 14:43:22 14:43:38 13:41:31
</pre>
<p>To delete/destroy/remove any segment of the shared memory, use <em>ipcrm</em>. You can specify segment by  <em>shmkey</em>(3-rd field in ipcs output) or by <em>shmid</em>(2-nd field) use <strong>-M</strong> and <strong>-m</strong> accordingly . Like : </p>
<pre>ipcrm -m 4608</pre>
<p>or </p>
<pre>ipcrm -M 0x5efaa728</pre>
<p>To remove all segment in shared memory where owner is <em>user1</em>, run </p>
<pre>ipcs -m -a | awk '{if($5 ~ /user1/ &#038;&#038; $1 ~ /m/) print "ipcrm -m "$2;}' | bash</pre>
<p>END.</p>
]]></content:encoded>
			<wfw:commentRss>http://andriigrytsenko.net/2010/03/clean-up-the-shared-memory-in-solaris/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
