<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>System Howtos and Tutorials</title>
	<atom:link href="http://sanhom.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sanhom.wordpress.com</link>
	<description>There is a difference between knowing the path and walking the path</description>
	<lastBuildDate>Wed, 02 Nov 2011 04:47:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sanhom.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>System Howtos and Tutorials</title>
		<link>http://sanhom.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sanhom.wordpress.com/osd.xml" title="System Howtos and Tutorials" />
	<atom:link rel='hub' href='http://sanhom.wordpress.com/?pushpress=hub'/>
		<item>
		<title>ปัญหา Error logging in.. Error while connecting. เมื่อใช้ vilogger บน vMA</title>
		<link>http://sanhom.wordpress.com/2011/06/21/%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-error-logging-in-error-while-connecting-%e0%b9%80%e0%b8%a1%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b9%83%e0%b8%8a%e0%b9%89-vilogger-%e0%b8%9a%e0%b8%99-vma/</link>
		<comments>http://sanhom.wordpress.com/2011/06/21/%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-error-logging-in-error-while-connecting-%e0%b9%80%e0%b8%a1%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b9%83%e0%b8%8a%e0%b9%89-vilogger-%e0%b8%9a%e0%b8%99-vma/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 16:53:50 +0000</pubDate>
		<dc:creator>sanhom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://sanhom.wordpress.com/?p=495</guid>
		<description><![CDATA[ปัญหา &#8220;Error logging in.. Error while connecting.&#8221; เมื่อใช้ vilogger บน vMA เมื่อต้องการจะ Enable logger daemon เพื่อ collect log file ของเครื่อง ESXi 4.1 แล้วผลของ log file ที่เครื่อง vMA /var/log/vmware/ ไม่มีการบันทึกโดยมีขนาดเป็น 0 KB -rw-r--r-- 1 root root 0 Jun 21 23:20 hostd.log -rw-r--r-- 1 root root 0 Jun 21 23:20 messages.log -rw-r--r-- 1 root root 0 Jun [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=495&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ปัญหา &#8220;Error logging in.. Error while connecting.&#8221; เมื่อใช้ vilogger บน vMA</p>
<p>เมื่อต้องการจะ Enable logger daemon เพื่อ collect log file ของเครื่อง ESXi 4.1 แล้วผลของ log file ที่เครื่อง vMA /var/log/vmware/ ไม่มีการบันทึกโดยมีขนาดเป็น 0 KB</p>
<pre>-rw-r--r-- 1 root root 0 Jun 21 23:20 hostd.log
-rw-r--r-- 1 root root 0 Jun 21 23:20 messages.log
-rw-r--r-- 1 root root 0 Jun 21 17:15 vpxa.log</pre>
<p>สามารถตรวจสอบปัญหาได้โดยการดู log ของเครื่อง vMA ได้ที่</p>
<pre>tail -f /var/log/vmware/vma/vilogd.log</pre>
<p><a href="http://sanhom.files.wordpress.com/2011/06/vilogger.png"><img class="size-medium wp-image-497 alignleft" title="vilogger" src="http://sanhom.files.wordpress.com/2011/06/vilogger.png?w=300&#038;h=92" alt="" width="300" height="92" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>วิธีแก้ปัญหา</strong><br />
1. stopped vilogger<br />
ทีเครื่อง vMA</p>
<pre>[vi-admin@vma vma]$ vifp listservers
192.168.247.135 ESXi
[vi-admin@vma vma]$ vifptarget -s 192.168.247.135
[vi-admin@vma vma][192.168.247.135]$ vilogger disable
Target Server: 192.168.247.135
hostd            ... Disabled
messages         ... Disabled
vpxa             ... Disabled
[vi-admin@vma vma][192.168.247.135]$

[vi-admin@vma vma][192.168.247.135]$ vifptarget -c
[vi-admin@vma vma]$ sudo /etc/init.d/vmware-vilogd restart
Password:
Stopping vmware-vilogd:                                    [  OK  ]
Starting vmware-vilogd:                                    [  OK  ]
[vi-admin@vma vma]$</pre>
<p>2. จากนั้นทำการ Removed all hosts from vifp</p>
<pre>[vi-admin@vma vma]$ vifp listservers
192.168.247.135 ESXi
[vi-admin@vma vma]$ vifp removeserver 192.168.247.135
[vi-admin@vma vma]$ vifp listservers
Error: No targets have been defined for this vMA.
[vi-admin@vma vma]$</pre>
<p>3. ทำการ Restart Service ของ vifpd</p>
<pre>[vi-admin@vma init.d]$ sudo /etc/init.d/vmware-vifpd restart
Password:
Stopping vmware-vifpd:                                     [  OK  ]
Starting vmware-vifpd:                                     [  OK  ]
[vi-admin@vma init.d]$</pre>
<p>4. ทำการ Add ESXi host ใหม่อีกครั้ง</p>
<pre>[vi-admin@vma vma]$ vifp listservers
Error: No targets have been defined for this vMA.
[vi-admin@vma vma]$ vifp addserver 192.168.247.135
root@192.168.247.135's password:
[vi-admin@vma vma]$ vifp listservers
192.168.247.135 ESXi
[vi-admin@vma vma]$</pre>
<p>5. ทำการลบ Folder ของ Host ที่อยู่ใน /var/log/vmware/</p>
<pre>[vi-admin@vma vma]$ rm -rf /var/log/vmware/192.168.247.135/</pre>
<p>6. จากนั้นทำการ Enable vilogger ใหม่อีกครั้ง</p>
<pre>[vi-admin@vma vma]$ vifptarget -s 192.168.247.135
[vi-admin@vma vma][192.168.247.135]$ vilogger enable
Target Server: 192.168.247.135
hostd            ... Enabled
messages         ... Enabled
vpxa             ... Enabled
[vi-admin@vma vma][192.168.247.135]$</pre>
<p>7. ตรวจสอบความถูกต้องอีกครั้ง</p>
<pre>tail -f /var/log/vmware/vma/vilogd.log</pre>
<p>Thanks: http://communities.vmware.com/message/1681309</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanhom.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanhom.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanhom.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanhom.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sanhom.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sanhom.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sanhom.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sanhom.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanhom.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanhom.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanhom.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanhom.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanhom.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanhom.wordpress.com/495/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=495&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sanhom.wordpress.com/2011/06/21/%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-error-logging-in-error-while-connecting-%e0%b9%80%e0%b8%a1%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b9%83%e0%b8%8a%e0%b9%89-vilogger-%e0%b8%9a%e0%b8%99-vma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e28513c3ecef4ea089818e4945f37b0f?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sanhom</media:title>
		</media:content>

		<media:content url="http://sanhom.files.wordpress.com/2011/06/vilogger.png?w=300" medium="image">
			<media:title type="html">vilogger</media:title>
		</media:content>
	</item>
		<item>
		<title>Running vMA  on VMware Workstation (Kernel Panic)</title>
		<link>http://sanhom.wordpress.com/2011/06/13/running-vma-on-vmware-workstation-kernel-panic/</link>
		<comments>http://sanhom.wordpress.com/2011/06/13/running-vma-on-vmware-workstation-kernel-panic/#comments</comments>
		<pubDate>Sun, 12 Jun 2011 17:10:21 +0000</pubDate>
		<dc:creator>sanhom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://sanhom.wordpress.com/?p=491</guid>
		<description><![CDATA[1. Remove the vMA from the VMware Workstation Inventory 2. Open the .vmx file and change the following to lines to be: scsi0.virtualDev = “lsilogic” guestOS = “rhel5-64″ Thanks : http://virtualkenneth.com/2010/07/28/running-vma-4-1-on-vmware-workstation/#comments<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=491&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. Remove the vMA from the VMware Workstation Inventory<br />
2. Open the .vmx file and change the following to lines to be:</p>
<p>scsi0.virtualDev = “lsilogic”<br />
guestOS = “rhel5-64″</p>
<p>Thanks : http://virtualkenneth.com/2010/07/28/running-vma-4-1-on-vmware-workstation/#comments</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanhom.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanhom.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanhom.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanhom.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sanhom.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sanhom.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sanhom.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sanhom.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanhom.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanhom.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanhom.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanhom.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanhom.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanhom.wordpress.com/491/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=491&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sanhom.wordpress.com/2011/06/13/running-vma-on-vmware-workstation-kernel-panic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e28513c3ecef4ea089818e4945f37b0f?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sanhom</media:title>
		</media:content>
	</item>
		<item>
		<title>Configure apt-get with proxy server</title>
		<link>http://sanhom.wordpress.com/2010/11/12/configure-apt-get-with-proxy-server/</link>
		<comments>http://sanhom.wordpress.com/2010/11/12/configure-apt-get-with-proxy-server/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 08:08:27 +0000</pubDate>
		<dc:creator>sanhom</dc:creator>
				<category><![CDATA[Command]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://sanhom.wordpress.com/?p=489</guid>
		<description><![CDATA[Configure apt-get with proxy server vim ~/.bashrc Code: export http_proxy=http://username:password@my.proxy.server:port/ export ftp_proxy=http://username:password@my.proxy.server:port/ OR $sudo vim /etc/apt/apt.conf Code: Acquire::http::Proxy "http://username:password@my.proxy.server:port"; Acquire::ftp::Proxy "ftp://username:password@my.proxy.server:port";<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=489&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Configure apt-get with proxy server</p>
<pre>vim  ~/.bashrc</pre>
<p>Code:</p>
<pre>export http_proxy=http://username:password@my.proxy.server:port/
export ftp_proxy=http://username:password@my.proxy.server:port/</pre>
<p>OR</p>
<pre>
$sudo vim /etc/apt/apt.conf
</pre>
<p>Code:</p>
<pre>
Acquire::http::Proxy "http://username:password@my.proxy.server:port";
Acquire::ftp::Proxy "ftp://username:password@my.proxy.server:port";
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanhom.wordpress.com/489/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanhom.wordpress.com/489/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanhom.wordpress.com/489/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanhom.wordpress.com/489/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sanhom.wordpress.com/489/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sanhom.wordpress.com/489/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sanhom.wordpress.com/489/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sanhom.wordpress.com/489/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanhom.wordpress.com/489/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanhom.wordpress.com/489/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanhom.wordpress.com/489/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanhom.wordpress.com/489/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanhom.wordpress.com/489/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanhom.wordpress.com/489/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=489&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sanhom.wordpress.com/2010/11/12/configure-apt-get-with-proxy-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e28513c3ecef4ea089818e4945f37b0f?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sanhom</media:title>
		</media:content>
	</item>
		<item>
		<title>How to export $PATH variable in Ubuntu</title>
		<link>http://sanhom.wordpress.com/2010/11/03/how-to-export-path-variable-in-ubuntu/</link>
		<comments>http://sanhom.wordpress.com/2010/11/03/how-to-export-path-variable-in-ubuntu/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 05:59:40 +0000</pubDate>
		<dc:creator>sanhom</dc:creator>
				<category><![CDATA[Command]]></category>

		<guid isPermaLink="false">http://sanhom.wordpress.com/?p=487</guid>
		<description><![CDATA[How to export $PATH variable in Ubuntu sudo vim /etc/profile.d/scrip_name.sh export PATH=your_path:$PATH sudo chmod a+x script_name.sh<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=487&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>How to export $PATH variable in Ubuntu</p>
<pre>
sudo vim /etc/profile.d/scrip_name.sh
</pre>
<pre>
export PATH=your_path:$PATH
</pre>
<pre>
sudo chmod a+x script_name.sh
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanhom.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanhom.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanhom.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanhom.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sanhom.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sanhom.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sanhom.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sanhom.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanhom.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanhom.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanhom.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanhom.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanhom.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanhom.wordpress.com/487/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=487&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sanhom.wordpress.com/2010/11/03/how-to-export-path-variable-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e28513c3ecef4ea089818e4945f37b0f?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sanhom</media:title>
		</media:content>
	</item>
		<item>
		<title>How to shutdown opmanager (command line)</title>
		<link>http://sanhom.wordpress.com/2010/11/03/how-to-shutdown-opmanager-command-line/</link>
		<comments>http://sanhom.wordpress.com/2010/11/03/how-to-shutdown-opmanager-command-line/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 04:40:54 +0000</pubDate>
		<dc:creator>sanhom</dc:creator>
				<category><![CDATA[Opmanager]]></category>

		<guid isPermaLink="false">http://sanhom.wordpress.com/?p=485</guid>
		<description><![CDATA[How to shutdown opmanager (command line) sh ShutDownOpManager.sh ./ShutDownOpManager.sh admin admin<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=485&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>How to shutdown opmanager (command line)</p>
<p>sh ShutDownOpManager.sh    </p>
<pre>
./ShutDownOpManager.sh admin admin
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanhom.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanhom.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanhom.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanhom.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sanhom.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sanhom.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sanhom.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sanhom.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanhom.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanhom.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanhom.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanhom.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanhom.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanhom.wordpress.com/485/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=485&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sanhom.wordpress.com/2010/11/03/how-to-shutdown-opmanager-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e28513c3ecef4ea089818e4945f37b0f?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sanhom</media:title>
		</media:content>
	</item>
		<item>
		<title>Intel Network Connectivity :VLAN trunking</title>
		<link>http://sanhom.wordpress.com/2010/10/19/intel-network-connectivity-vlan-trunking/</link>
		<comments>http://sanhom.wordpress.com/2010/10/19/intel-network-connectivity-vlan-trunking/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 15:36:33 +0000</pubDate>
		<dc:creator>sanhom</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://sanhom.wordpress.com/?p=481</guid>
		<description><![CDATA[Intel Network Connectivity :VLAN trunking Download: http://www.intel.com/support/network/sb/cs-006120.htm After install: Computer -&#62; Properties -&#62; Device Manager -&#62; Network adapters -&#62; Intel(R) ___ Gigabit Network Connection -&#62; Properties -&#62; VLAN<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=481&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Intel Network Connectivity :VLAN trunking<br />
Download: <a href="http://www.intel.com/support/network/sb/cs-006120.htm">http://www.intel.com/support/network/sb/cs-006120.htm</a></p>
<p>After install: Computer -&gt; Properties -&gt; Device Manager -&gt; Network adapters -&gt; Intel(R) ___ Gigabit Network Connection -&gt; Properties -&gt; VLAN</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanhom.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanhom.wordpress.com/481/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanhom.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanhom.wordpress.com/481/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sanhom.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sanhom.wordpress.com/481/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sanhom.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sanhom.wordpress.com/481/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanhom.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanhom.wordpress.com/481/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanhom.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanhom.wordpress.com/481/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanhom.wordpress.com/481/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanhom.wordpress.com/481/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=481&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sanhom.wordpress.com/2010/10/19/intel-network-connectivity-vlan-trunking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e28513c3ecef4ea089818e4945f37b0f?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sanhom</media:title>
		</media:content>
	</item>
		<item>
		<title>rsync without password</title>
		<link>http://sanhom.wordpress.com/2010/09/15/rsync-without-password/</link>
		<comments>http://sanhom.wordpress.com/2010/09/15/rsync-without-password/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 20:51:39 +0000</pubDate>
		<dc:creator>sanhom</dc:creator>
				<category><![CDATA[Command]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://sanhom.wordpress.com/?p=477</guid>
		<description><![CDATA[Remote file copy &#8211; Synchronize file trees across local disks, directories or across a network. Syntax # Local file to Local file rsync [option]... Source [Source]... Dest # Local to Remote rsync [option]... Source [Source]... [user@]host:Dest rsync [option]... Source [Source]... [user@]host::Dest # Remote to Local rsync [option]... [user@]host::Source [Dest] rsync [option]... [user@]host:SourceDest rsync [option]... rsync://[user@]host[:PORT]/Source [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=477&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Remote file copy &#8211; Synchronize file trees across local disks, directories or across a network.</p>
<pre>
Syntax

# Local file to Local file
       rsync [option]... Source [Source]... Dest

# Local to Remote
       rsync [option]... Source [Source]... [user@]host:Dest

       rsync [option]... Source [Source]... [user@]host::Dest

# Remote to Local
       rsync [option]... [user@]host::Source [Dest]

       rsync [option]... [user@]host:SourceDest

       rsync [option]... rsync://[user@]host[:PORT]/Source [Dest]
</pre>
<p>ตัวอย่าง rsync แบบ Incremental และเหมือนกับ source ทุกอย่างไม่ว่าจะแก้ไขหรือลบ file</p>
<pre>
root@ao:~# rsync -ravlz --progress --update --delete /var/lib/mysql root@192.168.16.20:/var/lib/mysql/
</pre>
<p>ตัวอย่างการทำ rsync แบบไม่ต้องยืนยัน password<br />
192.168.16.10  &#8212;-&gt; 192.168.16.20</p>
<p>ที่เครื่อง 192.168.16.10<br />
1. root@ao:~# ssh-keygen -t dsa -b 1024<br />
2. root@ao:~# scp ~/.ssh/id_dsa.pub root@192.168.16.10:/root/.ssh</p>
<p>จากนั้นรีโมทไปที่เครื่อง 192.168.16.20<br />
3. root@ao1:~# cd /root/.ssh<br />
4. root@ao1:~# touch authorized_keys<br />
5. root@ao1:~# chmod 600 authorized_keys<br />
6. root@ao1:~# cat id_dsa.pub &gt;&gt; authorized_keys</p>
<p>กลับมาที่เครื่อง 192.168.16.10<br />
7. root@ao:~#rm .ssh/known_hosts </p>
<p>Ref: <a href="http://ss64.com/bash/rsync.html">http://ss64.com/bash/rsync.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanhom.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanhom.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanhom.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanhom.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sanhom.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sanhom.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sanhom.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sanhom.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanhom.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanhom.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanhom.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanhom.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanhom.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanhom.wordpress.com/477/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=477&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sanhom.wordpress.com/2010/09/15/rsync-without-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e28513c3ecef4ea089818e4945f37b0f?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sanhom</media:title>
		</media:content>
	</item>
		<item>
		<title>Mounting iso file</title>
		<link>http://sanhom.wordpress.com/2010/09/15/mounting-iso-file/</link>
		<comments>http://sanhom.wordpress.com/2010/09/15/mounting-iso-file/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 20:34:08 +0000</pubDate>
		<dc:creator>sanhom</dc:creator>
				<category><![CDATA[Command]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://sanhom.wordpress.com/?p=475</guid>
		<description><![CDATA[root@ao:~# mount -o loop imagefile.iso /destination/path<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=475&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>
root@ao:~# mount -o loop imagefile.iso /destination/path
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanhom.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanhom.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanhom.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanhom.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sanhom.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sanhom.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sanhom.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sanhom.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanhom.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanhom.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanhom.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanhom.wordpress.com/475/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanhom.wordpress.com/475/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanhom.wordpress.com/475/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=475&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sanhom.wordpress.com/2010/09/15/mounting-iso-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e28513c3ecef4ea089818e4945f37b0f?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sanhom</media:title>
		</media:content>
	</item>
		<item>
		<title>ssh fail (Remote host identification has changed!)</title>
		<link>http://sanhom.wordpress.com/2010/09/15/ssh-fail-remote-host-identification-has-changed/</link>
		<comments>http://sanhom.wordpress.com/2010/09/15/ssh-fail-remote-host-identification-has-changed/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 20:32:07 +0000</pubDate>
		<dc:creator>sanhom</dc:creator>
				<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://sanhom.wordpress.com/?p=473</guid>
		<description><![CDATA[เมื่อมีการเปลี่ยนhost แล้วเครื่องที่เป็น client จะ remote ไปที่เครื่องs server แล้วปรากฎว่าเป็น error ดังนี้ @warning : Remote host identification has changed!@ วิธีแก้ไห้ลบ file know_hosts ทิ้ง root@ao:~# rm .ssh/know_hosts<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=473&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>เมื่อมีการเปลี่ยนhost แล้วเครื่องที่เป็น client จะ remote ไปที่เครื่องs server แล้วปรากฎว่าเป็น error ดังนี้</p>
<pre>
@warning : Remote host identification has changed!@
</pre>
<p>วิธีแก้ไห้ลบ file know_hosts ทิ้ง</p>
<pre>
root@ao:~# rm .ssh/know_hosts
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanhom.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanhom.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanhom.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanhom.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sanhom.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sanhom.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sanhom.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sanhom.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanhom.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanhom.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanhom.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanhom.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanhom.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanhom.wordpress.com/473/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=473&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sanhom.wordpress.com/2010/09/15/ssh-fail-remote-host-identification-has-changed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e28513c3ecef4ea089818e4945f37b0f?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sanhom</media:title>
		</media:content>
	</item>
		<item>
		<title>mutt mail agent send mail</title>
		<link>http://sanhom.wordpress.com/2010/09/15/mutt-mail-agent-send-mail/</link>
		<comments>http://sanhom.wordpress.com/2010/09/15/mutt-mail-agent-send-mail/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 20:26:10 +0000</pubDate>
		<dc:creator>sanhom</dc:creator>
				<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://sanhom.wordpress.com/?p=471</guid>
		<description><![CDATA[Script สำหรับส่งเมลของ mutt #!/bin/sh for ((i=0; i&#60;5; i++)); do mutt -s &#34;Title mail&#34; -a /tmp/attach.file to@user.com &#60; /tmp/mailbody.file done<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=471&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Script สำหรับส่งเมลของ mutt</p>
<pre>
#!/bin/sh
for ((i=0; i&lt;5; i++));
do
mutt -s &quot;Title mail&quot; -a /tmp/attach.file to@user.com &lt; /tmp/mailbody.file
done
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanhom.wordpress.com/471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanhom.wordpress.com/471/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanhom.wordpress.com/471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanhom.wordpress.com/471/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sanhom.wordpress.com/471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sanhom.wordpress.com/471/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sanhom.wordpress.com/471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sanhom.wordpress.com/471/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanhom.wordpress.com/471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanhom.wordpress.com/471/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanhom.wordpress.com/471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanhom.wordpress.com/471/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanhom.wordpress.com/471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanhom.wordpress.com/471/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanhom.wordpress.com&amp;blog=8782373&amp;post=471&amp;subd=sanhom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sanhom.wordpress.com/2010/09/15/mutt-mail-agent-send-mail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e28513c3ecef4ea089818e4945f37b0f?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sanhom</media:title>
		</media:content>
	</item>
	</channel>
</rss>
