<?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; HEADS UP</title>
	<atom:link href="http://oracle.3dub.com/category/heads-up/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>Turn on agent debugging (VCS)</title>
		<link>http://oracle.3dub.com/2011/12/13/turn-on-agent-debugging-vcs/</link>
		<comments>http://oracle.3dub.com/2011/12/13/turn-on-agent-debugging-vcs/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 20:48:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[HEADS UP]]></category>
		<category><![CDATA[VCS]]></category>
		<category><![CDATA[Vertias]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=844</guid>
		<description><![CDATA[http://www.symantec.com/business/support/index?page=content&#038;id=HOWTO58833
]]></description>
			<content:encoded><![CDATA[<p>http://www.symantec.com/business/support/index?page=content&#038;id=HOWTO58833</p>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2011/12/13/turn-on-agent-debugging-vcs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Set ethtool options in ifcfg-ethX file</title>
		<link>http://oracle.3dub.com/2011/06/14/set-ethtool-options-in-ifcfg-ethx-file/</link>
		<comments>http://oracle.3dub.com/2011/06/14/set-ethtool-options-in-ifcfg-ethx-file/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 11:03:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HEADS UP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=808</guid>
		<description><![CDATA[ETHTOOL_OPTS=&#8221;autoneg off speed 100 duplex full&#8221;
]]></description>
			<content:encoded><![CDATA[<p>ETHTOOL_OPTS=&#8221;autoneg off speed 100 duplex full&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2011/06/14/set-ethtool-options-in-ifcfg-ethx-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Last ditch to open a database after losing all members of CURRENT redo log group</title>
		<link>http://oracle.3dub.com/2011/05/15/last-ditch-to-open-a-database-after-losing-all-members-of-current-redo-log-group/</link>
		<comments>http://oracle.3dub.com/2011/05/15/last-ditch-to-open-a-database-after-losing-all-members-of-current-redo-log-group/#comments</comments>
		<pubDate>Mon, 16 May 2011 00:53:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HEADS UP]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=801</guid>
		<description><![CDATA[_allow_resetlogs_corruption=TRUE
This will at least allow you to open the database, then perform an export. It is NOT recommended that the database continue production operations as it will definitely crash in the near future.
]]></description>
			<content:encoded><![CDATA[<p>_allow_resetlogs_corruption=TRUE</p>
<p>This will at least allow you to open the database, then perform an export. It is NOT recommended that the database continue production operations as it will definitely crash in the near future.</p>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2011/05/15/last-ditch-to-open-a-database-after-losing-all-members-of-current-redo-log-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setuid shell script</title>
		<link>http://oracle.3dub.com/2011/02/24/setuid-shell-script/</link>
		<comments>http://oracle.3dub.com/2011/02/24/setuid-shell-script/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 16:54:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HEADS UP]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=778</guid>
		<description><![CDATA[The script will need to run thru a wrapper, or the OS will ignore the setuid bit altoghether. Compile the following C program and make it setuid, and it will work:

#include 
#include 

int main(int argc, char *argv[])
{
argv[0] = "some_script_path";

setreuid(geteuid(), -1);
execv(argv[0], argv);
exit(1);
}

]]></description>
			<content:encoded><![CDATA[<p>The script will need to run thru a wrapper, or the OS will ignore the setuid bit altoghether. Compile the following C program and make it setuid, and it will work:</p>
<pre>
#include <stdlib.h>
#include <unistd.h>

int main(int argc, char *argv[])
{
argv[0] = "some_script_path";

setreuid(geteuid(), -1);
execv(argv[0], argv);
exit(1);
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2011/02/24/setuid-shell-script/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>X Authentication</title>
		<link>http://oracle.3dub.com/2011/02/22/x-authentication/</link>
		<comments>http://oracle.3dub.com/2011/02/22/x-authentication/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 16:15:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HEADS UP]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=774</guid>
		<description><![CDATA[&#8216;xauth list&#8217; will give the current tokens for the first login user
SOANDSO/unix:10  MIT-MAGIC-COOKIE-1  498e25150e75b1c319278813d853b1ca
you can add some or alll of them to a second login user:
xauth add SOANDSO/unix:10  MIT-MAGIC-COOKIE-1  498e25150e75b1c319278813d853b1ca
]]></description>
			<content:encoded><![CDATA[<p>&#8216;xauth list&#8217; will give the current tokens for the first login user<br />
SOANDSO/unix:10  MIT-MAGIC-COOKIE-1  498e25150e75b1c319278813d853b1ca</p>
<p>you can add some or alll of them to a second login user:</p>
<p>xauth add SOANDSO/unix:10  MIT-MAGIC-COOKIE-1  498e25150e75b1c319278813d853b1ca</p>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2011/02/22/x-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl network daemon for testing firewalls, etc</title>
		<link>http://oracle.3dub.com/2011/02/16/perl-network-daemon-for-testing-firewalls-etc/</link>
		<comments>http://oracle.3dub.com/2011/02/16/perl-network-daemon-for-testing-firewalls-etc/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 19:28:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HEADS UP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=771</guid>
		<description><![CDATA[
#!/usr/bin/perl -w
# server.pl
#--------------------
use strict;
use Socket;
# use port 7890 as default
my $port = shift &#124;&#124; 7890;
my $proto = getprotobyname('tcp');
# create a socket, make it reusable
socket(SOCKET, PF_INET, SOCK_STREAM, $proto)
   or die "Can't open socket $!\n";
setsockopt(SOCKET, SOL_SOCKET, SO_REUSEADDR, 1)
   or die "Can't set socket option to SO_REUSEADDR $!\n";
# bind to a port, then listen
bind( [...]]]></description>
			<content:encoded><![CDATA[</pre>
<p>#!/usr/bin/perl -w<br />
# server.pl<br />
#--------------------</p>
<p>use strict;<br />
use Socket;</p>
<p># use port 7890 as default<br />
my $port = shift || 7890;<br />
my $proto = getprotobyname('tcp');</p>
<p># create a socket, make it reusable<br />
socket(SOCKET, PF_INET, SOCK_STREAM, $proto)<br />
   or die "Can't open socket $!\n";<br />
setsockopt(SOCKET, SOL_SOCKET, SO_REUSEADDR, 1)<br />
   or die "Can't set socket option to SO_REUSEADDR $!\n";</p>
<p># bind to a port, then listen<br />
bind( SOCKET, pack( 'Sn4x8', AF_INET, $port, "\0\0\0\0" ))<br />
       or die "Can't bind to port $port! \n";<br />
listen(SOCKET, 5) or die "listen: $!";<br />
print "SERVER started on port $port\n";</p>
<p># accepting a connection<br />
my $client_addr;<br />
while ($client_addr = accept(NET_SOCKET, SOCKET)) {<br />
	# send them a message, close connection<br />
	print NEW_SOCKET "Smile from the server";<br />
	close NEW_SOCKET;<br />
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2011/02/16/perl-network-daemon-for-testing-firewalls-etc/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>
	</channel>
</rss>

