<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8543517995066619584</id><updated>2011-11-29T04:06:09.537-08:00</updated><category term='redhat clustering'/><title type='text'>Open Source Solutions.....</title><subtitle type='html'>Do contact on nilesh_patil82@yahoo.com</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>53</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-5099743975485557891</id><published>2010-06-15T06:06:00.001-07:00</published><updated>2010-06-15T09:28:06.103-07:00</updated><title type='text'>firefox and java plugin on linux</title><content type='html'>1. Download jre-6u20-linux-x64.bin&lt;br /&gt;&lt;br /&gt;2. ./jre-6u20-linux-x64.bin&lt;br /&gt;&lt;br /&gt;3. ln -s /tmp/jre1.6.0_21/lib/amd64/libjavaplugin_jni.so /usr/lib/mozilla/plugins/libjavaplugin.so&lt;br /&gt;&lt;br /&gt;4. ls -al /usr/lib/mozilla/plugins/libjavaplugin.so&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-5099743975485557891?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/5099743975485557891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=5099743975485557891' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/5099743975485557891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/5099743975485557891'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2010/06/firefox-and-java-plugin-on-linux.html' title='firefox and java plugin on linux'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-5640041563586338735</id><published>2010-06-14T23:14:00.000-07:00</published><updated>2010-06-14T23:24:20.219-07:00</updated><title type='text'>update rhel4 packages</title><content type='html'>You can use "update -u" to update the packages on RHEL4.&lt;br /&gt;&lt;br /&gt;If it does not give you any indication of package updation try to clear cache (rm -rf /var/spool/up2date/*) and fire above command again.&lt;br /&gt;&lt;br /&gt;Even if above method doesnt work. Login to your respective rhn satellite. &lt;br /&gt;1. Select Critical, Non-critical packages. &lt;br /&gt;2. Select All.&lt;br /&gt;3. at the bottom, select update packages&lt;br /&gt;4. then confirm.&lt;br /&gt;5. ssh to the respective system, and run "rhn_update -vvv". It should show updating package details.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-5640041563586338735?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/5640041563586338735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=5640041563586338735' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/5640041563586338735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/5640041563586338735'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2010/06/update-rhel4-packages.html' title='update rhel4 packages'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-7692766341036961247</id><published>2010-04-26T03:23:00.001-07:00</published><updated>2010-04-26T03:23:59.548-07:00</updated><title type='text'>Good article on iscsi</title><content type='html'>http://www.idevelopment.info/data/Unix/Linux/LINUX_ConnectingToAniSCSITargetWithOpen-iSCSIInitiatorUsingLinux.shtml#About%20the%20Author&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-7692766341036961247?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/7692766341036961247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=7692766341036961247' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/7692766341036961247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/7692766341036961247'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2010/04/good-article-on-iscsi.html' title='Good article on iscsi'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-2320518108180191922</id><published>2010-04-15T04:23:00.000-07:00</published><updated>2010-04-15T04:43:01.439-07:00</updated><title type='text'>How to select specific storage ?</title><content type='html'>What is largest amount of data do you manage? &lt;br /&gt;&lt;br /&gt;How much data is significant for you? &lt;br /&gt;&lt;br /&gt;have you planned about deletion of data?&lt;br /&gt;&lt;br /&gt;how ofter will you delete data? schedule? &lt;br /&gt; &lt;br /&gt;Who is gone access your data? ex. applications, servers ?&lt;br /&gt;&lt;br /&gt;are you planning to host your applications as well? &lt;br /&gt;&lt;br /&gt;how must data application gone consume? &lt;br /&gt;&lt;br /&gt;how much your application data may grow? &lt;br /&gt;&lt;br /&gt;How busy will be your storage? &lt;br /&gt;&lt;br /&gt;applications future plans?&lt;br /&gt;&lt;br /&gt;How much data may grow in future? &lt;br /&gt;&lt;br /&gt;If data not available, how does unavailability cost your org?&lt;br /&gt;&lt;br /&gt;are you planning to archive data? &lt;br /&gt;&lt;br /&gt;Why do you want to archive data?&lt;br /&gt;&lt;br /&gt;how ofter are you planning to archive data? &lt;br /&gt;&lt;br /&gt;for how long will you keep archive data? &lt;br /&gt;&lt;br /&gt;existing data managements issues? &lt;br /&gt;&lt;br /&gt;data center to manage data storage equipment? &lt;br /&gt;&lt;br /&gt;Enough space in datacenter?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-2320518108180191922?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/2320518108180191922/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=2320518108180191922' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/2320518108180191922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/2320518108180191922'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2010/04/how-to-select-specific-storage.html' title='How to select specific storage ?'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-5855164949407099501</id><published>2010-04-13T23:29:00.000-07:00</published><updated>2010-04-13T23:36:30.490-07:00</updated><title type='text'>kickstart fully automatic installtion for rhel</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt; Please remember options may vary depend on OS, network settings, os update version etc.&lt;br /&gt;&lt;br /&gt;This fully automatic installation cfg is for RedHat 5 OS.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;install&lt;br /&gt;text&lt;br /&gt;nfs --server=192.168.1.9 --opts=tcp --dir=/pub/rhel/released/RHEL-5-Client/U5/i386/os&lt;br /&gt;keyboard us&lt;br /&gt;lang en_US&lt;br /&gt;key --skip&lt;br /&gt;reboot --eject&lt;br /&gt;selinux --disabled&lt;br /&gt;firewall --disabled&lt;br /&gt;rootpw redhat&lt;br /&gt;&lt;br /&gt;timezone --utc Asia/Kolkata&lt;br /&gt;network --onboot yes --bootproto dhcp --gateway 192.168.1.1 --nameserver 192.168.1.10&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#Setup default services&lt;br /&gt;services --disabled=cups,messagebus,ip6tables,isdn,pcmcia,hidd,bluetooth --enabled=ntpd,nscd&lt;br /&gt;&lt;br /&gt;# Disk Setup&lt;br /&gt;&lt;br /&gt;bootloader --location=mbr --append="rhgb console=tty0 console=ttyS0,9600"&lt;br /&gt;clearpart --all&lt;br /&gt;&lt;br /&gt;# auto disk partition&lt;br /&gt;part /boot --fstype ext3 --size=100 &lt;br /&gt;part swap --fstype swap --size=2048 &lt;br /&gt;part pv.1 --size=0 --grow &lt;br /&gt;volgroup AutoVolGroup pv.1&lt;br /&gt;logvol / --vgname=AutoVolGroup --name=root --size=1 --grow &lt;br /&gt;&lt;br /&gt;%packages&lt;br /&gt;@core&lt;br /&gt;@system-tools&lt;br /&gt;&lt;br /&gt;%post&lt;br /&gt;cat &lt;&lt;EOF &gt;&gt; /etc/motd&lt;br /&gt;Lab automatic kickstart installation.&lt;br /&gt;Installed `date`&lt;br /&gt;EOF&lt;br /&gt;cat /etc/motd &gt;&gt; /root/ks.cfg&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-5855164949407099501?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/5855164949407099501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=5855164949407099501' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/5855164949407099501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/5855164949407099501'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2010/04/kickstart-fully-automatic-installtion.html' title='kickstart fully automatic installtion for rhel'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-6924387107915301984</id><published>2010-04-07T22:16:00.000-07:00</published><updated>2010-04-07T22:19:18.470-07:00</updated><title type='text'>disable selinux on the fly</title><content type='html'>To disable selinux on the fly you should run following command in terminal, &lt;br /&gt;setenforce 0&lt;br /&gt;&lt;br /&gt;to disabled it permanently, open /etc/selinux/config and change value to SELINUX=disabled&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-6924387107915301984?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/6924387107915301984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=6924387107915301984' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/6924387107915301984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/6924387107915301984'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2010/04/disable-selinux-on-fly.html' title='disable selinux on the fly'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-6786455429527087142</id><published>2010-02-19T01:07:00.000-08:00</published><updated>2010-02-19T01:09:47.849-08:00</updated><title type='text'>How to upgrade firmware on Dell DRAC?</title><content type='html'>DRAC stands for Dell Remote Access Controller. The DRAC on current models is a separate chipset and board that is connected to the server main board with its own network interface as well as a direct configuration accessible during system initialization.&lt;br /&gt;&lt;br /&gt;DRAC has a default TCP/IP address and can be change during system initialization&lt;br /&gt; &lt;br /&gt;I found dmidecode currently does not return any information about DRAC card on the system. If you have system tag with you can check online if systems include DRAC card.&lt;br /&gt;    * Put you system tag here, &lt;br /&gt;          http://support.euro.dell.com/support/topics/topic.aspx/emea/shared/support/my_systems_info/en/details?c=uk&amp;l=en&amp;s=gen&lt;br /&gt;    * Click on "Original System configuration"&lt;br /&gt;    * Search for "DRAC"&lt;br /&gt; &lt;br /&gt;Here is firmware upgrade process.&lt;br /&gt;&lt;br /&gt;    * Download the firmware for your system, In my case it was Power Edge 2950 system. I found firware versions here.&lt;br /&gt;&lt;br /&gt;    * Download windows zipped exe file and extract it.There should be only one file named "firmimg.d5".&lt;br /&gt;&lt;br /&gt;    * Copy the same to your tftp server at /tftpboot/pxelinux.cfg/ location. (Can share it and mount on tftpserver or use WinSCP to copy files to remote unix system) &lt;br /&gt; &lt;br /&gt;    * Login to drac server using the IP assigned to DRAC. &lt;br /&gt;          Before upgradation firmware version&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;[root@npatil ~]# ssh drac-ip&lt;br /&gt;root@drac-ip's password:&lt;br /&gt;&lt;br /&gt;Dell Remote Access Controller 5 (DRAC 5)&lt;br /&gt;Firmware Version 1.0 (Build 06.05.12)&lt;br /&gt; &lt;br /&gt;$ racadm fwupdate -g -u -a tftpserver-ip-address -d firmimg.d5&lt;br /&gt;Firmware update completed successfully. The RAC is in the process of        &lt;br /&gt;resetting. Please wait up to a minute for this to complete.&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;br /&gt;&lt;br /&gt;          Please do not make any changes in DRAC configuration while doing firmware upgradation.&lt;br /&gt;&lt;br /&gt;          It may disturb upgrade process.&lt;br /&gt;&lt;br /&gt;          After upgradation Firmware Version&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;[root@npatil ~]# ssh drac-ip&lt;br /&gt;root@drac-ip's password:&lt;br /&gt;&lt;br /&gt;Dell Remote Access Controller 5 (DRAC 5)&lt;br /&gt;Firmware Version 1.20 (Build 07.03.02)&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-6786455429527087142?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/6786455429527087142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=6786455429527087142' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/6786455429527087142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/6786455429527087142'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2010/02/how-to-upgrade-firmware-on-dell-drac.html' title='How to upgrade firmware on Dell DRAC?'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-2015714243743877838</id><published>2010-02-07T22:22:00.001-08:00</published><updated>2010-02-08T05:15:06.090-08:00</updated><title type='text'>SAN terminologies</title><content type='html'>Here I am trying to put every definition related to SAN on single page. Its a collective information from different sites. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AoE: ATA over Ethernet:&lt;/span&gt; its a network protocol designed to access SATA storage devices over the Ethernet networks. AoE does not rely on network layers above Ethernet, such as IP and TCP. &lt;br /&gt;The advantage of AoE is that you don't have the overhead of translating ATA to SCSI and then back to ATA (if you are using ATA drives). So there is a performance pickup.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;NBD:&lt;/span&gt; The Linux Network Block Device (NBD) is a device driver extension to the Linux kernel. With the NBD device driver you can create a TCP/IP network connection between your local Linux system and a server program on a remote (not necessarily Linux) computer. But NBD has some limitations in terms of read/write operation and using NBD as a root file system. &lt;br /&gt;Server processing load for iSCSI is much higher than AoE for equivalent throughput. AoE can spare processing cycles. iSCSI requires TCP/IP and its requisite complexity.&lt;br /&gt;&lt;br /&gt;ENBD- Enhanced Network Block Device&lt;br /&gt;GNBD- Global Network Block Device &lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;WWPN:&lt;/span&gt; World Wide Port Name. A globally unique identifier for a port which allows certain applications to access the port. The FC switches discover the WWPN of a device or host and assign a port address to the device. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Multipathing:&lt;/span&gt; When transferring data between the host server and storage, the SAN uses a multipathing technique. Multipathing allows you to have more than one physical path from the Server host to a LUN on a storage array.&lt;br /&gt;If a default path or any component along the path—HBA, cable, switch port, or storage processor—fails, the server selects another of the available paths. The process of detecting a failed path and switching to another is called path failover.&lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;An active/active disk array,&lt;/span&gt; which allows access to the LUNs simultaneously through all the storage processors that are available without significant performance degradation. All the paths are active at all times (unless a path fails). &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;An active/passive disk array,&lt;/span&gt; in which one SP is actively servicing a given LUN. The other SP acts as backup for the LUN and may be actively servicing other LUN I/O. I/O can be sent only to an active processor. If the primary storage processor fails, one of the secondary storage processors becomes active, either automatically or through administrator intervention.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-2015714243743877838?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/2015714243743877838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=2015714243743877838' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/2015714243743877838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/2015714243743877838'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2010/02/san-terminologies.html' title='SAN terminologies'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-2351726162392397145</id><published>2009-10-26T05:58:00.002-07:00</published><updated>2009-10-26T22:38:13.099-07:00</updated><title type='text'>Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration</title><content type='html'>Install php package and it will resolve the issue.&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;yum install php&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-2351726162392397145?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/2351726162392397145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=2351726162392397145' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/2351726162392397145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/2351726162392397145'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/10/invalid-command-phpflag-perhaps.html' title='Invalid command &apos;php_flag&apos;, perhaps misspelled or defined by a module not included in the server configuration'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-3555625489229385024</id><published>2009-09-16T05:30:00.000-07:00</published><updated>2009-09-16T05:48:36.069-07:00</updated><title type='text'>how to configure APC pdu using minicom.</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Prerequisite:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    PDU installation with proper network and console connection.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Configuration:&lt;br /&gt;  1. Run minicom -s -c on&lt;br /&gt;    -s - Setup. It has different option to setup your console. It edits /etc/minirc.dfl which is default to store configuration.&lt;br /&gt;    -c It usage color's on console.&lt;br /&gt;&lt;br /&gt;    Note: you can even run only "minicom -s"&lt;br /&gt;&lt;br /&gt;    Your screen should be like this,&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;            ┌─────[configuration]───-──┐&lt;br /&gt;            │ Filenames and paths               │&lt;br /&gt;            │ File transfer protocols             │&lt;br /&gt;            │ Serial port setup                     │&lt;br /&gt;            │ Modem and dialing                 │&lt;br /&gt;            │ Screen and keyboard              │&lt;br /&gt;            │ Save setup as dfl                    │&lt;br /&gt;            │ Save setup as..                      │&lt;br /&gt;            │ Exit                                        │&lt;br /&gt;            │ Exit from Minicom                   │&lt;br /&gt;            └──────────────────-─┘&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;  2. Select serial port setup option to select connect to correct serial device. I have terminated serial console cable from PDU to my Linux box so my device was /dev/ttyS0&lt;br /&gt;&lt;br /&gt; It may differ depend on OS.&lt;br /&gt;&lt;br /&gt; &lt;blockquote&gt;   ┌────────────────────────────────────┐&lt;br /&gt;    │ A -    Serial Device      : /dev/ttyS0                                 │&lt;br /&gt;    │ B - Lockfile Location     : /var/lock                                    │&lt;br /&gt;    │ C -   Callin Program      :                                                  │&lt;br /&gt;    │ D -  Callout Program      :                                                │&lt;br /&gt;    │ E -    Bps/Par/Bits       : 9600 8N1                                   │&lt;br /&gt;    │ F - Hardware Flow Control : No                                     │&lt;br /&gt;    │ G - Software Flow Control : No                                      │&lt;br /&gt;    │                                                                                        │&lt;br /&gt;    │    Change which setting?                                               │&lt;br /&gt;    └────────────────────────────────────┘&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt; 3. I had to set Hardware Flow Control to No as it was Yes by default.&lt;br /&gt;&lt;br /&gt; 4. Choose Save setup as dfl to save the configuration. By default it save configuration in /etc/minirc.dfl. Here is my minirc.dfl.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;    # Machine-generated file - use "minicom -s" to change parameters.&lt;br /&gt;     pr port             /dev/ttyS0&lt;br /&gt;     pu baudrate         9600&lt;br /&gt;     pu bits             8&lt;br /&gt;     pu parity           N&lt;br /&gt;     pu stopbits         1&lt;br /&gt;     pu rtscts           No&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt; 5. Once you save and exit from the setup. It intitialize the serial console and gives you access to PDU. The next screen would be something like this,&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;Welcome to minicom 2.1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n&lt;br /&gt;Compiled on Jul 26 2006, 06:38:09.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Press CTRL-A Z for help on special keys&lt;br /&gt;                                                                                                                                                          &lt;br /&gt;User Name : apc                                                                           &lt;br /&gt;Password  : ***&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;br /&gt;&lt;br /&gt; 6. Default username and password for apc PDU's are apc/apc.&lt;br /&gt; &lt;br /&gt;&lt;blockquote&gt;American Power Conversion               Network Management Card AOS      v3.7.0&lt;br /&gt;(c) Copyright 2008 All Rights Reserved  Rack PDU APP                     v3.7.0&lt;br /&gt;----------------------------------------------------------------------------------------------------------&lt;br /&gt;Name      : Engineering Rack PDU                      Date : 29.03.2000&lt;br /&gt;Contact   : Nilesh Patil                              Time : 19:23:22&lt;br /&gt;Location  : Server Room 1                             User : Administrator&lt;br /&gt;Up Time   : 0 Days 5 Hours 0 Minutes                  Stat : P+ N+ A+&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Switched Rack PDU: Communication Established&lt;br /&gt;&lt;br /&gt;------- Control Console -------------------------------------------------------&lt;br /&gt;&lt;br /&gt;     1- Device Manager&lt;br /&gt;     2- Network&lt;br /&gt;     3- System&lt;br /&gt;     4- Logout&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;     &lt;ESC&gt;- Main Menu, &lt;ENTER&gt;- Refresh, &lt;CTRL-L&gt;- Event Log&lt;br /&gt;&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt; 7. Select 2-Network option to configure network. You can define network settings like ip, netmask, gateway etc.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;     ------- Network ---------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;     1- TCP/IP&lt;br /&gt;     2- DNS&lt;br /&gt;     3- Ping Utility&lt;br /&gt;     4- FTP Server&lt;br /&gt;     5- Telnet/SSH&lt;br /&gt;     6- Web/SSL/TLS&lt;br /&gt;     7- Email&lt;br /&gt;     8- SNMP&lt;br /&gt;     9- Syslog&lt;br /&gt;    10- ISX Protocol&lt;br /&gt;&lt;br /&gt;     &lt;ESC&gt;- Back, &lt;ENTER&gt;- Refresh, &lt;CTRL-L&gt;- Event Log&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; 8. Likewise you can configure your PDU as per your need.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-3555625489229385024?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/3555625489229385024/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=3555625489229385024' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/3555625489229385024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/3555625489229385024'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/09/how-to-configure-apc-pdu-using-minicom.html' title='how to configure APC pdu using minicom.'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-193527909762984089</id><published>2009-08-26T04:21:00.000-07:00</published><updated>2009-08-26T04:30:19.861-07:00</updated><title type='text'>How to setup rsync</title><content type='html'>If you want to run rsync as a daemon make sure following thing.&lt;br /&gt; - rsync is not hashed in &lt;span style="font-style:italic;"&gt;/etc/services&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; - I have created following script to start rsync daemon which uses &lt;span style="font-style:italic;"&gt;/etc/rsyncd.conf&lt;/span&gt; file&lt;br /&gt;&lt;br /&gt;  ######### Creating start/stop script ..... &lt;span style="font-style:italic;"&gt;/etc/init.d/rc.d/rsyncd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt; #!/bin/sh&lt;br /&gt; # Rsyncd This shell script takes care of starting and stopping the rsync daemon&lt;br /&gt; # description: Rsync is an awesome replication tool.&lt;br /&gt;&lt;br /&gt; # Source function library.&lt;br /&gt; . /etc/rc.d/init.d/functions&lt;br /&gt; &lt;br /&gt; [ -f /usr/bin/rsync ] || exit 0&lt;br /&gt; &lt;br /&gt; case "$1" in&lt;br /&gt; start)&lt;br /&gt; action "Starting rsyncd: " /usr/bin/rsync --daemon&lt;br /&gt; ;;&lt;br /&gt; stop)&lt;br /&gt; action "Stopping rsyncd: " killall rsync&lt;br /&gt; ;;&lt;br /&gt; *)&lt;br /&gt; echo "Usage: rsyncd {start|stop}"&lt;br /&gt; exit 1&lt;br /&gt; esac&lt;br /&gt; exit 0&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;########## &lt;br /&gt;&lt;br /&gt;######### Create /etc/rsyncd.conf file&lt;br /&gt;&lt;br /&gt; &lt;span style="font-style:italic;"&gt;### Rsync Configurations ###&lt;br /&gt; uid = nobody&lt;br /&gt; gid = nobody&lt;br /&gt; use chroot = no&lt;br /&gt; max connections = 10&lt;br /&gt; syslog facility = local5&lt;br /&gt; pid file = /var/run/rsyncd.pid&lt;br /&gt; motd file = /etc/rsyncd.motd&lt;br /&gt; lock file = /var/run/rsync.lock&lt;br /&gt;  &lt;br /&gt; [daily_backup]&lt;br /&gt;         path = /backup/&lt;br /&gt;         auth users = backup&lt;br /&gt;         comment = Main backup directory.&lt;br /&gt; ####    secrets file = /etc/rsyncd.secrets&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;IMP NOTE: &lt;br /&gt; We should take care of trailing "/" while specifying the source directory for data copying. &lt;br /&gt; for example, &lt;br /&gt;  &lt;br /&gt; &lt;span style="font-style:italic;"&gt;rsync -avz -e ssh remoteuser@remotehost:/remoterdir/data/for/copy/   /local/data/dir&lt;/span&gt;&lt;br /&gt; &lt;br /&gt; Above example means that /local/data/dir must be available to to receive data from /remoterdir/data/for/copy/, otherwise rsync will simply download all the files into the path given as destination.&lt;br /&gt;&lt;br /&gt; &lt;span style="font-style:italic;"&gt;rsync -avz -e ssh remoteuser@remotehost:/remoterdir/data/for/copy   /local/data/dir&lt;/span&gt;&lt;br /&gt; in this case "copy" directory will be created first under /local/data/dir directory and data will be populated from remote host.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have created script to copy data remotely.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;#!/bin/bash&lt;br /&gt;# Script to copy data on remote machine.&lt;br /&gt;&lt;br /&gt;RSYNC=/usr/bin/rsync&lt;br /&gt;RSSH=/usr/bin/ssh&lt;br /&gt;RUSER=backup&lt;br /&gt;RHOST=backup.remote.host.com&lt;br /&gt;RDATABASE=/backup/Database&lt;br /&gt;RDIR=/backup/Directory/&lt;br /&gt;&lt;br /&gt;$RSYNC -avz -e $RSSH /backup/daily/ $RUSER@$RHOST:$RDATABASE/MySQL/&lt;br /&gt;$RSYNC -avz -e $RSHH /var/www/html/ $RUSER@$RHOST:$RDIR&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Please generate password less keys to copy data remotely without interruption. Use "ssh-keygen"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-193527909762984089?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/193527909762984089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=193527909762984089' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/193527909762984089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/193527909762984089'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/08/how-to-setup-rsync.html' title='How to setup rsync'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-4656566264480373405</id><published>2009-08-24T05:05:00.001-07:00</published><updated>2009-08-24T06:04:38.357-07:00</updated><title type='text'>Postgresql backup and restore.</title><content type='html'>First method using pg_dump and second one is file system level backup.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Dump level Backup:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;pg_dump dbname &gt; outfile&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Options available with pg_dump,&lt;br /&gt;-h &lt;span style="font-style:italic;"&gt;hostname&lt;/span&gt;. Default is &lt;span style="font-style:italic;"&gt;localhost&lt;/span&gt; or whatever is set in PGHOST variable.&lt;br /&gt;-p &lt;span style="font-style:italic;"&gt;which port&lt;/span&gt;. PGPORT env. &lt;br /&gt;-U username. default is logged in user name. PGUSER env.&lt;br /&gt;outfile - name of the target file&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt; &lt;br /&gt;pg_dump does not block other operations on the database while it is working. (Exceptions are those operations that need to operate with an exclusive lock, such as VACUUM FULL.)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Restore:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;psql dbname &lt; infile&lt;/span&gt;&lt;br /&gt;infile - infile is what you used as outfile for the pg_dump command.&lt;br /&gt;&lt;br /&gt;It is suggested to run analyze on each db to obtain the useful statistics. Run,&lt;br /&gt;&lt;span style="font-style:italic;"&gt;vacuumdb -a -z to VACUUM ANALYZE all databases; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;pg_dump and psql can also use to dump a database directly from one server to another; &lt;br /&gt;for example:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;pg_dump -h host1 dbname | psql -h host2 dbname&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. &lt;span style="font-weight:bold;"&gt;File system level backup&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;tar -cf backup.tar /usr/local/pgsql/data&lt;/span&gt;&lt;br /&gt;- Servers must be shutdown before taking backup.&lt;br /&gt;- To restore database, we have to restore full database, can not do partial restore of tables or etc.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-4656566264480373405?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/4656566264480373405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=4656566264480373405' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/4656566264480373405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/4656566264480373405'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/08/postgresql-backup-and-restore.html' title='Postgresql backup and restore.'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-9108741931262542947</id><published>2009-08-12T01:05:00.000-07:00</published><updated>2009-08-12T01:18:03.026-07:00</updated><title type='text'>Open GUI application via ssh</title><content type='html'>ssh -p 2222 -l nilesh -X -v {remote.host.ip.or.hostname}&lt;br /&gt;&lt;br /&gt;  -p 2222  In case your server runs a non-standard TCP port.  &lt;br /&gt;           (If yours runs on the default port (TCP port 22), there is no need to add this option.)&lt;br /&gt;&lt;br /&gt;  -l nilesh is only required if you do not have matching usernames on remote host.&lt;br /&gt;&lt;br /&gt;  -X allows X forwarding.  Use -x can be used to disable X11 forwarding&lt;br /&gt;&lt;br /&gt;  -v is verbose.  This lets you watch what is going on.&lt;br /&gt;&lt;br /&gt;Run your application once it is done. &lt;br /&gt;I was about to run virt-manager GUI application, which ran successfully :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-9108741931262542947?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/9108741931262542947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=9108741931262542947' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/9108741931262542947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/9108741931262542947'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/08/open-gui-application-via-ssh.html' title='Open GUI application via ssh'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-8862528475451281952</id><published>2009-08-12T00:45:00.000-07:00</published><updated>2009-08-12T01:00:16.985-07:00</updated><title type='text'>Virtualization: Xen Installation</title><content type='html'>&lt;span style="font-weight:bold;"&gt;How Xen works?&lt;/span&gt;&lt;br /&gt;   Xen hypervisor is run on top of the hardware which is the virtual machine monitor. Guest operating systems are run on top of this hypervisor, thus all guest operating systems are secondary to the hardware and contacts the hardware through the hypervisor. The first thing for grub would be to load the hypervisor. Look at the /boot/grub/grub.conf which loads the &lt;span style="font-weight:bold;"&gt;&lt;span style="font-weight:bold;"&gt;xen.gz-2.6.18-128.4.1.el5&lt;/span&gt;&lt;/span&gt; which is the hypervisor.&lt;br /&gt;&lt;br /&gt;    Hypervisor loads the &lt;span style="font-weight:bold;"&gt;Dom-0&lt;/span&gt; kernel and initrd image and starts the main system. Dom-0 itself is a guest operating system with additional privileges to manage other guest operating systems and is started with system start up. &lt;br /&gt;&lt;br /&gt;Following rpms should be installed for Xen virtualization,&lt;br /&gt; - kernel-xen ---&gt; Dom-0 and Dom-U kernels.&lt;br /&gt; - xen ----------&gt; Xen hypervisor and other management tools.&lt;br /&gt; - libvirt ------&gt; Libraries required to manage domains which is used as a backend for virtmanager. http://libvirt.org&lt;br /&gt; - virt-manager ----&gt; GUI interface to manage guests&lt;br /&gt;&lt;br /&gt;Once installation of above RPM's are done, System should be rebooted using the new XEN kernel.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-8862528475451281952?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/8862528475451281952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=8862528475451281952' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/8862528475451281952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/8862528475451281952'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/08/virtualization-xen-installation.html' title='Virtualization: Xen Installation'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-4929760865627377246</id><published>2009-08-11T22:09:00.000-07:00</published><updated>2009-08-11T22:10:43.036-07:00</updated><title type='text'>Hidden ports on Linux.</title><content type='html'>A nice blog post about the hidden ports on linux. &lt;br /&gt;http://www.ossec.net/dcid/?p=87&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-4929760865627377246?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/4929760865627377246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=4929760865627377246' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/4929760865627377246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/4929760865627377246'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/08/hidden-ports-on-linux.html' title='Hidden ports on Linux.'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-3129945104512460868</id><published>2009-07-30T23:52:00.000-07:00</published><updated>2009-07-30T23:58:55.163-07:00</updated><title type='text'>**FATAL_ERROR** No password for admin user - please re-run ntop in non-daemon mode fir st</title><content type='html'>When you install ntop, daemon does not start automatically. It returns above error when you try to start it. &lt;br /&gt;&lt;br /&gt;You need to set password to start ntop in daemon mode. &lt;br /&gt;&lt;span style="font-style:italic;"&gt;"ntop -A"&lt;/span&gt; or &lt;span style="font-style:italic;"&gt;ntop --set-passwd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It asks for password, set it. &lt;br /&gt;Then start the service. &lt;br /&gt;&lt;span style="font-style:italic;"&gt;/etc/init.d/ntop start&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;You are now ready to view your network statitics :).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-3129945104512460868?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/3129945104512460868/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=3129945104512460868' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/3129945104512460868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/3129945104512460868'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/07/fatalerror-no-password-for-admin-user.html' title='**FATAL_ERROR** No password for admin user - please re-run ntop in non-daemon mode fir st'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-6900311211712209509</id><published>2009-07-30T04:22:00.000-07:00</published><updated>2009-07-30T04:28:09.030-07:00</updated><title type='text'>checking for intltool &gt;= 0.35.0... ./configure: line 16914: intltool-update: command not found</title><content type='html'>Error:&lt;br /&gt;checking for intltool &gt;= 0.35.0... ./configure: line 16914: intltool-update: command not found&lt;br /&gt;configure: error: Your intltool is too old.  You need intltool 0.35.0 or later.&lt;br /&gt;&lt;br /&gt;Solution: &lt;br /&gt;1. Install package, intltool-0.35.0-2.i386&lt;br /&gt;2. It will fail for following dependency if XML Parser not installed. &lt;br /&gt;error: Failed dependencies:&lt;br /&gt;        perl-XML-Parser is needed by intltool-0.35.0-2.i386&lt;br /&gt;3. Also Download and install perl-XML-Parser package&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-6900311211712209509?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/6900311211712209509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=6900311211712209509' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/6900311211712209509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/6900311211712209509'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/07/checking-for-intltool-0350-configure.html' title='checking for intltool &gt;= 0.35.0... ./configure: line 16914: intltool-update: command not found'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-7746534080312738490</id><published>2009-07-30T03:52:00.000-07:00</published><updated>2009-07-30T03:59:51.957-07:00</updated><title type='text'>Error! You need to have libevent 1.4.X or better.</title><content type='html'>You need to install libevent-devel package. Please find the respective package for your OS and install it. Also check whether you have already install libevent.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-7746534080312738490?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/7746534080312738490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=7746534080312738490' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/7746534080312738490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/7746534080312738490'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/07/error-you-need-to-have-libevent-14x-or.html' title='Error! You need to have libevent 1.4.X or better.'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-6762352309718726537</id><published>2009-07-29T04:25:00.000-07:00</published><updated>2009-07-29T05:25:36.824-07:00</updated><title type='text'>How to monitor bandwidht using MRTG and Nagios</title><content type='html'>Assuming that you have enough knowledge of Unix system and Nagios monitoring. If you dont know how to configure nagios please follow this &lt;a href="http://www.nagios.org/"&gt;link&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Prerequisite:&lt;/span&gt;&lt;br /&gt;- Make sure Nagios is running properly. Check &lt;span style="font-style:italic;"&gt;http://localhost/nagios&lt;/span&gt;&lt;br /&gt;- Also make sure that you have installed nagios_plugins.&lt;br /&gt;- Iptables and Selinux must be disabled. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Install check_snmp plugin:&lt;/span&gt;&lt;br /&gt;- Make sure you have all following packages install for successful installation of snmp plugin.&lt;br /&gt;  net-snmp, net-snmp-devel, net-snmp-libs, net-snmp-utils, beecrypt-devel, &lt;br /&gt;  elfutils-devel, elfutils-devel-static, lm_sensors&lt;br /&gt; &lt;br /&gt;- To install check_snmp I download the plugin from this location. &lt;a href="http://www.monitoringexchange.org/cgi-bin/page.cgi?g=2021.html;d=1"&gt;check_snmp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1. Unzip the downloaded file &lt;br /&gt;   bunzip check_snmp-1.1.tar.bz2&lt;br /&gt;&lt;br /&gt;2. Untar it.&lt;br /&gt;   tar xvf check_snmp-1.1.tar&lt;br /&gt;&lt;br /&gt;3. Configure and install it. &lt;br /&gt;   ./configure &lt;br /&gt;   make&lt;br /&gt;   make install&lt;br /&gt;&lt;br /&gt;4. Once it is install successfully you can find check_snmp at /usr/local/bin location. &lt;br /&gt;&lt;br /&gt;5. Create a soft link for check_snmp. &lt;br /&gt;   ln -s /usr/local/bin/check_snmp  /usr/local/nagios/libexec/check_snmp&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt; Install MRTG: &lt;/span&gt;&lt;br /&gt;To monitor bandwidth usages of router/switch you must have mrtg installed on system. Before installation please make sure you have install gd, libpng, zlib packages.  &lt;br /&gt;&lt;br /&gt;1. Download &lt;a href="http://oss.oetiker.ch/mrtg/doc/mrtg.en.html"&gt;MRTG&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;2. Once all libraries installed required for MRTG you are all set to compile and configure MRTG. &lt;br /&gt;    gunzip -c mrtg-2.16.2.tar.gz | tar xvf -&lt;br /&gt;    cd mrtg-2.16.2&lt;br /&gt;&lt;br /&gt;3. ./configure --prefix=/usr/local/mrtg-2&lt;br /&gt;   make &lt;br /&gt;   make install&lt;br /&gt;&lt;br /&gt;4. Create /var/www/html/mrtg file to store mrtg html files. &lt;br /&gt;   mkdir /var/www/html/mrtg&lt;br /&gt;&lt;br /&gt;5. Now you need not to create mrtg configuration file. Use cfgmaker.&lt;br /&gt;    cfgmaker --global 'WorkDir: /var/www/html/mrtg' --global 'Options[_]: bits,growright' --output /etc/httpd/conf/mrtg.cfg  public@172.17.42.22&lt;br /&gt;   ( I choose default apache web location for installation of mrtg html files and apache conf directory to store mrtg.cfg.)&lt;br /&gt;   &lt;br /&gt;6. Go to respective location and make sure that above command has created respective files.&lt;br /&gt;   cd /var/www/html/mrtg; &lt;br /&gt;   ls -al /etc/httpd/conf/mrtg.cfg&lt;br /&gt;&lt;br /&gt;7. Run this command to update mrtg log file.&lt;br /&gt;   env LANG=C /usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg&lt;br /&gt;&lt;br /&gt;8. create a script to update the mrtg log file which will fetch data regularly and display in graph as well as on nagios. &lt;br /&gt;   vi /usr/local/mrtg-2/bin/monitor_mrtg.sh&lt;br /&gt;   &lt;br /&gt;9. Put following lines in it and save.&lt;br /&gt;   #!/bin/sh&lt;br /&gt;   env LANG=C /usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg&lt;br /&gt;   (When you run it first time it returns you few errors/warnings. Ignore it.)   &lt;br /&gt;   &lt;br /&gt;   chmod 755 mrtgbw.sh             ; Make script executable.&lt;br /&gt;&lt;br /&gt;10. Set cron to run above script every 5 minute. &lt;br /&gt;    crontab -e &lt;br /&gt;   &lt;br /&gt;11. Modify and save,&lt;br /&gt;    */5  *  *  *  *  /usr/local/mrtg-2/bin/monitor_mrtg.sh&lt;br /&gt;&lt;br /&gt;12. Restart cron service.&lt;br /&gt;    /etc/init.d/crond restart&lt;br /&gt;&lt;br /&gt;13. Confirm that it is been configured. &lt;br /&gt;    &lt;span style="font-style:italic;"&gt;http://localhost/mrtg/{name of html file}&lt;/span&gt;&lt;br /&gt;   &lt;br /&gt;    Actually when you run mrtg command it searches for respective router community collects all data from router. Accordingly it creates log file. Like in my case it has found port 2 running on router and hence created file 172.17.42.22_2.log, 172.17.42.22_2.html. So I can access my graph through this link,&lt;br /&gt;     &lt;span style="font-style:italic;"&gt;http://localhost/mrtg/172.17.42.22_2.html&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Procedure to monitor Bandwidth Usages in Nagios: &lt;/span&gt;&lt;br /&gt;1. Default installation directory of nagios is /usr/local/nagios/. &lt;br /&gt;&lt;br /&gt;2. Open switch.cfg file &lt;br /&gt;   vi /usr/local/nagios/etc/objects/switch.cfg&lt;br /&gt;&lt;br /&gt;3. Make changes according to your router specifications. Like,&lt;br /&gt;   define host{&lt;br /&gt;        use             generic-switch   &lt;br /&gt;        host_name       Router_1         &lt;br /&gt;        alias           Router 1 &lt;br /&gt;        address         172.17.42.22     &lt;br /&gt;        hostgroups      switches&lt;br /&gt;        }&lt;br /&gt;4. You can also set PING, Uptime, Ports Link Status etc.&lt;br /&gt;   define service{&lt;br /&gt;        use                     generic-service ; Inherit values from a template&lt;br /&gt;        host_name               Router_1        ; The name of the host the service is associated with&lt;br /&gt;        service_description     PING            ; The service description&lt;br /&gt;        check_command           check_ping!200.0,20%!600.0,60%  ; The command used to monitor the service&lt;br /&gt;        normal_check_interval   5               ; Check the service every 5 minutes under normal conditions&lt;br /&gt;        retry_check_interval    1               ; Re-check the service every minute until its final/hard state is determined&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;define service{&lt;br /&gt;        use                     generic-service ; Inherit values from a template&lt;br /&gt;        host_name               Router_1&lt;br /&gt;        service_description     Uptime&lt;br /&gt;        check_command           check_snmp!-C public -o sysUpTime.0 -H 172.17.42.22&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;define service{&lt;br /&gt;        use                     generic-service ; Inherit values from a template&lt;br /&gt;        host_name               Router_1&lt;br /&gt;        service_description     Port 2 Link Status&lt;br /&gt;        check_command           check_snmp!-C public -o ifOperStatus.2 -r 1 -H 172.17.42.22&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;define service{&lt;br /&gt;        use                     generic-service ; Inherit values from a template&lt;br /&gt;        host_name               Router_1&lt;br /&gt;        service_description     Port 2 Bandwidth Usage&lt;br /&gt;        check_command           check_local_mrtgtraf!/var/www/html/mrtg/172.17.42.22_2.log!AVG!1000000,1000000!5000000,5000000&lt;br /&gt;!10&lt;br /&gt;        }&lt;br /&gt;  &lt;br /&gt;5. Verify the configuration of nagios &lt;br /&gt;   /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg&lt;br /&gt;&lt;br /&gt;6. Restart nagios service.&lt;br /&gt;   /etc/init.d/nagios restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-6762352309718726537?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/6762352309718726537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=6762352309718726537' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/6762352309718726537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/6762352309718726537'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/07/how-to-monitor-bandwidht-using-mrtg-and.html' title='How to monitor bandwidht using MRTG and Nagios'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-4932423566082840171</id><published>2009-07-21T05:15:00.000-07:00</published><updated>2009-07-22T02:02:18.030-07:00</updated><title type='text'>Solaris: Disk Management</title><content type='html'>- A disk under the Solaris OE can be divided into eight slices that are labeled Slice 0 through Slice 7.&lt;br /&gt; - In reality Slice 2 represents the entire disk because "/" is the first(0) slice and swap is second(1).&lt;br /&gt;&lt;br /&gt;Dist Slice Naming Convention, Controller number, Target number, Disk number, Slice number. &lt;br /&gt; - Controller number, which control communications between system and disk unit. &lt;br /&gt; - Target number is a unique hardware address of disk, tape, CDROM etc.&lt;br /&gt; - Disk number is a logical unit number.&lt;br /&gt; - Slice number is partition number on disk.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-4932423566082840171?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/4932423566082840171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=4932423566082840171' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/4932423566082840171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/4932423566082840171'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/07/solaris-disk-management.html' title='Solaris: Disk Management'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-3318763202090347054</id><published>2009-07-21T04:30:00.000-07:00</published><updated>2009-07-21T05:15:37.662-07:00</updated><title type='text'>Solaris: Key points in File System</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Inode&lt;/span&gt;&lt;br /&gt; In general inode contains two parts. First, inodes contains information about file, including owners, permissions, size etc. Second inode contains pointers to data blocks associated with files.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Different file types&lt;/span&gt; &lt;br /&gt; Regular files    &lt;br /&gt; Directories&lt;br /&gt; Device files contains block device and character device.&lt;br /&gt; Symbolic links&lt;br /&gt; Socket files&lt;br /&gt;&lt;br /&gt; - Data block associated with directory contains lists of all files and associated inodes.&lt;br /&gt; - Symbolic links can point to regular files, directories, other symbolic links and device files. &lt;br /&gt; - A data block of symbolic link contains the path of original file. &lt;br /&gt; - A long listing of a device file shows two numbers, separated by a comma where major number denotes specific device driver required to access the device and minor device denotes the specific unit of the device driver control.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-3318763202090347054?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/3318763202090347054/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=3318763202090347054' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/3318763202090347054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/3318763202090347054'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/07/solaris-key-points-in-file-system.html' title='Solaris: Key points in File System'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-2411670647707293731</id><published>2009-07-15T22:01:00.000-07:00</published><updated>2009-07-16T01:38:28.216-07:00</updated><title type='text'>Red Hat : Global File System</title><content type='html'>- native file system.&lt;br /&gt;- Interfaces directly with Linux kernel file system interface (VFS Player).&lt;br /&gt;- Can be implemented on Standalone System.&lt;br /&gt;- Can be a part of cluster configuration.&lt;br /&gt;- GFS can be created on LVM logical volume.&lt;br /&gt;- GFS is based on 64 bit architecture, can accommodate 8 EB file system.&lt;br /&gt;- Red Hat GFS nodes can be configured and managed with Red Hat Cluster Suite configuration and management tools.&lt;br /&gt;- LVM logical volumes in a Red Hat Cluster Suite are managed by CLVM, which is cluster wide implementation of LVM (&lt;span style="font-weight:bold;"&gt;clvmd&lt;/span&gt; daemon).&lt;br /&gt;- daemon allow all nodes in cluster to share the volume.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-2411670647707293731?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/2411670647707293731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=2411670647707293731' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/2411670647707293731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/2411670647707293731'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/07/redhat-global-file-system.html' title='Red Hat : Global File System'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-57390670910369660</id><published>2009-07-07T03:21:00.001-07:00</published><updated>2009-07-08T21:07:48.531-07:00</updated><title type='text'>OTRS: How to set the Generic Agent?</title><content type='html'>Taken from, lists.otrs.org.&lt;br /&gt;&lt;br /&gt;So you need to create as many jobs as you have agents.&lt;br /&gt;The idea behind GenericAgent is very simple: search for tickets using the&lt;br /&gt;values in sections shaded grey and set new values in tickets in sections&lt;br /&gt;shaded black. You should have all your ticket types, queues, agents,&lt;br /&gt;customers defined before you start making a GenericAgent job.&lt;br /&gt;&lt;br /&gt;For example, we are building a job to assign Hardware problems to Mark&lt;br /&gt;Twain.&lt;br /&gt;&lt;br /&gt;In Admin, go to Generic Agent. Type in the job name Hardware_to_Twain and&lt;br /&gt;click Add. A new job form appears. Study it a little. There are sections&lt;br /&gt;with title shaded gray. The values you put into these sections' fields are&lt;br /&gt;used to select the tickets for processing by the job. You select Agent/Owner&lt;br /&gt;= root at localhost. You select ticket state = new. You select Ticket lock =&lt;br /&gt;unlock, you select ticket type = Hardware problem. How do you plan to deal&lt;br /&gt;with email tickets btw? They will not get tycket type set correctly.&lt;br /&gt;&lt;br /&gt;Now we move to sections with titles shaded black. That's where we program&lt;br /&gt;new values for ticket fields:&lt;br /&gt;You select new Agent = Mark Twain. You select the new Queue = Hardware, New&lt;br /&gt;ticket lock = lock.&lt;br /&gt;You may add a note to leave trace of what has been done for your customer.&lt;br /&gt;(It's reflected in the history for the agents anyway).&lt;br /&gt;Check Send no notifications flag .&lt;br /&gt;&lt;br /&gt;Go back to the beginning and think of the schedule for the job. How often it&lt;br /&gt;should run?&lt;br /&gt;&lt;br /&gt;AS soon as you save the job - you're done. If there are problems with the&lt;br /&gt;job - look in the System Log.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-57390670910369660?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/57390670910369660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=57390670910369660' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/57390670910369660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/57390670910369660'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/07/otrs-how-to-set-generic-agent.html' title='OTRS: How to set the Generic Agent?'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-2244077208089063445</id><published>2009-07-07T01:35:00.000-07:00</published><updated>2009-07-07T01:44:39.801-07:00</updated><title type='text'>OTRS: How survey module works?</title><content type='html'>There are no steps given anywhere about how survey module works. &lt;br /&gt;Here are the steps given,&lt;br /&gt;1. Download and install Survey module &lt;br /&gt;2. Login as OTRS Admin i.e. root@localhost by default. &lt;br /&gt;3. Navigate to SysConfig setting under "Misc" section.&lt;br /&gt;4. Search for Survey, then go to Core -&gt; Survey::SendPeriod. &lt;br /&gt;5. Change this value to 0, to send mail always whenever agent close the ticket. &lt;br /&gt;6. Also created survey should have status as "Master". This is the setting when you create the survey.&lt;br /&gt;&lt;br /&gt;This is where you can find more details, this post is translation from German.&lt;br /&gt;http://translate.google.com/translate?hl=en&amp;sl=de&amp;u=http://wiki.otrs-forum.de/index.php%3Ftitle%3DSurvey&amp;ei=3VWxSdOZCozMmQeRxJjfBQ&amp;sa=X&amp;oi=translate&amp;resnum=8&amp;ct=result&amp;prev=/search%3Fq%3DSurvey::SendPeriod%26hl%3Den%26client%3Dsafari%26rls%3Den-us%26sa%3DG&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-2244077208089063445?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/2244077208089063445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=2244077208089063445' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/2244077208089063445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/2244077208089063445'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/07/otrs-how-survey-module-works.html' title='OTRS: How survey module works?'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-8778198683891593717</id><published>2009-07-05T23:45:00.000-07:00</published><updated>2009-07-07T00:28:32.834-07:00</updated><title type='text'>Ganglia Installation errors and solutions.</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Error:&lt;/span&gt;&lt;br /&gt;Checking for apr&lt;br /&gt;checking for apr-1-config... no&lt;br /&gt;configure: error: apr-1-config binary not found in path&lt;br /&gt;make: *** No targets specified and no makefile found.  Stop.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Resolution:&lt;/span&gt;&lt;br /&gt;Install respective version of apr-devel. for me it was apr-devel-1.2.7-11.i386.rpm&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Error:&lt;/span&gt;&lt;br /&gt;Checking for confuse&lt;br /&gt;checking for cfg_parse in -lconfuse... no&lt;br /&gt;Trying harder including gettext&lt;br /&gt;checking for cfg_parse in -lconfuse... no&lt;br /&gt;Trying harder including iconv&lt;br /&gt;checking for cfg_parse in -lconfuse... no&lt;br /&gt;libconfuse not found&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Resolution:&lt;/span&gt;&lt;br /&gt;Install &lt;span style="font-style:italic;"&gt;"libconfuse"&lt;/span&gt; and &lt;span style="font-style:italic;"&gt;"libconfuse-devel"&lt;/span&gt; packages. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Error:&lt;/span&gt;&lt;br /&gt;mod_python.c error: Python.h: No such file or directory&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Resolution:&lt;/span&gt;&lt;br /&gt;Install &lt;span style="font-style:italic;"&gt;"python-devel"&lt;/span&gt; package if not installed.&lt;br /&gt;&lt;br /&gt;- nilesh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-8778198683891593717?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/8778198683891593717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=8778198683891593717' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/8778198683891593717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/8778198683891593717'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/07/checking-for-apr-checking-for-apr-1.html' title='Ganglia Installation errors and solutions.'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-5052819578959080966</id><published>2009-07-01T00:26:00.000-07:00</published><updated>2009-07-01T00:34:49.274-07:00</updated><title type='text'>Nagios: How to suppress notifications when host goes down.</title><content type='html'>There are two ways to avoid extra notifications of services when host goes down.&lt;br /&gt;&lt;br /&gt;1. Configure ping (use &lt;span style="font-style:italic;"&gt;check-host-alive&lt;/span&gt;) as the host check, when the host is unreachable, the notifications for the services will not be sent. &lt;br /&gt;&lt;br /&gt;2. Can have service dependency configuration file like this,&lt;br /&gt;   define servicedependency {&lt;br /&gt;     hostgroup_name                  all_servers&lt;br /&gt;     service_description             ping check&lt;br /&gt;     dependent_hostgroup_name        all_servers&lt;br /&gt;     dependent_service_description   *&lt;br /&gt;     execution_failure_criteria      w,c&lt;br /&gt;     notification_failure_criteria   w,u,c&lt;br /&gt;   }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-5052819578959080966?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/5052819578959080966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=5052819578959080966' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/5052819578959080966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/5052819578959080966'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/07/nagios-how-to-suppress-notifications.html' title='Nagios: How to suppress notifications when host goes down.'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-5630991938413351721</id><published>2009-06-30T22:58:00.002-07:00</published><updated>2009-06-30T23:13:49.051-07:00</updated><title type='text'>Nagios: How to monitor a website</title><content type='html'>check_http supports arguments like hostname, hostaddress, URI etc. &lt;br /&gt;you can have,&lt;br /&gt;   check_http -H $ARG1 -I $ARG2 -u $ARG3&lt;br /&gt;where,&lt;br /&gt;$ARG1 - hostname&lt;br /&gt;$ARG2 - hostaddress&lt;br /&gt;$ARG3 - URI - www.yourwebsite.com&lt;br /&gt;&lt;br /&gt;Also check &lt;span style="font-style:italic;"&gt;"check_http --help"&lt;/span&gt; for more details.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-5630991938413351721?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/5630991938413351721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=5630991938413351721' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/5630991938413351721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/5630991938413351721'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/06/nagios-how-to-monitor-website.html' title='Nagios: How to monitor a website'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-8006364402457991376</id><published>2009-06-30T22:58:00.001-07:00</published><updated>2009-06-30T22:58:48.153-07:00</updated><title type='text'>Nagios: Adding Cisco enterprise MIBs</title><content type='html'>(Taken from nagios user list)&lt;br /&gt;&lt;br /&gt;- Default directory for snmp mibs are /usr/share/snmp/mibs/ if you have libsnmp-base package installed.&lt;br /&gt;&lt;br /&gt;- to verify that the mibs are working, you can use a mib browser such as mbrowse (apt-get install mbrowse).&lt;br /&gt;&lt;br /&gt;- not all OIDs in a MIB are supported for all IOS versions.  Cisco usually has a link for each IOS version and what MIBs are supported.&lt;br /&gt;&lt;br /&gt;- once the mib is verified and working, use the check_snmp check_command&lt;br /&gt;in your .cfg files of the routers and switches you want to monitor.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-8006364402457991376?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/8006364402457991376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=8006364402457991376' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/8006364402457991376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/8006364402457991376'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/06/nagios-adding-cisco-enterprise-mibs.html' title='Nagios: Adding Cisco enterprise MIBs'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-4146076913086297820</id><published>2009-06-30T22:57:00.001-07:00</published><updated>2009-06-30T22:58:02.143-07:00</updated><title type='text'>Nagios: Default parameter with check_total_procs</title><content type='html'>We define service like this,&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;br /&gt;define service{&lt;br /&gt;service_description   Total_Processes&lt;br /&gt;check_command         check_nrpe!check_total_procs&lt;br /&gt;…&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;By default this check is an execution of check_procs with only the warning and critical thresholds, so it counts all processes running on your machine.&lt;br /&gt;&lt;br /&gt;The thresholds are configured in the nrpe.cfg on the remote machine.&lt;br /&gt;&lt;br /&gt;- Nilesh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-4146076913086297820?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/4146076913086297820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=4146076913086297820' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/4146076913086297820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/4146076913086297820'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/06/nagios-default-parameter-with.html' title='Nagios: Default parameter with check_total_procs'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-6116603655081298608</id><published>2009-06-30T22:52:00.000-07:00</published><updated>2009-06-30T22:57:11.371-07:00</updated><title type='text'>Install and Configure Nagios Plugins &amp; NRPE on Solaris 10</title><content type='html'>I came across lots of issues to do this installation so here is a step by step installation of Nagios Plugins and NRPE on Solaris 10.&lt;br /&gt;&lt;br /&gt;Add “nagios” user as &lt;span style="font-style:italic;"&gt;“/usr/local/nagios”&lt;/span&gt; as home directory.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;# useradd -c “Nagios User” -d /usr/local/nagios -m nagios&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Change ownership of directory to nagios&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;# chown nagios:nagios /usr/local/nagios/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;download nagios-plugins and nrpe from net. I have download them from sourceforge.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;# mkdir /nagios; cd /nagios&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;wget http://sourceforge.net/project/downloading.php?group_id=29880&amp;filename=nagios-plugins-1.4.13.tar.gz&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;wget http://sourceforge.net/project/downloading.php?group_id=26589&amp;filename=nrpe-2.12.tar.gz&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Now extract them&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;# gunzip nagios-plugins-1.4.13.tar.gz; gunzip nrpe-2.12.tar.gz&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;# tar xvf nagios-plugins-1.4.13.tar.gz; tar xvf nrpe-2.12.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Before compiling I had to set PATH to find gcc binary,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;# export PATH=$PATH:/usr/sfw/sbin:/usr/sfw/bin:/usr/ccs/bin&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;# cd nagios-plugins-1.4.13;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;# ./configure –without-mysql (I did want to install with mysql support)&lt;br /&gt;# make; make install&lt;br /&gt;# chown -R nagios:nagios /usr/local/nagios/libexec&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Install NRPE with SSL library support otherwise you will get error while compilation like this,&lt;br /&gt;&lt;br /&gt;“checking for SSL headers… configure: error: Cannot find ssl headers”&lt;br /&gt;&lt;br /&gt;If you run &lt;span style="font-style:italic;"&gt;“dmesg” &lt;/span&gt;or if you check system messages you can see this error.&lt;br /&gt;&lt;br /&gt;May 28 19:08:26 solaris10.remotehost.com inetd[24233]: [ID 702911 daemon.error] Failed to set credentials for the inetd_start method of instance svc:/network/nrpe/tcp:default (chdir: No such file or directory)&lt;br /&gt;May 28 19:15:27 solaris10.remotehost.com inetd[24241]: [ID 702911 daemon.error] Failed to set credentials for the inetd_start method of instance svc:/network/nrpe/tcp:default (chdir: No such file or directory)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;# cd nrpe-2.12; ./configure –with-ssl=/usr/sfw/ –with-ssl-lib=/usr/sfw/lib/ –with-ssl-inc=/usr/sfw/include&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Still if you compilation fails please apply these faqs/solutions given in nagios faqs.&lt;br /&gt;&lt;br /&gt;http://www.nagios.org/faqs/index.php?section_id=4&amp;expand=false&amp;showdesc=true&lt;br /&gt;&lt;br /&gt;In my case I had to make changes in src/nrpe.c for encryption. Do make all, make install to create respective binaries.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;# make all; make install; make install-daemon-config;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Once that is done, modify nrpe.cfg with approprite settings. Add following line at the end of /etc/services&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;nrpe                    5666/tcp                         # NRPE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Also add this line to /etc/inetd.conf and convert it into SMF and enable service with -e option. Also checkout whether it went online.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;nrpe stream tcp nowait nagios /usr/sfw/sbin/tcpd /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -i&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;# inetconv;   inetconv -e&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;# svcs | grep nrpe&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Check if 5666 port is open and in LISTEN mode.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;# netstat -a | grep nrpe&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Make sure that your /etc/hosts.allow and /etc/hosts.deny does not block your nagios server. Here are the entries&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;hosts.allow: nrpe: 127.0.0.1, 172.17.38.11&lt;br /&gt;&lt;br /&gt;hosts.deny: nrpe: ALL&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Final command, make sure that nrpe returns correct output.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;# /usr/local/nagios/libexec/check_nrpe -H localhost&lt;br /&gt;NRPE v2.12&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-6116603655081298608?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/6116603655081298608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=6116603655081298608' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/6116603655081298608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/6116603655081298608'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/06/install-and-configure-nagios-plugins.html' title='Install and Configure Nagios Plugins &amp; NRPE on Solaris 10'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-8061338099479513422</id><published>2009-06-29T06:30:00.000-07:00</published><updated>2009-06-30T22:46:46.327-07:00</updated><title type='text'>Open Audit</title><content type='html'>There is no documentation available for this Open Source Tool. These all points written while going through open-audit documentation.&lt;br /&gt;&lt;br /&gt;What it Open Audit?&lt;br /&gt; - It audits hardware and software it discovers on the your computer.&lt;br /&gt; - Use's MySQL database to store all discovered data.&lt;br /&gt; - PHP used to display information stored in MySQL database.&lt;br /&gt; - Apache to make it available through web interface. &lt;br /&gt;&lt;br /&gt;What is audit.vbs?&lt;br /&gt; - audit.vbs reads data from Microsoft's Windows Management Interface (WMI) and posts its findings to the server.&lt;br /&gt; - OA collects the data using audit.vbs script and write directly to web server through POST method.&lt;br /&gt;&lt;br /&gt;Schedule an audit?&lt;br /&gt; - use "at" command to schedule an audit.&lt;br /&gt; - audit domain everyday at some specific time, (can also use windows schedule task)&lt;br /&gt;   &lt;span style="font-style:italic;"&gt;at 18:00 /interactive /every:M,T,W,Th,F,S,Su "C:\Program Files\xampp\htdocs\scripts\audit_mydomain.bat"&lt;/span&gt;&lt;br /&gt; - audit_mydomain.bat contains something like....&lt;br /&gt;   &lt;span style="font-style:italic;"&gt;@echo off&lt;br /&gt;   rem audit local domain pcs&lt;br /&gt;   cscript audit.vbs&lt;br /&gt;   cscript nmap.vbs&lt;br /&gt;  :end&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-8061338099479513422?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/8061338099479513422/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=8061338099479513422' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/8061338099479513422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/8061338099479513422'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/06/open-audit.html' title='Open Audit'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-8060877287391939841</id><published>2009-06-26T00:05:00.000-07:00</published><updated>2009-06-29T06:30:30.888-07:00</updated><title type='text'>OTRS Issues - Phase I</title><content type='html'>Putting it from list.otrs.org for my own information. &lt;br /&gt;-----------------------------------------------------&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Problem: &lt;/span&gt;How to Clean up the database.?&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt; - You can use the Generic Agent to remove all or some ticket based on criteria.&lt;br /&gt; - With a bulk change you could set all or some tickets to state 'removed' for instance, and than run GA on it.&lt;br /&gt; - Deleting customers/agents is harder, like for some other data types. You could do it in the database (phpmyadmin), or you can do like I do, recycle. Make them invalid, rename them to INVALID... en reuse (rename) when needed.&lt;br /&gt;--------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Problem :&lt;/span&gt; How to setup LDAP Authentication?&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution: &lt;/span&gt;&lt;br /&gt;  #Enable LDAP authentication for Customers / Users&lt;br /&gt;  $Self-&gt;{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';&lt;br /&gt;  $Self-&gt;{'Customer::AuthModule::LDAP::Host'} = 'xx.xxx.xx.xx';&lt;br /&gt;  $Self-&gt;{'Customer::AuthModule::LDAP::BaseDN'} = &lt;br /&gt;'ou=user,ou=dublin,dc=int,dc=domain,dc=com';&lt;br /&gt;  $Self-&gt;{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';&lt;br /&gt;&lt;br /&gt;#The following is valid but would only be necessary if the&lt;br /&gt;#anonymous user do NOT have permission to read from the LDAP tree&lt;br /&gt;# $Self-&gt;{'Customer::AuthModule::LDAP::SearchUserDN'} = 'otrsldap';&lt;br /&gt;# $Self-&gt;{'Customer::AuthModule::LDAP::SearchUserPw'} = 'password';&lt;br /&gt;  $Self-&gt;{'Customer::AuthModule::LDAP::SearchUserDN'} = 'MyDomain\otrsldap';&lt;br /&gt;  $Self-&gt;{'Customer::AuthModule::LDAP::SearchUserPw'} = 'password';&lt;br /&gt;&lt;br /&gt;#CustomerUser&lt;br /&gt;#(customer user database backend and settings)&lt;br /&gt;    $Self-&gt;{CustomerUser} = {&lt;br /&gt;      Module =&gt; 'Kernel::System::CustomerUser::LDAP',&lt;br /&gt;      Params =&gt; {&lt;br /&gt;      Host =&gt; 'xx.xxx.xx.xx',&lt;br /&gt;      BaseDN =&gt; 'ou=user,ou=dublin,dc=int,dc=domain,dc=com',&lt;br /&gt;      SSCOPE =&gt; 'sub',&lt;br /&gt;      UserDN =&gt;'otrsldap',&lt;br /&gt;      UserPw =&gt; 'password',&lt;br /&gt;    },&lt;br /&gt;&lt;br /&gt;# customer unique id&lt;br /&gt;    CustomerKey =&gt; 'sAMAccountName',&lt;br /&gt;    # customer #&lt;br /&gt;    CustomerID =&gt; 'mail',&lt;br /&gt;    CustomerUserListFields =&gt; ['sAMAccountName', 'cn', 'mail'],&lt;br /&gt;    CustomerUserSearchFields =&gt; ['sAMAccountName', 'cn', 'mail'],&lt;br /&gt;    CustomerUserSearchPrefix =&gt; '',&lt;br /&gt;    CustomerUserSearchSuffix =&gt; '*',&lt;br /&gt;    CustomerUserSearchListLimit =&gt; 250,&lt;br /&gt;    CustomerUserPostMasterSearchFields =&gt; ['mail'],&lt;br /&gt;    CustomerUserNameFields =&gt; ['givenname', 'sn'],&lt;br /&gt;    Map =&gt; [&lt;br /&gt;      # note: Login, Email and CustomerID needed!&lt;br /&gt;      # var, frontend, storage, shown, required, storage-type&lt;br /&gt;      #[ 'UserSalutation', 'Title', 'title', 1, 0, 'var' ],&lt;br /&gt;      [ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var' ],&lt;br /&gt;      [ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var' ],&lt;br /&gt;      [ 'UserLogin', 'Login', 'sAMAccountName', 1, 1, 'var' ],&lt;br /&gt;      [ 'UserEmail', 'Email', 'mail', 1, 1, 'var' ],&lt;br /&gt;      [ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var' ],&lt;br /&gt;      #[ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var' ],&lt;br /&gt;      #[ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var' ],&lt;br /&gt;      #[ 'UserComment', 'Comment', 'description', 1, 0, 'var' ],&lt;br /&gt;    ],&lt;br /&gt;  };&lt;br /&gt; &lt;br /&gt;#Add the following lines when only users are allowed to login if they &lt;br /&gt;reside in the spicified security group&lt;br /&gt;#Remove these lines if you want to provide login to all users specified in &lt;br /&gt;the User Base DN&lt;br /&gt;#example: $Self-&gt;{'Customer::AuthModule::LDAP::BaseDN'} = 'ou=BaseOU, &lt;br /&gt;dc=example, dc=com';&lt;br /&gt;  $Self-&gt;{'Customer::AuthModule::LDAP::GroupDN'} = &lt;br /&gt;'CN=OTRS_Users,OU=Security Groups,OU=Dublin,DC=int,DC=domain,DC=com';&lt;br /&gt;  $Self-&gt;{'Customer::AuthModule::LDAP::AccessAttr'} = 'member';&lt;br /&gt;  $Self-&gt;{'Customer::AuthModule::LDAP::UserAttr'} = 'DN'&lt;br /&gt;--------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Problem:&lt;/span&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Few important points about OTRS:&lt;br /&gt;--------------------------------&lt;br /&gt;- The queue view only displays unlocked tickets by default.&lt;br /&gt;- There is a line that says "Tickets shown..... All Tickets xx"  The xx is a link which should display all tickets locked and unlocked which are in your "My Queues".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-8060877287391939841?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/8060877287391939841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=8060877287391939841' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/8060877287391939841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/8060877287391939841'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/06/otrs-issues-phase-i.html' title='OTRS Issues - Phase I'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-2545078870184070693</id><published>2009-03-16T12:08:00.000-07:00</published><updated>2009-03-16T12:16:37.904-07:00</updated><title type='text'>Innodb Error 'Can't create table 'mysql.ibbackup_binlog_marker'</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Problem: &lt;/span&gt;&lt;br /&gt;090316 11:57:32 [ERROR] Slave SQL: Error 'Can't create table 'mysql.ibbackup_binlog_marker' (errno: -1)' on query. Default database: 'mysql'. Query: 'CREATE TABLE ibbackup_binlog_marker(a INT) TYPE=INNODB', Error_code: 1005&lt;br /&gt;090316 11:57:32 [Warning] Slave: The syntax 'TYPE=storage_engine' is deprecated and will be removed in MySQL 5.2. Please use 'ENGINE=storage_engine' instead Error_code: 1287&lt;br /&gt;090316 11:57:32 [Warning] Slave: Can't create table 'mysql.ibbackup_binlog_marker' (errno: -1) &lt;br /&gt;Error_code: 1005&lt;br /&gt;090316 11:57:32 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'testing-bin.000009' position 321&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Answer:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;mysql&gt; CREATE TABLE ibbackup_binlog_marker2(a INT) TYPE=INNODB;&lt;br /&gt;Query OK, 0 rows affected, 1 warning (0.02 sec)&lt;br /&gt;&lt;br /&gt;bash# cd /var/mysql/data/&lt;br /&gt;bash# mv mysql/ibbackup_binlog_marker{2,}.frm&lt;br /&gt;bash# mysqladmin flush-tables&lt;br /&gt;&lt;br /&gt;mysql&gt; SET SQL_LOG_BIN = 0;&lt;br /&gt;Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;&lt;br /&gt;mysql&gt; DROP TABLE IF EXISTS ibbackup_binlog_marker;&lt;br /&gt;Query OK, 0 rows affected (0.12 sec)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-2545078870184070693?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/2545078870184070693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=2545078870184070693' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/2545078870184070693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/2545078870184070693'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/03/innodb-error-cant-create-table.html' title='Innodb Error &apos;Can&apos;t create table &apos;mysql.ibbackup_binlog_marker&apos;'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-3838936774133604265</id><published>2009-02-18T08:57:00.000-08:00</published><updated>2009-02-19T02:49:47.080-08:00</updated><title type='text'>All about : NTP</title><content type='html'>I had this plan long back that i will keep my own configurations and documents ready for others to use it. My memory is very short, so i forget things very often. One day i came across this blogger and found best way to keep everything at one place and need not to carry single paper anywhere. &lt;br /&gt;&lt;br /&gt;Planning to start All about sessions on all servers, topics etc. Anything which is interesting and information about it is scattered everywhere. hope will be able to do that. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;NTP (Network Time Protocol)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;---------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;What is it ?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Used to synchronize the clocks of computers to some time reference.&lt;br /&gt;&lt;br /&gt;NTP uses UDP/IP packets for data transfer because of the fast connection setup and response times. &lt;br /&gt;&lt;br /&gt;Port number for the NTP (that ntpd and ntpdate listen and talk to) is 123.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;how many ntp servers available in Internet?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;According to ntp.org there are 175,000 ntp servers are available in the Internet.  Among these there were over 300 valid stratum-1 servers. In addition there were over 20,000 servers at stratum 2, and over 80,000 servers at stratum 3.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;ntp commands&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;ntpd        - A daemon process that is both, client and server.&lt;br /&gt;ntpdate     - A utility to set the time once, similar to the popular rdate command.&lt;br /&gt;ntpq, ntpdc - Monitoring and control programs that communicate via UDP with ntpd.&lt;br /&gt;ntptrace    - A utility to back-trace the current system time, starting from the local server.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;time references&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;- A reference clock is some device or machinery that spits out the current time.&lt;br /&gt;- A reference clock will provide the current time, that's for sure.&lt;br /&gt;- NTP will compute some additional statistical values like offset (or phase), jitter (or dispersion), frequency error, and stability.&lt;br /&gt;&lt;br /&gt;There are serveral ways how a NTP client will know about NTP servers to use:&lt;br /&gt;- Servers to be polled can be configured manually&lt;br /&gt;- Servers can send the time directly to a peer&lt;br /&gt;- Servers may send out the time using multicast or broadcast addresses&lt;br /&gt;&lt;br /&gt;- ntpd's reaction will depend on the offset between the local clock and the reference time. &lt;br /&gt;- For a tiny offset ntpd will adjust the local clock as usual; for small and larger offsets, ntpd will reject the reference time for a while.&lt;br /&gt;- In the latter case the operation system's clock will continue with the last corrections effective while the new reference time is being rejected. &lt;br /&gt;- After some time, small offsets (significantly less than a second) will be slewed (adjusted slowly), while larger offsets will cause the clock to be stepped (set anew).&lt;br /&gt;- Huge offsets are rejected, and ntpd will terminate itself, believing something very strange must have happened.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;stratum 1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;A server operating at stratum 1 belongs to the class of best NTP servers available, because it has a reference clock attached to it.&lt;br /&gt;&lt;br /&gt;Servers synchronized to a stratum 1 server will be stratum 2.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-3838936774133604265?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/3838936774133604265/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=3838936774133604265' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/3838936774133604265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/3838936774133604265'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2009/02/all-about-ntp.html' title='All about : NTP'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-7812187382603441018</id><published>2008-12-30T22:34:00.000-08:00</published><updated>2008-12-30T23:13:55.411-08:00</updated><title type='text'>RRDtool in short....</title><content type='html'>Copied notes from: http://oss.oetiker.ch/rrdtool/tut/rrdtutorial.en.html&lt;br /&gt;- RRDtool refers to Round Robin Database tool.&lt;br /&gt;- RRDtool works with with Round Robin Databases (RRDs). It stores and retrieves data from them.&lt;br /&gt;- RRDtool stores all sort of time-series data.&lt;br /&gt;- If you measure some value at several points in time and provide this information to RRDtool. RRDtool will be able to store it.&lt;br /&gt;- RRDtool originated from MRTG.&lt;br /&gt;- RRDtool create graphs in PNG formats.&lt;br /&gt;- We only need sensors to measure the data and able to feed the data into RRDtool.&lt;br /&gt;- Create sample Round Robin Database,&lt;br /&gt;  rrdtool create test.rrd --start 920804400 DS:speed:COUNTER:600:U:U RRA:AVERAGE:0.5:1:24 RRA:AVERAGE:0.5:6:10&lt;br /&gt;- Update database,&lt;br /&gt;  rrdtool update test.rrd 920804700:12345 920805000:12357 920805300:12363&lt;br /&gt;  rrdtool update test.rrd 920805600:12363 920805900:12363 920806200:12373&lt;br /&gt;- fetch data from database,&lt;br /&gt;  rrdtool fetch test.rrd AVERAGE --start 920804400 --end 920809200&lt;br /&gt;- "NaN" stands for "Not A Number" - Something is wrong. &lt;br /&gt;- "UNKN" stands for "UNKNOWN", which is ok. &lt;br /&gt;- Create graphics,&lt;br /&gt;  rrdtool graph speed.png --start 920804400 --end 920808000 DEF:myspeed=test.rrd:speed:AVERAGE LINE2:myspeed#FF0000&lt;br /&gt;&lt;br /&gt;There are several ways for RRDtool to get a rate from its input:&lt;br /&gt;* GAUGE: keep it "as is". The input is already a rate. An example would be a speedometer. This is also the type used for keeping track of temperature and such.&lt;br /&gt;&lt;br /&gt;* COUNTER: look at the difference between the previous value and the current value (the delta). An example would be an odometer. The rate is computed as: delta(counter) divided by delta(time).&lt;br /&gt;&lt;br /&gt;* ABSOLUTE: as the odometer, but now the counter is reset every time it is read. Computed as: value divided by delta(time).&lt;br /&gt;&lt;br /&gt;* DERIVE: as COUNTER, but now it can also go back. An example could be something monitoring a bidirectional pump. The resulting rate can be negative as well as positive.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-7812187382603441018?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/7812187382603441018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=7812187382603441018' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/7812187382603441018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/7812187382603441018'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/12/rrdtool-in-short.html' title='RRDtool in short....'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-6792583191062299212</id><published>2008-12-28T23:20:00.001-08:00</published><updated>2008-12-29T05:55:03.857-08:00</updated><title type='text'>Redhat Directory Server</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Port Numbers:&lt;/span&gt;&lt;br /&gt;- The Directory Server instance (LDAP) has a default port number of &lt;span style="font-weight:bold;"&gt;389&lt;/span&gt;.&lt;br /&gt;- Administration Server port number has a default number of &lt;span style="font-weight:bold;"&gt;9830&lt;/span&gt;. If the default port number for either server is in use, then the setup program randomly generates a port number larger than 1024 to use as the default.&lt;br /&gt;- For LDAPS (LDAP with TLS/SSL), the default port number is &lt;span style="font-weight:bold;"&gt;636&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Directory Manager:&lt;/span&gt;&lt;br /&gt;- Directory Server setup creates a special user called the Directory Manager.&lt;br /&gt;- A unique, powerful entry that is used to administer all user and configuration tasks.&lt;br /&gt;- access controls. password policy, and database limits for size, time, and lookthrough limits do not apply to the Directory Manager.&lt;br /&gt;- It is used only for authentication. &lt;br /&gt;- The Directory Server setup process prompts for a distinguished name (DN) and a password for the Directory Manager.&lt;br /&gt;- The default value for the Directory Manager DN is cn=Directory Manager.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Directory Administrator&lt;/span&gt;&lt;br /&gt;- The Directory Administrator is the "super user" that manages all Directory Server and Administration Server instances through the Directory Server Console. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Administration Server User&lt;/span&gt;&lt;br /&gt;- By default, the Administration Server runs as the same non-root user as the Directory Server. &lt;br /&gt;&lt;br /&gt;There are important differences between the Directory Administrator and the Directory Manager:&lt;br /&gt;    * The administrator cannot create top level entries for a new suffix through an add operation. either adding an entry in the Directory Server Console or using ldapadd, a tool provided with OpenLDAP. Only the Directory Manager can add top-level entries by default. To allow other users to add top-level entries, create entries with the appropriate access control statements in an LDIF file, and perform an import or database initialization procedure using that LDIF file.&lt;br /&gt;    * Password policies do apply to the administrator, but you can set a user-specific password policy for the administrator.&lt;br /&gt;    * Size, time, and lookthrough limits apply to the administrator, but you can set different resource limits for this user. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;setup-ds-admin.pl&lt;/span&gt;&lt;br /&gt;- The Directory Server and Administration Server instances are created and configured through a script call setup-ds-admin.pl. &lt;br /&gt;- to set the machine name, suffix, and Directory Server port of the new instance, the command is as follows: &lt;br /&gt;&lt;span style="font-style:italic;"&gt;/usr/sbin/setup-ds-admin.pl General.FullMachineName=ldap.example.com “slapd.Suffix=dc=example, dc=com” slapd.ServerPort=389&lt;/span&gt;&lt;br /&gt;- When the setup-ds-admin.pl finishes, it generates a log file in the /tmp directory called setupXXXXXX.log where XXXXXX is a series of random characters.&lt;br /&gt;-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-6792583191062299212?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/6792583191062299212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=6792583191062299212' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/6792583191062299212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/6792583191062299212'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/12/redhat-directory-server.html' title='Redhat Directory Server'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-3118301645202676469</id><published>2008-12-19T03:01:00.000-08:00</published><updated>2008-12-19T04:18:37.823-08:00</updated><title type='text'>Difference between innodb and myisam.</title><content type='html'>- MyISAM offers speed where as InnoDB offers reliability. &lt;br /&gt;- Innodb support transactions, MyISAM not.&lt;br /&gt;- InnoDB also supports row-level locking, while MyISAM only supports table locking.&lt;br /&gt;- InnoDB is specifically for high volume, high performance.&lt;br /&gt;- With replication it's even possible to take advantage of both storage engines on one table. For example, the master could store a table as InnoDB which makes it fast for INSERTs, UPDATEs and DELETEs while the slave(s) could store the same table as MyISAM and offer the best performance for SELECTs.&lt;br /&gt;-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-3118301645202676469?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/3118301645202676469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=3118301645202676469' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/3118301645202676469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/3118301645202676469'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/12/difference-between-innodb-and-myisam.html' title='Difference between innodb and myisam.'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-4188540775479209003</id><published>2008-12-18T21:17:00.000-08:00</published><updated>2008-12-18T23:51:22.028-08:00</updated><title type='text'>Limiting closed port RST response from 266 to 200 packets/second.</title><content type='html'>Kernel default setting for icmp response is set to 200.  &lt;br /&gt;&lt;span style="font-weight:bold;font-style:italic;"&gt;net.inet.icmp.icmplim&lt;/span&gt; sysctl limits.&lt;br /&gt;&lt;br /&gt;Possible reasons are,&lt;br /&gt;1. This generally means the system is being portscanned or a similar activity on the machine. In worst case someone trying to do DOS attack.&lt;br /&gt;I suggest that you set the following sysctl variables,&lt;br /&gt;net.inet.tcp.blackhole=2&lt;br /&gt;net.inet.udp.blackhole=1 &lt;br /&gt;&lt;br /&gt;2. But it can also mean that a often-used service on the machine (like http or a database server) is down and you're getting a lot of failed connection requests from clients.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-4188540775479209003?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/4188540775479209003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=4188540775479209003' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/4188540775479209003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/4188540775479209003'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/12/limiting-closed-port-rst-response-from.html' title='Limiting closed port RST response from 266 to 200 packets/second.'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-3373641122204305911</id><published>2008-12-18T21:15:00.000-08:00</published><updated>2008-12-18T21:17:12.328-08:00</updated><title type='text'>How to find out and terminate or kill the defunct processes?</title><content type='html'>lsof | grep "deleted" or&lt;br /&gt;lsof | grep "process" (rather long and messy)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-3373641122204305911?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/3373641122204305911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=3373641122204305911' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/3373641122204305911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/3373641122204305911'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/12/how-to-find-out-and-terminate-or-kill.html' title='How to find out and terminate or kill the defunct processes?'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-1687238188465082807</id><published>2008-12-18T21:13:00.000-08:00</published><updated>2008-12-18T21:15:41.007-08:00</updated><title type='text'>df command shows different used disk space than du.</title><content type='html'>If the files are deleted (by rm command) while they are being opened or used by a Linux program / process, the evil of “open file descriptor” problem arises and confuse the Linux file system on reporting the real figure of used disk space or free disk space available.&lt;br /&gt;&lt;br /&gt;In order to resolve the fake “disk space full” problem, i.e. to reclaim “used disk space”, you need to kill or terminate the “defunct process” - in this case, the rm command that turns to be defunct process while the files are being used.&lt;br /&gt;&lt;br /&gt;Once these defunct processes are terminated, the “open file descriptor” problem will be resolved, and both the du and df commands will agree to report the real file system used disk space or free disk space!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-1687238188465082807?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/1687238188465082807/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=1687238188465082807' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/1687238188465082807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/1687238188465082807'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/12/df-command-shows-different-used-disk.html' title='df command shows different used disk space than du.'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-7178713554242655686</id><published>2008-12-18T06:10:00.000-08:00</published><updated>2008-12-18T06:15:13.479-08:00</updated><title type='text'>Use remote Linux GUI application tools locally.</title><content type='html'>You must have OpenSSH server installed. &lt;br /&gt;Open SSHD configuration file /etc/ssh/sshd_config&lt;br /&gt;&lt;span style="font-style:italic;"&gt;$ sudo vi /etc/ssh/sshd_config&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Turn on X11Forwarding by setting X11Forwarding parameter to yes:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;X11Forwarding yes&lt;/span&gt;&lt;br /&gt;Save and close the file. &lt;br /&gt;&lt;br /&gt;Restart OpenSSH server you so the changes will take place:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;$ sudo /etc/init.d/sshd restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Logout and close ssh connection.&lt;br /&gt;&lt;br /&gt;Running a command remotely&lt;br /&gt;&lt;span style="font-style:italic;"&gt;$ ssh -X 203.199.92.106 /usr/bin/gnome-terminal &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Another option is to connect to the remote server and use X port forwarding:&lt;br /&gt;$ ssh -X {remote server}&lt;br /&gt;&lt;br /&gt;Reference Links:&lt;br /&gt;    * Refer to OpenSSH man pages (man sshd, sshd_config, ssh_config)&lt;br /&gt;    * VNC - An alternative to X forwarding&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-7178713554242655686?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/7178713554242655686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=7178713554242655686' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/7178713554242655686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/7178713554242655686'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/12/use-remote-linux-gui-application-tools.html' title='Use remote Linux GUI application tools locally.'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-4209983031366234807</id><published>2008-12-17T08:40:00.000-08:00</published><updated>2008-12-17T10:47:03.156-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='redhat clustering'/><title type='text'>Redhat Clustering...</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-4209983031366234807?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/4209983031366234807/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=4209983031366234807' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/4209983031366234807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/4209983031366234807'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/12/redhat-clustering.html' title='Redhat Clustering...'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-8617831763482425146</id><published>2008-12-16T10:13:00.000-08:00</published><updated>2008-12-16T10:57:45.590-08:00</updated><title type='text'>How Solaris is different from Linux.</title><content type='html'>File system structure is same as other *nix. few differences are,&lt;br /&gt;- &lt;span style="font-style:italic;"&gt;/usr/adm&lt;/span&gt; is symlink to &lt;span style="font-style:italic;"&gt;/var/adm&lt;/span&gt; which is similar to linux &lt;span style="font-style:italic;"&gt;/var/log&lt;/span&gt;.&lt;br /&gt;- /usr/sadm - Solaris admin tools like SMC (Solaris management tools)&lt;br /&gt;- /usr/proc - Solaris ptools(process tools) such as pfiles, pmap, pwdx, pstack.&lt;br /&gt;- /usr/X11 - X server and related tools.&lt;br /&gt;&lt;br /&gt;Solaris doesnt contain /root directory. Root user shouldnt be doing things which requires /root directory.&lt;br /&gt;&lt;br /&gt;In Solaris you will also not find SUDO utility because of RBAC (Role Based Access Control). &lt;br /&gt;&lt;br /&gt;In solaris need to add NFS shares to &lt;span style="font-style:italic;"&gt;/etc/dfs/dfstab&lt;/span&gt;. DFS stands for Distributed File System.&lt;br /&gt;&lt;br /&gt;To export filesystems you can edit /etc/dfs/dfstab and run &lt;span style="font-style:italic;"&gt;exportfs -a&lt;/span&gt; (or &lt;span style="font-style:italic;"&gt;svcadm restart svc:/network/nfs/server&lt;/span&gt;) or you can use the share command. share allows you to quickly export a filesystem, so if you wanted to NFS &lt;span style="font-style:italic;"&gt;share /opt&lt;/span&gt; you could just execute share /opt and your done.&lt;br /&gt;&lt;br /&gt;Solaris doesn't have top. But, we have something better yet similar: &lt;span style="font-style:italic;"&gt;prstat&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;you can use the Solaris "ptools" (process tools) to learn more about a process, such as &lt;span style="font-style:italic;"&gt;pstack `pgrep cron`&lt;/span&gt; to see the call stack of the cron process, or &lt;span style="font-style:italic;"&gt;pfiles `pgrep firefox-bin`&lt;/span&gt; to see details about every file that Firefox has open.&lt;br /&gt;&lt;br /&gt;Packages come in two varieties: filesystem format and datastream.&lt;br /&gt;- A filesystem format package is what you'll find on Sun CD's and is really just a directory stucture containing all the various elements and files of the package.&lt;br /&gt;- A datastream package is a filesystem format package thats rolled into a single file making it easy to compress and distribute over the net. Packages use a common naming convension of ORGsoftware, such as SUNWspro&lt;br /&gt;&lt;br /&gt;Both types of packages are installed using the pkgadd command (ie: &lt;span style="font-style:italic;"&gt;pkgadd -d ./CUDLgcc-4.0.1.pkg&lt;/span&gt; for datastream and &lt;span style="font-style:italic;"&gt;pkgadd -d&lt;/span&gt; . for filesystem format). &lt;br /&gt;&lt;br /&gt;Use svcs to view services, svcadm to administer them (start, stop, etc), and svccfg to add or change them. &lt;br /&gt;&lt;br /&gt;SMF services are described in XML manifests, find the default system manifests in &lt;span style="font-style:italic;"&gt;/var/svc/manifest&lt;/span&gt;. Manifests describe a service, what its dependancies are, supply optional metadata, and provide methods to start, stop, refresh, or restart a service. &lt;br /&gt;&lt;br /&gt;The standard Solaris naming convension for disks is: c0t0d0s0, that is to say: controller 0, target 0, LUN 0, slice 0.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-8617831763482425146?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/8617831763482425146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=8617831763482425146' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/8617831763482425146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/8617831763482425146'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/12/how-solaris-is-different-from-linux.html' title='How Solaris is different from Linux.'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-7985990977046899445</id><published>2008-08-26T04:21:00.000-07:00</published><updated>2008-08-26T04:24:23.904-07:00</updated><title type='text'>TCP and UDP Ports.</title><content type='html'>Reference : http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers&lt;br /&gt;&lt;br /&gt;The port numbers are divided into three ranges:&lt;br /&gt;* The Well Known Ports are those in the range 0–1023. On Unix-like operating systems, opening a port in this range to receive incoming connections requires administrative privileges or possessing CAP_NET_BIND_SERVICE capability.&lt;br /&gt;&lt;br /&gt;* The Registered Ports are those in the range 1024–49151.&lt;br /&gt;&lt;br /&gt;* The Dynamic and/or Private Ports are those in the range 49152–65535. Randomly chosen port numbers out of this range are called ephemeral ports. These ports are not permanently assigned to any publicly defined application.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-7985990977046899445?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/7985990977046899445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=7985990977046899445' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/7985990977046899445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/7985990977046899445'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/08/tcp-and-udp-ports.html' title='TCP and UDP Ports.'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-6609907264863092805</id><published>2008-08-20T22:00:00.000-07:00</published><updated>2008-08-20T22:02:42.497-07:00</updated><title type='text'>My Mysql Notes....</title><content type='html'>Will start soon......&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-6609907264863092805?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/6609907264863092805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=6609907264863092805' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/6609907264863092805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/6609907264863092805'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/08/my-mysql-notes.html' title='My Mysql Notes....'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-2492146132001333925</id><published>2008-08-20T12:59:00.000-07:00</published><updated>2008-08-20T13:12:03.731-07:00</updated><title type='text'>grep, egrep and fgrep from manpage</title><content type='html'>&lt;span style="font-weight:bold;"&gt;grep&lt;/span&gt; &lt;br /&gt;grep  searches  the  named input FILEs (or standard input if no files are named, or if a single hyphen-minus (-) is given as file name) for lines containing a match to the given PATTERN.  By default, grep  prints  the matching lines.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;egrep&lt;/span&gt;&lt;br /&gt;  -E, --extended-regexp&lt;br /&gt;              Interpret PATTERN as an extended regular expression (ERE, see below).  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;fgrep&lt;/span&gt;&lt;br /&gt; -F, --fixed-strings&lt;br /&gt;              Interpret  PATTERN  as a list of fixed strings, separated by newlines, any of which is to be matched.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Important Options with grep :&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-R, -r, --recursive&lt;/span&gt;&lt;br /&gt;    Read all files under each directory, recursively; this is equivalent to the -d recurse option.&lt;br /&gt;&lt;span style="font-style:italic;"&gt;--exclude-dir=DIR&lt;/span&gt;&lt;br /&gt;    Exclude directories matching the pattern DIR from recursive searches.&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-A NUM, --after-context=NUM&lt;/span&gt;&lt;br /&gt;    Print NUM lines of trailing context after matching lines.  Places a line containing a group separator (--) between contiguous groups of matches.  With the -o or --only-matching option, this has no effect and a warning is given.&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-B NUM, --before-context=NUM&lt;/span&gt;&lt;br /&gt;    Print NUM lines of leading context before matching lines.  Places a line containing a group separator (--) between contiguous groups of matches.  With the -o or --only-matching option, this has no effect and a warning is given.&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-n, --line-number&lt;/span&gt;&lt;br /&gt;    Prefix each line of output with the 1-based line number within its input file. &lt;br /&gt;&lt;span style="font-style:italic;"&gt;-c, --count&lt;/span&gt;&lt;br /&gt;    Suppress normal output; instead print a count of matching lines for each input file. &lt;br /&gt;&lt;span style="font-style:italic;"&gt;-i, --ignore-case&lt;/span&gt;&lt;br /&gt;    Ignore case distinctions in both the PATTERN and the input files.  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;egrep is the same as grep -E. &lt;br /&gt;fgrep is the same as grep -F. &lt;br /&gt;rgrep is the same as grep -r. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;grep Repetition&lt;/span&gt;&lt;br /&gt;       A regular expression may be followed by one of several repetition operators:&lt;br /&gt;       ?      The preceding item is optional and matched at most once.&lt;br /&gt;       *      The preceding item will be matched zero or more times.&lt;br /&gt;       +      The preceding item will be matched one or more times.&lt;br /&gt;       {n}    The preceding item is matched exactly n times.&lt;br /&gt;       {n,}   The preceding item is matched n or more times.&lt;br /&gt;       {,m}   The preceding item is matched at most m times.&lt;br /&gt;       {n,m}  The preceding item is matched at least n times, but not more than m times.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-2492146132001333925?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/2492146132001333925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=2492146132001333925' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/2492146132001333925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/2492146132001333925'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/08/grep.html' title='grep, egrep and fgrep from manpage'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-5169635850914999192</id><published>2008-08-19T08:34:00.000-07:00</published><updated>2008-08-19T08:37:57.349-07:00</updated><title type='text'>Sed One liners....</title><content type='html'>Reference : &lt;a href="http://sed.sourceforge.net/sed1line.txt"&gt;http://sed.sourceforge.net/sed1line.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;FILE SPACING:&lt;/span&gt;&lt;br /&gt; # double space a file&lt;br /&gt; sed G&lt;br /&gt;&lt;br /&gt; # double space a file which already has blank lines in it. Output file&lt;br /&gt; # should contain no more than one blank line between lines of text.&lt;br /&gt; sed '/^$/d;G'&lt;br /&gt;&lt;br /&gt; # triple space a file&lt;br /&gt; sed 'G;G'&lt;br /&gt;&lt;br /&gt; # undo double-spacing (assumes even-numbered lines are always blank)&lt;br /&gt; sed 'n;d'&lt;br /&gt;&lt;br /&gt; # insert a blank line above every line which matches "regex"&lt;br /&gt; sed '/regex/{x;p;x;}'&lt;br /&gt;&lt;br /&gt; # insert a blank line below every line which matches "regex"&lt;br /&gt; sed '/regex/G'&lt;br /&gt;&lt;br /&gt; # insert a blank line above and below every line which matches "regex"&lt;br /&gt; sed '/regex/{x;p;x;G;}'&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;NUMBERING:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt; # number each line of a file (simple left alignment). Using a tab (see&lt;br /&gt; # note on '\t' at end of file) instead of space will preserve margins.&lt;br /&gt; sed = filename | sed 'N;s/\n/\t/'&lt;br /&gt;&lt;br /&gt; # number each line of a file (number on left, right-aligned)&lt;br /&gt; sed = filename | sed 'N; s/^/     /; s/ *\(.\{6,\}\)\n/\1  /'&lt;br /&gt;&lt;br /&gt; # number each line of file, but only print numbers if line is not blank&lt;br /&gt; sed '/./=' filename | sed '/./N; s/\n/ /'&lt;br /&gt;&lt;br /&gt; # count lines (emulates "wc -l")&lt;br /&gt; sed -n '$='&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;TEXT CONVERSION AND SUBSTITUTION:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; # IN UNIX ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format.&lt;br /&gt; sed 's/.$//'               # assumes that all lines end with CR/LF&lt;br /&gt; sed 's/^M$//'              # in bash/tcsh, press Ctrl-V then Ctrl-M&lt;br /&gt; sed 's/\x0D$//'            # works on ssed, gsed 3.02.80 or higher&lt;br /&gt;&lt;br /&gt; # IN UNIX ENVIRONMENT: convert Unix newlines (LF) to DOS format.&lt;br /&gt; sed "s/$/`echo -e \\\r`/"            # command line under ksh&lt;br /&gt; sed 's/$'"/`echo \\\r`/"             # command line under bash&lt;br /&gt; sed "s/$/`echo \\\r`/"               # command line under zsh&lt;br /&gt; sed 's/$/\r/'                        # gsed 3.02.80 or higher&lt;br /&gt;&lt;br /&gt; # IN DOS ENVIRONMENT: convert Unix newlines (LF) to DOS format.&lt;br /&gt; sed "s/$//"                          # method 1&lt;br /&gt; sed -n p                             # method 2&lt;br /&gt;&lt;br /&gt; # IN DOS ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format.&lt;br /&gt; # Can only be done with UnxUtils sed, version 4.0.7 or higher. The&lt;br /&gt; # UnxUtils version can be identified by the custom "--text" switch&lt;br /&gt; # which appears when you use the "--help" switch. Otherwise, changing&lt;br /&gt; # DOS newlines to Unix newlines cannot be done with sed in a DOS&lt;br /&gt; # environment. Use "tr" instead.&lt;br /&gt; sed "s/\r//" infile &gt;outfile         # UnxUtils sed v4.0.7 or higher&lt;br /&gt; tr -d \r &lt;infile &gt;outfile            # GNU tr version 1.22 or higher&lt;br /&gt;&lt;br /&gt; # delete leading whitespace (spaces, tabs) from front of each line&lt;br /&gt; # aligns all text flush left&lt;br /&gt; sed 's/^[ \t]*//'                    # see note on '\t' at end of file&lt;br /&gt;&lt;br /&gt; # delete trailing whitespace (spaces, tabs) from end of each line&lt;br /&gt; sed 's/[ \t]*$//'                    # see note on '\t' at end of file&lt;br /&gt;&lt;br /&gt; # delete BOTH leading and trailing whitespace from each line&lt;br /&gt; sed 's/^[ \t]*//;s/[ \t]*$//'&lt;br /&gt;&lt;br /&gt; # insert 5 blank spaces at beginning of each line (make page offset)&lt;br /&gt; sed 's/^/     /'&lt;br /&gt;&lt;br /&gt; # align all text flush right on a 79-column width&lt;br /&gt; sed -e :a -e 's/^.\{1,78\}$/ &amp;/;ta'  # set at 78 plus 1 space&lt;br /&gt;&lt;br /&gt; # center all text in the middle of 79-column width. In method 1,&lt;br /&gt; # spaces at the beginning of the line are significant, and trailing&lt;br /&gt; # spaces are appended at the end of the line. In method 2, spaces at&lt;br /&gt; # the beginning of the line are discarded in centering the line, and&lt;br /&gt; # no trailing spaces appear at the end of lines.&lt;br /&gt; sed  -e :a -e 's/^.\{1,77\}$/ &amp; /;ta'                     # method 1&lt;br /&gt; sed  -e :a -e 's/^.\{1,77\}$/ &amp;/;ta' -e 's/\( *\)\1/\1/'  # method 2&lt;br /&gt;&lt;br /&gt; # substitute (find and replace) "foo" with "bar" on each line&lt;br /&gt; sed 's/foo/bar/'             # replaces only 1st instance in a line&lt;br /&gt; sed 's/foo/bar/4'            # replaces only 4th instance in a line&lt;br /&gt; sed 's/foo/bar/g'            # replaces ALL instances in a line&lt;br /&gt; sed 's/\(.*\)foo\(.*foo\)/\1bar\2/' # replace the next-to-last case&lt;br /&gt; sed 's/\(.*\)foo/\1bar/'            # replace only the last case&lt;br /&gt;&lt;br /&gt; # substitute "foo" with "bar" ONLY for lines which contain "baz"&lt;br /&gt; sed '/baz/s/foo/bar/g'&lt;br /&gt;&lt;br /&gt; # substitute "foo" with "bar" EXCEPT for lines which contain "baz"&lt;br /&gt; sed '/baz/!s/foo/bar/g'&lt;br /&gt;&lt;br /&gt; # change "scarlet" or "ruby" or "puce" to "red"&lt;br /&gt; sed 's/scarlet/red/g;s/ruby/red/g;s/puce/red/g'   # most seds&lt;br /&gt; gsed 's/scarlet\|ruby\|puce/red/g'                # GNU sed only&lt;br /&gt;&lt;br /&gt; # reverse order of lines (emulates "tac")&lt;br /&gt; # bug/feature in HHsed v1.5 causes blank lines to be deleted&lt;br /&gt; sed '1!G;h;$!d'               # method 1&lt;br /&gt; sed -n '1!G;h;$p'             # method 2&lt;br /&gt;&lt;br /&gt; # reverse each character on the line (emulates "rev")&lt;br /&gt; sed '/\n/!G;s/\(.\)\(.*\n\)/&amp;\2\1/;//D;s/.//'&lt;br /&gt;&lt;br /&gt; # join pairs of lines side-by-side (like "paste")&lt;br /&gt; sed '$!N;s/\n/ /'&lt;br /&gt;&lt;br /&gt; # if a line ends with a backslash, append the next line to it&lt;br /&gt; sed -e :a -e '/\\$/N; s/\\\n//; ta'&lt;br /&gt;&lt;br /&gt; # if a line begins with an equal sign, append it to the previous line&lt;br /&gt; # and replace the "=" with a single space&lt;br /&gt; sed -e :a -e '$!N;s/\n=/ /;ta' -e 'P;D'&lt;br /&gt;&lt;br /&gt; # add commas to numeric strings, changing "1234567" to "1,234,567"&lt;br /&gt; gsed ':a;s/\B[0-9]\{3\}\&gt;/,&amp;/;ta'                     # GNU sed&lt;br /&gt; sed -e :a -e 's/\(.*[0-9]\)\([0-9]\{3\}\)/\1,\2/;ta'  # other seds&lt;br /&gt;&lt;br /&gt; # add commas to numbers with decimal points and minus signs (GNU sed)&lt;br /&gt; gsed -r ':a;s/(^|[^0-9.])([0-9]+)([0-9]{3})/\1\2,\3/g;ta'&lt;br /&gt;&lt;br /&gt; # add a blank line every 5 lines (after lines 5, 10, 15, 20, etc.)&lt;br /&gt; gsed '0~5G'                  # GNU sed only&lt;br /&gt; sed 'n;n;n;n;G;'             # other seds&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;SELECTIVE PRINTING OF CERTAIN LINES:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; # print first 10 lines of file (emulates behavior of "head")&lt;br /&gt; sed 10q&lt;br /&gt;&lt;br /&gt; # print first line of file (emulates "head -1")&lt;br /&gt; sed q&lt;br /&gt;&lt;br /&gt; # print the last 10 lines of a file (emulates "tail")&lt;br /&gt; sed -e :a -e '$q;N;11,$D;ba'&lt;br /&gt;&lt;br /&gt; # print the last 2 lines of a file (emulates "tail -2")&lt;br /&gt; sed '$!N;$!D'&lt;br /&gt;&lt;br /&gt; # print the last line of a file (emulates "tail -1")&lt;br /&gt; sed '$!d'                    # method 1&lt;br /&gt; sed -n '$p'                  # method 2&lt;br /&gt;&lt;br /&gt; # print the next-to-the-last line of a file&lt;br /&gt; sed -e '$!{h;d;}' -e x              # for 1-line files, print blank line&lt;br /&gt; sed -e '1{$q;}' -e '$!{h;d;}' -e x  # for 1-line files, print the line&lt;br /&gt; sed -e '1{$d;}' -e '$!{h;d;}' -e x  # for 1-line files, print nothing&lt;br /&gt;&lt;br /&gt; # print only lines which match regular expression (emulates "grep")&lt;br /&gt; sed -n '/regexp/p'           # method 1&lt;br /&gt; sed '/regexp/!d'             # method 2&lt;br /&gt;&lt;br /&gt; # print only lines which do NOT match regexp (emulates "grep -v")&lt;br /&gt; sed -n '/regexp/!p'          # method 1, corresponds to above&lt;br /&gt; sed '/regexp/d'              # method 2, simpler syntax&lt;br /&gt;&lt;br /&gt; # print the line immediately before a regexp, but not the line&lt;br /&gt; # containing the regexp&lt;br /&gt; sed -n '/regexp/{g;1!p;};h'&lt;br /&gt;&lt;br /&gt; # print the line immediately after a regexp, but not the line&lt;br /&gt; # containing the regexp&lt;br /&gt; sed -n '/regexp/{n;p;}'&lt;br /&gt;&lt;br /&gt; # print 1 line of context before and after regexp, with line number&lt;br /&gt; # indicating where the regexp occurred (similar to "grep -A1 -B1")&lt;br /&gt; sed -n -e '/regexp/{=;x;1!p;g;$!N;p;D;}' -e h&lt;br /&gt;&lt;br /&gt; # grep for AAA and BBB and CCC (in any order)&lt;br /&gt; sed '/AAA/!d; /BBB/!d; /CCC/!d'&lt;br /&gt;&lt;br /&gt; # grep for AAA and BBB and CCC (in that order)&lt;br /&gt; sed '/AAA.*BBB.*CCC/!d'&lt;br /&gt;&lt;br /&gt; # grep for AAA or BBB or CCC (emulates "egrep")&lt;br /&gt; sed -e '/AAA/b' -e '/BBB/b' -e '/CCC/b' -e d    # most seds&lt;br /&gt; gsed '/AAA\|BBB\|CCC/!d'                        # GNU sed only&lt;br /&gt;&lt;br /&gt; # print paragraph if it contains AAA (blank lines separate paragraphs)&lt;br /&gt; # HHsed v1.5 must insert a 'G;' after 'x;' in the next 3 scripts below&lt;br /&gt; sed -e '/./{H;$!d;}' -e 'x;/AAA/!d;'&lt;br /&gt;&lt;br /&gt; # print paragraph if it contains AAA and BBB and CCC (in any order)&lt;br /&gt; sed -e '/./{H;$!d;}' -e 'x;/AAA/!d;/BBB/!d;/CCC/!d'&lt;br /&gt;&lt;br /&gt; # print paragraph if it contains AAA or BBB or CCC&lt;br /&gt; sed -e '/./{H;$!d;}' -e 'x;/AAA/b' -e '/BBB/b' -e '/CCC/b' -e d&lt;br /&gt; gsed '/./{H;$!d;};x;/AAA\|BBB\|CCC/b;d'         # GNU sed only&lt;br /&gt;&lt;br /&gt; # print only lines of 65 characters or longer&lt;br /&gt; sed -n '/^.\{65\}/p'&lt;br /&gt;&lt;br /&gt; # print only lines of less than 65 characters&lt;br /&gt; sed -n '/^.\{65\}/!p'        # method 1, corresponds to above&lt;br /&gt; sed '/^.\{65\}/d'            # method 2, simpler syntax&lt;br /&gt;&lt;br /&gt; # print section of file from regular expression to end of file&lt;br /&gt; sed -n '/regexp/,$p'&lt;br /&gt;&lt;br /&gt; # print section of file based on line numbers (lines 8-12, inclusive)&lt;br /&gt; sed -n '8,12p'               # method 1&lt;br /&gt; sed '8,12!d'                 # method 2&lt;br /&gt;&lt;br /&gt; # print line number 52&lt;br /&gt; sed -n '52p'                 # method 1&lt;br /&gt; sed '52!d'                   # method 2&lt;br /&gt; sed '52q;d'                  # method 3, efficient on large files&lt;br /&gt;&lt;br /&gt; # beginning at line 3, print every 7th line&lt;br /&gt; gsed -n '3~7p'               # GNU sed only&lt;br /&gt; sed -n '3,${p;n;n;n;n;n;n;}' # other seds&lt;br /&gt;&lt;br /&gt; # print section of file between two regular expressions (inclusive)&lt;br /&gt; sed -n '/Iowa/,/Montana/p'             # case sensitive&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SELECTIVE DELETION OF CERTAIN LINES:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; # print all of file EXCEPT section between 2 regular expressions&lt;br /&gt; sed '/Iowa/,/Montana/d'&lt;br /&gt;&lt;br /&gt; # delete duplicate, consecutive lines from a file (emulates "uniq").&lt;br /&gt; # First line in a set of duplicate lines is kept, rest are deleted.&lt;br /&gt; sed '$!N; /^\(.*\)\n\1$/!P; D'&lt;br /&gt;&lt;br /&gt; # delete duplicate, nonconsecutive lines from a file. Beware not to&lt;br /&gt; # overflow the buffer size of the hold space, or else use GNU sed.&lt;br /&gt; sed -n 'G; s/\n/&amp;&amp;/; /^\([ -~]*\n\).*\n\1/d; s/\n//; h; P'&lt;br /&gt;&lt;br /&gt; # delete all lines except duplicate lines (emulates "uniq -d").&lt;br /&gt; sed '$!N; s/^\(.*\)\n\1$/\1/; t; D'&lt;br /&gt;&lt;br /&gt; # delete the first 10 lines of a file&lt;br /&gt; sed '1,10d'&lt;br /&gt;&lt;br /&gt; # delete the last line of a file&lt;br /&gt; sed '$d'&lt;br /&gt;&lt;br /&gt; # delete the last 2 lines of a file&lt;br /&gt; sed 'N;$!P;$!D;$d'&lt;br /&gt;&lt;br /&gt; # delete the last 10 lines of a file&lt;br /&gt; sed -e :a -e '$d;N;2,10ba' -e 'P;D'   # method 1&lt;br /&gt; sed -n -e :a -e '1,10!{P;N;D;};N;ba'  # method 2&lt;br /&gt;&lt;br /&gt; # delete every 8th line&lt;br /&gt; gsed '0~8d'                           # GNU sed only&lt;br /&gt; sed 'n;n;n;n;n;n;n;d;'                # other seds&lt;br /&gt;&lt;br /&gt; # delete lines matching pattern&lt;br /&gt; sed '/pattern/d'&lt;br /&gt;&lt;br /&gt; # delete ALL blank lines from a file (same as "grep '.' ")&lt;br /&gt; sed '/^$/d'                           # method 1&lt;br /&gt; sed '/./!d'                           # method 2&lt;br /&gt;&lt;br /&gt; # delete all CONSECUTIVE blank lines from file except the first; also&lt;br /&gt; # deletes all blank lines from top and end of file (emulates "cat -s")&lt;br /&gt; sed '/./,/^$/!d'          # method 1, allows 0 blanks at top, 1 at EOF&lt;br /&gt; sed '/^$/N;/\n$/D'        # method 2, allows 1 blank at top, 0 at EOF&lt;br /&gt;&lt;br /&gt; # delete all CONSECUTIVE blank lines from file except the first 2:&lt;br /&gt; sed '/^$/N;/\n$/N;//D'&lt;br /&gt;&lt;br /&gt; # delete all leading blank lines at top of file&lt;br /&gt; sed '/./,$!d'&lt;br /&gt;&lt;br /&gt; # delete all trailing blank lines at end of file&lt;br /&gt; sed -e :a -e '/^\n*$/{$d;N;ba' -e '}'  # works on all seds&lt;br /&gt; sed -e :a -e '/^\n*$/N;/\n$/ba'        # ditto, except for gsed 3.02.*&lt;br /&gt;&lt;br /&gt; # delete the last line of each paragraph&lt;br /&gt; sed -n '/^$/{p;h;};/./{x;/./p;}'&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SPECIAL APPLICATIONS:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; # remove nroff overstrikes (char, backspace) from man pages. The 'echo'&lt;br /&gt; # command may need an -e switch if you use Unix System V or bash shell.&lt;br /&gt; sed "s/.`echo \\\b`//g"    # double quotes required for Unix environment&lt;br /&gt; sed 's/.^H//g'             # in bash/tcsh, press Ctrl-V and then Ctrl-H&lt;br /&gt; sed 's/.\x08//g'           # hex expression for sed 1.5, GNU sed, ssed&lt;br /&gt;&lt;br /&gt; # get Usenet/e-mail message header&lt;br /&gt; sed '/^$/q'                # deletes everything after first blank line&lt;br /&gt;&lt;br /&gt; # get Usenet/e-mail message body&lt;br /&gt; sed '1,/^$/d'              # deletes everything up to first blank line&lt;br /&gt;&lt;br /&gt; # get Subject header, but remove initial "Subject: " portion&lt;br /&gt; sed '/^Subject: */!d; s///;q'&lt;br /&gt;&lt;br /&gt; # get return address header&lt;br /&gt; sed '/^Reply-To:/q; /^From:/h; /./d;g;q'&lt;br /&gt;&lt;br /&gt; # parse out the address proper. Pulls out the e-mail address by itself&lt;br /&gt; # from the 1-line return address header (see preceding script)&lt;br /&gt; sed 's/ *(.*)//; s/&gt;.*//; s/.*[:&lt;] *//'&lt;br /&gt;&lt;br /&gt; # add a leading angle bracket and space to each line (quote a message)&lt;br /&gt; sed 's/^/&gt; /'&lt;br /&gt;&lt;br /&gt; # delete leading angle bracket &amp; space from each line (unquote a message)&lt;br /&gt; sed 's/^&gt; //'&lt;br /&gt;&lt;br /&gt; # remove most HTML tags (accommodates multiple-line tags)&lt;br /&gt; sed -e :a -e 's/&lt;[^&gt;]*&gt;//g;/&lt;/N;//ba'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-5169635850914999192?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/5169635850914999192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=5169635850914999192' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/5169635850914999192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/5169635850914999192'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/08/sed-one-liners.html' title='Sed One liners....'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-5002714147255307950</id><published>2008-08-15T12:35:00.001-07:00</published><updated>2008-08-15T12:35:51.390-07:00</updated><title type='text'>Sun Solaris useful sites.</title><content type='html'>Here are some of the websites of interest:&lt;br /&gt;&lt;br /&gt;http://training.sun.com/US/certification/objectives/index.html&lt;br /&gt;http://training.sun.com/US/certification/solaris/sysadmin.html&lt;br /&gt;http://suned.sun.com/US/certification&lt;br /&gt;http://www.networkessentials.com/certified/sca/&lt;br /&gt;http://www.suncert.com&lt;br /&gt;http://www.informit.com/examcram2/&lt;br /&gt;http://www.learnsolaris.com/v3/index.php&lt;br /&gt;http://www.examslam.com&lt;br /&gt;http://www.unixcert.net/solaris/solaris.htm&lt;br /&gt;http://www.adminschoice.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-5002714147255307950?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/5002714147255307950/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=5002714147255307950' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/5002714147255307950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/5002714147255307950'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/08/sun-solaris-useful-sites.html' title='Sun Solaris useful sites.'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-8874179491706224117</id><published>2008-08-07T04:06:00.001-07:00</published><updated>2008-08-07T04:06:55.914-07:00</updated><title type='text'>HTTP Response Codes</title><content type='html'>&lt;p&gt;The following are webserver response codes that are used by webservers of all platforms. &lt;/p&gt;&lt;p&gt;Code Description&lt;br /&gt;&lt;/p&gt;100 Continue&lt;br /&gt;101 Switching protocols&lt;br /&gt;200 OK&lt;br /&gt;201 Created&lt;br /&gt;202 Accepted&lt;br /&gt;203 Non-authoritative information&lt;br /&gt;204 No content&lt;br /&gt;205 Reset content&lt;br /&gt;206 Partial content&lt;br /&gt;300 Multiple choices&lt;br /&gt;301 Moved permanently&lt;br /&gt;302 Moved temporarily&lt;br /&gt;303 See other&lt;br /&gt;304 Not modified&lt;br /&gt;305 Use proxy&lt;br /&gt;307 Temporary redirect&lt;br /&gt;400 Bad request&lt;br /&gt;401 Unauthorized&lt;br /&gt;402 Payment required&lt;br /&gt;403 Forbidden&lt;br /&gt;404 Not Found&lt;br /&gt;405 Method not allowed&lt;br /&gt;406 Not acceptable&lt;br /&gt;407 Proxy authentication required&lt;br /&gt;408 Request timeout&lt;br /&gt;409 Conflict&lt;br /&gt;410 Gone&lt;br /&gt;411 Length required&lt;br /&gt;412 Precondition failed&lt;br /&gt;413 Request entity too large&lt;br /&gt;414 Request URI too large&lt;br /&gt;415 Unsupported media type&lt;br /&gt;416 Requested range not satisfiable&lt;br /&gt;417 Expectation failed&lt;br /&gt;500 Internal server error&lt;br /&gt;501 Not implemented&lt;br /&gt;502 Bad gateway&lt;br /&gt;503 Service unavailable&lt;br /&gt;504 Gateway timeout&lt;br /&gt;505 HTTP version not supported&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-8874179491706224117?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/8874179491706224117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=8874179491706224117' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/8874179491706224117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/8874179491706224117'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/08/http-response-codes.html' title='HTTP Response Codes'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-2350553431901568094</id><published>2008-08-07T03:41:00.000-07:00</published><updated>2008-08-07T04:52:36.877-07:00</updated><title type='text'>What is Netcat?</title><content type='html'>&lt;p&gt;&lt;strong&gt;Netcat &lt;/strong&gt;is a featured networking utility which reads and writes data across network connections, using the TCP/IP protocol.&lt;/p&gt;&lt;p&gt;It is designed to be a reliable "back-end" tool that can be used directly or easily driven by other programs and scripts. At the same time, it is a feature-rich network debugging and exploration tool, since it can create almost any kind of connection you would need and has several interesting built-in capabilities.&lt;br /&gt;&lt;/p&gt;It provides access to the following main features: &lt;br /&gt;- Outbound and inbound connections, TCP or UDP, to or from any ports. &lt;br /&gt;- Featured tunneling mode which allows also special tunneling such as UDP to TCP, with the possibility of specifying all network parameters (source port/interface, listening port/interface, and the remote host allowed to connect to the tunnel. &lt;br /&gt;- Built-in port-scanning capabilities, with randomizer. &lt;br /&gt;- Advanced usage options, such as buffered send-mode (one line every N seconds), and hexdump (to stderr or to a specified file) of trasmitted and received data. &lt;br /&gt;- Optional RFC854 telnet codes parser and responder.&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Some of the potential uses of netcat: &lt;/strong&gt;&lt;br /&gt;Script backends&lt;br /&gt;Scanning ports and inventorying services&lt;br /&gt;Backup handlers&lt;br /&gt;File transfers&lt;br /&gt;Server testing and simulation&lt;br /&gt;Firewall testing&lt;br /&gt;Proxy gatewaying&lt;br /&gt;Network performance testing&lt;br /&gt;Address spoofing tests&lt;br /&gt;Protecting X servers&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Transferring files using netcat:&lt;/strong&gt;&lt;br /&gt;When we want to send a file from a host to another with netcat, it is quite simple. We set up the receiving host to listen on a specific port and put all the data received into a file. We need to set a timeout so the listener notices when there is no more data coming and it can close gracefully. &lt;br /&gt;&lt;br /&gt;-l = listens for incoming connections &lt;br /&gt;-p = what port to listen on &lt;br /&gt;-v = verbosity level, use twice for more information &lt;br /&gt;-w = timeout &lt;br /&gt;-n = dont resolve IPs &lt;br /&gt;&lt;br /&gt;On the senders end we simply connect to the receivers listening port and give the file as input. The filetransfer goes smoothly as long as you remember to initiate the sending before the timeout. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Listener: &lt;/strong&gt;nc -vvn -l -p 3000 -w 3 &gt; file &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Sender:&lt;/strong&gt; nc -vvn xxx.xxx.xxx.xx 3000 &lt;&gt;&lt;p&gt;Netcat Commands&lt;br /&gt;&lt;br /&gt;Netcat also know as the swiss army knife of network tools, provides a plethora of functions that can be used for good as well as motives that are negative. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-2350553431901568094?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/2350553431901568094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=2350553431901568094' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/2350553431901568094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/2350553431901568094'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/08/what-is-netcat.html' title='What is Netcat?'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-4212661217334985762</id><published>2008-08-07T01:46:00.000-07:00</published><updated>2008-08-07T02:18:40.422-07:00</updated><title type='text'>What is network latency ?</title><content type='html'>&lt;p&gt;If you have a WAN, then one very important concern should be latency. Latency, in this case, is the time that a package of information takes to reach the other end of the slow link. This package of information could be a DNS query, ping, file, or a transaction in a client/server application. Notice that the package of information has not fully arrived at the destination until all bits have arrived. It is often tempting to assume that the only variable here is the bandwidth. It seems logical that the fatter the pipe, the quicker the information package will arrive at its destination. For a large file, latency doesn't play much of a part; however, in the case of small packages like a DNS query, ping, or a transaction, latency can kill your performance. It is very important to distinguish between bandwidth and latency.&lt;/p&gt;&lt;p&gt;Bandwidth is the capacity of the link to transfer quantities of information in a given amount of time. A 128k link can transfer roughly 13 k bytes of information in one second. This can vary depending on compression and other factors. For a 13 meg file, the total time to transfer the file across the link would be 1000 seconds. This doesn't vary that much between different kinds of slow links: frame, ppp, ISDN, etc. This gets interesting, though, when you consider that there are many packages of information that are relatively small. Different slow links have different latency characteristics. Further, as these slow links get loaded down with many different kinds of network traffic, latency can go up quickly.&lt;/p&gt;&lt;p&gt;- ping&lt;/p&gt;&lt;p&gt;- traceroute ( Uses ping command )&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-4212661217334985762?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/4212661217334985762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=4212661217334985762' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/4212661217334985762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/4212661217334985762'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/08/what-is-network-latency.html' title='What is network latency ?'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-4816406871355138127</id><published>2008-08-04T02:17:00.000-07:00</published><updated>2008-08-04T07:59:51.296-07:00</updated><title type='text'>What is GDB (GNU Debugger)</title><content type='html'>&lt;p&gt;Its &lt;strong&gt;GNU Debugger.&lt;/strong&gt; &lt;/p&gt;&lt;p&gt;The purpose of a debugger such as gdb is to allow you to see what is going on “inside” another program while it executes—or what another program was doing at the moment it crashed.&lt;br /&gt;&lt;/p&gt;gdb can do four main kinds of things (plus other things in support of these) to help you catch bugs in the act:&lt;br /&gt;  • Start your program, specifying anything that might affect its behavior.&lt;br /&gt;  • Make your program stop on specified conditions.&lt;br /&gt;  • Examine what has happened, when your program has stopped.&lt;br /&gt;  • Change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-4816406871355138127?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/4816406871355138127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=4816406871355138127' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/4816406871355138127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/4816406871355138127'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/08/what-is-gdb-gnu-debugger.html' title='What is GDB (GNU Debugger)'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8543517995066619584.post-3678663879537635501</id><published>2008-07-25T03:15:00.000-07:00</published><updated>2008-07-25T03:18:40.842-07:00</updated><title type='text'>Unix Command - mail</title><content type='html'>&lt;span style="font-weight: bold;"&gt;INTRODUCTION&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Mail&lt;/b&gt;  is an intelligent mail processing system, which has a command syntax reminiscent of ed1   with lines replaced by messages. &lt;p&gt;  &lt;/p&gt;&lt;dl compact="compact"&gt;&lt;p&gt;  &lt;/p&gt;&lt;dt&gt;&lt;b&gt;-v&lt;/b&gt;   &lt;/dt&gt;&lt;dd&gt; Verbose mode. The details of delivery are displayed on the user's terminal. &lt;/dd&gt;&lt;dt&gt;&lt;b&gt;-i&lt;/b&gt;   &lt;/dt&gt;&lt;dd&gt; Ignore tty interrupt signals. This is particularly useful when using &lt;b&gt;mail&lt;/b&gt;  on noisy phone lines. &lt;/dd&gt;&lt;dt&gt;&lt;b&gt;-I&lt;/b&gt;   &lt;/dt&gt;&lt;dd&gt; Forces mail to run in interactive mode even when input isn't a terminal. In particular, the `&lt;b&gt;~&lt;/b&gt;  '  special character when sending mail is only active in interactive mode. &lt;/dd&gt;&lt;dt&gt;&lt;b&gt;-n&lt;/b&gt;   &lt;/dt&gt;&lt;dd&gt; Inhibits reading /etc/mail.rc  upon startup. &lt;/dd&gt;&lt;dt&gt;&lt;b&gt;-N&lt;/b&gt;   &lt;/dt&gt;&lt;dd&gt; Inhibits the initial display of message headers when reading mail or editing a mail folder. &lt;/dd&gt;&lt;dt&gt;&lt;b&gt;-s&lt;/b&gt;   &lt;/dt&gt;&lt;dd&gt; Specify subject on command line (only the first argument after the -&lt;b&gt;s&lt;/b&gt;  flag is used as a subject; be careful to quote subjects containing spaces.) &lt;/dd&gt;&lt;dt&gt;&lt;b&gt;-c&lt;/b&gt;   &lt;/dt&gt;&lt;dd&gt; Send carbon copies to &lt;i&gt;list&lt;/i&gt;  of users. &lt;/dd&gt;&lt;dt&gt;&lt;b&gt;-b&lt;/b&gt;   &lt;/dt&gt;&lt;dd&gt; Send blind carbon copies to &lt;i&gt;list&lt;/i&gt;    List should be a comma-separated list of names. &lt;/dd&gt;&lt;dt&gt;&lt;b&gt;-f&lt;/b&gt;   &lt;/dt&gt;&lt;dd&gt; Read in the contents of your &lt;i&gt;mbox&lt;/i&gt;  (or the specified file) for processing; when you &lt;i&gt;quit &lt;/i&gt;    &lt;b&gt;mail&lt;/b&gt;  writes undeleted messages back to this file. &lt;/dd&gt;&lt;dt&gt;&lt;b&gt;-u&lt;/b&gt;   &lt;/dt&gt;&lt;dd&gt; Is equivalent to: &lt;p&gt;   &lt;/p&gt;&lt;blockquote&gt;&lt;tt&gt;mail -f /var/spool/mail/user&lt;/tt&gt;&lt;/blockquote&gt; &lt;/dd&gt;&lt;/dl&gt; &lt;p&gt;  &lt;a name="lbAE"&gt; &lt;/a&gt; &lt;/p&gt;&lt;h3&gt;Sending mail&lt;/h3&gt;  To send a message to one or more people, &lt;b&gt;mail&lt;/b&gt;  can be invoked with arguments which are the names of people to whom the mail will be sent. You are then expected to type in your message, followed by an `&lt;b&gt;control-D&lt;/b&gt;  '  at the beginning of a line. The section below &lt;i&gt;Replying to or originating mail&lt;/i&gt;    describes some features of &lt;b&gt;mail&lt;/b&gt;  available to help you compose your letter. &lt;p&gt;  &lt;a name="lbAF"&gt; &lt;/a&gt; &lt;/p&gt;&lt;h3&gt;Reading mail&lt;/h3&gt;  In normal usage &lt;b&gt;mail&lt;/b&gt;  is given no arguments and checks your mail out of the post office, then prints out a one line header of each message found. The current message is initially the first message (numbered 1) and can be printed using the &lt;b&gt;print&lt;/b&gt;  command (which can be abbreviated `&lt;b&gt;p&lt;/b&gt;  '  ) . You can move among the messages much as you move between lines in ed1,   with the commands `&lt;b&gt;+&lt;/b&gt;  '  and `&lt;b&gt;-&lt;/b&gt;  '  moving backwards and forwards, and simple numbers. &lt;p&gt;  &lt;a name="lbAG"&gt; &lt;/a&gt; &lt;/p&gt;&lt;h3&gt;Disposing of mail.&lt;/h3&gt;  After examining a message you can &lt;b&gt;delete&lt;/b&gt;  `&lt;b&gt;d&lt;/b&gt;  '  ) the message or &lt;b&gt;reply&lt;/b&gt;  `&lt;b&gt;r&lt;/b&gt;  '  ) to it. Deletion causes the &lt;b&gt;mail&lt;/b&gt;  program to forget about the message. This is not irreversible; the message can be &lt;b&gt;undeleted&lt;/b&gt;  `&lt;b&gt;u&lt;/b&gt;  '  ) by giving its number, or the &lt;b&gt;mail&lt;/b&gt;  session can be aborted by giving the &lt;b&gt;exit&lt;/b&gt;  `&lt;b&gt;x&lt;/b&gt;  '  ) command. Deleted messages will, however, usually disappear never to be seen again. &lt;p&gt;  &lt;a name="lbAH"&gt; &lt;/a&gt; &lt;/p&gt;&lt;h3&gt;Specifying messages&lt;/h3&gt;  Commands such as &lt;b&gt;print&lt;/b&gt;  and &lt;b&gt;delete&lt;/b&gt;  can be given a list of message numbers as arguments to apply to a number of messages at once. Thus ``&lt;b&gt;delete 1 2&lt;/b&gt;  ''  deletes messages 1 and 2, while ``&lt;b&gt;delete 1-5&lt;/b&gt;  ''  deletes messages 1 through 5. The special name `&lt;b&gt;*&lt;/b&gt;  '  addresses all messages, and `&lt;b&gt;$&lt;/b&gt;  '  addresses the last message; thus the command &lt;b&gt;top&lt;/b&gt;  which prints the first few lines of a message could be used in ``&lt;b&gt;top *&lt;/b&gt;  ''  to print the first few lines of all messages. &lt;p&gt;  &lt;a name="lbAI"&gt; &lt;/a&gt; &lt;/p&gt;&lt;h3&gt;Replying to or originating mail.&lt;/h3&gt;  You can use the &lt;b&gt;reply&lt;/b&gt;  command to set up a response to a message, sending it back to the person who it was from. Text you then type in, up to an end-of-file, defines the contents of the message. While you are composing a message, &lt;b&gt;mail&lt;/b&gt;  treats lines beginning with the character `&lt;b&gt;~&lt;/b&gt;  '  specially. For instance, typing `&lt;b&gt;~m&lt;/b&gt;  '  (alone on a line) will place a copy of the current message into the response right shifting it by a tabstop (see &lt;i&gt;indentprefix&lt;/i&gt;  variable, below). Other escapes will set up subject fields, add and delete recipients to the message and allow you to escape to an editor to revise the message or to a shell to run some commands. (These options are given in the summary below.) &lt;p&gt;  &lt;a name="lbAJ"&gt; &lt;/a&gt; &lt;/p&gt;&lt;h3&gt;Ending a mail processing session.&lt;/h3&gt;  You can end a &lt;b&gt;mail&lt;/b&gt;  session with the &lt;b&gt;quit&lt;/b&gt;  `&lt;b&gt;q&lt;/b&gt;  '  ) command. Messages which have been examined go to your &lt;i&gt;mbox&lt;/i&gt;  file unless they have been deleted in which case they are discarded. Unexamined messages go back to the post office. (See the -&lt;b&gt;f&lt;/b&gt;  option above).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8543517995066619584-3678663879537635501?l=bigunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigunix.blogspot.com/feeds/3678663879537635501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8543517995066619584&amp;postID=3678663879537635501' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/3678663879537635501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8543517995066619584/posts/default/3678663879537635501'/><link rel='alternate' type='text/html' href='http://bigunix.blogspot.com/2008/07/unix-command-mail.html' title='Unix Command - mail'/><author><name>ynilesh</name><uri>http://www.blogger.com/profile/17784663472840395159</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp0.blogger.com/_jamfPFUfUbE/R_xZKg1UZUI/AAAAAAAAAlI/ow6AsvnbvGA/S220/DSC00494-2.jpg'/></author><thr:total>0</thr:total></entry></feed>
