<?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>Parm Patram &#187; Solaris</title>
	<atom:link href="http://oracle.3dub.com/category/solaris/feed/" rel="self" type="application/rss+xml" />
	<link>http://oracle.3dub.com</link>
	<description>Oracle, Linux and UNIX tips, tricks and stuff</description>
	<lastBuildDate>Fri, 03 Feb 2012 18:14:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Solaris fix for boot problems</title>
		<link>http://oracle.3dub.com/2011/11/22/solaris-fix-for-boot-problems/</link>
		<comments>http://oracle.3dub.com/2011/11/22/solaris-fix-for-boot-problems/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 16:23:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HEADS UP]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=838</guid>
		<description><![CDATA[A kernel patch caused the machine to panic, leaving it in a confused state. I was able to boot from a CD and back out the patch, but it did not update the boot archive, even after issuing
/sbin/bootadm update-archive -R /a
to fix:
Boot into the disk failsafe, then run:
/a/boot/solaris/bin/create_ramdisk -R /a
]]></description>
			<content:encoded><![CDATA[<p>A kernel patch caused the machine to panic, leaving it in a confused state. I was able to boot from a CD and back out the patch, but it did not update the boot archive, even after issuing<br />
/sbin/bootadm update-archive -R /a</p>
<p>to fix:</p>
<p>Boot into the disk failsafe, then run:</p>
<p>/a/boot/solaris/bin/create_ramdisk -R /a</p>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2011/11/22/solaris-fix-for-boot-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fix terminal when in single user mode (Solaris)</title>
		<link>http://oracle.3dub.com/2011/11/17/fix-terminal-when-in-single-user-mode-solaris/</link>
		<comments>http://oracle.3dub.com/2011/11/17/fix-terminal-when-in-single-user-mode-solaris/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 20:28:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HEADS UP]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=834</guid>
		<description><![CDATA[ksh -o vi
export TERM=vt100
/usr/openwin/bin/resize
or, If booted from CD or in failsafe:
/a/usr/openwin/bin/resize
]]></description>
			<content:encoded><![CDATA[<p>ksh -o vi<br />
export TERM=vt100<br />
/usr/openwin/bin/resize<br />
or, If booted from CD or in failsafe:<br />
/a/usr/openwin/bin/resize</p>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2011/11/17/fix-terminal-when-in-single-user-mode-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LDOM console connection hangs</title>
		<link>http://oracle.3dub.com/2011/06/16/ldom-console-connection-hangs/</link>
		<comments>http://oracle.3dub.com/2011/06/16/ldom-console-connection-hangs/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 13:02:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=811</guid>
		<description><![CDATA[Problem: not able to connect to the console
-&#62; start /CH/BL1/SP/cli
Are you sure you want to start /CH/BL1/SP/cli (y/n)? y
&#8230;just hangs indefinitely
Solution: We need to reset the serial port to the blade.
-&#62; reset /CH/BL1/SP
Are you sure you want to reset /CH/BL1/SP (y/n)? y
Performing hard reset on /CH/BL1/SP
-&#62; start cli
Are you sure you want to start /CH/BL1/SP/cli [...]]]></description>
			<content:encoded><![CDATA[<p><strong><em>Problem: not able to connect to the console</em></strong></p>
<p>-&gt; start /CH/BL1/SP/cli<br />
Are you sure you want to start /CH/BL1/SP/cli (y/n)? y</p>
<p><em>&#8230;just hangs indefinitely</em></p>
<p><em><strong>Solution: We need to reset the serial port to the blade.</strong></em></p>
<p>-&gt; reset /CH/BL1/SP<br />
Are you sure you want to reset /CH/BL1/SP (y/n)? y<br />
Performing hard reset on /CH/BL1/SP</p>
<p>-&gt; start cli<br />
Are you sure you want to start /CH/BL1/SP/cli (y/n)? y</p>
<p><em>&#8230; connects successfully to the console now.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2011/06/16/ldom-console-connection-hangs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Blade ILOM</title>
		<link>http://oracle.3dub.com/2011/02/22/sun-blade-ilom/</link>
		<comments>http://oracle.3dub.com/2011/02/22/sun-blade-ilom/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 18:32:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HEADS UP]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=776</guid>
		<description><![CDATA[connecting to sun blades
start /CH/blade/SP/cli
start SP/console 
]]></description>
			<content:encoded><![CDATA[<p>connecting to sun blades</p>
<p>start /CH/blade/SP/cli<br />
start SP/console </p>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2011/02/22/sun-blade-ilom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris equivalent of ethtool</title>
		<link>http://oracle.3dub.com/2011/02/16/solaris-equivalent-of-ethtool/</link>
		<comments>http://oracle.3dub.com/2011/02/16/solaris-equivalent-of-ethtool/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 16:33:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HEADS UP]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=769</guid>
		<description><![CDATA[
for i in `ndd -get /dev/${DEV} \? &#124; awk '{print $1}'&#124; grep ^[a-z]`;
do
echo -n "$i:"; ndd -get /dev/${DEV} $i;
done

]]></description>
			<content:encoded><![CDATA[<pre>
for i in `ndd -get /dev/${DEV} \? | awk '{print $1}'| grep ^[a-z]`;
do
echo -n "$i:"; ndd -get /dev/${DEV} $i;
done
</pre>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2011/02/16/solaris-equivalent-of-ethtool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running a nohup command over ssh</title>
		<link>http://oracle.3dub.com/2011/02/05/running-a-nohup-command-over-ssh/</link>
		<comments>http://oracle.3dub.com/2011/02/05/running-a-nohup-command-over-ssh/#comments</comments>
		<pubDate>Sat, 05 Feb 2011 11:32:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HEADS UP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[nohup output on remote]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=759</guid>
		<description><![CDATA[The problem is that the ssh session will wait for the command to complete and the &#8216;&#38;&#8217; to background the task does not seem to work. The net result is that the script running the nohup ssh command hangs.
This is because by default ssh does not allocate a TTY to run a command. You can [...]]]></description>
			<content:encoded><![CDATA[<p>The problem is that the ssh session will wait for the command to complete and the &#8216;&amp;&#8217; to background the task does not seem to work. The net result is that the script running the nohup ssh command hangs.</p>
<p>This is because by default ssh does not allocate a TTY to run a command. You can force TTY allocation by using the &#8216;-t&#8217; option to ssh, which will permit backgrounding, and the ssh command will return immediately.</p>
<p>In order to demonstrate, create a file /tmp/sleepy like so:</p>
<p>#!/bin/bash<br />
while ( true ); do<br />
echo `date` &#8220;sleep&#8221;<br />
sleep 1<br />
done</p>
<p>This command will invoke the script over ssh using nohup and &amp;:</p>
<p>ssh -t localhost &#8216;nohup /tmp/sleepy &amp;&#8217;</p>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2011/02/05/running-a-nohup-command-over-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris: force user to change password at next logon</title>
		<link>http://oracle.3dub.com/2011/02/02/solaris-force-user-to-change-password-at-next-logon/</link>
		<comments>http://oracle.3dub.com/2011/02/02/solaris-force-user-to-change-password-at-next-logon/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 16:18:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HEADS UP]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=756</guid>
		<description><![CDATA[passwd -f &#60;login&#62;
]]></description>
			<content:encoded><![CDATA[<p>passwd -f &lt;login&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2011/02/02/solaris-force-user-to-change-password-at-next-logon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun XSCF usage</title>
		<link>http://oracle.3dub.com/2010/12/22/sun-xscf-usage/</link>
		<comments>http://oracle.3dub.com/2010/12/22/sun-xscf-usage/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 19:34:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=698</guid>
		<description><![CDATA[
XSCF> showdcl -v -a
DID   LSB   XSB   Status   No-Mem   No-IO    Float    Cfg-policy
00                Running             [...]]]></description>
			<content:encoded><![CDATA[<pre>
XSCF> showdcl -v -a
DID   LSB   XSB   Status   No-Mem   No-IO    Float    Cfg-policy
00                Running                             FRU
      00    00-0           False    False    False
      01    -
      02    -
      03    -
      04    -
      05    -
      06    -
      07    -
      08    -
      09    -
      10    -
      11    -
      12    -
      13    -
      14    -
      15    -
XSCF> console -d 00 -f
Connect to DomainID 0?[y|n] :y
</pre>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2010/12/22/sun-xscf-usage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BigBrother script to monitor raidctl and metastat mirrors on Solaris</title>
		<link>http://oracle.3dub.com/2010/11/23/bigbrother-script-to-monitor-raidctl-and-metastat-mirrors-on-solaris/</link>
		<comments>http://oracle.3dub.com/2010/11/23/bigbrother-script-to-monitor-raidctl-and-metastat-mirrors-on-solaris/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 19:53:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Big Brother]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=673</guid>
		<description><![CDATA[
#!/bin/sh

# ext-proto
#
# BIG BROTHER - PROTOTYPE EXTERNAL SCRIPT
# Sean MacGuire
# Version 1.9
# Mar 13th, 2002
#
# (c) Copyright Quest Software, Inc.  1997-2002  All rights reserved.
#
# Adapted to test RAID on Sun boxes (either raidctl or metastat or both)
# parmanand patram
# Nov 23rd 2010.

#
# SCRIPTS IN THE BBHOME/ext DIRECTORY ARE ONLY RUN IF
# THEY ARE [...]]]></description>
			<content:encoded><![CDATA[<pre>
#!/bin/sh

# ext-proto
#
# BIG BROTHER - PROTOTYPE EXTERNAL SCRIPT
# Sean MacGuire
# Version 1.9
# Mar 13th, 2002
#
# (c) Copyright Quest Software, Inc.  1997-2002  All rights reserved.
#
# Adapted to test RAID on Sun boxes (either raidctl or metastat or both)
# parmanand patram
# Nov 23rd 2010.

#
# SCRIPTS IN THE BBHOME/ext DIRECTORY ARE ONLY RUN IF
# THEY ARE DEFINED IN THE ENTRY FOR THE CURRENT HOST
# LISTED IN THE ext/bb-bbexttab FILE.
#

################################### SETUP #############################
#
# root must run a crontab like every 5 minutes to provide raidctl output
# 0,15,30,45 * * * * for VOLUME in `/usr/sbin/raidctl -l| grep Volume: | awk -F':' '{print $2}'`; do /usr/sbin/raidctl -l $VOLUME > /tmp/raidctl_${VOLUME}_txt; done >/dev/null 2>&#038;1
#
# Additional setup is as 'normal' bb extension test.

#
# BBPROG SHOULD JUST CONTAIN THE NAME OF THIS FILE
# USEFUL WHEN YOU GET ENVIRONMENT DUMPS TO LOCATE
# THE OFFENDING SCRIPT...
#
BBTEST="RAID"
BBPROG=$0; export BBPROG

#
# BBHOME CAN BE SET MANUALLY WHEN TESTING.
# OTHERWISE IT SHOULD BE SET FROM THE BB ENVIRONMENT
#
# BBHOME=/home/sean/bb; export BBHOME   # FOR TESTING

if test "$BBHOME" = ""
then
        echo "BBHOME is not set... exiting"
        exit 1
fi

if test ! "$BBTMP"                      # GET DEFINITIONS IF NEEDED
then
         # echo "*** LOADING BBDEF ***"
        . $BBHOME/etc/bbdef.sh          # INCLUDE STANDARD DEFINITIONS
fi

#
# NOW COLLECT SOME DATA
# IN THIS CASE, IT'S THE STATUS OF THE RAID CHECKED BY raidctl AND metastat
# FOR MONTREAL, QUEBEC

# SELECT SOME LEVELS... GREEN IS THE DEFAULT...

WARN='undef'       # this test will never have a warning. RAID is either OK or not OK.
PANIC='yes'      # GO RED AND PAGE if FAILURE is set to 'yes'

# zero out the output file
cat /dev/null > $BBTMP/$BBTEST

# perform the raidctl tests
COLOR="green"

# IMPORTANT: user bb cannot run raidctl, so root must run a cron script to dump out
# raidctl info for each volume into /tmp/raidctl_VOLUME_txt

for VOLUME_FILE in `ls /tmp/raidctl_c*t*d*_txt`; do

        VOLUME=`echo $VOLUME_FILE | awk -F'_' '{print $2}'`
        TEST=`cat $VOLUME_FILE | egrep -v '^c|^Volume|Sub|Disk|-' | grep -v GOOD`
        if [ "$TEST" = '' ]; then      #disk is 'GOOD'
                echo "OK for RAID volume $VOLUME" >> /$BBTMP/$BBTEST
                cat $VOLUME_FILE >> /$BBTMP/$BBTEST
                echo "-----------------------------------------" >> /$BBTMP/$BBTEST
        else    # disk has problems
                COLOR="red"
                echo "FAILURE on RAID volume $VOLUME" >> /$BBTMP/$BBTEST
                cat $VOLUME_FILE >> /$BBTMP/$BBTEST
                echo "-------------> ${TEST} <-----------------" >> /$BBTMP/$BBTEST
        fi
done

# perform the metastat tests
for MIRROR in `/sbin/metastat | grep Mirror | awk -F':' '{print $1}'`; do
        TEST=`/sbin/metastat $MIRROR | grep 'State:' | grep -v Okay`
        if [ "$TEST" = '' ]; then      #mirror id OK
                echo "RAID mirror $MIRROR OK:"
                        /sbin/metastat $MIRROR >> /$BBTMP/$BBTEST
                echo "-----------------------------------------" >> /$BBTMP/$BBTEST
        else    # disk has problems
                COLOR="red"
                echo "FAILURE in RAID mirror $MIRROR" >> /$BBTMP/$BBTEST
                        /sbin/metastat $MIRROR >> /$BBTMP/$BBTEST
                echo "-------------> ${TEST} <-----------------" >> /$BBTMP/$BBTEST
        fi
done

#
# AT THIS POINT WE HAVE OUR RESULTS.  NOW WE HAVE TO SEND IT TO
# THE BBDISPLAY TO BE DISPLAYED...
#

# MACHINE NAME MUST EITHER BE A REAL MACHINE NAME, OR
# LOOK LIKE A REAL MACHINE (in the case of arbitrary measurements
# like temperature).  IF THE NAME YOU ARE USING DOESN'T EXIST
# IN THE DNS THEN IT SHOULD BE LISTED IN THE bb-hosts FILE WITH noping,
# PREFERABLY IN IT'S OWN GROUP...

MACHINE="`hostname`"

#
# THE FIRST LINE IS STATUS INFORMATION... STRUCTURE IMPORANT!
# THE REST IS FREE-FORM - WHATEVER YOU'D LIKE TO SEND...
#
LINE="status $MACHINE.$TEST $COLOR `date`
RAID staus of disks
`cat /$BBTMP/$BBTEST`

# NOW USE THE BB COMMAND TO SEND THE DATA ACROSS
$BB $BBDISP "$LINE"                     # SEND IT TO BBDISPLAY
</pre>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2010/11/23/bigbrother-script-to-monitor-raidctl-and-metastat-mirrors-on-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris flare installation using Web Start.</title>
		<link>http://oracle.3dub.com/2010/09/22/solaris-flare-installation-using-web-start/</link>
		<comments>http://oracle.3dub.com/2010/09/22/solaris-flare-installation-using-web-start/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 19:24:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=635</guid>
		<description><![CDATA[http://www.sun.com/software/whitepapers/wp-solarisinst/solaris_installation_deployment.pdf
and
http://www.sun.com/blueprints/1101/webstart.pdf
how to use Flash Archive from CD boot instead of from JumpStart Server:
http://www.sun.com/bigadmin/content/submitted/flash_archive.jsp
Basic boot commands:
http://www-uxsup.csx.cam.ac.uk/pub/doc/sun/solaris10/solaris10_basic_installation.pdf
]]></description>
			<content:encoded><![CDATA[<p>http://www.sun.com/software/whitepapers/wp-solarisinst/solaris_installation_deployment.pdf</p>
<p>and</p>
<p>http://www.sun.com/blueprints/1101/webstart.pdf</p>
<p>how to use Flash Archive from CD boot instead of from JumpStart Server:</p>
<p>http://www.sun.com/bigadmin/content/submitted/flash_archive.jsp</p>
<p>Basic boot commands:</p>
<p>http://www-uxsup.csx.cam.ac.uk/pub/doc/sun/solaris10/solaris10_basic_installation.pdf</p>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2010/09/22/solaris-flare-installation-using-web-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

