<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Planet Malaysia</title>
	
	<link>http://www.planetmy.com/blog</link>
	<description />
	<lastBuildDate>Tue, 23 Jun 2009 07:32:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/planetmy/JdqA" type="application/rss+xml" /><item>
		<title>How To Capture PUTTY Session Log</title>
		<link>http://feedproxy.google.com/~r/planetmy/JdqA/~3/TgIFN4ZMnbA/</link>
		<comments>http://www.planetmy.com/blog/how-to-capture-putty-session-log/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 07:28:50 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[How's To]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[nexus]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[switches]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=1037</guid>
		<description><![CDATA[


PuTTY is a free implementation of Telnet and SSH for Win32 and Unix platforms, along with an xterm terminal emulator. It is written and maintained primarily by Simon Tatham. 
Here I would like to share How To Capture PUTTY Session Log.
1. To capture a session with PuTTY, open up a PUTTY.
2. Look for Category Session [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-2605152699103516";
/* Planet Malaysa Blog Single 336x280, created 12/25/07 */
google_ad_slot = "0286163308";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p><p><a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a> is a free implementation of Telnet and <a href="http://www.planetmy.com/blog/tag/ssh">SSH</a> for Win32 and Unix platforms, along with an xterm terminal emulator. It is written and maintained primarily by Simon Tatham. </p>
<p>Here I would like to share <strong>How To Capture PUTTY Session Log</strong>.</p>
<p>1. To capture a session with PuTTY, open up a <a href="http://www.planetmy.com/blog/tag/putty">PUTTY</a>.<br />
2. Look for Category <a href="http://www.planetmy.com/blog/tag/session">Session</a> -> Logging<br />
3. Under Session Logging, choose &#8220;All session output&#8221; and key in your desire log filename(default is putty.log).<br />
<a href="http://www.planetmy.com/blog/wp-content/uploads/2009/06/putty_session_log.png" rel="shadowbox[post-1037];player=img;"><img src="http://www.planetmy.com/blog/wp-content/uploads/2009/06/putty_session_log.png" alt="Putty Session Setting" width="505" height="491" /><br />
</a><br />
4. This should create the file in the location you choose and start loggin everyting from the session.<br />
5. For capture <a href="http://www.planetmy.com/blog/tag/cisco">Cisco</a> Router or Switches(I tried with Nexus 1000V on <a href="http://www.planetmy.com/blog/tag/vmware">VMware</a> vSphere), type &#8217;show running-config&#8217;.<br />
<a href="http://www.planetmy.com/blog/wp-content/uploads/2009/06/cisco_show_run.png" rel="shadowbox[post-1037];player=img;"><img src="http://www.planetmy.com/blog/wp-content/uploads/2009/06/cisco_show_run.png" alt="Cisco Show Run" width="510" height="320" /></a><br />
<span id="more-1037"></span><br />
6. Open your session <a href="http://www.planetmy.com/blog/tag/log">log</a> file(e.g. my_session.log), Cisco Router/Switches running config file are save or backup.<br />
<a href="http://www.planetmy.com/blog/wp-content/uploads/2009/06/putty_log.png" rel="shadowbox[post-1037];player=img;"><img src="http://www.planetmy.com/blog/wp-content/uploads/2009/06/putty_log.png" alt="Putty Session Log" /></a></p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-add-date-and-time-to-your-bash-history-on-suse-linux/">How to Add Date And Time To Your Bash History on SuSE Linux</a></li>
<li><a href="http://www.planetmy.com/blog/rpm-segmentation-fault/">RPM Segmentation Fault</a></li>
<li><a href="http://www.planetmy.com/blog/introduce-server-fault/">Introduce Server Fault</a></li>
<li><a href="http://www.planetmy.com/blog/openvpn-route-issue/">OpenVPN route issue</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-clean-emc-cx-3-80-dirty-cache/">How to clean EMC CX 3-80 Dirty Cache?</a></li>
</ul><br />

<p><a href="http://feedads.g.doubleclick.net/~a/2SWXTKkzWzLDPY4uuTU13Wg6eMw/0/da"><img src="http://feedads.g.doubleclick.net/~a/2SWXTKkzWzLDPY4uuTU13Wg6eMw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/2SWXTKkzWzLDPY4uuTU13Wg6eMw/1/da"><img src="http://feedads.g.doubleclick.net/~a/2SWXTKkzWzLDPY4uuTU13Wg6eMw/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/planetmy/JdqA/~4/TgIFN4ZMnbA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/how-to-capture-putty-session-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.planetmy.com/blog/how-to-capture-putty-session-log/</feedburner:origLink></item>
		<item>
		<title>How to Add Date And Time To Your Bash History on SuSE Linux</title>
		<link>http://feedproxy.google.com/~r/planetmy/JdqA/~3/IV9Qj7zeuLE/</link>
		<comments>http://www.planetmy.com/blog/how-to-add-date-and-time-to-your-bash-history-on-suse-linux/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 11:31:05 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[How's To]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SUSE]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=1017</guid>
		<description><![CDATA[The SuSE Linux Enterpise 10 which came together with bash-3.x RPM and HISTORY command show insufficient information(at least for me) as example below:

    1  vi /etc/hosts
    2  rpm -qa&#124;grep bash
    3  cat /etc/SuSE-release
    4  history

For any SuSE Linux Enterprise [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-2605152699103516";
//Planet Malaysia Blog Index 336x280, created 12/25/07
google_ad_slot = "3910868727";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p><p>The <a href="http://www.planetmy.com/blog/tag/suse">SuSE</a> Linux Enterpise 10 which came together with <strong>bash-3.x RPM</strong> and <a href="http://www.planetmy.com/blog/tag/history">HISTORY</a> command show insufficient information(at least for me) as example below:<br />
<code><br />
    1  vi /etc/hosts<br />
    2  rpm -qa|grep bash<br />
    3  cat /etc/SuSE-release<br />
    4  history<br />
</code></p>
<p>For any <a href="http://www.planetmy.com/blog/tag/suse">SuSE</a> <a href="http://www.planetmy.com/blog/tag/linux">Linux</a> Enterprise server 10 that managed by more than one people, I would suggest you should make <em>history</em> command more user friendly and more information for auditing purposes.</p>
<p>Edit <em>/etc/bash.bashrc</em> and append to the bottom:<br />
<code><br />
export HISTTIMEFORMAT="%h/%d - %H:%M:%S "<br />
</code><br />
save  it.<br />
<span id="more-1017"></span></p>
<p>Open a new <a href="http://www.planetmy.com/blog/tag/ssh">SSH</a> session and login as usual, try typing few command and exit. Login again and type <em>history</em> and you should be able to see more useful information which included date and time:<br />
<code><br />
    1  Jun/07 - 13:23:40 sudo tail -f /var/log/messages<br />
    2  Jun/07 - 13:23:40 cat /etc/hosts<br />
    3  Jun/07 - 13:23:40 env |grep DISPLAY<br />
    4  Jun/07 - 13:23:40 ps -ef|grep startx<br />
    5  Jun/07 - 13:23:40 env<br />
    6  Jun/07 - 13:23:40 date<br />
    7  Jun/07 - 13:23:40 ps -ef|grep abc<br />
    8  Jun/07 - 13:23:40 touch abc<br />
    9  Jun/07 - 13:23:40 /sbin/ifconfig<br />
   10  Jun/07 - 13:23:40 ping planetmy.com<br />
   11  Jun/07 - 13:23:40 cat abc<br />
   12  Jun/07 - 13:23:40 date<br />
 </code></p>
<p><strong>Note</strong>: This <strong>HISTTIMEFORMAT</strong> is NOT available on SuSE Linux 9 under bash-2.x RPM.</p>
<p>Hope this is helpful!</p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-capture-putty-session-log/">How To Capture PUTTY Session Log</a></li>
<li><a href="http://www.planetmy.com/blog/rpm-segmentation-fault/">RPM Segmentation Fault</a></li>
<li><a href="http://www.planetmy.com/blog/introduce-server-fault/">Introduce Server Fault</a></li>
<li><a href="http://www.planetmy.com/blog/openvpn-route-issue/">OpenVPN route issue</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-clean-emc-cx-3-80-dirty-cache/">How to clean EMC CX 3-80 Dirty Cache?</a></li>
</ul><br />

<p><a href="http://feedads.g.doubleclick.net/~a/2JHXYPIBmHWI4e0aYKhm7qUCiec/0/da"><img src="http://feedads.g.doubleclick.net/~a/2JHXYPIBmHWI4e0aYKhm7qUCiec/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/2JHXYPIBmHWI4e0aYKhm7qUCiec/1/da"><img src="http://feedads.g.doubleclick.net/~a/2JHXYPIBmHWI4e0aYKhm7qUCiec/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/planetmy/JdqA/~4/IV9Qj7zeuLE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/how-to-add-date-and-time-to-your-bash-history-on-suse-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.planetmy.com/blog/how-to-add-date-and-time-to-your-bash-history-on-suse-linux/</feedburner:origLink></item>
		<item>
		<title>RPM Segmentation Fault</title>
		<link>http://feedproxy.google.com/~r/planetmy/JdqA/~3/2cxbmtl7MRQ/</link>
		<comments>http://www.planetmy.com/blog/rpm-segmentation-fault/#comments</comments>
		<pubDate>Sun, 31 May 2009 09:45:57 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Fault]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[Segmentation]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=1011</guid>
		<description><![CDATA[While I was try to upgrade one of the RPM package on SuSE Linux Server, I&#8217;m getting an error message as below: 

planetmy1:/var/spool/locks # rpm -Fvh http://server01/openssl-0.9.8a-18.26.x86_64.rpm
Retrieving http://server01/openssl-0.9.8a-18.26.x86_64.rpm
Preparing...                Segmentation fault###           [...]]]></description>
			<content:encoded><![CDATA[<p>While I was try to upgrade one of the RPM package on <a href="http://www.planetmy.com/blog/tag/suse">SuSE</a> <a href="http://www.planetmy.com/blog/tag/linux">Linux</a> Server, I&#8217;m getting an error message as below: </p>
<p><code><br />
planetmy1:/var/spool/locks # <a href="http://www.planetmy.com/blog/tag/rpm">rpm</a> -Fvh http://server01/openssl-0.9.8a-18.26.x86_64.rpm<br />
Retrieving http://server01/openssl-0.9.8a-18.26.x86_64.rpm<br />
Preparing...                <strong>Segmentation fault</strong>###                       ( 50%</p>
<p>In /var/log/messages, I can see similar error:<br />
kernel: rpm[21904]: segfault at 0000000000bbbfb0 rip 00002b13dd4c51ba rsp 00007fffcd8c0150 error 4<br />
</code></p>
<p>The solution is:<br />
<code><br />
[root@planetmy1 ~]# rpm --rebuilddb<br />
</code><br />
use &#8211;rebuilddb to rebuild the database indices from the installed package headers.<br />
<span id="more-1011"></span><br />
If &#8220;&#8211;rebuilddb is NOT work, you can try create a new database.<br />
<code><br />
[root@planetmy1 ~]# rpm --initdb<br />
</code><br />
Use &#8211;initdb to create a new database,</p>
<p>Hope this is useful!</p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-capture-putty-session-log/">How To Capture PUTTY Session Log</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-add-date-and-time-to-your-bash-history-on-suse-linux/">How to Add Date And Time To Your Bash History on SuSE Linux</a></li>
<li><a href="http://www.planetmy.com/blog/introduce-server-fault/">Introduce Server Fault</a></li>
<li><a href="http://www.planetmy.com/blog/openvpn-route-issue/">OpenVPN route issue</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-clean-emc-cx-3-80-dirty-cache/">How to clean EMC CX 3-80 Dirty Cache?</a></li>
</ul><br />

<p><a href="http://feedads.g.doubleclick.net/~a/Mwsf800OkqhtkEFIvciVIK2p8Wo/0/da"><img src="http://feedads.g.doubleclick.net/~a/Mwsf800OkqhtkEFIvciVIK2p8Wo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Mwsf800OkqhtkEFIvciVIK2p8Wo/1/da"><img src="http://feedads.g.doubleclick.net/~a/Mwsf800OkqhtkEFIvciVIK2p8Wo/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/planetmy/JdqA/~4/2cxbmtl7MRQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/rpm-segmentation-fault/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.planetmy.com/blog/rpm-segmentation-fault/</feedburner:origLink></item>
		<item>
		<title>Introduce Server Fault</title>
		<link>http://feedproxy.google.com/~r/planetmy/JdqA/~3/2a31a_vPmFo/</link>
		<comments>http://www.planetmy.com/blog/introduce-server-fault/#comments</comments>
		<pubDate>Wed, 27 May 2009 06:52:32 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=1003</guid>
		<description><![CDATA[While I was checking out twitter, I found a new site Server Fault!

Server Fault is a collaboratively edited question and answer site for system administrators and IT professionals – regardless of platform. It&#8217;s 100% free, no registration required.
Note: Server Fault public beta will begin May 25th.
Server Fault is for system administrators and IT professionals, people [...]]]></description>
			<content:encoded><![CDATA[<p>While I was checking out twitter, I found a new site Server Fault!</p>
<p><a href="http://serverfault.com/content/img/sf/logo.png" rel="shadowbox[post-1003];player=img;"><img src="http://serverfault.com/content/img/sf/logo.png" alt="Server Fault" /></a></p>
<p>Server Fault is a collaboratively edited question and answer site for system administrators and IT professionals – regardless of platform. It&#8217;s 100% free, no registration required.</p>
<p><strong>Note:</strong> Server Fault public beta will begin May 25th.</p>
<blockquote><p>Server Fault is for system administrators and IT professionals, people who manage or maintain computers in a professional capacity. If you are in charge of &#8230;</p>
<p>* servers<br />
* networks<br />
* many desktop PCs (other than your own)</p>
<p>&#8230; then you&#8217;re in the right place to ask your question! Well, as long as the question is about your servers, your networks, or desktops you support, anyway.</p></blockquote>
<p><span id="more-1003"></span><br />
What else? As a system administrator, you can try login to serverfault.com and post your question now!</p>
<p>Check out more details about Server Fault <a href="http://serverfault.com/faq">FAQ</a>.</p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-capture-putty-session-log/">How To Capture PUTTY Session Log</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-add-date-and-time-to-your-bash-history-on-suse-linux/">How to Add Date And Time To Your Bash History on SuSE Linux</a></li>
<li><a href="http://www.planetmy.com/blog/rpm-segmentation-fault/">RPM Segmentation Fault</a></li>
<li><a href="http://www.planetmy.com/blog/openvpn-route-issue/">OpenVPN route issue</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-clean-emc-cx-3-80-dirty-cache/">How to clean EMC CX 3-80 Dirty Cache?</a></li>
</ul><br />

<p><a href="http://feedads.g.doubleclick.net/~a/GngZI2ly_M9mp_k_3I0bqvh0VaU/0/da"><img src="http://feedads.g.doubleclick.net/~a/GngZI2ly_M9mp_k_3I0bqvh0VaU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/GngZI2ly_M9mp_k_3I0bqvh0VaU/1/da"><img src="http://feedads.g.doubleclick.net/~a/GngZI2ly_M9mp_k_3I0bqvh0VaU/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/planetmy/JdqA/~4/2a31a_vPmFo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/introduce-server-fault/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.planetmy.com/blog/introduce-server-fault/</feedburner:origLink></item>
		<item>
		<title>OpenVPN route issue</title>
		<link>http://feedproxy.google.com/~r/planetmy/JdqA/~3/KmAkXqwG3e8/</link>
		<comments>http://www.planetmy.com/blog/openvpn-route-issue/#comments</comments>
		<pubDate>Fri, 15 May 2009 06:50:51 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=996</guid>
		<description><![CDATA[OpenVPN is a full-featured open source SSL VPN solution that accommodates a wide range of configurations, including remote access, site-to-site VPNs, Wi-Fi security, and enterprise-scale remote access solutions with load balancing, failover, and fine-grained access-controls. 
I wouldn&#8217;t repeat how I setup OpenVPN from scratch which you can found tons of useful guide on Google. Here, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.planetmy.com/blog/tag/openvpn">OpenVPN</a> is a full-featured open source SSL VPN solution that accommodates a wide range of configurations, including remote access, site-to-site VPNs, Wi-Fi security, and enterprise-scale remote access solutions with load balancing, failover, and fine-grained access-controls. </p>
<p>I wouldn&#8217;t repeat how I setup <a href="http://www.planetmy.com/blog/tag/openvpn">OpenVPN </a>from scratch which you can found tons of useful guide on <a href="http://www.planetmy.com/blog/tag/google">Google</a>. Here, I would like to share my OpenVPN <a href="http://www.planetmy.com/blog/tag/routing">routing</a> issue and solution.</p>
<p><a href="http://www.planetmy.com/blog/tag/setup">Setup</a> details as show below:</p>
<p><strong>SERVER:</strong><br />
LAN = 172.16.7.25X/255.255.0.0<br />
WAN = 219.95.19x.1xx/255.255.255.252<br />
VPN = 172.31.0.x/255.255.0.0</p>
<p>[root@<a href="http://www.planetmy.com/blog/tag/planetmy">planetmy</a> ~]# view /etc/openvpn/server.conf<br />
 port 1194<br />
 proto udp<br />
 dev tun<br />
 ca keys/ca.crt<br />
 cert keys/server.crt<br />
 key keys/server.key<br />
 dh keys/dh1024.pem<br />
 server 172.31.0.0 255.255.0.0<br />
 ifconfig-pool-persist ipp.txt<br />
 push &#8220;route 172.16.0.0 255.255.0.0&#8243;<br />
 keepalive 10 120<br />
 comp-lzo<br />
 persist-key<br />
 persist-tun<br />
 status openvpn-status.log<br />
 verb 3<br />
<span id="more-996"></span><br />
<code><br />
[root@planetmy ~]# route -n<br />
Kernel IP routing table<br />
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface<br />
172.31.0.2      0.0.0.0         255.255.255.255 UH    0      0        0 tun0<br />
219.95.19x.1xx  0.0.0.0         255.255.255.252 U     0      0        0 eth1<br />
172.31.0.0      172.31.0.2      255.255.0.0     UG    0      0        0 tun0<br />
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth1<br />
172.16.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eth0<br />
0.0.0.0         219.95.19x.1xx  0.0.0.0         UG    0      0        0 eth1<br />
</code></p>
<p><strong><a href="http://www.planetmy.com/blog/tag/windows">WINDOWS</a> <a href="http://www.planetmy.com/blog/tag/xp">XP</a> VPN client:</strong><br />
edit c:\programs files\OpenVPN\config\office.ovpn<br />
client<br />
dev tun<br />
proto udp<br />
remote 219.95.19x.1xx 1194<br />
resolv-retry infinite<br />
nobind<br />
persist-key<br />
persist-tun<br />
ca ca.crt<br />
cert test2.crt<br />
key test2.key<br />
ns-cert-type server<br />
comp-lzo<br />
verb 3</p>
<p>C:\ipconfig /all show:<br />
IP ADDRESS: 172.31.0.6<br />
NETMASK: 255.255.255.252<br />
GATEWAY: 172.31.0.5<br />
DHCP: 172.31.0.5</p>
<p>I was managed to ping <em>172.16.2.x/16 or 172.16.3.x/16</em> from server itself but not from Windows XP <a href="http://www.planetmy.com/blog/tag/vpn">VPN</a> client machine and the solution is <strong>MASQUERADE</strong>.</p>
<p>Type: <em><strong>/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE</strong></em></p>
<p><strong>Note:</strong> You can either addin extra line in your /etc/init.d/openvpn startup script OR insert into your <a href="http://www.planetmy.com/blog/tag/iptables">iptables</a> list.</p>
<p>Hope this is useful for you in case you facing the similar problem like me.</p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-capture-putty-session-log/">How To Capture PUTTY Session Log</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-add-date-and-time-to-your-bash-history-on-suse-linux/">How to Add Date And Time To Your Bash History on SuSE Linux</a></li>
<li><a href="http://www.planetmy.com/blog/rpm-segmentation-fault/">RPM Segmentation Fault</a></li>
<li><a href="http://www.planetmy.com/blog/introduce-server-fault/">Introduce Server Fault</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-clean-emc-cx-3-80-dirty-cache/">How to clean EMC CX 3-80 Dirty Cache?</a></li>
</ul><br />

<p><a href="http://feedads.g.doubleclick.net/~a/g35RhOUu6AnjL3pBhMhnPtY60CE/0/da"><img src="http://feedads.g.doubleclick.net/~a/g35RhOUu6AnjL3pBhMhnPtY60CE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/g35RhOUu6AnjL3pBhMhnPtY60CE/1/da"><img src="http://feedads.g.doubleclick.net/~a/g35RhOUu6AnjL3pBhMhnPtY60CE/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/planetmy/JdqA/~4/KmAkXqwG3e8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/openvpn-route-issue/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.planetmy.com/blog/openvpn-route-issue/</feedburner:origLink></item>
		<item>
		<title>How to clean EMC CX 3-80 Dirty Cache?</title>
		<link>http://feedproxy.google.com/~r/planetmy/JdqA/~3/F2hBX8ucgqk/</link>
		<comments>http://www.planetmy.com/blog/how-to-clean-emc-cx-3-80-dirty-cache/#comments</comments>
		<pubDate>Wed, 13 May 2009 10:03:20 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[How's To]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[clean]]></category>
		<category><![CDATA[CX3]]></category>
		<category><![CDATA[CX380]]></category>
		<category><![CDATA[dirty cache]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[LUNs]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=990</guid>
		<description><![CDATA[For the past weekend, it&#8217;s a really a nightmare for me. My office EMC Clariion CX3-80 storage box was crash(halt) and LUNs was not accessible for more than fourty over servers included Asia Pacific and Europe region.  
The storage box forced to reset and found dirty cache on certain LUNs. Here I would like [...]]]></description>
			<content:encoded><![CDATA[<p>For the past weekend, it&#8217;s a really a nightmare for me. My office <a href="http://www.planetmy.com/blog/tag/emc">EMC</a> <a href="http://www.planetmy.com/blog/tag/clariion">Clariion</a> CX3-80 storage box was crash(halt) and LUNs was not accessible for more than fourty over servers included Asia Pacific and Europe region.  </p>
<p>The storage box forced to reset and found dirty cache on certain LUNs. Here I would like to share how to list and clear dirty <a href="http://www.planetmy.com/blog/tag/cache">cache</a>.</p>
<p><strong>List <a href="http://www.planetmy.com/blog/tag/lun">LUN</a>s cache</strong><br />
<em># cd /opt/Navisphere/bin<br />
./navicli -h 192.168.1.1 luncache -list</em><br />
OR you can save the output into temporary location.<br />
<em>./navicli -h 192.168.1.1 luncache -list > /tmp/listluncache</em></p>
<p><strong>Note:</strong> IP Address 192.168.1.1 is referring to your SPx controller IP Address.</p>
<p>Open /tmp/listluncache and search for word &#8220;YES&#8221;<br />
<em># view /tmp/listluncache</em> </p>
<p>For an example, you will see:<br />
<code><br />
LOGICAL UNIT NUMBER 4912<br />
LUN Offline (Cache Dirty Condition):  <strong>YES</strong></p>
<p>LOGICAL UNIT NUMBER 4913<br />
LUN Offline (Cache Dirty Condition): <strong>YES</strong><br />
</code><br />
<span id="more-990"></span><br />
Here you can proceed with <a href="http://www.planetmy.com/blog/tag/dirty">dirty</a> cache cleaning process.</p>
<p><strong>Note:</strong> Please contact EMC support and get the confirmation before do this.</p>
<p># cd /opt/Navisphere/bin<br />
./navicli -h 192.168.1.1 luncache 4912 -clear -o<br />
AND<br />
./navicli -h 192.168.1.1 luncache 4913 -clear -o</p>
<p><strong>Note:</strong> LUNs ID 4912 and 4913 are dirty cache LUNs that require to be clean.</p>
<p>Again, please make sure check with <a href="http://www.planetmy.com/blog/tag/emc">EMC</a> support before proceed. Hope this is helpful!</p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-capture-putty-session-log/">How To Capture PUTTY Session Log</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-add-date-and-time-to-your-bash-history-on-suse-linux/">How to Add Date And Time To Your Bash History on SuSE Linux</a></li>
<li><a href="http://www.planetmy.com/blog/rpm-segmentation-fault/">RPM Segmentation Fault</a></li>
<li><a href="http://www.planetmy.com/blog/introduce-server-fault/">Introduce Server Fault</a></li>
<li><a href="http://www.planetmy.com/blog/openvpn-route-issue/">OpenVPN route issue</a></li>
</ul><br />

<p><a href="http://feedads.g.doubleclick.net/~a/yOJ15-avSOAbdvvc_Qd92vHQDPY/0/da"><img src="http://feedads.g.doubleclick.net/~a/yOJ15-avSOAbdvvc_Qd92vHQDPY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/yOJ15-avSOAbdvvc_Qd92vHQDPY/1/da"><img src="http://feedads.g.doubleclick.net/~a/yOJ15-avSOAbdvvc_Qd92vHQDPY/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/planetmy/JdqA/~4/F2hBX8ucgqk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/how-to-clean-emc-cx-3-80-dirty-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.planetmy.com/blog/how-to-clean-emc-cx-3-80-dirty-cache/</feedburner:origLink></item>
		<item>
		<title>Linux Market Share Passes 2%!!</title>
		<link>http://feedproxy.google.com/~r/planetmy/JdqA/~3/LRLIIOD6z_o/</link>
		<comments>http://www.planetmy.com/blog/linux-market-share-passes-2/#comments</comments>
		<pubDate>Mon, 04 May 2009 09:25:22 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Market Share]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=983</guid>
		<description><![CDATA[

W3Counter.com just releasted their April market share stats and linux passed 2.16% for the first time ever.


Check out here.

Possibly Related Posts:

How to Add Date And Time To Your Bash History on SuSE Linux
RPM Segmentation Fault
OpenVPN route issue
FreeBSD 7.2 Have Been Release
How to Check Filesystem Block Size on Linux?

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.w3counter.com/images/logo_site.png" rel="shadowbox[post-983];player=img;"><img src="http://www.w3counter.com/images/logo_site.png" alt="W3Counter" /></a></p>
<p><span id="more-983"></span></p>
<p>W3Counter.com just releasted their April market share stats and <a href="http://www.planetmy.com/blog/tag/linux">linux</a> passed <strong>2.16%</strong> for the first time ever.</p>
<p><center><br />
<a href="http://www.planetmy.com/images/linuxstat.png" rel="shadowbox[post-983];player=img;"><img src="http://www.planetmy.com/images/linuxstat.png" alt="Linux Statistic" /></a></p>
<p>Check out <a href="http://www.w3counter.com/globalstats.php">here</a>.</center></p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-add-date-and-time-to-your-bash-history-on-suse-linux/">How to Add Date And Time To Your Bash History on SuSE Linux</a></li>
<li><a href="http://www.planetmy.com/blog/rpm-segmentation-fault/">RPM Segmentation Fault</a></li>
<li><a href="http://www.planetmy.com/blog/openvpn-route-issue/">OpenVPN route issue</a></li>
<li><a href="http://www.planetmy.com/blog/freebsd-72-have-been-release/">FreeBSD 7.2 Have Been Release</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-check-filesystem-block-size-on-linux/">How to Check Filesystem Block Size on Linux?</a></li>
</ul><br />

<p><a href="http://feedads.g.doubleclick.net/~a/pjnHbSNvmKK3yk7rxyYvH2dwbRk/0/da"><img src="http://feedads.g.doubleclick.net/~a/pjnHbSNvmKK3yk7rxyYvH2dwbRk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/pjnHbSNvmKK3yk7rxyYvH2dwbRk/1/da"><img src="http://feedads.g.doubleclick.net/~a/pjnHbSNvmKK3yk7rxyYvH2dwbRk/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/planetmy/JdqA/~4/LRLIIOD6z_o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/linux-market-share-passes-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.planetmy.com/blog/linux-market-share-passes-2/</feedburner:origLink></item>
		<item>
		<title>FreeBSD 7.2 Have Been Release</title>
		<link>http://feedproxy.google.com/~r/planetmy/JdqA/~3/6Y53FRoGkmo/</link>
		<comments>http://www.planetmy.com/blog/freebsd-72-have-been-release/#comments</comments>
		<pubDate>Mon, 04 May 2009 09:20:19 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Release]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=981</guid>
		<description><![CDATA[ 
The FreeBSD Release Engineering Team is pleased to announce the availability of FreeBSD 7.2-RELEASE. This is the third release from the 7-STABLE branch which improves on the functionality of FreeBSD 7.1 and introduces some new features. Some of the highlights:
    *support for fully transparent use of superpages for application memory
  [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.freebsd.org/layout/images/logo-red.png" rel="shadowbox[post-981];player=img;"><img src="http://www.freebsd.org/layout/images/logo-red.png" alt="FreeBSD" /></a> </p>
<p>The <a href="http://www.planetmy.com/blog/tag/freebsd">FreeBSD</a> Release Engineering Team is pleased to announce the availability of FreeBSD 7.2-RELEASE. This is the third release from the 7-STABLE branch which improves on the functionality of FreeBSD 7.1 and introduces some new features. Some of the highlights:</p>
<p>    *support for fully transparent use of superpages for application memory<br />
    *support for multiple IPv4 and IPv6 addresses for jails<br />
    *csup(1) now supports CVSMode to fetch a complete CVS repository<br />
    *Gnome updated to 2.26, KDE updated to 4.2.2<br />
    *sparc64 now supports UltraSparc-III processors</p>
<p>For a complete list of new features and known problems, please see the online release notes and errata list, available at:</p>
<p>    *http://www.FreeBSD.org/releases/7.2R/relnotes.html<br />
    *http://www.FreeBSD.org/releases/7.2R/errata.html</p>
<p><span id="more-981"></span><br />
<a href="http://www.freebsd.org/where.html">Download FREEBSD 7.2 Now!</a></p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-add-date-and-time-to-your-bash-history-on-suse-linux/">How to Add Date And Time To Your Bash History on SuSE Linux</a></li>
<li><a href="http://www.planetmy.com/blog/rpm-segmentation-fault/">RPM Segmentation Fault</a></li>
<li><a href="http://www.planetmy.com/blog/openvpn-route-issue/">OpenVPN route issue</a></li>
<li><a href="http://www.planetmy.com/blog/linux-market-share-passes-2/">Linux Market Share Passes 2%!!</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-check-filesystem-block-size-on-linux/">How to Check Filesystem Block Size on Linux?</a></li>
</ul><br />

<p><a href="http://feedads.g.doubleclick.net/~a/UfpfXY7-RzdVEsqZvMFiBBR6bcE/0/da"><img src="http://feedads.g.doubleclick.net/~a/UfpfXY7-RzdVEsqZvMFiBBR6bcE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/UfpfXY7-RzdVEsqZvMFiBBR6bcE/1/da"><img src="http://feedads.g.doubleclick.net/~a/UfpfXY7-RzdVEsqZvMFiBBR6bcE/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/planetmy/JdqA/~4/6Y53FRoGkmo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/freebsd-72-have-been-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.planetmy.com/blog/freebsd-72-have-been-release/</feedburner:origLink></item>
		<item>
		<title>How to Check Filesystem Block Size on Linux?</title>
		<link>http://feedproxy.google.com/~r/planetmy/JdqA/~3/KOUOzlYCc1Q/</link>
		<comments>http://www.planetmy.com/blog/how-to-check-filesystem-block-size-on-linux/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 03:13:31 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[Filesystem]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Size]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=975</guid>
		<description><![CDATA[The Linux file system architecture is an interesting example of abstracting complexity. The block size specifies size that the filesystem will use to read and write data. Larger block sizes will help improve disk I/O performance when using large files, such as databases. This happens because the disk can read or write data for a [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.planetmy.com/blog/tag/linux">Linux</a> file system architecture is an interesting example of abstracting complexity. The block size specifies size that the filesystem will use to <em>read</em> and <em>write</em> data. Larger block sizes will help improve disk I/O performance when using large files, such as databases. This happens because the disk can read or write data for a longer period of time before having to search for the next block.</p>
<p>For example, if you set your block size to 4096, or 4K, and you create a file that is 256 bytes in size, it will still consume 4K of space on your harddrive. For one file that may seem trivial, but when your filesystem contains hundreds or thousands of files, this can add up.</p>
<p>Block size can also effect the maximum supported file size on some filesystems. This is because many modern filesystem are limited not by block size or file size, but by the number of blocks. Therefore you would be using a &#8220;block size * max # of blocks = max block size&#8221; formula.</p>
<p>How to Check <a href="http://www.planetmy.com/blog/tag/filesystem">Filesystem</a> <a href="http://www.planetmy.com/blog/tag/block">Block</a> Size on <a href="http://www.planetmy.com/blog/tag/linux">Linux</a>?<br />
<span style="color: #0000ff;">Example 1:</span><br />
 # tune2fs -l /dev/sda1 | grep -i &#8216;block size&#8217;<br />
Block size:               4096<br />
<span id="more-975"></span></p>
<p><span style="color: #0000ff;">Example 2:</span><br />
# dumpe2fs  -h /dev/sda1 |grep &#8220;Block size:&#8221;<br />
Block size:               4096</p>
<p><span style="color: #0000ff;">Example 3:</span><br />
# blockdev &#8211;getbsz /dev/sda1<br />
4096</p>
<p><span style="color: #0000ff;">Example 4:</span><br />
# echo &#8220;abc&#8221; &gt;test.txt<br />
# du -h test.txt<br />
4.0K    test</p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-capture-putty-session-log/">How To Capture PUTTY Session Log</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-add-date-and-time-to-your-bash-history-on-suse-linux/">How to Add Date And Time To Your Bash History on SuSE Linux</a></li>
<li><a href="http://www.planetmy.com/blog/rpm-segmentation-fault/">RPM Segmentation Fault</a></li>
<li><a href="http://www.planetmy.com/blog/introduce-server-fault/">Introduce Server Fault</a></li>
<li><a href="http://www.planetmy.com/blog/openvpn-route-issue/">OpenVPN route issue</a></li>
</ul><br />

<p><a href="http://feedads.g.doubleclick.net/~a/addADABY8JN2ujpN8rVZHkIlGxY/0/da"><img src="http://feedads.g.doubleclick.net/~a/addADABY8JN2ujpN8rVZHkIlGxY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/addADABY8JN2ujpN8rVZHkIlGxY/1/da"><img src="http://feedads.g.doubleclick.net/~a/addADABY8JN2ujpN8rVZHkIlGxY/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/planetmy/JdqA/~4/KOUOzlYCc1Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/how-to-check-filesystem-block-size-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.planetmy.com/blog/how-to-check-filesystem-block-size-on-linux/</feedburner:origLink></item>
		<item>
		<title>How to grep and display IP Address on Linux</title>
		<link>http://feedproxy.google.com/~r/planetmy/JdqA/~3/9eM5hmwyJ1w/</link>
		<comments>http://www.planetmy.com/blog/how-to-grep-and-display-ip-address-on-linux/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 03:34:46 +0000</pubDate>
		<dc:creator>Planet Malaysia</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Address]]></category>
		<category><![CDATA[eth]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[IPV4]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NIC]]></category>

		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=968</guid>
		<description><![CDATA[How to find out an IP Address on Linux is pretty simple by type &#8220;ifconfig&#8221; command.
Output:
# ifconfig
eth0    Link encap:Ethernet  HWaddr 01:2A:A1:3C:C3:27
inet addr:192.168.1.23  Bcast:192.168.1.255  Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:256125364 errors:0 dropped:0 overruns:0 frame:0
TX packets:203700834 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:240597045 (229.4 Mb)  TX bytes:3399069596 (3241.6 [...]]]></description>
			<content:encoded><![CDATA[<p>How to find out an <a href="http://www.planetmy.com/blog/tag/ip">IP</a> <a href="http://www.planetmy.com/blog/tag/address">Address</a> on <a href="http://www.planetmy.com/blog/tag/linux">Linux</a> is pretty simple by type &#8220;<em>ifconfig</em>&#8221; command.</p>
<p>Output:</p>
<p># ifconfig<br />
eth0    Link encap:Ethernet  HWaddr 01:2A:A1:3C:C3:27<br />
inet addr:192.168.1.23  Bcast:192.168.1.255  Mask:255.255.255.0<br />
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
RX packets:256125364 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:203700834 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:1000<br />
RX bytes:240597045 (229.4 Mb)  TX bytes:3399069596 (3241.6 Mb)<br />
Interrupt:16 Memory:f8000000-f8011100</p>
<p>lo        Link encap:Local Loopback<br />
inet addr:127.0.0.1  Mask:255.0.0.0<br />
UP LOOPBACK RUNNING  MTU:16436  Metric:1<br />
RX packets:4760967 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:4760967 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:0<br />
RX bytes:480898269 (458.6 Mb)  TX bytes:480898269 (458.6 Mb)</p>
<p>For some reason, you may want to display <a href="http://www.planetmy.com/blog/tag/ipaddress">IP</a> Address only. You can do it on multiple way and here you go:<br />
<span id="more-968"></span><br />
<span style="color: #0000ff;">Example 1:</span><br />
#ifconfig eth0 | grep &#8216;inet addr:&#8217; | cut -d: -f2<br />
192.168.1.1  Bcast</p>
<p><span style="color: #0000ff;">Example 2:</span><br />
#ifconfig | awk &#8216;/^eth/{s=$1;getline;print s,$1,$2}&#8217;<br />
eth1 inet addr:192.168.1.1</p>
<p><span style="color: #0000ff;">Example 3:</span><br />
#ifconfig eth0 | grep &#8216;inet addr:&#8217; | cut -d: -f2 | awk &#8216;{ print $1}&#8217;<br />
192.168.1.1</p>
<p><span style="color: #0000ff;">Example 4:</span><br />
#ip addr list eth1 |grep inet |cut -d&#8217; &#8216; -f6|cut -d/ -f1<br />
192.168.1.1</p>
<p><span style="color: #0000ff;">Example 5 </span>- IPV6:<br />
#ip addr list eth0 |grep &#8220;inet6 &#8221; |cut -d&#8217; &#8216; -f6|cut -d/ -f1</p>
<p><span style="color: #0000ff;">Example 6:</span><br />
#hostname -i<br />
192.168.1.1</p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-capture-putty-session-log/">How To Capture PUTTY Session Log</a></li>
<li><a href="http://www.planetmy.com/blog/how-to-add-date-and-time-to-your-bash-history-on-suse-linux/">How to Add Date And Time To Your Bash History on SuSE Linux</a></li>
<li><a href="http://www.planetmy.com/blog/rpm-segmentation-fault/">RPM Segmentation Fault</a></li>
<li><a href="http://www.planetmy.com/blog/introduce-server-fault/">Introduce Server Fault</a></li>
<li><a href="http://www.planetmy.com/blog/openvpn-route-issue/">OpenVPN route issue</a></li>
</ul><br />

<p><a href="http://feedads.g.doubleclick.net/~a/DOHasAbzRlxw4Np_xC8ZHI57oko/0/da"><img src="http://feedads.g.doubleclick.net/~a/DOHasAbzRlxw4Np_xC8ZHI57oko/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/DOHasAbzRlxw4Np_xC8ZHI57oko/1/da"><img src="http://feedads.g.doubleclick.net/~a/DOHasAbzRlxw4Np_xC8ZHI57oko/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/planetmy/JdqA/~4/9eM5hmwyJ1w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.planetmy.com/blog/how-to-grep-and-display-ip-address-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.planetmy.com/blog/how-to-grep-and-display-ip-address-on-linux/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic Page Served (once) in 1.120 seconds --><!-- Cached page served by WP-Cache -->
