<?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-5356450989645359839</id><updated>2012-01-27T03:58:12.960-08:00</updated><title type='text'>Askar Ali Khan Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default?start-index=101&amp;max-results=100'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>108</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-93467492836795651</id><published>2011-08-20T03:36:00.000-07:00</published><updated>2011-08-22T03:30:39.547-07:00</updated><title type='text'>ERROR: This RRD was created on another architecture</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Recently I have to migrate our cacti installation to new machine during which i encounter few issues.&lt;br /&gt;&lt;br /&gt;After copying the RRD files to new machines and accessing cacti web http://myserver/cacti gives empty graphs.&amp;nbsp; (wired)&lt;br /&gt;&lt;br /&gt;After digging the logs (in apache error log) found out that RRD files is not portable between different architechture.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ERROR: This RRD was created on another architecture&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In my case the old machine was 32bit arch with 32bit OS, and the new machine is 64bit with 64bit OS.&lt;br /&gt;&lt;br /&gt;Quick googling tells that using &lt;b&gt;rrddump&lt;/b&gt; and &lt;b&gt;rrdrestore&lt;/b&gt; one can transfer RRD between architectures with ease.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;EXAMPLES&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To transfer an RRD between architectures, follow these steps:&lt;br /&gt;&lt;br /&gt;1.&amp;nbsp; On the same system where the RRD was created, use rrdtool dump to export the data to XML format.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;# for i in &lt;/b&gt;&lt;b&gt;./*.rrd&lt;/b&gt;&lt;b&gt;;do rrdtool dump $i ../rrd/$i.xml;done&lt;/b&gt;&lt;br /&gt;(to converted all the files in rrd directory to XML format)&lt;br /&gt;&lt;br /&gt;2.&amp;nbsp; Transfer the XML dump to the target system.&lt;br /&gt;&lt;br /&gt;3.&amp;nbsp; Run rrdtool restore to create a new RRD from the XML dump.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;# for i in ./*.xml; do rrdtool restore "$i" "../rrd/${i%.xml}"; done&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;After this cacti was up and running with all the old graphs migrated successfully.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-93467492836795651?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/93467492836795651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/08/error-this-rrd-was-created-on-another.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/93467492836795651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/93467492836795651'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/08/error-this-rrd-was-created-on-another.html' title='ERROR: This RRD was created on another architecture'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-5571575251759092066</id><published>2011-08-13T00:50:00.000-07:00</published><updated>2011-08-13T00:50:32.170-07:00</updated><title type='text'>Installing Nagios-plugins and NRPE on Centos 6</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;To monitor remote hosts CPU load, disk partitions, processes etc with Nagios, requires to install NRPE and nagios-plugins on the remote host.&lt;br /&gt;&lt;br /&gt;Nagios-plugins and NRPE is not available from Centos official repositories, so first of all we need to configure RPMforge&amp;gt; repo from where to install the required packages.&lt;br /&gt;&lt;br /&gt;Read my &lt;a href="http://askaralikhan.blogspot.com/2010/06/before-using-third-party-repositories.html"&gt;previous article&lt;/a&gt; before configuring and installing anything from third party repo.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Installing RPMforge on Centos 6&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Download and install the rpmforge-release package. Choose one of the two links below, selecting to match your host's architecture. If you are unsure of which one to use you can check your architecture with the command uname -i&lt;br /&gt;&lt;br /&gt;&lt;b&gt;x386&lt;/b&gt;&lt;br /&gt;# rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-1.el6.rf.i686.rpm&lt;br /&gt;&lt;br /&gt;&lt;b&gt;x86_64&lt;/b&gt;&lt;br /&gt;# rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-1.el6.rf.x86_64.rpm&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Do not forget to set the priority, &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;vi /etc/yum.repos.d/rpmforge.repo&lt;br /&gt;&lt;br /&gt;[rpmforge]&lt;br /&gt;name = RHEL $releasever - RPMforge.net - dag&lt;br /&gt;baseurl = http://apt.sw.be/redhat/el6/en/$basearch/rpmforge&lt;br /&gt;mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge&lt;br /&gt;#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge&lt;br /&gt;enabled = 1&lt;br /&gt;protect = 0&lt;br /&gt;gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag&lt;br /&gt;gpgcheck = 1&lt;br /&gt;&lt;b&gt;priority=10&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Now everything is setup now you can install nagios-plugins and nrpe packages from RPMforge repo&lt;br /&gt;&lt;br /&gt;# yum install nagios-plugins nagios-nrpe&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Running NRPE under xinetd&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Edit /etc/xinetd.d/nrpe for&lt;br /&gt;&lt;br /&gt;disable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = no&lt;br /&gt;only_from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 127.0.0.1 Nagios ServerIP&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Restart xinetd service&lt;/i&gt;&lt;br /&gt;# /etc/init.d/xinetd restart&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-5571575251759092066?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/5571575251759092066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/08/installing-nagios-plugins-and-nrpe-on.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5571575251759092066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5571575251759092066'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/08/installing-nagios-plugins-and-nrpe-on.html' title='Installing Nagios-plugins and NRPE on Centos 6'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-641337355561181085</id><published>2011-08-03T00:08:00.000-07:00</published><updated>2011-08-17T03:10:14.424-07:00</updated><title type='text'>My KVM howto</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;b&gt;Enabling KVM support on your hardware&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;The host machines need to be running either Intel VT or AMD-V chipsets that support hardware-assisted&lt;br /&gt;virtualization.&lt;br /&gt;&lt;br /&gt;# grep -E 'vmx|svm' /proc/cpuinfo&lt;br /&gt;&lt;br /&gt;If this command returns output, then your system supports KVM. The vmx CPU feature flag represents&lt;br /&gt;Intel VT chipset while the svm flag represents AMD-V. Note which KVM flag was returned as it will be&lt;br /&gt;useful for loading the right module later.&lt;br /&gt;&lt;br /&gt;Next you need to ensure the KVM-related feature is enabled in the BIOS&lt;br /&gt;&lt;br /&gt;1. In the BIOS menu, select Advanced Step → CPU Options.&lt;br /&gt;2. Make sure the Intel Virtualization Technology option is Enabled.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Installing and configuring KVM-related package&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;Install the KVM software using yum:&lt;br /&gt;# yum install kvm&lt;br /&gt;&lt;br /&gt;Install additional virtualization management packages:&lt;br /&gt;&lt;br /&gt;# yum install libvirt python-virtinst libvirt-python libvirt-client bridge-utils&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Configuring KVM after installing the packages &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;After you have installed the KVM-related packages, load the right KVM modules by following these&lt;br /&gt;steps:&lt;br /&gt;&lt;br /&gt;Procedure&lt;br /&gt;1. Insert KVM module by running the following command:&lt;br /&gt;# modprobe kvm&lt;br /&gt;&lt;br /&gt;2. Insert the chip-specific KVM module by running one of these commands:&lt;br /&gt;For the AMD chip (svm flag)&lt;br /&gt;# modprobe kvm-amd&lt;br /&gt;&lt;br /&gt;For Intel chip (vmx flag)&lt;br /&gt;# modprobe kvm-intel&lt;br /&gt;&lt;br /&gt;You can verify that the modules are inserted and running.&lt;br /&gt;# lsmod|grep kvm&lt;br /&gt;kvm-intel&amp;nbsp;&amp;nbsp;&amp;nbsp; 86248 3&lt;br /&gt;kvm &amp;nbsp;&amp;nbsp;&amp;nbsp; 223264 1 kvm_intel&lt;br /&gt;&lt;br /&gt;3. Start the libvirtd daemon service:&lt;br /&gt;# /etc/init.d/libvirtd start&lt;br /&gt;&lt;br /&gt;Starting libvirtd daemon:&lt;br /&gt;# /etc/init.d/libvirtd status&lt;br /&gt;libvirtd (pid 6584) is running.&lt;br /&gt;&lt;br /&gt;4. Set up libvirtd to start on every reboot:&lt;br /&gt;# chkconfig libvirtd on&lt;br /&gt;&lt;br /&gt;5. Better to reboot the host machine.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Creating LVM for Guest OS (Run lvdisplay before creating new LVM) &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;# lvcreate -L 4G -n kvm5 vg_kvm &lt;br /&gt;&lt;br /&gt;-L 10G = replace with filesystem size&lt;br /&gt;-n kvm1 = replace with kvm#&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Creating KVM guest using virt-install&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;virt-install --name kvm1 \&lt;br /&gt;--ram 512 \&lt;br /&gt;--os-type='linux' \&lt;br /&gt;--disk path=/dev/mapper/vg_kvm-kvm1 \&lt;br /&gt;--network network:default \&lt;br /&gt;--accelerate \&lt;br /&gt;--vnc \&lt;br /&gt;--cdrom /iso/CentOS-5.5-x86_64-bin-DVD-1of2.iso&lt;br /&gt;&lt;br /&gt;For network installation replace --cdrom with --location with URL to OS installation link.&lt;br /&gt;&lt;br /&gt;Eg, Centos 5.6 64bit&lt;br /&gt;--location http://mirror.its.sfu.ca/mirror/CentOS/5.6/os/x86_64/&lt;br /&gt;&lt;br /&gt;Creating Scientific Linux 6 64bit vm with bridge networking and two virtual CPUs&lt;br /&gt;&lt;br /&gt;Note: br0 bridge interface should exist before using it for KVM&lt;br /&gt;&lt;br /&gt;virt-install --name kvm3 \&lt;br /&gt;--ram 1024 \&lt;br /&gt;--vcpus 2 \&lt;br /&gt;--os-type='linux' \&lt;br /&gt;--disk path=/dev/mapper/vg_kvm-kvm3 \&lt;br /&gt;--network bridge:br0 \&lt;br /&gt;--accelerate \&lt;br /&gt;--vnc \&lt;br /&gt;--location http://ftp1.scientificlinux.org/linux/scientific/6/x86_64/os/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*** Installing Slackware off NFS (NFS running on xxx.xxx.xxx.60 machine)&lt;br /&gt;&lt;br /&gt;virt-install --name slack64 \&lt;br /&gt;--ram 512 \&lt;br /&gt;--vcpus 1 \&lt;br /&gt;--os-type='linux' \&lt;br /&gt;--disk path=/dev/mapper/vg_kvm-kvm8 \&lt;br /&gt;--network bridge:br0 \&lt;br /&gt;--accelerate --vnc \&lt;br /&gt;--cdrom /iso/slackware_x86_64-13.37-mini-install.iso&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cloning KVM VM&lt;/b&gt; &lt;br /&gt;1. &lt;u&gt;LVM based&lt;/u&gt;&lt;br /&gt;Cloning KVM (Create LVM partition for cloned first ie 'lvcreate -L 4G -n kvmX vg_kvm' run lvdisplay to check existing LVMs)&lt;br /&gt;virt-clone --original kvm1&amp;nbsp; \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --name kvmX \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --file /dev/mapper/vg_kvm-kvmX --prompt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. &lt;u&gt;File based&lt;/u&gt;&lt;br /&gt;virt-clone --original kvm1&amp;nbsp; \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --name kvmX \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --file /var/lib/libvirt/images/centos6-2.img&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Resizing KVM VM disk storage&lt;/b&gt; &lt;br /&gt;1. install libguestfs-tools package.&lt;br /&gt;2. Best to have separate parititons for /, /boot, and swap, then following http://askaralikhan.blogspot.com/2011/07/expanding-kvm-guest-disk-image-using.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Troubleshooting For network interface&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;1. Open /etc/sysconfig/network-scripts/ifcfg-eth0 and delete the following line and save the file&lt;br /&gt;HWADDR=52:54:00:8f:62:01&lt;br /&gt;2. Remove the following filen and reboot the virtual machine&lt;br /&gt;/etc/udev/rules.d/*persistent-net*'&lt;br /&gt;After reboot eth0 network interface will be available.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Removing LVM partition: &lt;/b&gt;Remove LVM partition which is no longer need.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# lvchange -an /dev/mapper/vg_kvm-kvm8 (change LVM status to inactive)&lt;br /&gt;# lvremove /dev/mapper/vg_kvm-kvm8 (remove the LVM paritition)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-641337355561181085?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/641337355561181085/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/08/my-kvm-howto.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/641337355561181085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/641337355561181085'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/08/my-kvm-howto.html' title='My KVM howto'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-7751431870659613038</id><published>2011-07-02T04:21:00.000-07:00</published><updated>2011-08-09T23:59:32.062-07:00</updated><title type='text'>Expanding a KVM guest disk image using virt-resize</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Decide on how you wish to expand the guest. Run virt-df -h and virt-list-partitions -lh on the guest disk, as shown in the following output: &lt;br /&gt;&lt;br /&gt;# virt-df -h /dev/vg_kvm/kvm7&lt;br /&gt;Filesystem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Used&amp;nbsp; Available&amp;nbsp; Use%&lt;br /&gt;/dev/vg_kvm/kvm7:/dev/sda1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 484.2M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 48.8M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 410.4M&amp;nbsp;&amp;nbsp; 11%&lt;br /&gt;&lt;span style="color: red;"&gt;/dev/vg_kvm/kvm7:/dev/sda3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.5G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.3G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25.4G&amp;nbsp;&amp;nbsp;&amp;nbsp; 5%&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# virt-list-partitions -lh&amp;nbsp; /dev/vg_kvm/kvm7&lt;br /&gt;/dev/sda1 ext4 500.0M&lt;br /&gt;/dev/sda2 swap 1.0G&lt;br /&gt;&lt;span style="color: red;"&gt;/dev/sda3 ext4 2.5G&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This example we will increase the size of /dev/sda3 to 30G&lt;br /&gt;&lt;br /&gt;1. Shutdown guest&lt;br /&gt;&lt;br /&gt;2. Rename the original disk for the backup purpose, for lvm use lvrename command, for file use 'mv' command&lt;br /&gt;&lt;br /&gt;# &lt;span style="color: lime;"&gt;lvrename /dev/vg_kvm/kvm7 /dev/vg_kvm/kvm7.backup&lt;/span&gt;&lt;br /&gt;&amp;nbsp; Renamed "kvm7" to "kvm7.backup" in volume group "vg_kvm"&lt;br /&gt;&lt;br /&gt;3. Create new disk&lt;br /&gt;# &lt;span style="color: lime;"&gt;lvcreate -L 30G -n kvm7 vg_kvm&lt;/span&gt;&lt;br /&gt;Logical volume "kvm7" created&lt;br /&gt;&lt;br /&gt;4. Now resize the /dev/sda3, refer to virt-resize man for detail.&lt;br /&gt;&lt;br /&gt;# &lt;span style="color: lime;"&gt;virt-resize \&lt;/span&gt;&lt;br /&gt;&lt;div style="color: lime;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /dev/vg_kvm/kvm7.backup /dev/vg_kvm/kvm7 \&lt;/div&gt;&lt;div style="color: lime;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --expand /dev/sda3&lt;/div&gt;Summary of changes:&lt;br /&gt;/dev/sda1: partition will be left alone&lt;br /&gt;/dev/sda2: partition will be left alone&lt;br /&gt;/dev/sda3: partition will be resized from 2.5G to 28.5G&lt;br /&gt;Copying /dev/sda1 ... done&lt;br /&gt;Copying /dev/sda2 ... done&lt;br /&gt;Copying /dev/sda3 ... done&lt;br /&gt;&lt;br /&gt;Parition /dev/sda3 contains a filesystem or LVM PV, then this content is not automatically resized.&amp;nbsp; You can resize it afterwards either using guestfish(1) (offline) or using commands inside the guest (online resizing).&lt;br /&gt;&lt;br /&gt;Here we resize the filesystem using guestfish&lt;br /&gt;&lt;br /&gt;[root@kvm ~]# &lt;span style="color: lime;"&gt;guestfish -a /dev/vg_kvm/kvm7&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Welcome to guestfish, the libguestfs filesystem interactive shell for&lt;br /&gt;editing virtual machine filesystems.&lt;br /&gt;&lt;br /&gt;Type: 'help' for help with commands&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'quit' to quit the shell&lt;br /&gt;&lt;br /&gt;&amp;gt;&lt;fs&gt; &lt;span style="color: lime;"&gt;run&lt;/span&gt;&lt;br /&gt;&amp;gt;&lt;fs&gt; &lt;span style="color: lime;"&gt;resize2fs /dev/sda3&lt;/span&gt;&lt;br /&gt;libguestfs: error: resize2fs: resize2fs 1.41.12 (17-May-2010)&lt;br /&gt;Please run 'e2fsck -f /dev/vda3' first.&lt;br /&gt;&amp;gt;&lt;fs&gt; &lt;span style="color: lime;"&gt;e2fsck-f /dev/sda3&lt;/span&gt;&lt;br /&gt;&amp;gt;&lt;fs&gt; &lt;span style="color: lime;"&gt;resize2fs /dev/sda3&lt;/span&gt;&lt;br /&gt;&amp;gt;&lt;fs&gt; &lt;span style="color: lime;"&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[root@kvm ~]# &lt;span style="color: lime;"&gt;virt-df -h sl6-5&lt;/span&gt;&lt;br /&gt;Filesystem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Used&amp;nbsp; Available&amp;nbsp; Use%&lt;br /&gt;sl6-5:/dev/sda1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 484.2M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 48.8M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 410.4M&amp;nbsp;&amp;nbsp; 11%&lt;br /&gt;sl6-5:/dev/sda3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 28.1G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.3G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25.4G&amp;nbsp;&amp;nbsp;&amp;nbsp; 5%&lt;/fs&gt;&lt;/fs&gt;&lt;/fs&gt;&lt;/fs&gt;&lt;/fs&gt;&lt;br /&gt;&lt;br /&gt;Try to boot the virtual machine. If it works you can delete the backup disk.&lt;br /&gt;&lt;br /&gt;# &lt;span style="color: lime;"&gt;lvchange -an vg_kvm/kvm7.backup&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# &lt;span style="color: lime;"&gt;lvremove vg_kvm/kvm7.backup&lt;/span&gt;&lt;br /&gt;&amp;nbsp; Logical volume "kvm7.backup" successfully removed&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-7751431870659613038?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/7751431870659613038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/07/expanding-kvm-guest-disk-image-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7751431870659613038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7751431870659613038'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/07/expanding-kvm-guest-disk-image-using.html' title='Expanding a KVM guest disk image using virt-resize'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-8558134271182290569</id><published>2011-07-02T00:44:00.000-07:00</published><updated>2011-07-09T01:54:42.597-07:00</updated><title type='text'>Clone KVM with virt-clone</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;b&gt;virt-clone&lt;/b&gt; is a command line tool for cloning existing virtual machine images using the &lt;tt&gt;"libvirt"&lt;/tt&gt;  hypervisor management library. It will copy the disk images of any existing virtual machine, and define a new  guest with an identical virtual hardware configuration. Elements which  require uniqueness will be updated to avoid a clash between old and new guests&lt;br /&gt;&lt;br /&gt;virt-clone of python-virtinst package is a great tool for creating cloned KVM virtual machine quickly.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Example:&amp;nbsp; LVM based kvm&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;# &lt;i&gt;virt-clone --original sl6-3&amp;nbsp; \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --name sl6-4 \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --file /dev/mapper/vg_kvm-kvm6 --prompt&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;In the above example /dev/mapper/vg_kvm-kvm6 LVM should be created before executing the virt-clone command.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Creating LVM&lt;/b&gt;&lt;br /&gt;# lvcreate -L 4G -n kvm6 vg_kvm&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Example file based storage&lt;/b&gt;&lt;br /&gt;virt-clone \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --original ubuntu11 \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --name ubuntu-2 \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --file /var/lib/libvirt/images/ubuntu-2.img&lt;br /&gt;&lt;br /&gt;--original sl6-3 = name of the existing KVM (make sure the original KVM is shutdown before creating clone out of it)&lt;br /&gt;&lt;br /&gt;--name se6-4 = Name of the New KVM (cloned)&lt;br /&gt;--file = In LVM case path to the existing storage, in file based storage the file will be automatically created by virt-clone &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Troubleshooting Network issue&lt;/b&gt;&lt;br /&gt;Upon booting the new cloned KVM VM I encounter with problem of not showing any network interface. After digging more it appears that udev on virtual machine changed the eth0 interface with eth1 due to change in MAC of the interface. Quick search on Google suggested the following solution to get back the 'eth0' interface on cloned vm.&lt;br /&gt;&lt;br /&gt;1. Open &lt;i&gt;/etc/sysconfig/network-scripts/ifcfg-eth0&lt;/i&gt; and delete the following line and save the file&lt;br /&gt;&lt;br /&gt;&lt;i&gt;HWADDR=52:54:00:8f:62:01&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;2. Remove the following filen and reboot the virtual machine&lt;br /&gt;&lt;br /&gt;&lt;i&gt; /etc/udev/rules.d/*persistent-net*'&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;After reboot eth0 network interface will be available.&lt;br /&gt;&lt;i&gt; &lt;/i&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-8558134271182290569?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/8558134271182290569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/07/clone-kvm-with-virt-clone.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/8558134271182290569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/8558134271182290569'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/07/clone-kvm-with-virt-clone.html' title='Clone KVM with virt-clone'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-3413565602053691988</id><published>2011-06-28T21:47:00.000-07:00</published><updated>2011-06-28T21:49:37.022-07:00</updated><title type='text'>Scientific Linux 6</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Recently I start using &lt;a href="http://www.scientificlinux.org/"&gt;Scientific Linux&lt;/a&gt; on KVM virtual hosts. For anyone new to Scientific its a Enterprise Linux based on RHEL just like Centos maintained by Fermi National Accelerator Laboratory and the European Organization for Nuclear Research 'CERN' - and RHEL, of course :)&lt;br /&gt;&lt;br /&gt;Scientific Linux folks is closely following the upstream srpm provider (RHEL) and its already shipped with version 6 just like RHEL 6.&lt;br /&gt;&lt;br /&gt;The other things which inspired me to give a try to Scientific Linux is the latest version of Linux Kernel with latest hardware support, the ext4 filesystem is the default, KVM enhancement, latest versions of software eg PHP, Mysql which means I don't have to mess around with test repos or yum priorities&lt;br /&gt;&lt;br /&gt;For detail What's new in RHEL/Scientific Linux please refer to &lt;a href="http://www.redhat.com/rhel/server/details/"&gt;RHEL&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I encourage anyone interested in RHEL and/or building your own test server, to experiment with this distro.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-3413565602053691988?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/3413565602053691988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/06/scientific-linux-6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3413565602053691988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3413565602053691988'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/06/scientific-linux-6.html' title='Scientific Linux 6'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-4166620426316329726</id><published>2011-06-20T04:45:00.000-07:00</published><updated>2011-07-27T03:58:44.869-07:00</updated><title type='text'>Medialess installation of Redhat Enterprise 6/Centos/Scientic Linux 6</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;This procedure assumes you are already using Red Hat Enterprise Linux or another relatively modern Linux distribution, and the GRUB boot loader. It also assumes you are a somewhat experienced Linux user.&lt;br /&gt;&lt;br /&gt;To perform medialess installation of Redhat Enterprise 6/Centos/Scientific Linux 6 without media or a PXE server, the system must have two files stored locally, a kernel and an initial RAM disk&lt;br /&gt;&lt;br /&gt;Copy the &lt;b&gt;vmlinuz&lt;/b&gt; and &lt;b&gt;initrd.img&lt;/b&gt; files from a Red Hat Enterprise Linux DVD (or DVD image) to the /boot/ directory, renaming them to &lt;b&gt;vmlinuz-install&lt;/b&gt; and &lt;b&gt;initrd.img-install&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Editing the GRUB Configuration&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The GRUB boot loader uses the configuration file /boot/grub/grub.conf. To configure GRUB to boot from the new files, add a boot stanza to /boot/grub/grub.conf that refers to them&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;title Installation&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; root (hd0,0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; kernel /boot/vmlinuz-install ip=xxx.xxx.xx.x netmask=255.255.255.0 gateway=xxx.xx.xx.x dns=xxx.xx.xx.x vnc vncpassword=qwerty repo=http://ftp1.scientificlinux.org/linux/scientific/6/x86_64/os/ lang=en_US keymap=us&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; initrd /boot/initrd.img-install&lt;br /&gt;&lt;br /&gt;If using network interface other than eth0 then you must have to specify it with ksdevice=ethX, then the kernel line will read something like this for eth1&lt;br /&gt;&lt;br /&gt;kernel /boot/vmlinuz-install ip=xxx.xxx.xx.x netmask=255.255.255.0 gateway=xxx.xx.xx.x dns=xxx.xx.xx.x &lt;b&gt;ksdevice=eth1&lt;/b&gt; vnc vncpassword=qwerty repo=http://ftp1.scientificlinux.org/linux/scientific/6/x86_64/os/ lang=en_US keymap=us&lt;br /&gt;&lt;br /&gt;The following options are generally useful for medialess installations:&lt;br /&gt;&lt;br /&gt;IP = yourIP&lt;br /&gt;netmas = Netmask&lt;br /&gt;gateway = your Gateway&lt;br /&gt;dns = your dns&lt;br /&gt;vnc (for remote graphical installation)&lt;br /&gt;vncpassword = Yourpassword&lt;br /&gt;repo = Redhat/Centos/SL repo (In the sample I use the Scientific Linux 6 repo)&lt;br /&gt;&lt;br /&gt;Also change the entry "default 0" to boot from new kernel entries, when done reboot the system.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Completing the installation:&lt;/b&gt;&lt;br /&gt;From your local system use vncviewer to connect to the remote server and complete the installation process &lt;br /&gt;&lt;br /&gt;$ vncviewer RemoteHostIP&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-4166620426316329726?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/4166620426316329726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/06/medialess-installation-of-redhat.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4166620426316329726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4166620426316329726'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/06/medialess-installation-of-redhat.html' title='Medialess installation of Redhat Enterprise 6/Centos/Scientic Linux 6'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-5888408556312755669</id><published>2011-06-19T23:56:00.000-07:00</published><updated>2011-06-20T01:44:40.816-07:00</updated><title type='text'>KVM virt-install: Install Scientific Linux 6 (RHEL6) as KVM Guest</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Network installation of SL6 64bit as KVM guest.&lt;br /&gt;&lt;br /&gt;virt-install --name se6 \&lt;br /&gt;--ram 884 \&lt;br /&gt;--os-type='linux' \&lt;br /&gt;--disk path=/var/lib/libvirt/images/se6.img,size=10 \&lt;br /&gt;--network network:default \&lt;br /&gt;--accelerate \&lt;br /&gt;--vnc \&lt;br /&gt;--location http://ftp1.scientificlinux.org/linux/scientific/6/x86_64/os/&lt;br /&gt;&lt;br /&gt;Connect from your local system to continue the installation&lt;br /&gt;&lt;br /&gt;virt-viewer -c qemu+ssh://root@IPAdress/system se6&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-5888408556312755669?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/5888408556312755669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/06/kvm-virt-install-install-scientific.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5888408556312755669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5888408556312755669'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/06/kvm-virt-install-install-scientific.html' title='KVM virt-install: Install Scientific Linux 6 (RHEL6) as KVM Guest'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-7074779900930689735</id><published>2011-06-17T22:00:00.000-07:00</published><updated>2011-06-25T23:32:48.636-07:00</updated><title type='text'>Installing skype on Fedora 14 64bit</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Skype only available for 32bit version of Fedora while most of the folks already get into wagon of 64bit OS, here is short howto installing the skype on 64bit Fedora. The hack is to install 32bit version of the following packages on 64bit Fedora.&lt;br /&gt;&lt;br /&gt;yum install glibc.i686 alsa-lib.i686 libXv.i686 libXScrnSaver.i686 qt.i686 qt-x11.i686&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-eRy0aeGlglA/Tfw0ldWlVQI/AAAAAAAACtg/-7Rglku2-mE/s1600/skype_dep_f14.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="180" src="http://1.bp.blogspot.com/-eRy0aeGlglA/Tfw0ldWlVQI/AAAAAAAACtg/-7Rglku2-mE/s320/skype_dep_f14.jpeg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;Download Skype Fedora 13+ package from Skype official site&amp;nbsp;&lt;a href="http://www.skype.com/intl/en-us/get-skype/on-your-computer/linux/"&gt;http://www.skype.com/intl/en-us/get-skype/on-your-computer/linux/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And then install it.&lt;br /&gt;&lt;br /&gt;yum install --nogpgcheck skype-2.1.0.81-fc10.i586.rpm&lt;br /&gt;&lt;br /&gt;Hoping this is helpful&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-7074779900930689735?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/7074779900930689735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/06/installing-skype-on-fedora-14-64bit.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7074779900930689735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7074779900930689735'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/06/installing-skype-on-fedora-14-64bit.html' title='Installing skype on Fedora 14 64bit'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-eRy0aeGlglA/Tfw0ldWlVQI/AAAAAAAACtg/-7Rglku2-mE/s72-c/skype_dep_f14.jpeg' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-1949723773377495593</id><published>2011-05-30T04:02:00.000-07:00</published><updated>2011-05-30T04:02:18.827-07:00</updated><title type='text'>Upgrade to Fedora 14 using Preupgrade</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Few days back Fedora folks released Fedora 15, however I was still running Fedora 13 on my work laptop. So it was good time to upgrade before Fedora 13 become unsupported version.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Backup Backup Backup &lt;/b&gt;&lt;br /&gt;Its recommended to backup your important stuff before going for online upgrade using preupgrade or yum to avoid any data loose in case of system goes to its knees :P&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The Upgrade&lt;/b&gt;&lt;br /&gt;&lt;a href="http://fedoraproject.org/wiki/PreUpgrade"&gt;Preupgrade&lt;/a&gt; is a nice tool for upgrading Fedora from one version to another, it can be run from GUI and also from CLI.&lt;br /&gt;&lt;br /&gt;# preupgrade-cli "Fedora 14 (Laughlin)"&lt;br /&gt;&lt;br /&gt;Depends on your Internet pipe it will takes quite some time to download all the required Fedora 14 packages, once packages successfully downloaded reboot is required to boot the system into Fedora 14 and complete the installation process of the packages.&lt;br /&gt;&lt;br /&gt;Go get cup of tea while the installation process running. Once installation finished a final reboot and you will find your box booted into shiny Fedora 14.&lt;br /&gt;&lt;br /&gt;Its was a clean upgrade, everything working fine after upgrade. Thumbs up for Fedora folks.&lt;br /&gt;&lt;br /&gt;For detail please refer to &lt;a href="http://fedoraproject.org/wiki/PreUpgrade"&gt;Preupgrade wiki&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Note: I prefer not to go for Fedora 15 at this time due to the fuse around the Gnome 3, but will wait until the community find some solid solutions. I do not want to loose my desktop icons and application launchers ;)&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-1949723773377495593?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/1949723773377495593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/05/upgrade-to-fedora-14-using-preupgrade.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1949723773377495593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1949723773377495593'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/05/upgrade-to-fedora-14-using-preupgrade.html' title='Upgrade to Fedora 14 using Preupgrade'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-1506128981125850175</id><published>2011-05-27T01:41:00.000-07:00</published><updated>2011-05-27T01:41:15.024-07:00</updated><title type='text'>Inserting colon after every 2nd digit using sed</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Sometime while working with the MAC address from BRAS I need to convert the MAC address into colon delimited. Here is how to insert colon after every second digit&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Contents of mac.txt&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;00e04dc540fe&lt;br /&gt;00e04dc541f6&lt;br /&gt;00e04dc54366&lt;br /&gt;00e04dc5452e&lt;br /&gt;00e04dc543f6&lt;br /&gt;00e04dc5473a&lt;br /&gt;00e04dc54852&lt;br /&gt;00e04dc54a9e&lt;br /&gt;c8d5fe1fd02c&lt;br /&gt;c8d5fe1fa69c&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The command:&lt;/b&gt;&lt;br /&gt;$ sed 's/../&amp;amp;:/g; s/:$//' &amp;lt; mac.txt&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Result:&lt;/b&gt;&lt;br /&gt;00:e0:4d:c5:40:fe&lt;br /&gt;00:e0:4d:c5:41:f6&lt;br /&gt;00:e0:4d:c5:43:66&lt;br /&gt;00:e0:4d:c5:45:2e&lt;br /&gt;00:e0:4d:c5:43:f6&lt;br /&gt;00:e0:4d:c5:47:3a&lt;br /&gt;00:e0:4d:c5:48:52&lt;br /&gt;00:e0:4d:c5:4a:9e&lt;br /&gt;c8:d5:fe:1f:d0:2c&lt;br /&gt;c8:d5:fe:1f:a6:9c&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-1506128981125850175?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/1506128981125850175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/05/inserting-colon-after-every-2nd-digit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1506128981125850175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1506128981125850175'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/05/inserting-colon-after-every-2nd-digit.html' title='Inserting colon after every 2nd digit using sed'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-7797092423661347894</id><published>2011-04-13T11:16:00.000-07:00</published><updated>2011-04-13T11:16:13.759-07:00</updated><title type='text'>Upgrade to CentOS 5.6 and KVM failure</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Recently I have upgraded my KVM server from Centos 5.5 to 5.6&amp;nbsp; I can no longer boot any of virtual machines. While trying to boot VM its gives error...&lt;span style="font-size: large;"&gt; &lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;span style="font-size: large;"&gt;&lt;span style="font-size: small;"&gt;Booting from Hard Disk...&lt;br /&gt;Boot failed: not a bootable disk&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span style="font-size: large;"&gt;&lt;span style="font-size: small;"&gt;FATAL: No bootable device&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;span style="font-size: small;"&gt;My all &lt;/span&gt;&lt;/span&gt;VMs are qcow2 format, quick Googling reports its issue with the 'type=raw' in .xml file for the VM.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;driver name='qemu' type='raw'/&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;Fixed:&lt;/b&gt;&lt;br /&gt;Change the type='qcow2' in xml file, so that its read something like this&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;driver name='qemu' type='qcow2'/&amp;gt;&lt;/pre&gt;&lt;br /&gt;And restart the &lt;i&gt;libvirtd&lt;/i&gt; service.&lt;br /&gt;&lt;br /&gt;This fixed all the KVM VMs for me.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-7797092423661347894?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/7797092423661347894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/04/upgrade-to-centos-56-and-kvm-failure.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7797092423661347894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7797092423661347894'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/04/upgrade-to-centos-56-and-kvm-failure.html' title='Upgrade to CentOS 5.6 and KVM failure'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-4970712611910406168</id><published>2011-04-13T07:51:00.000-07:00</published><updated>2011-04-13T07:51:34.123-07:00</updated><title type='text'>Linux Tips and Tricks - Display the IPs on interfaces</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Using ifconfig&lt;br /&gt;&lt;br /&gt;FIBER_ADDR=$(ifconfig $FIBER | grep 'inet addr' | sed 's/^[^:]\+://;s/\([^ \t]\+\).\+$/\1/')&lt;br /&gt;echo $FIBER_ADDR&lt;br /&gt;&lt;br /&gt;Same using IP command&lt;br /&gt;&lt;br /&gt;ip addr show | awk '/inet[^6]/ { print $2 }' | sed -e 's/\(.\+\)\/.\+/\1/'&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-4970712611910406168?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/4970712611910406168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/04/linux-tips-and-tricks-display-ips-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4970712611910406168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4970712611910406168'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/04/linux-tips-and-tricks-display-ips-on.html' title='Linux Tips and Tricks - Display the IPs on interfaces'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-4357066465969638817</id><published>2011-04-11T21:08:00.000-07:00</published><updated>2011-04-11T21:08:52.327-07:00</updated><title type='text'>Find the disk space used by a user</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;To find the disk space being used by a single user, you need to combine du with the find command to only report disk usage for a specific user:&lt;br /&gt;&lt;br /&gt;$ find . -user &lt;i&gt;username&lt;/i&gt; -type f -exec du -k {} \;&lt;br /&gt;&lt;br /&gt;To get total disk used&lt;br /&gt;&lt;br /&gt;$ find . -user &lt;i&gt;username&lt;/i&gt; -type f -exec du -k {} \;|awk '{ s = s+$1 } END { print "Total used: ",s }'&lt;br /&gt;&lt;br /&gt;You use the same principle with groups using the -group option to find&lt;br /&gt;&lt;br /&gt;find . -group mcslp -type f -exec du -k {} \;|awk '{ s = s+$1 } END { print "Total used: ",s }'&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-4357066465969638817?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/4357066465969638817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/04/find-disk-space-used-by-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4357066465969638817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4357066465969638817'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/04/find-disk-space-used-by-user.html' title='Find the disk space used by a user'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-4314217643316480500</id><published>2011-04-08T10:52:00.000-07:00</published><updated>2011-04-08T10:52:48.368-07:00</updated><title type='text'>Creating thumbnails on a fly using ImageMagick</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;To create thumbnails for all the JPG files in the current directory&lt;br /&gt;&lt;br /&gt;for img in *.jpg; do convert -resize 200 "$img" thumb_"$img";done&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-4314217643316480500?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/4314217643316480500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/04/creating-thumbnails-on-fly-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4314217643316480500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4314217643316480500'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/04/creating-thumbnails-on-fly-using.html' title='Creating thumbnails on a fly using ImageMagick'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-1998491596916034882</id><published>2011-04-07T10:39:00.000-07:00</published><updated>2011-04-07T10:42:22.017-07:00</updated><title type='text'>Linux Tips &amp; Tricks</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Removing commented lines '#' from a file&lt;br /&gt;grep -v '^#' squid.conf &amp;gt; squid.conf.new&lt;br /&gt;&lt;br /&gt;to remove empty lines from a text file. I've been using sed with&lt;br /&gt;sed '/^ *$/d' squid.conf.new &amp;gt; squid.conf.nospace&lt;br /&gt;&lt;br /&gt;Do the same thing with sed in one line&lt;br /&gt;sed '/^#/d' squid.conf.default | sed /^$/d &amp;gt; squid.conf.new&lt;br /&gt;&lt;br /&gt;Or&lt;br /&gt;sed -e '/^\(#\|$\)/ d' squid.conf.default &amp;gt; squid.conf.new&lt;br /&gt;&lt;br /&gt;Remove comments and blank lines from a file&lt;br /&gt;egrep -v '^(#|$)' squid.conf.default &amp;gt; squid.conf.new&lt;br /&gt;&lt;br /&gt;Or&lt;br /&gt;grep '^[^#]' squid.conf &amp;gt; squid.conf.new&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-1998491596916034882?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/1998491596916034882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/04/linux-tips-tricks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1998491596916034882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1998491596916034882'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/04/linux-tips-tricks.html' title='Linux Tips &amp; Tricks'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-7665769197018057062</id><published>2011-03-30T11:17:00.000-07:00</published><updated>2011-03-30T11:17:48.288-07:00</updated><title type='text'>2011 World Cup cricket ended in disappointment for Pakistan</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;Long story short.......In electrifying semi final at MOHALI India beat Pakistan by 29 runs on Wednesday to set-up a World Cup final against Sri Lanka in Mumbai on Saturday.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-7665769197018057062?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/7665769197018057062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/03/2011-world-cup-cricket-ended-in.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7665769197018057062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7665769197018057062'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/03/2011-world-cup-cricket-ended-in.html' title='2011 World Cup cricket ended in disappointment for Pakistan'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-9207943194585074895</id><published>2011-03-18T23:12:00.000-07:00</published><updated>2011-03-18T23:12:25.748-07:00</updated><title type='text'>The 100 Oldest Currently Registered .COM Domains</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Here is the list of &lt;a href="http://www.whoisd.com/oldestcom.php"&gt;100 oldest .com domains&lt;/a&gt; if anyone wondering to buy any of the these domain eg sun.com (the 12th oldest domain) which Oracle will soon spare after &lt;i&gt;$7 billion purchase of Sun Microsystems. &lt;/i&gt;then remember you need a bottom less pocket :).&lt;br /&gt;Domain brokers speculate Oracle could sell it for $1 million or more, if it chose to do so.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-9207943194585074895?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/9207943194585074895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/03/100-oldest-currently-registered-com.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/9207943194585074895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/9207943194585074895'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/03/100-oldest-currently-registered-com.html' title='The 100 Oldest Currently Registered .COM Domains'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-3295958851702249569</id><published>2011-03-15T22:33:00.000-07:00</published><updated>2011-03-15T22:33:57.086-07:00</updated><title type='text'>My Baby Girl Fatime</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;If anyone wondering about my baby girl Fatime here she :). Fatima is now almost two months old.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh3.googleusercontent.com/-yQ7tEHVsF6E/TYBLNVH9tFI/AAAAAAAACq4/pHnaE-xOV_0/s1600/Photo0850.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="150" src="https://lh3.googleusercontent.com/-yQ7tEHVsF6E/TYBLNVH9tFI/AAAAAAAACq4/pHnaE-xOV_0/s200/Photo0850.jpg" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Its more fun with Ayesha and Fatima I would say its the greatest time of our lives. &lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-3295958851702249569?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/3295958851702249569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/03/my-baby-girl-fatime.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3295958851702249569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3295958851702249569'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/03/my-baby-girl-fatime.html' title='My Baby Girl Fatime'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh3.googleusercontent.com/-yQ7tEHVsF6E/TYBLNVH9tFI/AAAAAAAACq4/pHnaE-xOV_0/s72-c/Photo0850.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-5197140304023678601</id><published>2011-03-11T01:21:00.000-08:00</published><updated>2011-03-11T01:21:14.313-08:00</updated><title type='text'>Installing oracle-instantclient on Centos 5.5</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;1. Download oracle instantclient rpm from &lt;a href="http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html"&gt;Oracle&lt;/a&gt; for your platform &lt;br /&gt;&lt;br /&gt;Need to download these two rpms.&lt;br /&gt;&lt;br /&gt;oracle-instantclient-basic-*&lt;br /&gt;oracle-instantclient-devel-*&lt;br /&gt;&lt;br /&gt;2. Install&lt;br /&gt;# rpm -ivh oracle-instantclient-*&lt;br /&gt;&lt;br /&gt;Getting and compiling oci8 extension for PHP&lt;br /&gt;&lt;br /&gt;# pear download pecl/oci8&lt;br /&gt;# tar zxvf oci8-1.4.5.tgz&lt;br /&gt;# cd oci8-1.4.5&lt;br /&gt;# ./configure --with-oci8=instantclient&lt;br /&gt;# make&lt;br /&gt;# make install&lt;br /&gt;&lt;br /&gt;Create a file called /etc/php.d/oracle_oci.ini and place the following line&lt;br /&gt;extension=oci8.so&lt;br /&gt;&lt;br /&gt;Restart Apache&lt;br /&gt;&lt;br /&gt;Create a .php file with call to phpinfo(); and confirm that oci8 is loaded in apache, you can also check if module is loaded with php -m.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-5197140304023678601?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/5197140304023678601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/03/installing-oracle-instantclient-on.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5197140304023678601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5197140304023678601'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/03/installing-oracle-instantclient-on.html' title='Installing oracle-instantclient on Centos 5.5'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-3571135505659765092</id><published>2011-03-09T10:53:00.000-08:00</published><updated>2011-05-30T23:07:39.658-07:00</updated><title type='text'>HP EliteBook 8540p Hibernate/Suspend Fixed in Fedora 13</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Today got time to play with the long standing problem of hibernate/suspend problem on my work notebook HP EliteBook 8540p running Fedora 13 (upgrading to Fedora 14 still pending :( )&lt;br /&gt;&lt;br /&gt;Quick Google search reports an article on &lt;a href="http://www.linlap.com/wiki/hp+elitebook+8540p"&gt;The Linux Laptop Wiki&lt;/a&gt; and astonishingly within 3 minutes the problem fixed and now the thing goes on suspend/hibernate (as per power management settings) if the&amp;nbsp; laptop lid is closed while on battery power or when when the battery power is critically low.&lt;br /&gt;&lt;br /&gt;As per the article all have to do is to create a script,&lt;br /&gt;&lt;br /&gt;1. Create a script file.&lt;br /&gt;$ sudo vi /etc/pm/sleep.d/01fix_usb3&lt;br /&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;# Put the laptop to suspend/hibernate&lt;br /&gt;MOD=xhci-hcd&lt;br /&gt;&lt;br /&gt;case $1 in&lt;br /&gt;suspend | hibernate) modprobe -r $MOD ;;&lt;br /&gt;resume | thaw) modprobe $MOD ;;&lt;br /&gt;*) echo "USB3 fix script: wrong argument $1" ;;&lt;br /&gt;esac&lt;br /&gt;&lt;br /&gt;2. Make it executable&lt;br /&gt;sudo chmod +x /etc/pm/sleep.d/01fix_usb3&lt;br /&gt;&lt;br /&gt;Thanks to nice folks at &lt;a href="http://www.linlap.com/wiki/hp+elitebook+8540p"&gt;The Linux Laptop Wiki&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Update:&lt;/b&gt; This hack is no longer required in Fedora 14,&amp;nbsp; Hibernate/Suspend working out of the box in Fedora 14&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-3571135505659765092?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/3571135505659765092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/03/hp-elitebook-8540p-hibernatesuspend.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3571135505659765092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3571135505659765092'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/03/hp-elitebook-8540p-hibernatesuspend.html' title='HP EliteBook 8540p Hibernate/Suspend Fixed in Fedora 13'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-2296888741868772163</id><published>2011-03-02T23:34:00.000-08:00</published><updated>2011-03-02T23:34:16.381-08:00</updated><title type='text'>Bulk data uploading into the Oracle database using SQL*Loader</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;SQL*Loader is a bulk loader utility used for moving data from external files into the Oracle database.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;i&gt;&lt;b&gt;SQL*Loader (sqlldr) is the utility to use for high performance  data loads. The data can be loaded from any text file and inserted into  the database.&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Recently I got the chance to use SQL*Loader to automate data uploading from a text file in which each field delimited with the pipe "|" into the Oracle. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. Create a control file, call it anything in my case its add.ctl&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;load data&amp;nbsp; infile '-'&lt;br /&gt;APPEND&lt;br /&gt;into table records&lt;br /&gt;fields terminated by '|'&lt;br /&gt;(&lt;br /&gt;field1,&lt;br /&gt;field2,&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;fieldN&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;&lt;i&gt;load data infile '-' &lt;/i&gt;: In my case there are multiple text files which to be process by sqlldr so instead of using filename I used the '-'. And used &lt;i&gt;APPEND&lt;/i&gt; to append the new data into the table.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. Script to run to call sqlldr utility for uploading the data from text files.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;# Author: Askar Ali Khan&lt;br /&gt;# Purpose: To upload data from text files into Oracle Table - RECORDS&lt;br /&gt;# records_upload&lt;br /&gt;&lt;br /&gt;# Define Oracle variables&lt;br /&gt;ORACLE_BASE=/oracle&lt;br /&gt;ORACLE_HOME=$ORACLE_BASE/102&lt;br /&gt;ORACLE_SID=SID&lt;br /&gt;LD_LIBRARY_PATH=$ORACLE_HOME/lib&lt;br /&gt;PATH=$PATH:$ORACLE_HOME/bin&lt;br /&gt;export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH&lt;br /&gt;&lt;br /&gt;SRCDIR="/data"&lt;br /&gt;&lt;br /&gt;# Must be run as oracle user&lt;br /&gt;if [[ $UID -ne 501 ]]; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "$0 must be run as oracle"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit 1&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;cd "$SRCDIR"&lt;br /&gt;&lt;br /&gt;# If directory contains *.txt files then call sqlldr otherwise do nothing&lt;br /&gt;&lt;br /&gt;for file in *.txt; do&lt;br /&gt;&amp;nbsp;test -f "$file" || continue&lt;br /&gt;&amp;nbsp;cat $file | sqlldr oraclUser/Password add.ctl&lt;br /&gt;&amp;nbsp;rm -f $file&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;The script process files in /data directory one by one by piping into sqlldr and delete it. Deletion is must coz in the next run there will be new files fetched into /data directory by another FTP script.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3. Define a cron job under oracle user to run script every 15 minutes&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;$ crontab -e&lt;br /&gt;*/15 * * * * /usr/local/bin/records_upload &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;&lt;a href="http://www.orafaq.com/wiki/Oracle_database" title="Oracle database"&gt; &lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-2296888741868772163?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/2296888741868772163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/03/bulk-data-uploading-into-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2296888741868772163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2296888741868772163'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/03/bulk-data-uploading-into-oracle.html' title='Bulk data uploading into the Oracle database using SQL*Loader'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-433408364758110684</id><published>2011-03-02T22:51:00.000-08:00</published><updated>2011-03-02T22:51:31.171-08:00</updated><title type='text'>Backup using Rsync</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Rsync is a great tool for backup your servers, home directories or anything else, I thought of go for a little howto but there is already plenty of material available online therefore no need to reinvent the wheel :)&lt;br /&gt;&lt;br /&gt;Anyone interested in quick howto for Rsync I would suggest to look into very nice article on &lt;a href="http://www.linuxplanet.com/linuxplanet/tutorials/7307/1/"&gt;LinuxPlanet&lt;/a&gt;.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-433408364758110684?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/433408364758110684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/03/backup-using-rsync.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/433408364758110684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/433408364758110684'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/03/backup-using-rsync.html' title='Backup using Rsync'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-8779751756797395382</id><published>2011-02-28T01:19:00.000-08:00</published><updated>2011-02-28T01:19:24.645-08:00</updated><title type='text'>Screencasting in Linux</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;To create screencast in Linux there lots of Open Source applications but I found &lt;a href="http://recordmydesktop.sourceforge.net/"&gt;RecordMyDesktop&lt;/a&gt; the easiest one to use.&lt;br /&gt;&lt;br /&gt;Installing of recordmydeskop is straight forward under most of Linux distributions and there is a chance that its available in your Linux distro repository.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Installing on Fedora 13&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;sudo yum install gtk-recordmydesktop&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Or prefer to install QT based which is the fork of gtk based then,&lt;br /&gt;&lt;br /&gt;&lt;i&gt;sudo yum install qt-recordmydesktop&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Using recordmydesktop is very easy and its do not require any explanation, but still interested in learning more about then refer to &lt;a href="http://recordmydesktop.sourceforge.net/documentation.php"&gt;recordmydesktop documentions&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-8779751756797395382?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/8779751756797395382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/02/screencasting-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/8779751756797395382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/8779751756797395382'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/02/screencasting-in-linux.html' title='Screencasting in Linux'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-7549315772492439218</id><published>2011-02-13T21:02:00.000-08:00</published><updated>2011-02-13T21:02:36.687-08:00</updated><title type='text'>Installing Oracle 11gR2 on Centos 5.5 64bit</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;1. The /etc/redhat-release should be faked to show Red Hat Enterprise Linux Server release 5 (Tikanga). same goes for /etc/issues file.&lt;br /&gt;But to be sure apply this settings (backup /etc/redhat-release and /etc/issue before) change existing value to&lt;br /&gt;Red Hat Enterprise Linux Server release 5 (Tikanga)&lt;br /&gt;&lt;br /&gt;2. Install fake redhat-release RPM file from http://ivan.kartik.sk/&lt;br /&gt;&lt;br /&gt;rpm -i centos-fake.noarch.rpm&lt;br /&gt;&lt;br /&gt;3. Create Required UNIX Groups and User (For detail check http://download.oracle.com/docs/html/B15521_01/toc.htm)&lt;br /&gt;&lt;br /&gt;# /usr/sbin/groupadd oinstall&lt;br /&gt;# /usr/sbin/groupadd dba&lt;br /&gt;&lt;br /&gt;# /usr/sbin/useradd -g oinstall -G dba oracle&lt;br /&gt;&lt;br /&gt;Enter the following command to set the password of the oracle user:&lt;br /&gt;&lt;br /&gt;# passwd oracle&lt;br /&gt;&lt;br /&gt;4. Create Required Directories &lt;br /&gt;Create directories with names similar to the following and specify the correct owner, group, and permissions for them:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * /u01/app/oracle (the Oracle base directory)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * /u02/oradata (an optional Oracle datafile directory)&lt;br /&gt;&lt;br /&gt;# mkdir -p /u01/app/oracle&lt;br /&gt;# mkdir -p /u02/oradata&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;Change the permissions on the directories that you created to 775:&lt;br /&gt;&lt;br /&gt;# chmod -R 775 /u01/app/oracle&lt;br /&gt;# chmod -R 775 /u02/oradata&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Depending on the oracle user's default shell, make the following changes to the default shell start-up file:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * For the Bourne, Bash, or Korn shell, add the following lines to the /etc/profile file (or the /etc/profile.local file on SUSE systems):&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [ $USER = "oracle" ]; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [ $SHELL = "/bin/ksh" ]; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ulimit -p 16384&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ulimit -n 65536&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ulimit -u 16384 -n 65536&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;br /&gt;&lt;br /&gt;Fulfilling package requirements:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; kernel-headers-2.6.18-194.el5.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glibc-headers-2.5-49.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glibc-devel-2.5-49.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libstdc++-devel-4.1.2-48.el5.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compat-db-4.2.52-5.1.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libgomp-4.4.0-6.el5.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gcc-4.1.2-48.el5.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gcc-c++-4.1.2-48.el5.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sysstat-7.0.2-3.el5.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unixODBC-2.2.11-7.1.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unixODBC-devel-2.2.11-7.1.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libXp-1.0.0-8.1.el5.i386.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libstdc++-devel-4.1.2-48.el5.i386.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unixODBC-2.2.11-7.1.i386.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unixODBC-devel-2.2.11-7.1.i386.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libaio-devel-0.3.106-5.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elfutils-libelf-devel-static-0.137-3.el5.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elfutils-libelf-devel-0.137-3.el5.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compat-gcc-34-3.4.6-4.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compat-gcc-34-c++-3.4.6-4.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gdb-7.0.1-23.el5.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libtermcap-devel-2.0.8-46.1.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; readline-devel-5.1-3.el5.x86_64.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glibc-devel-2.5-49.i386.rpm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libaio-devel-0.3.106-5.i386.rpm&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Install Oracle Database 11gR2&lt;br /&gt;&lt;br /&gt;1. Download the linux.x64_11gR2_database_1of2.zip and linux.x64_11gR2_database_2of2.zip from www.oracle.com &lt;br /&gt;2 unzip both archive this will give one database directory&lt;br /&gt;3. cd database directory and run ./runInstaller (the installer must be run as oracle user)&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-7549315772492439218?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/7549315772492439218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/02/installing-oracle-11gr2-on-centos-55.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7549315772492439218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7549315772492439218'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/02/installing-oracle-11gr2-on-centos-55.html' title='Installing Oracle 11gR2 on Centos 5.5 64bit'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-1261037991876368646</id><published>2011-02-01T02:45:00.000-08:00</published><updated>2011-02-12T02:31:36.674-08:00</updated><title type='text'>Installing KVM guest using virt-install tool</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;These has been tested on Centos 5.5 64bit host.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. KVM Guest installation with virt-install using default networking and storage image created automatically.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;virt-install \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --name ubuntu_server \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --ram 256 \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --disk path=/var/lib/libvirt/images/ubuntu_server.img,size=5 \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --network network:default \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --accelerate \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --vnc \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --cdrom FullPathTo.iso&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. KVM Guest installation with virt-install using bridging interface, and storage image file created with qemu-img&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;For this its assume that bridge 'br0' interface is already configured on host, refer to &lt;a href="http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/topic/liaai/kvminstall/liaaikvminstallbridge.htm"&gt;how to&lt;/a&gt; create bridge interface on Redhat/Centos.&lt;br /&gt;&lt;br /&gt;a) To create storage image&lt;br /&gt;&lt;i&gt;# qemu-img create -f qcow2 /var/lib/libvirt/images/ubuntu_server.img 10G&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;b) &lt;br /&gt;virt-install \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --name ubuntu_server \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --ram 256 \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --os-type='linux' \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --disk path=/var/lib/libvirt/images/ubuntu_server.img \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt; --network bridge:br0&lt;/b&gt; \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --accelerate \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --vnc \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --cdrom FullPathTo.iso&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3. Install a KVM in text mode from remote http server, storage image created with qemu-img. Check (a) for creating storage image&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;virt-install \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --name centos2 \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --ram 256 \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --os-type='linux' \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --disk path=/var/lib/libvirt/images/centos2.img \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --network network:default \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --nographics \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --location http://mirror.switch.ch/ftp/mirror/centos/5.5/os/x86_64/ \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --hvm \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --extra-args console=ttyS0&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;Note:&lt;/b&gt; --extra-args will only work when performing a guest install from "--location", when doing install from local ISO image it should be mounted somewhere&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Tips for completing the installing of guest operating system&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;1) To Connect from remote PC/laptop&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;1. install virt-viewer on your local pc&lt;br /&gt;&lt;br /&gt;2. Upload your ssh public key to KVM host /root/.ssh/authorized_keys  (For this you should allow root login in /etc/ssh/sshd_config)&lt;br /&gt;&lt;br /&gt;3. Run the following by replace KVMHostIP with KVM host IP address and vmName with the KVM virtual machine name.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;$ virt-viewer -c qemu+ssh://root@KVMHostIP/system vmName&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;To connect KVMs from the KVM Host&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;To connect using the virt-viewer tool, run the following command:&lt;br /&gt;# virt-viewer vmName&lt;br /&gt;&lt;br /&gt;&lt;i&gt;To connect using the virt-manager tool, run the following command:&lt;/i&gt;&lt;br /&gt;# virt-manager vmName&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Auto start KVM VMs on Host system boot&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The following command will mark the VM for auto start on system reboot&lt;br /&gt;&lt;br /&gt;&lt;i&gt;# virsh autostart vmName&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-1261037991876368646?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/1261037991876368646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/02/installing-kvm-guest-using-virt-install.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1261037991876368646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1261037991876368646'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/02/installing-kvm-guest-using-virt-install.html' title='Installing KVM guest using virt-install tool'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-6382538256959670099</id><published>2011-01-30T22:24:00.000-08:00</published><updated>2011-02-08T23:37:26.110-08:00</updated><title type='text'>Creating KVM Guests using virsh tool</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;An example XML file to install an operating system from an ISO image The following example XML file can be modified to create a KVM and boot to any operating system from an ISO image or a CD-ROM drive.&lt;/div&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;domain type='kvm'&amp;gt;&lt;br /&gt;   &amp;lt;name&amp;gt;kvm1&amp;lt;/name&amp;gt;&lt;br /&gt;   &amp;lt;uuid&amp;gt;a1e40383-2dfb-47f7-9cf6-589fc9679aa7&amp;lt;/uuid&amp;gt;&lt;br /&gt;   &amp;lt;memory&amp;gt;524288&amp;lt;/memory&amp;gt;&lt;br /&gt;   &amp;lt;currentMemory&amp;gt;524288&amp;lt;/currentMemory&amp;gt;&lt;br /&gt;   &amp;lt;vcpu&amp;gt;1&amp;lt;/vcpu&amp;gt;&lt;br /&gt;   &amp;lt;os&amp;gt;&lt;br /&gt;     &amp;lt;type arch='x86_64' machine='pc'&amp;gt;hvm&amp;lt;/type&amp;gt;&lt;br /&gt;     &amp;lt;boot dev='cdrom'/&amp;gt;&lt;br /&gt; &amp;lt;/os&amp;gt;&lt;br /&gt; &amp;lt;features&amp;gt;&lt;br /&gt;    &amp;lt;acpi/&amp;gt;&lt;br /&gt;    &amp;lt;apic/&amp;gt;&lt;br /&gt;     &amp;lt;pae/&amp;gt;&lt;br /&gt; &amp;lt;/features&amp;gt;&lt;br /&gt; &amp;lt;clock offset='localtime'/&amp;gt;&lt;br /&gt; &amp;lt;on_poweroff&amp;gt;destroy&amp;lt;/on_poweroff&amp;gt;&lt;br /&gt; &amp;lt;on_reboot&amp;gt;restart&amp;lt;/on_reboot&amp;gt;&lt;br /&gt; &amp;lt;on_crash&amp;gt;restart&amp;lt;/on_crash&amp;gt;&lt;br /&gt; &amp;lt;devices&amp;gt;&lt;br /&gt;     &amp;lt;emulator&amp;gt;/usr/libexec/qemu-kvm&amp;lt;/emulator&amp;gt;&lt;br /&gt;     &amp;lt;disk type='file' device='disk'&amp;gt;&lt;br /&gt;       &amp;lt;source file='/var/lib/libvirt/images/kvm1.img'/&amp;gt;&lt;br /&gt;       &amp;lt;target dev='hda' bus='ide'/&amp;gt;&lt;br /&gt;     &amp;lt;/disk&amp;gt;&lt;br /&gt;    &amp;lt;disk type='file' device='cdrom'&amp;gt;&lt;br /&gt;     &amp;lt;source file='/home/askarali/.bb/Fedora-14-x86_64-Live/Fedora-14-x86_64-Live-Desktop.iso'/&amp;gt;&lt;br /&gt;     &amp;lt;target dev='hdc' bus='ide'/&amp;gt;&lt;br /&gt;     &amp;lt;readonly/&amp;gt;&lt;br /&gt;     &amp;lt;/disk&amp;gt;&lt;br /&gt;     &amp;lt;interface type='network'&amp;gt;&lt;br /&gt;      &amp;lt;mac address='54:52:00:2a:58:0d'/&amp;gt;&lt;br /&gt;      &amp;lt;source network='default'/&amp;gt;&lt;br /&gt;    &amp;lt;/interface&amp;gt;&lt;br /&gt;     &amp;lt;input type='mouse' bus='ps2'/&amp;gt;&lt;br /&gt;     &amp;lt;graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/&amp;gt;&lt;br /&gt; &amp;lt;/devices&amp;gt;&lt;br /&gt; &amp;lt;/domain&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;Edit the following before proceeding&lt;/b&gt;&lt;br /&gt;a) Each guest needs a universal unique identifier (uuid), You must generate one for your guest by running the following command, and then copy and paste the identifier into the XML file &amp;lt;uuid&amp;gt;HERE&amp;lt;/uuid&amp;gt;&lt;br /&gt;&lt;br /&gt;# uuidgen&lt;br /&gt;&lt;br /&gt;b) Replace &amp;lt;memory&amp;gt;524288&amp;lt;/memory&amp;gt; and &amp;lt;currentMemory&amp;gt;524288&amp;lt;/currentMemory&amp;gt; tag to memory you want to allocate to your guest.&lt;br /&gt;&lt;br /&gt;c) Replace &amp;lt;mac address='54:52:00:2a:58:0d'/&amp;gt; with the mac address, To generate unique mac address, get the python script from http://www.centos.org/docs/5/html/5.2/Virtualization/sect-Virtualization-Tips_and_tricks-Generating_a_new_unique_MAC_address.html&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Creating Storage Image file&lt;/b&gt;&lt;br /&gt;# qemu-img create -f qcow2 /var/lib/libvirt/images/kvm1.img 10G&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Using virsh to create a KVM&lt;/b&gt;&lt;br /&gt;1. Define your KVM by running:&lt;br /&gt;# virsh define kvm1.xml&lt;br /&gt;&lt;br /&gt;2. &lt;b&gt;Start the KVM so that the installation of its operating system can begin:&lt;/b&gt;&lt;br /&gt;# virsh start kvm1&lt;br /&gt;&lt;br /&gt;If your KVM does not start, complete one of the following to redefine the KVM:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;# virsh edit &amp;lt;Name of KVM&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;After editing the definition file, try to start guest vm again&lt;br /&gt;&lt;br /&gt;# virsh start vmName&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Tips for installing your guest operating system (This should be run on mother host&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;To Connect from your PC/laptop&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;1. install virt-viewer&lt;br /&gt;2. Upload your ssh public key to KVM host /root/.ssh/authorized_keys (For this you should allow root login in /etc/ssh/sshd_config)&lt;br /&gt;&lt;br /&gt;From your laptop, run&lt;br /&gt;&lt;br /&gt;$ virt-viewer -c qemu+ssh://root@KVMHostIP/system vmName&lt;br /&gt;&lt;br /&gt;&lt;i&gt;To connect KVMs from the Host&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;To connect using the virt-viewer tool, run the following command:&lt;br /&gt;# virt-viewer vmName&lt;br /&gt;&lt;br /&gt;&lt;i&gt;To connect using the virt-manager tool, run the following command:&lt;/i&gt;&lt;br /&gt;# virt-manager vmName&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Editing the KVM definition file after operating system installation&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To boot to the installed guest after the guest operating system installation is complete, revise the guest&lt;br /&gt;definition so that it will boot from its hard disk drive.&lt;br /&gt;&lt;br /&gt;# virsh edit vmName&lt;br /&gt;&lt;br /&gt;1.&amp;nbsp; Replace &amp;lt;boot dev='cdrom'/&amp;gt; line with &amp;lt;boot dev='hd'/&amp;gt; (To boot from hard disk)&lt;br /&gt;2.&amp;nbsp; and remove the ISO disk definitions are removed because they are no longer needed.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Propagating your KVMs&lt;/b&gt;&lt;br /&gt;For example, if your task is to create 10 identical KVMs that have simple configurations, you can propagate existing KVMs rather than manually installing 10 identical KVMs.&lt;br /&gt;&lt;br /&gt;1. Stop the template KVM with the virsh tool:&lt;br /&gt;&lt;br /&gt;# virsh shutdown templateKVM&lt;br /&gt;&lt;br /&gt;2. Make copies of the KVM disk image by using the qemu-image command with the convert option:&lt;br /&gt;&lt;br /&gt;# qemu-img convert templateKVM.img -O qcow2 NewKVM1.img&lt;br /&gt;&lt;br /&gt;3. Make copies of the templateKVM XML definition file. You can find it in the /etc/libvirt/qemu/directory or you can run the following command to see the definition file.&lt;br /&gt;&lt;br /&gt;# virsh dumpxml templateKVM&lt;br /&gt;&lt;br /&gt;4. Edit the definition files for &lt;i&gt;name, memory, mac address, source file&lt;/i&gt; etc to define the new KVMs. It is important that a unique MAC address is used in the definition file to make sure that the network functions without a problem.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Networking in Bridge Mode&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. Configure the bridge interface on host operating system&lt;br /&gt;2. replace &amp;lt;interface type='network'&amp;gt; section in kvm.xml with the following&lt;br /&gt;&lt;br /&gt;&amp;lt;interface type='bridge'&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mac address='00:16:3e:56:40:ad'/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;source bridge='br0'/&amp;gt;&lt;br /&gt;&amp;lt;/interface&amp;gt;&lt;br /&gt;&lt;br /&gt;3. Install the guest OS, after installation configure the IP on guest.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Auto start KVM VMs on Host system boot&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The following command will mark the VM for auto start on system reboot&lt;br /&gt;&lt;br /&gt;&lt;i&gt;# virsh autostart vmName&lt;/i&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-6382538256959670099?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/6382538256959670099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/01/creating-kvm-guests-using-virsh-tool.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/6382538256959670099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/6382538256959670099'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/01/creating-kvm-guests-using-virsh-tool.html' title='Creating KVM Guests using virsh tool'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-9145772436233461984</id><published>2011-01-13T00:06:00.000-08:00</published><updated>2011-01-13T02:49:02.752-08:00</updated><title type='text'>VirtualBox 4.0: Creating a Virtual Machine on a headless server</title><content type='html'>The following instructions may give you an idea how to create a virtual machine on a headless server over a network connection. We will create a virtual machine, establish an RDP connection and install a guest operating system -- all without having to touch the headless server. All you need is the following:&lt;br /&gt;&lt;br /&gt;1. VirtualBox on a server machine with a supported host operating system. The VirtualBox extension pack for the VRDP server must be installed For the following example, we will assume a Linux server.&lt;br /&gt;&lt;br /&gt;2. An ISO file accessible from the server, containing the installation data for the guest operating system to install (we will assume Windows XP in the following example).&lt;br /&gt;&lt;br /&gt;3. A terminal connection to that host through which you can access a command line (e.g. via ssh).&lt;br /&gt;&lt;br /&gt;4. An RDP viewer on the remote client rdesktop, rdesktop-vrdp, Microsoft mstsc&lt;br /&gt;&lt;br /&gt;Note again that on the server machine, since we will only use the headless server, neither Qt nor SDL nor the X Window system will be needed.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. On the headless server, create a new virtual machine:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;VBoxManage createvm --name "Windows XP" --ostype WindowsXP --register&lt;br /&gt;&lt;br /&gt;Note that if you do not specify --register, you will have to manually use the registervm command later.&lt;br /&gt;&lt;br /&gt;Note further that you do not need to specify --ostype, but doing so selects some sane default values for certain VM parameters, for example the RAM size and the type of the virtual network device. To get a complete list of supported operating systems you can use&lt;br /&gt;&lt;br /&gt;VBoxManage list ostypes&lt;br /&gt;&lt;b&gt;&lt;br /&gt;2. Make sure the settings for this VM are appropriate for the guest operating system that we will install. For example:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;VBoxManage modifyvm "Windows XP" --memory 256 --acpi on --boot1 dvd --nic1 nat&lt;br /&gt;&lt;b&gt;&lt;br /&gt;3. Create a virtual hard disk for the VM (in this case, 10GB in size):&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;VBoxManage createhd --filename "WinXP.vdi" --size 10000&lt;br /&gt;&lt;br /&gt;&lt;b&gt;4. Add an IDE Controller to the new VM:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;VBoxManage storagectl "Windows XP" --name "IDE Controller" --add ide --controller PIIX4&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5. Set the VDI file created above as the first virtual hard disk of the new VM:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;VBoxManage storageattach "Windows XP" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium "WinXP.vdi"&lt;br /&gt;&lt;b&gt;&lt;br /&gt;6. Attach the ISO file that contains the operating system installation that you want to install later to the virtual machine, so the machine can boot from it:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;VBoxManage storageattach "Windows XP" --storagectl "IDE Controller" --port 0 --device 1 --type dvddrive --medium /full/path/to/iso.iso&lt;br /&gt;&lt;b&gt;&lt;br /&gt;7. Start the virtual machine using VBoxHeadless:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;VBoxHeadless --startvm "Windows XP"&lt;br /&gt;&lt;br /&gt;If everything worked, you should see a copyright notice. If, instead, you are returned to the command line, then something went wrong.&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;8. On the client machine, fire up the RDP viewer and try to connect to the server (see the section called “Common third-party RDP viewers” above for how to use various common RDP viewers).&lt;br /&gt;&lt;br /&gt;You should now be seeing the installation routine of your guest operating system remotely in the RDP viewer.&lt;br /&gt;&lt;br /&gt;To stop a VM &lt;br /&gt;&lt;i&gt;VBoxManage controlvm "Windows XP" poweroff&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;To pause a VM&lt;br /&gt;&lt;i&gt;&amp;nbsp;VBoxManage controlvm "Windows XP" pause&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Allow multi connections:&lt;br /&gt;&lt;i&gt;VBoxManage modifyvm "Windows XP" --vrdemulticon on&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Listen on different port&lt;br /&gt;&lt;i&gt;VBoxHeadless --startvm "Windows XP" --vrdeproperty "TCP/Ports"=5001&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Installing Guest Addition on Headless VM&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. First attach the Guest Addition .iso to VM (vm should be poweroff)&lt;br /&gt;&lt;br /&gt;VBoxManage storageattach "Windows XP" --storagectl "IDE Controller"  --port 1 --device 0 --type dvddrive --medium  /usr/share/virtualbox/VBoxGuestAdditions.iso&lt;br /&gt;&lt;br /&gt;2. Start VM and now you can explorer and install the guest addition.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-9145772436233461984?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/9145772436233461984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/01/virtualbox-40-creating-virtual-machine.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/9145772436233461984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/9145772436233461984'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/01/virtualbox-40-creating-virtual-machine.html' title='VirtualBox 4.0: Creating a Virtual Machine on a headless server'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-1444170776374472930</id><published>2011-01-12T22:46:00.000-08:00</published><updated>2011-01-12T22:47:40.542-08:00</updated><title type='text'>VirtualBox VBoxHeadless, the remote desktop server</title><content type='html'>Which produces no visible output on the host at all, but instead only delivers VRDP data. This front-end has no dependencies on the X Window system on Linux and Solaris hosts, this is usefull on servers where the only purpose is to run VMs and access it remotely.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Prerequisite:&lt;/b&gt;&lt;br /&gt;On Virtualbox 4.0 you must have &lt;a href="http://www.virtualbox.org/manual/ch01.html#intro-installing"&gt;extension pack installed&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;To start a virtual machine with VBoxHeadless, you have two options:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;VBoxManage startvm "VM name" --type headless&lt;br /&gt;&lt;br /&gt;The extra --type option causes VirtualBox to use VBoxHeadless as the front-end to the internal virtualization engine instead of the Qt front-end.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The alternative is to use VBoxHeadless directly, as follows:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;VBoxHeadless --startvm &lt;uuid|name&gt;&lt;/uuid|name&gt;&lt;br /&gt;&lt;uuid|name&gt; &lt;br /&gt;This way of starting the VM is preferred because you can see more detailed error messages, especially for early failures before the VM execution is started. If you have trouble with VBoxManage startvm, it can help greatly to start VBoxHeadless directly to diagnose the problem cause.&lt;br /&gt;&lt;br /&gt;Note that when you use VBoxHeadless to start a VM, since the headless server has no other means of output, the VRDP (VirtualBox Remote Desktop Protocol) server will always be enabled, regardless of whether you had enabled the VRDP server in the VM's settings&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Accessing the VM remotely:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;On Linux host you can test the Remote display of VM using rdesktop, or rdesktop-vrdp which is installed with VirtualBox&lt;br /&gt;&lt;br /&gt;rdesktop -a 16 -N 1.2.3.4:3339&lt;br /&gt;&lt;br /&gt;As said for the Microsoft viewer above, replace "1.2.3.4" with the host IP address, and 3389 with a different port if necessary. The -a 16 option requests a color depth of 16 bits per pixel, which we recommend. (For best performance, after installation of the guest operating system, you should set its display color depth to the same value). The -N option enables use of the NumPad keys.&lt;br /&gt;&lt;br /&gt;rdesktop-vrdp 127.0.0.2:3339&lt;br /&gt;&lt;br /&gt;When connecting to localhost in order to test the connection, the addresses localhost and 127.0.0.1 might not work. Instead, the address 127.0.0.2[:3389] has to be used.&lt;br /&gt;&lt;br /&gt;On Windows, you can use the Microsoft Terminal Services Connector (mstsc.exe) that ships with Windows. You can start it by bringing up the "Run" dialog (press the Windows key and "R") and typing "mstsc". You can also find it under "Start" -&amp;gt; "All Programs" -&amp;gt; "Accessories" -&amp;gt; "Remote Desktop Connection". If you use the "Run" dialog, you can type in options directly:&lt;br /&gt;&lt;br /&gt;mstsc 1.2.3.4[:3389]&lt;/uuid|name&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-1444170776374472930?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/1444170776374472930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/01/virtualbox-vboxheadless-remote-desktop.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1444170776374472930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1444170776374472930'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/01/virtualbox-vboxheadless-remote-desktop.html' title='VirtualBox VBoxHeadless, the remote desktop server'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-461802268756986889</id><published>2011-01-12T22:35:00.000-08:00</published><updated>2011-01-12T22:38:45.231-08:00</updated><title type='text'>VirtualBox Remote display (VRDP support)</title><content type='html'>VirtualBox can display virtual machines remotely, meaning that a     virtual machine can execute on one machine even though the machine will be     displayed on a second computer, and the machine will be controlled from     there as well, as if the virtual machine was running on that second     computer.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Prerequisites:&lt;/b&gt;&lt;br /&gt;&lt;a href="http://www.virtualbox.org/manual/ch01.html#intro-installing"&gt;VirtualBox Extentions Pack&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You can also check my &lt;a href="http://askaralikhan.blogspot.com/2011/01/installing-virtualbox-40-on-fedora-13.html"&gt;eariier post&lt;/a&gt; for how to install VirtualBox and extention pack.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enabling VRDP&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Even when the extension is installed, the VRDP server is disabled by     default. It can easily be enabled on a per-VM basis either in the     &lt;i&gt;VirtualBox Manager in the "Display" settings&lt;/i&gt; or with     &lt;code class="computeroutput"&gt;VBoxManage&lt;/code&gt;:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;VBoxManage modifyvm "VM name" --vrde on&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;By default, VRDP uses TCP port       &lt;code class="computeroutput"&gt;3389&lt;/code&gt;. You will need to change the       default port if you run more than one VRDP server, since the port can       only be used by one server at a time; you might also need to change it       on Windows hosts since the default port might already be used by the RDP       server that is built into Windows itself. Ports 5000 through 5050 are       typically not used and might be a good choice.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Accessing the VM remotely:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;On Linux host you can test the Remote display of VM using rdesktop, or rdesktop-vrdp which is installed with VirtualBox&lt;br /&gt;&lt;br /&gt;&lt;b&gt;rdesktop -a 16 -N 1.2.3.4:3339&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;As said for the Microsoft viewer above, replace "1.2.3.4" with the host IP address, and 3389 with a different port if necessary. The -a 16 option requests a color depth of 16 bits per pixel, which we recommend. (For best performance, after installation of the guest operating system, you should set its display color depth to the same value). The -N option enables use of the NumPad keys.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;rdesktop-vrdp 127.0.0.2:3339&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;When connecting to localhost in order to test the connection, the addresses localhost and 127.0.0.1 might not work using mstsc.exe. Instead, the address 127.0.0.2[:3389] has to be used.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On Windows, you can use the Microsoft Terminal Services             Connector (&lt;code class="computeroutput"&gt;mstsc.exe&lt;/code&gt;) that ships             with Windows. You can start it by bringing up the "Run" dialog             (press the Windows key and "R") and typing "mstsc". You can also             find it under "Start" -&amp;gt; "All Programs" -&amp;gt; "Accessories"             -&amp;gt; "Remote Desktop Connection". If you use the "Run" dialog,             you can type in options directly:&lt;br /&gt;&lt;pre class="screen"&gt;&lt;b&gt;mstsc 1.2.3.4[:3389]&lt;/b&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-461802268756986889?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/461802268756986889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/01/virtualbox-remote-display-vrdp-support.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/461802268756986889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/461802268756986889'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/01/virtualbox-remote-display-vrdp-support.html' title='VirtualBox Remote display (VRDP support)'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-7290610923496273611</id><published>2011-01-11T22:21:00.000-08:00</published><updated>2011-01-11T22:21:51.304-08:00</updated><title type='text'>Installing VirtualBox 4.0 on Fedora 13</title><content type='html'>Oracle recently released VirtualBox 4.0, a new major release. It now has an  open architecture using extension packs and the base package is under  GPLv2 and lots of new cool features. So its worth to install the VB 4.0&lt;br /&gt;&lt;br /&gt;This article assume that you have already older version of VirtualBox installed along with all the dependencies.&lt;br /&gt;&lt;br /&gt;&lt;div class="x_MsoListParagraph" style="text-indent: -0.25in;"&gt;1.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;First install the DKMS package&lt;/div&gt;&lt;div class="x_MsoNormal" style="text-indent: 0.25in;"&gt;$ sudo yum install dkms&lt;/div&gt;&lt;div class="x_MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="x_MsoListParagraph" style="text-indent: -0.25in;"&gt;2.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Download the VB 4.0 for Fedora 13 64bit&lt;/div&gt;&lt;div class="x_MsoNormal" style="text-indent: 0.25in;"&gt;$ wget &lt;a href="https://webmail.ptcl.net.pk/owa/redir.aspx?C=f8e9e790eb1842dc941dab38b90f8fc8&amp;amp;URL=http%3a%2f%2fdownload.virtualbox.org%2fvirtualbox%2f4.0.0%2fVirtualBox-4.0-4.0.0_69151_fedora13-1.x86_64.rpm" target="_blank"&gt; http://download.virtualbox.org/virtualbox/4.0.0/VirtualBox-4.0-4.0.0_69151_fedora13-1.x86_64.rpm&lt;/a&gt;&lt;/div&gt;&lt;div class="x_MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="x_MsoListParagraph" style="text-indent: -0.25in;"&gt;3.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Uninstall the older version of VB (make sure no virtual machine is running)&lt;/div&gt;&lt;div class="x_MsoNormal" style="text-indent: 0.25in;"&gt;$ rpm -qa | grep VirtualBox &amp;lt;- this will give you the package name of installed VB&lt;/div&gt;&lt;div class="x_MsoNormal" style="text-indent: 0.25in;"&gt;$ sudo rpm –e PackageName (replace package name with the name got from earlier command) &lt;/div&gt;&lt;div class="x_MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="x_MsoListParagraph" style="text-indent: -0.25in;"&gt;4.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Install VirtualBox 4.0&lt;/div&gt;&lt;div class="x_MsoNormal" style="margin-left: 0.25in;"&gt;sudo rpm –Uvh VirtualBox-4.0-4.0.0_69151_fedora13-1.x86_64.rpm&lt;/div&gt;&lt;br /&gt;Download and install the extension pack as follows:&lt;br /&gt;&lt;br /&gt;$ wget http://download.virtualbox.org/virtualbox/4.0.0/Oracle_VM_VirtualBox_Extension_Pack-4.0.0-69151.vbox-extpack&lt;br /&gt;&lt;br /&gt;$ sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.0.0-69151.vbox-extpack&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-7290610923496273611?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/7290610923496273611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2011/01/installing-virtualbox-40-on-fedora-13.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7290610923496273611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7290610923496273611'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2011/01/installing-virtualbox-40-on-fedora-13.html' title='Installing VirtualBox 4.0 on Fedora 13'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-7885640131756830029</id><published>2010-12-22T20:57:00.000-08:00</published><updated>2010-12-22T20:57:46.612-08:00</updated><title type='text'>Receiving SNMP Traps in Nagios</title><content type='html'>SNMP traps are alerts and notifications generated by SNMP-enabled devices. The traps con-tain information about the status or an event on an SNMP-enabled device. For example, an authentication event or the change in status of an interface on a router may generate an SNMP trap that is sent to a management station of some sort, such as HP OpenView, CiscoWorks, Nagios.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Pre-requisites:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. Net-SNMP with snmptrapd configured.&lt;br /&gt;2. SNMPTT, SNMP trap translator.&lt;br /&gt;3. Nagios.&lt;br /&gt;5. Mib definition files for the equipment or software you need to monitor. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Installing Net-SNMP packages:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The Net-SNMP package is available as a series of installable packages on many distributions. Indeed, it may already be installed on your system or you may be able to install it via your distribution’s package management system, such as yum, apt, or the like. On Red Hat, SuSE, Debian, and Mandrake&lt;br /&gt;distributions, the required packages are called net-snmp, net-snmp-libs, and net-snmp-utils.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Installing Net-SNMP packages on Centos 5.5&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;# yum install net-snmp net-snmp-libs net-snmp-utils net-snmp-perl perl-Net-SNMP net-snmp-devel&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Configuring and Running the snmptrapd Daemon&lt;/b&gt;&lt;br /&gt;When incoming traps are received from the snmptrapd daemon, they are passed to the SNMPTT tool. The SNMPTT tool will then try to match the incoming trap against the collection of trap definitions that it has translated. If the trap matches, SNMPTT will see if the translated trap definition contains logic to output it to Nagios and execute that logic. The trap is then out-put to Nagios as a passive check result.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;On Centos 5.5&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;# vi /etc/sysconfig/snmptrapd.options&lt;br /&gt;#OPTIONS="-On -Lsd -c /etc/snmp/snmptrapd.conf -p /var/run/snmptrapd.pid"&lt;br /&gt;OPTIONS="-On -Lsd -p /var/run/snmptrapd.pid"&lt;br /&gt;&lt;br /&gt;Make sure to remove the -c /etc/snmp/snmptrapd.conf part, otherwise you will receive TRAP twice, as snmptrapd' is compiled with the default configuration file path being already set to '/etc/snmp/snmptrapd.conf'.&lt;br /&gt;&lt;br /&gt;As quoted from SNMP Trap Translator documentation: "The -On is recommended. This will make snmptrapd pass OIDs in numeric form and prevent SNMPTT from having to translate the symbolic name to numerical form." &lt;br /&gt;&lt;br /&gt;# vi /etc/snmp/snmptrapd.conf&lt;br /&gt;traphandle default /usr/sbin/snmptthandler&lt;br /&gt;disableAuthorization yes&lt;br /&gt;#donotlogtraps&amp;nbsp; yes&lt;br /&gt;&lt;br /&gt;The traphandle directive tells the snmptrapd daemon how to handle incoming traps and where to send them. Adding the default option tells the daemon that this is the default way to handle all incoming traps. All traps will be sent to the snmptthandler script located in the /usr/sbin directory, the "disableAuthorization yes" tells to accept SNMP traps from all you can configure it to do authentication for detail refer to snmptrapd.conf manual.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Installing SNMPTT (SNMP Trap Translator)&lt;/b&gt;&lt;br /&gt;You can get the SNMPTT tool from Sourceforge at http://snmptt.sourceforge.net/. This line shows how to download and unpack the SNMPTT tool:&lt;br /&gt;Download snmptt_1.3.tgz which the latest version/stable release.&lt;br /&gt;&lt;br /&gt;tar -zxvf snmptt_1.3.tgz&lt;br /&gt;&lt;br /&gt;The SNMPTT package has no installation script, so a number of manual installations steps need to take place. First, copy the SNMPTT binaries to a suitable directory and mark them as executable. I recommend using the /usr/sbin directory&lt;br /&gt;&lt;br /&gt;# cp snmptt snmptthandler /usr/sbin/&lt;br /&gt;# chmod +x /usr/sbin/snmptt /usr/sbin/snmptthandler&lt;br /&gt;&lt;br /&gt;I specified the snmptthandler binary as the value of the traphandle option in the snmptrapd.conf configuration file in the previous section. When a trap is received, this binary is executed by default and the trap sent to the snmptt daemon&lt;br /&gt;&lt;br /&gt;Next, copy the SNMPTT configuration file, snmptt.ini, to the /etc/snmp directory and snmpttconvertmib utility&lt;br /&gt;&lt;br /&gt;# cp snmptt.ini /etc/snmp/&lt;br /&gt;# cp snmpttconvertmib /usr/sbin/&lt;br /&gt;&lt;br /&gt;Also needed are a user and group to run the SNMPTT daemon as.&lt;br /&gt;&lt;br /&gt;# groupadd snmptt&lt;br /&gt;# adduser -g snmptt snmptt&lt;br /&gt;&lt;br /&gt;# chown snmptt:snmptt /etc/snmp/snmptt.ini&lt;br /&gt;&lt;br /&gt;The SNMPTT tool also needs a spool directory to hold the incoming traps. I usually use the default directory of /var/spool/snmptt. It needs to be owned by the user and group that will run SNMPTT. Create and change the ownership of the directory like so&lt;br /&gt;&lt;br /&gt;# mkdir /var/spool/snmptt&lt;br /&gt;# chown snmptt:snmptt /var/spool/snmptt&lt;br /&gt;&lt;br /&gt;Finally, in order to start the SNMPTT tool, you can either execute it from the command line or use the init script provided with the package. On the following line&lt;br /&gt;&lt;br /&gt;&lt;i&gt;SNMPTT started in daemon mode:&lt;/i&gt;&lt;br /&gt;# /usr/sbin/snmptt -daemon&lt;br /&gt;&lt;br /&gt;Or copy the init script provided with the package, you can then add it to your startup process.&lt;br /&gt;&lt;br /&gt;# cp snmptt-init.d /etc/init.d/snmptt&lt;br /&gt;&lt;br /&gt;To start/stop/reload you can do with ..&lt;br /&gt;&lt;br /&gt;/etc/init.d/snmptt start/stop/reload&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Configuring SNMPTT&lt;/b&gt;&lt;br /&gt;The first is configuring the /etc/snmp/snmptt.ini file. The file contains quite a large number of directives, but I’ll only look at those relevant to the process of translating and transmitting the received traps to Nagios&lt;br /&gt;&lt;br /&gt;mode = daemon&lt;br /&gt;daemon_fork = 1&lt;br /&gt;daemon_uid = snmptt&lt;br /&gt;spool_directory = /var/spool/snmptt/&lt;br /&gt;sleep = 5&lt;br /&gt;dns_enable = 1&lt;br /&gt;strip_domain = 1&lt;br /&gt;log_enable = 1&lt;br /&gt;syslog_enable = 0&lt;br /&gt;exec_enable = 1&lt;br /&gt;snmptt_conf_files = &amp;lt;&lt;end&gt;&lt;br /&gt;/etc/snmp/snmptt.conf&lt;br /&gt;END&lt;/end&gt;&lt;br /&gt;&lt;br /&gt;The sample snmptt.ini file contained in the SNMPTT package has detailed explanations of all the directives and options that you can specify. I recommend reading this file for further information and explanations about SNMPTT’s configuration options&lt;br /&gt;&lt;br /&gt;Tip:&amp;nbsp; If you enable DNS resolution, I recommend you add all the hostnames that need to be resolved to the local /etc/hosts file on your host server. This prevents your DNS server from being a bottleneck or preventing SNMPTT from functioning if your DNS server is unavailable.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Compiling MIBs&lt;/b&gt;&lt;br /&gt;You must gather all MIBs for monitored software, so you can feed SNMPTT with them. Compiling consists in extracting each OID of type "trap" and its associated comments, and generate a configuration file in SNMPTT format from these informations.&lt;br /&gt;&lt;br /&gt;Run the following command on each of your MIB files:&lt;br /&gt;&lt;br /&gt;snmpttconvertmib --in=&lt;mib file=""&gt; --out=/etc/snmp/snmptt.conf.&lt;equipment&gt; \&lt;br /&gt;--exec='/usr/local/nagios/libexec/eventhandlers/submit_check_result $r TRAP 1'&lt;br /&gt;&lt;br /&gt;The resulting SNMPTT configuration file will contain blocks (one per selected OID)&lt;/equipment&gt;&lt;/mib&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Catchall Trap Definition&lt;/b&gt;&lt;br /&gt;SNMPTT also has a regular expression–matching capability that allows you to use an EVENT line that matches multiple incoming traps, a catchall trap definition. This means you don’t need to define individual translated trap definitions for each possible incoming trap.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Catchall Trap Definition&lt;/i&gt;&lt;br /&gt;EVENT CatchAll .1.* "SNMP Traps" Critical&lt;br /&gt;FORMAT $D&lt;br /&gt;EXEC /usr/local/nagios/libexec/eventhandlers/submit_check_result "$r"&amp;nbsp; &lt;br /&gt;"snmp_traps" 2 "$O: $1 $2 $3 $4 $5"&lt;br /&gt;&lt;br /&gt;I could also be more selective and select OIDs from a particular vendor or class of trap either using a wildcard or regular expression pattern matching. I’ve added a category called SNMP Traps and severity of Warning.&lt;br /&gt;&lt;br /&gt;For example here is example to catchall traps from a specific vendor OID.&lt;br /&gt;&lt;br /&gt;EVENT CatchAll .1.3.6.1.4.1.20916.* "Status Events" Normal&lt;br /&gt;FORMAT A room-alert-4e-snmp-trap indicates that an alarm $*&lt;br /&gt;EXEC /usr/lib/nagios/plugins/eventhandlers/submit_check_result $r "snmp_traps" 1 "A room-alert-4e-snmp-trap indicates that an alarm $*"&lt;br /&gt;SDESC&lt;br /&gt;A room-alert-4e-snmp-trap indicates that an alarm&lt;br /&gt;condition has occurred on the sensor indicated&lt;br /&gt;by the alarmmessage variable.&lt;br /&gt;Variables:&lt;br /&gt;&amp;nbsp; 1: alarmmessage&lt;br /&gt;EDESC&lt;br /&gt;&lt;br /&gt;When done, add to SNMPTT configuration file /etc/snmp/snmptt.ini the path to compiled configuration files:&lt;br /&gt;&lt;br /&gt;[...]&lt;br /&gt;snmptt_conf_files = &amp;lt;&lt;end&gt;&lt;br /&gt;/etc/snmp/snmptt.conf.&lt;equipment1&gt;&lt;br /&gt;/etc/snmp/snmptt.conf.&lt;equipment2&gt;&lt;br /&gt;END&lt;/equipment2&gt;&lt;/equipment1&gt;&lt;/end&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Configuring Nagios&lt;/b&gt;&lt;br /&gt;You will use passive checks to receive SNMP traps but they also will be volatiles. If ever two traps are received from the same host, the second one coming in before the first one was reset to OK, we want to be notified twice, although there is no state change. That's why we use a volatile service.&lt;br /&gt;&lt;br /&gt;You might define (for example) a service template for SNMP traps, inheriting from a generic service template:&lt;br /&gt;&lt;br /&gt;define service{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; generic-service&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; active_checks_enabled&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; passive_checks_enabled&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Passive service checks are enabled/accepted&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parallelize_check&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obsess_over_service&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; check_freshness&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; notifications_enabled&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Service notifications are enabled&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; event_handler_enabled&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Service event handler is enabled&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flap_detection_enabled&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Flap detection is enabled&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; failure_prediction_enabled&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Failure prediction is enabled&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; process_perf_data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Process performance data&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retain_status_information&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Retain status information across program restarts&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retain_nonstatus_information&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Retain non-status information across program restarts&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is_volatile&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; The service is not volatile&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; check_period&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 24x7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; The service can be checked at any time of the day&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max_check_attempts&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Re-check the service up to 3 times in order to determine its final (hard) state&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; normal_check_interval&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Check the service every 10 minutes under normal conditions&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retry_check_interval&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Re-check the service every two minutes until a hard state can be determined&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; contact_groups&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; admins&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Notifications get sent out to everyone in the 'admins' group&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; notification_options&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; w,u,c,r&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Send notifications about warning, unknown, critical, and recovery events&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; notification_interval&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 60&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Re-notify about service problems every hour&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; notification_period&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 24x7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Notifications can be sent out at any time&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; register&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;define service{&lt;br /&gt;name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trap-service&lt;br /&gt;use&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; generic-service&lt;br /&gt;register&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;service_description&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; snmp_traps&lt;br /&gt;is_volatile&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;check_command&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; check-host-alive&amp;nbsp;&amp;nbsp;&amp;nbsp; ;Used to reset the status to OK when 'Schedule an immediate check of this service' is selected.&lt;br /&gt;flap_detection_enabled&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ; Flap detection is disabled&lt;br /&gt;process_perf_data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ; Do not Process performance data&lt;br /&gt;max_check_attempts&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ; Leave as 1&lt;br /&gt;normal_check_interval&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ; Leave as 1&lt;br /&gt;retry_check_interval&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ; Leave as 1&lt;br /&gt;passive_checks_enabled&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ; Enables passive checks&lt;br /&gt;check_period&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 24x7&lt;br /&gt;notification_interval&amp;nbsp;&amp;nbsp; 31536000&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ; Notification interval.&amp;nbsp; Set to a very high number to prevent you from getting &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pages of previously received traps (1 year - restart Nagios at least once a year! - &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; do not set to 0!).&lt;br /&gt;active_checks_enabled&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ; Prevent active checks from occuring as we are only using passive checks.&lt;br /&gt;notification_options&amp;nbsp;&amp;nbsp;&amp;nbsp; w,u,c&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ; Notify on warning, unknown and critical.&lt;br /&gt;contact_groups&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sysadmins&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;define service{&lt;br /&gt;&amp;nbsp;host_name&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; AVT-Room-Alert ; hostname is define /etc/hosts file&lt;br /&gt;&amp;nbsp;use&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; trap-service&lt;br /&gt;&amp;nbsp;contact_groups sysadmins&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;TIP: You could also use a wildcard to create this service for all hosts or use the hostgroup_name directive to create the service for all members of a host group or groups.&lt;br /&gt;&lt;br /&gt;I’ve defined the service as volatile and set the maximum check attempts to 1. This will cause Nagios to immediately set a HARD service state and trigger any configured notifications or event handlers. I’ve also configured it for passive checks only and disabled active checks.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Putting It All Together&lt;/b&gt;&lt;br /&gt;The SNMPTT tool is called via the trap handler defined in the snmptrapd.conf configuration file I defined in the “Configuring and Running the snmptrapd Daemon” section. This trap handler calls the /usr/sbin/snmptthandler script. The script reads the trap and then writes it to the spool directory defined in the spool_directory directive from the snmptt.ini configuration file. The script then exits.&lt;br /&gt;&lt;br /&gt;From here the SNMPTT daemon takes over. It reads the trap from the spool file and searches for a match in its trap definitions. If it finds a match, it executes the EXEC statement in the matching trap definition. This EXEC statement sends the passive check result to the Nagios server using the submit_check_result script. The daemon then sleeps for the period specified in the sleep directive in the snmptt.ini file and checks the spool directory for additional traps; if it finds matches, it processes them and sends the check results to Nagios.&lt;br /&gt;&lt;br /&gt;The Nagios server has to have host objects defined for every host that generates SNMP traps. Additionally, you need to define service objects for those hosts to receive the service check results. You should configure them to receive passive check results and as volatile services.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-7885640131756830029?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/7885640131756830029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/12/receiving-snmp-traps-in-nagios.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7885640131756830029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7885640131756830029'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/12/receiving-snmp-traps-in-nagios.html' title='Receiving SNMP Traps in Nagios'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-3300476639048821575</id><published>2010-10-29T22:28:00.000-07:00</published><updated>2010-10-29T22:28:44.912-07:00</updated><title type='text'>Fixing Oracle SQL Developer on 64 bit Fedora 13</title><content type='html'>If getting error while trying to start SQL Developer on 64 bit Fedora&lt;br /&gt;&lt;br /&gt;&lt;i&gt;java.lang.UnsatisfiedLinkError: /usr/java/jdk1.6.0_07/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory &lt;/i&gt;&lt;br /&gt;&lt;br /&gt;The installed libXtst is 64 bit and sqldeveloper will not work until 32bit version of the same package is installed.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Installing 32 bit package on Fedora&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;sudo yum install packagename.i686&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Now to fix the Oracle SQL Developer problem install the 32 bit version of&amp;nbsp; libXtst&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;b&gt;&lt;i&gt;sudo yum install libXtst.i686&lt;/i&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-3300476639048821575?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/3300476639048821575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/10/fixing-oracle-sql-developer-on-64-bit.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3300476639048821575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3300476639048821575'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/10/fixing-oracle-sql-developer-on-64-bit.html' title='Fixing Oracle SQL Developer on 64 bit Fedora 13'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-2273886879520553990</id><published>2010-08-30T11:03:00.000-07:00</published><updated>2010-08-30T11:03:33.176-07:00</updated><title type='text'>Cache Only Local DNS Server using dnsmasq</title><content type='html'>&lt;span style="font-size: small;"&gt;&lt;a href="http://www.thekelleys.org.uk/dnsmasq/"&gt;dnsmasq&lt;/a&gt; is &lt;/span&gt;&lt;span style="font-size: small;"&gt;the most popular caching DNS choice for small-to-medium deployments is &lt;/span&gt;&lt;span style="font-size: small;"&gt;which is both a lightweight DNS server and a lightweight DHCP server. It is a standard package in modern Linux  distributions. If your distro doesn't provide it, though, you can  download and install the source without too much trouble; there are no  major external package dependencies.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Installing dnsmasq on Fedora&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;# yum install dnsmasq&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Configuration &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 11px;"&gt;&lt;span style="font-size: small;"&gt;Open the  file /etc/dnsmasq.conf as root. There are several dozen configuration  options -- all of them well-documented -- but it only takes a few to get  set up for normal use.&amp;nbsp; Near the top, uncomment out the &lt;span style="background-color: lightblue;"&gt;listen-address= &lt;/span&gt;directive and add the localhost address 127.0.0.1: &lt;span style="background-color: lightblue;"&gt;listen-address=127.0.0.1&lt;/span&gt;. This tells dnsmasq to listen for DNS queries that originate on the local machine.&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 11px;"&gt; &lt;span style="font-size: small;"&gt;listen-address=127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;Edit /etc/resolv.conf, and add &lt;span style="background-color: lightblue;"&gt;nameserver 127.0.0.1&lt;/span&gt; to the top. The locally-running copy of dnsmasq will now receive all DNS queries first, and cache the results.&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;Starting dnsmasq Service&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;# /etc/init.d/dnsmasq start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 11px;"&gt;&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/5356450989645359839-2273886879520553990?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/2273886879520553990/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/08/cache-only-local-dns-server-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2273886879520553990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2273886879520553990'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/08/cache-only-local-dns-server-using.html' title='Cache Only Local DNS Server using dnsmasq'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-2704663708763022902</id><published>2010-08-28T12:59:00.000-07:00</published><updated>2010-08-28T12:59:46.948-07:00</updated><title type='text'>No Video with mplayer on Fedora 13</title><content type='html'>After installing Mplayer on Fedora 13 I was facing the problem of no video which was fixed after running the mplayer from command line with the following option&lt;br /&gt;&lt;br /&gt;gmplayer -vo xv filename.avi&lt;br /&gt;&lt;br /&gt;After running it from command line it start working fine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-2704663708763022902?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/2704663708763022902/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/08/no-video-with-mplayer-on-fedora-13.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2704663708763022902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2704663708763022902'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/08/no-video-with-mplayer-on-fedora-13.html' title='No Video with mplayer on Fedora 13'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-497692341092635360</id><published>2010-06-18T23:02:00.001-07:00</published><updated>2010-06-23T01:00:03.342-07:00</updated><title type='text'>Installing Google Command-Line Tool for Linux</title><content type='html'>&lt;a href="http://google-opensource.blogspot.com/2010/06/introducing-google-command-line-tool.html" linkindex="18"&gt;Ever wanted to upload&lt;/a&gt; a folder full of photos to Picasa from a command prompt?' Google introduced today a new project, &lt;a href="http://code.google.com/p/googlecl/" linkindex="19"&gt;Google CL&lt;/a&gt;, that lets you do that and much more. It's a new command line tool for Linux that acts as an interface with Google services; you can upload videos to YouTube or maybe post a new blog post in Blogger in just one line&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Installing Google CL:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;DEPENDENCIES &lt;br /&gt;&lt;br /&gt;GoogleCL requires Python 2.5 or 2.6 and the gdata python client library. You can get the library from the project homepage: http://code.google.com/p/gdata-python-client/&lt;br /&gt;&lt;br /&gt;1. Download gdata-2.0.10.tar.gz or .zip&lt;br /&gt;2. extract the source tar zxvf gdata-2.0.10.tar.gz&lt;br /&gt;3. cd gdata-2.0.10&lt;br /&gt;4. Run sudo ./setup.py install&lt;br /&gt;&lt;br /&gt;&lt;i&gt;I got this error...&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'install_requires'&lt;br /&gt;warnings.warn(msg)&lt;br /&gt;running install&lt;br /&gt;error: invalid Python installation: unable to open /usr/lib/python2.6/config/Makefile (No such file or directory)&lt;br /&gt;&lt;br /&gt;In case of above error install python-setuptools-devel which will also install python-devel as dependency,&lt;br /&gt;&lt;br /&gt;sudo yum install python-setuptools-devel&lt;br /&gt;&lt;br /&gt;and do the step (4) again&lt;br /&gt;&lt;br /&gt;Running Tests and Samples&lt;br /&gt;&lt;br /&gt;./tests/run_data_tests.py&lt;br /&gt;&lt;br /&gt;If this script runs correctly, you should see output on the command line like this:&lt;br /&gt;&lt;br /&gt;Running all tests in module gdata_test&lt;br /&gt;.....................&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;Ran 21 tests in 0.028s&lt;br /&gt;&lt;br /&gt;OK&lt;br /&gt;&lt;br /&gt;Running all tests in module atom_test&lt;br /&gt;...............................................&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;Ran 47 tests in 0.038s&lt;br /&gt;&lt;br /&gt;OK&lt;br /&gt;&lt;br /&gt;....&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Finally get the Google CL source from http://code.google.com/p/googlecl/&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. Extract the source &lt;br /&gt;tar xvf googlecl-0.9.5.tar.gz&lt;br /&gt;&lt;br /&gt;2. change to googlecl-0.9.5 directory and run &lt;br /&gt;sudo python setup.py install&lt;br /&gt;&lt;br /&gt;Now you are ready to play with Google CL and starting posting blogs, videos to youtube etc right from your Linux command Line,&lt;a href="http://code.google.com/p/googlecl/wiki/ExampleScripts" linkindex="20"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;One first run for every google service you will get ...&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Did not find config / preferences file at /home/myhome/.googlecl/config&lt;br /&gt;... making new one.&lt;br /&gt;Please specify user: myusername&lt;br /&gt;(Hint: You can automatically launch your browser by adding "auth_browser = &lt;browser&gt;" to your config file under the GENERAL section, or define the BROWSER environment variable.)&lt;br /&gt;Please log in and/or grant access via your browser at https://www.google.com/accounts/OAuthAuthorizeToken?oauth_token=4%2FglE62XHHpOLmP6jhGGZumt6Tm2re then hit enter.&lt;/browser&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Specify the username and put the following in the ~/yourhome/.googlecl/config GENERAL section.&lt;br /&gt;&lt;br /&gt;auth_browser = firefox&lt;br /&gt;&lt;br /&gt;And when browser open Auth Token page click "Grant Acces"&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Examples:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. Post a blog&lt;br /&gt;$ google blogger post --tags "GoogleCL, awesome" --title "Test Post" "I'm posting from the command line"&lt;br /&gt;&lt;br /&gt;2. To post a blog from .txt file&lt;br /&gt;&lt;br /&gt;$ google blogger post ~/Desktop/googlecl.txt &lt;br /&gt;&lt;br /&gt;3. To delete a post&lt;br /&gt;google blogger delete --title "Test Post"&lt;br /&gt;Are you SURE you want to delete post "Test Post"? (y/N): y&lt;br /&gt;&lt;br /&gt;For detail examples refer to &lt;a href="http://code.google.com/p/googlecl/wiki/ExampleScripts" linkindex="21"&gt;GooglCL project web&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-497692341092635360?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/497692341092635360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/06/googlecl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/497692341092635360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/497692341092635360'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/06/googlecl.html' title='Installing Google Command-Line Tool for Linux'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-5285317196716622224</id><published>2010-06-11T23:49:00.000-07:00</published><updated>2010-06-11T23:49:38.669-07:00</updated><title type='text'>Installing Nagios-plugins and NRPE on Centos 5.x</title><content type='html'>To monitor remote hosts CPU load, disk partitions, processes etc with Nagios, requires to install NRPE and nagios-plugins on the remote host.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;This is how I do it...&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Nagios-plugins and NRPE is not available from Centos official repositories, so first of all we need to configure &lt;a href="http://rpmforge.net/" linkindex="79"&gt;RPMforge&amp;gt;&lt;/a&gt; repo from where to install the required packages.&lt;br /&gt;&lt;br /&gt;Read &lt;a href="http://askaralikhan.blogspot.com/2010/06/before-using-third-party-repositories.html" linkindex="80"&gt;my previous article&lt;/a&gt; before configuring and installing anything from third party repo.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Installing RPMforge on Centos 5.x&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Download the rpmforge-release package. Choose one of the two links below, selecting to match your host's architecture. If you are unsure of which one to use you can check your architecture with the command uname -i&lt;br /&gt;&lt;br /&gt;x386 &lt;br /&gt;wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm&lt;br /&gt;&lt;br /&gt;x86_64 &lt;br /&gt;wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Install the RPMForget key&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt&lt;br /&gt;&lt;br /&gt;If key didn't install no worries yum will ask when installing a package from rpmforge repo.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Verify the package you have downloaded&lt;/b&gt;&lt;br /&gt;# rpm -K rpmforge-release-0.5.1-1.el5.rf.*.rpm&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Install the package&lt;/b&gt;&lt;br /&gt;# rpm -ivh rpmforge-release-0.5.1-1.el5.rf.*.rpm&lt;br /&gt;&lt;br /&gt;Now everything is setup now you can install nagios-plugins and nrpe packages from RPMforge repo&lt;br /&gt;&lt;br /&gt;# yum install nagios-plugins nagios-nrpe&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Running NRPE under xinetd&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Edit /etc/xinetd.d/nrpe for&lt;br /&gt;&lt;br /&gt;disable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = no&lt;br /&gt;only_from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 127.0.0.1 NagiosServerIP&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Restart xinetd service&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;# /etc/init.d/xinetd restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-5285317196716622224?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/5285317196716622224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/06/installing-nagios-plugins-and-nrpe-on.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5285317196716622224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5285317196716622224'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/06/installing-nagios-plugins-and-nrpe-on.html' title='Installing Nagios-plugins and NRPE on Centos 5.x'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-486184001442709015</id><published>2010-06-11T23:05:00.000-07:00</published><updated>2011-08-12T23:07:08.647-07:00</updated><title type='text'>Before using third party repositories on Centos</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Before configuring and installing anything from third party repo, it is recommended to make sure to use &lt;a href="http://wiki.centos.org/PackageManagement/Yum/Priorities" linkindex="16"&gt;Priorities&lt;/a&gt; by installing yum-priorities package for your version of Centos&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CentOS-4 or CentOS-6:&lt;/strong&gt;&lt;br /&gt;# yum install yum-plugin-priorities&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CentOS-5:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;# &lt;/strong&gt;yum install yum-priorities&lt;br /&gt;&lt;br /&gt;After the plugin is installed, make sure that it is enabled when you decide to use a given archive. You can do this by editing the /etc/yum/pluginconf.d/priorities.conf file, and ensuring that it contains the following lines:&lt;br /&gt;&lt;br /&gt;[main]&lt;br /&gt;enabled=1&lt;br /&gt;check_obsoletes=1&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Set the priorities of Repositories&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;With the plugin enabled, you may add priorities to repositories by adding the line: &lt;br /&gt;&lt;br /&gt;priority=N&lt;br /&gt;&lt;br /&gt;where N is an integer from 1 to 99. The default priority for repositories is 99. The repositories with the lowest numerical priority number have the highest priority. Usually, it is best to give at least the CentOS base and update repositories a very high priority.&lt;br /&gt;&lt;br /&gt;Give CentOS base,update,addons,extras repositories the highest possible priority (1):&lt;br /&gt;&lt;br /&gt;vi /etc/yum.repos.d/CentOS-Base.repo&lt;br /&gt;priority=1&lt;br /&gt;&lt;br /&gt;And give centosplus, and contrib priority 2&lt;br /&gt;priority=2&lt;br /&gt;&lt;br /&gt;Give low priority = 10 to all the third party repositories by setting repos files in /etc/yum.conf.d directory&lt;br /&gt;&lt;br /&gt;For detail refer to the &lt;a href="http://wiki.centos.org/PackageManagement/Yum/Priorities" linkindex="17"&gt;Centos wiki&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-486184001442709015?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/486184001442709015/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/06/before-using-third-party-repositories.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/486184001442709015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/486184001442709015'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/06/before-using-third-party-repositories.html' title='Before using third party repositories on Centos'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-2957594764843338612</id><published>2010-06-10T10:38:00.000-07:00</published><updated>2010-06-10T10:39:19.788-07:00</updated><title type='text'>Upgrading to Fedora 13 with Preupgrade</title><content type='html'>Preupgrade is an application users run on a existing release, that resolves and downloads packages required to upgrade to a newer release of Fedora. While Preupgrade downloads the necessary packages, users are free to continue using their systems. This gives an experience similar to a live upgrade. For additional information&lt;br /&gt;&lt;br /&gt;While preupgrade provides a generally hassle free upgrade experience. The following steps are recommended before proceeding.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 1. Backup - Before performing any system maintenance, it is recommended that you back up all important data before proceeding.&lt;br /&gt;&amp;nbsp;&amp;nbsp; 2. Update - Apply available updates Fedora updates before proceeding. As the root user, issue the following command. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;# yum update &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. If preupgrade package not already install then install it.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;# yum install preupgrade&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Perform the upgrade&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. As the root user, run the command preupgrade to start the Preupgrade application. If you prefer a command line application, the command preupgrade-cli is available. &lt;br /&gt;&lt;br /&gt;2. On the Choose desired release screen, select the Fedora release (in my case my home laptop running Fedora 12, I have only one option ie Fedora 13) you want to upgrade to , and click the Apply button.&lt;br /&gt;&lt;br /&gt;# preupgrade -cli&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Checking for new repos for mirrors&lt;br /&gt;&amp;nbsp;* preupgrade-updates: mirror.yandex.ru&lt;br /&gt;Downloading 947.6MB&lt;br /&gt;Available disk space for /var/cache/yum/preupgrade: 2.8GB&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;relax and do your work while packages being downloaded which will take quit sometime, depending on your Internet connection.&lt;br /&gt;&lt;br /&gt;3. When all of the packages have downloaded, reboot your system to start the Fedora installer and upgrade to the next release. &lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_w4ikZC0SkmQ/TBEh6FxvtNI/AAAAAAAACLw/JFKv3_fwldE/s1600/Photo0204.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_w4ikZC0SkmQ/TBEh6FxvtNI/AAAAAAAACLw/JFKv3_fwldE/s320/Photo0204.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_w4ikZC0SkmQ/TBEiM0B3LrI/AAAAAAAACL4/q-riE2QYVgY/s1600/Photo0206.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_w4ikZC0SkmQ/TBEiM0B3LrI/AAAAAAAACL4/q-riE2QYVgY/s320/Photo0206.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;Common post-upgrade tasks.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Refer to the &lt;a hre="http://fedoraproject.org/wiki/PreUpgrade#Common_post-upgrade_tasks" href="http://www.blogger.com/post-create.g?blogID=5356450989645359839"&gt;Fedora wiki&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Troubleshooting&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Not enough space in /boot&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Fedora 13 and above has a 500 MB default boot partition. The default /boot filesystem size of 200MB for previous releases can be a problem for users upgrading from that release.&lt;br /&gt;&lt;br /&gt;Follow the instructions on &lt;a href="http://fedoraproject.org/wiki/PreUpgrade#Not_enough_space_in.2Fboot"&gt;Fedora wiki&lt;/a&gt; to handle the space problem on /boot partition.&lt;br /&gt;&lt;br /&gt;Note: If preupgrade give you message "Not enough space in /boot/upgrade to download install.img." but it can download it after reboot if you have a wired connection to the network, you can click continue for that.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;VLC not working after upgrade to Fedora 13.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Fix: If you are getting the invalid pointer error, try running VLC the first time with:&lt;br /&gt;&lt;br /&gt;MALLOC_CHECK_=1 vlc&lt;br /&gt;&lt;br /&gt;After setting my preferences and quitting, I was then able to run it normally on F13 without issue.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-2957594764843338612?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/2957594764843338612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/06/upgrading-to-f13-with-preupgrade.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2957594764843338612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2957594764843338612'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/06/upgrading-to-f13-with-preupgrade.html' title='Upgrading to Fedora 13 with Preupgrade'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_w4ikZC0SkmQ/TBEh6FxvtNI/AAAAAAAACLw/JFKv3_fwldE/s72-c/Photo0204.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-5643238406841391432</id><published>2010-06-10T04:31:00.000-07:00</published><updated>2010-06-10T04:31:09.912-07:00</updated><title type='text'>VirtualBox: Networking between Linux Host and Windows XP Guest</title><content type='html'>In this article we will learn how to configure networking between Linux host OS and Windows Guest (VM) using Virtualbox&lt;br /&gt;&lt;br /&gt;1. First of all download and install Virtualbox on your Linux host and install the guest operating system&lt;br /&gt;&lt;br /&gt;2. Now configure network on Guest OS, open VM settings and click Network&lt;br /&gt;&lt;br /&gt;3. Select Host-Only Adapter from "Attached to" combo&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_w4ikZC0SkmQ/TBDMR9-1YjI/AAAAAAAACLg/UONdwtOIGZU/s1600/XP_guestOS.png" imageanchor="1" linkindex="79" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_w4ikZC0SkmQ/TBDMR9-1YjI/AAAAAAAACLg/UONdwtOIGZU/s320/XP_guestOS.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The VM will create the default network interface named by "vboxnet0" on the host OS,&lt;br /&gt;&lt;br /&gt;#ifconfig &lt;br /&gt;vboxnet0&amp;nbsp; Link encap:Ethernet&amp;nbsp; HWaddr 0A:00:27:00:00:00&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inet addr:192.168.56.1&amp;nbsp; Bcast:192.168.56.255&amp;nbsp; Mask:255.255.255.0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UP BROADCAST RUNNING MULTICAST&amp;nbsp; MTU:1500&amp;nbsp; Metric:1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RX packets:0 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TX packets:3599 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; collisions:0 txqueuelen:1000 &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RX bytes:0 (0.0 b)&amp;nbsp; TX bytes:3896747 (3.7 MiB)&lt;br /&gt;&lt;br /&gt;VirtualBox automatically assigned IP address 192.168.56.1 on the host to that network interface.&lt;br /&gt;&lt;br /&gt;4. Launch the XP guest OS from virtualbox and configured the network upon VM successfully boot&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_w4ikZC0SkmQ/TBDMsAl49UI/AAAAAAAACLo/_GL3UZ7-DRE/s1600/xp_network.JPG" imageanchor="1" linkindex="80" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_w4ikZC0SkmQ/TBDMsAl49UI/AAAAAAAACLo/_GL3UZ7-DRE/s320/xp_network.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;5. Make sure both Host and guest can responding to each other 'ping'&lt;br /&gt;ping 192.168.56.10&lt;br /&gt;PING 192.168.56.10 (192.168.56.10) 56(84) bytes of data.&lt;br /&gt;64 bytes from 192.168.56.10: icmp_seq=1 ttl=128 time=1.83 ms&lt;br /&gt;64 bytes from 192.168.56.10: icmp_seq=2 ttl=128 time=0.512 ms&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enabling Internet for VM&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;Above steps was fine as far as networking between Host and VM is concerned, however if you want to let VM also access the Internet then you have to configure the following iptables rules and enable ipfowarding on Host OS.&lt;br /&gt;&lt;br /&gt;# insert NAT rule&lt;br /&gt;iptables -t nat -A POSTROUTING -o vboxnet0 -j MASQUERADE&lt;br /&gt;iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE&lt;br /&gt;&lt;br /&gt;# enable forwarding&lt;br /&gt;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-5643238406841391432?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/5643238406841391432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/06/virtualbox-networking-between-linux.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5643238406841391432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5643238406841391432'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/06/virtualbox-networking-between-linux.html' title='VirtualBox: Networking between Linux Host and Windows XP Guest'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_w4ikZC0SkmQ/TBDMR9-1YjI/AAAAAAAACLg/UONdwtOIGZU/s72-c/XP_guestOS.png' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-2723166033462774885</id><published>2010-06-05T03:50:00.000-07:00</published><updated>2010-06-05T03:50:25.143-07:00</updated><title type='text'>CountDown to 2010 FIFA World Cup South Africa</title><content type='html'>I wonders who will miss this amazing event :), I wish I could watch all the matches of this great event.&lt;br /&gt;&lt;br /&gt;Italy will be defending its title which they&amp;nbsp; won&amp;nbsp; in the 2006 FWC in Germany against France.&lt;br /&gt;&lt;br /&gt;Like all previous Football world cup Brazil will again my favourite team, Brazil is the only team which have qualified for all known FWC and also holding a record of wining FWC 5 times.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-2723166033462774885?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/2723166033462774885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/06/countdown-to-2010-fifa-world-cup-south.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2723166033462774885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2723166033462774885'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/06/countdown-to-2010-fifa-world-cup-south.html' title='CountDown to 2010 FIFA World Cup South Africa'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-629199775472163758</id><published>2010-05-26T04:04:00.000-07:00</published><updated>2010-05-26T04:04:37.448-07:00</updated><title type='text'>Face-Off with Facebook By Irfan Husain (The Dawn)</title><content type='html'>Recently Pakistan Government went on blocking Facebook (social networking) the site carrying the blasphemous drawings of the Holy Prophet [PBUH].&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dawn.com/wps/wcm/connect/dawn-content-library/dawn/the-newspaper/columnists/irfan-husain-faceoff-with-facebook-650" linkindex="18"&gt;Read the full article here.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-629199775472163758?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/629199775472163758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/05/face-off-with-facebook-by-irfan-husain.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/629199775472163758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/629199775472163758'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/05/face-off-with-facebook-by-irfan-husain.html' title='Face-Off with Facebook By Irfan Husain (The Dawn)'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-2363909690814376553</id><published>2010-05-26T03:48:00.000-07:00</published><updated>2010-05-26T03:48:55.456-07:00</updated><title type='text'>Fedora 13 Is Out</title><content type='html'>Thanks to Fedora folks for releasing yet another release of one of the best Linux distro.&lt;br /&gt;&lt;br /&gt;Fedora 13 includes some major features like automatic print driver installation, automatic language pack installation, redesigned user account tool, color management to calibrate monitors and scanners, experimental 3D support for NVIDIA video cards, and more in the &lt;a href="http://fedoraproject.org/index.html.en" linkindex="95"&gt;release notes&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Currently I have Fedora 12 installed which will be supported for quit sometime (almost six months) so there is no need to rush for new release yet.&lt;br /&gt;&lt;br /&gt;Whenever I need to upgrade I'll decide to use one of the following tool/option for upgrading my home and work laptops.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fedoraproject.org/wiki/PreUpgrade" linkindex="96"&gt;Preupgrade&lt;/a&gt;&lt;br /&gt;Using boot images available from &lt;a href="http://boot.fedoraproject.org/" linkindex="97"&gt;http://boot.fedoraproject.org/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Though last time upgrading from Fedora 11 'preupgrade' work like a charm for me, so there is a chance that this time I'll also go with preupgrade.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-2363909690814376553?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/2363909690814376553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/05/fedora-13-is-out.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2363909690814376553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2363909690814376553'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/05/fedora-13-is-out.html' title='Fedora 13 Is Out'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-7143892101472735782</id><published>2010-03-19T03:09:00.000-07:00</published><updated>2010-03-19T03:11:00.255-07:00</updated><title type='text'>Vnstat a console based network traffic monitor</title><content type='html'>&lt;a href="http://humdi.net/vnstat/" linkindex="15"&gt;vnStat&lt;/a&gt; is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s). It uses the network interface statistics provided by the kernel as information source. This means that vnStat won't actually be sniffing any traffic and also ensures light use of system resources. &lt;br /&gt;&lt;br /&gt;The beautiy of Vnstat is that its very simple to install and configure&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Installing vnstat on Fedora&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Thanks to Fedora folks vnstat can now be installed from Fedora repository using 'yum', please refer to your distro package management commands for installing vnstat on other distros.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;yum install vnstat&lt;/i&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;Monitoring Interface traffic&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The commmand forces a database update for interface or creates the database if it doesn’t exist. This is usually the&amp;nbsp; first&amp;nbsp; command used after a fresh install.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;vnstat&amp;nbsp; -u&amp;nbsp; -i Interface&lt;interface&gt;&lt;/interface&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Replace &lt;interface&gt; with the Interface name eg, eth0, wlan0 etc &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Displaying statistics:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;After installation and creating a interface database vnstat can be used from command line to display network traffic statistics&lt;br /&gt;&lt;br /&gt;$ vnstat --help&lt;br /&gt;&lt;br /&gt;vnStat 1.6 by Teemu Toivola &lt;tst at="" dot="" fi="" iki=""&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -q,&amp;nbsp; --query&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query database&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -h,&amp;nbsp; --hours&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; show hours&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -d,&amp;nbsp; --days&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; show days&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -m,&amp;nbsp; --months&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; show months&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -w,&amp;nbsp; --weeks&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; show weeks&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -t,&amp;nbsp; --top10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; show top10&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -s,&amp;nbsp; --short&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; use short output&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -u,&amp;nbsp; --update&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; update database&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -i,&amp;nbsp; --iface&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select interface (default: eth0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -?,&amp;nbsp; --help&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; short help&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -v,&amp;nbsp; --version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; show version&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -tr, --traffic&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; calculate traffic&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -l,&amp;nbsp; --live&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; show transfer rate in real time&lt;br /&gt;&lt;/tst&gt;&lt;/interface&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-7143892101472735782?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/7143892101472735782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/03/vnstat-console-based-network-traffic.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7143892101472735782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7143892101472735782'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/03/vnstat-console-based-network-traffic.html' title='Vnstat a console based network traffic monitor'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-3675130857127029047</id><published>2010-03-02T03:09:00.000-08:00</published><updated>2010-03-02T03:29:44.730-08:00</updated><title type='text'>Sending SMS Notifications From Nagios</title><content type='html'>In my last article I have discuses how to &lt;a href="http://askaralikhan.blogspot.com/2009/10/installing-configuring-gnokii-on-linux.html" linkindex="15"&gt;install Gnokii for sending/receiving&lt;/a&gt; SMS from your computer. Today I'll explain how we are using Gnokii + Nagios for sending SMS notifications to our cell phones. Its a great way to get notify of the problems while on road.&lt;br /&gt;&lt;br /&gt;I assume that you have working Nagios and its monitoring the devices in your infrastructure and sending notifications via Email and you are looking how to get these problem notifications on your phones.&lt;br /&gt;&lt;br /&gt;Gnokii is also working and you can send SMS from CLI.&lt;br /&gt;&lt;br /&gt;Lets cut it short and back to actual business.&lt;br /&gt;&lt;br /&gt;In my setup we have Nagios and Gnokii install on same host running Centos 5.4, but it can easily be followed for any other Linux distro or even with setup where Gnokii is install on separate host.&lt;br /&gt;&lt;br /&gt;1. Make sure you can send SMS from CLI with "gnokii --sendsms +92xxxxx" using root or the user under which Nagios process is running normally its 'nagios' user, sending under nagios user requires to add nagios to groups which have permission to access the device files.&lt;br /&gt;&lt;br /&gt;a) So add nagios to 'uucp' group (you can do this with usermod command)&lt;br /&gt;&lt;br /&gt;Gnokii also acquire a lock under /var/lock&lt;br /&gt;&lt;br /&gt;b) So add nagios user to 'lock' group also.&lt;br /&gt;&lt;br /&gt;su to nagios user and send sms from CLI using gnokii --sendsms, when it works move forward for defining commands.&lt;br /&gt;&lt;br /&gt;2. Define command for send notification via SMS in commands.cfg&lt;br /&gt;&lt;br /&gt;# 'notify-service-by-sms' command definition&lt;br /&gt;define command{&lt;br /&gt;command_name notify-service-by-sms&lt;br /&gt;command_line /usr/bin/printf "%.120s" "*** Nagios Alert*** $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" | /usr/local/bin/gnokii --sendsms $CONTACTPAGER$&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;# 'notify-host-by-sms' command definition&lt;br /&gt;define command{&lt;br /&gt;command_name notify-host-by-sms&lt;br /&gt;command_line /usr/bin/printf "%.120s" "*** Nagios Alert*** $NOTIFICATIONTYPE$ : Host $HOSTALIAS$ is $HOSTSTATE$" | /usr/local/bin/gnokii --sendsms $CONTACTPAGER$&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;3. Modify contacts.cfg and add or modify a contact by calling new commands&lt;br /&gt;&lt;br /&gt;define contact{&lt;br /&gt;contact_name askarali&lt;br /&gt;use generic-contact&lt;br /&gt;alias Askar Ali Khan&lt;br /&gt;email emailaddress&lt;br /&gt;pager +92xxxxxx&lt;br /&gt;service_notification_commands notify-service-by-email,notify-service-by-sms&lt;br /&gt;host_notification_commands notify-host-by-email,notify-host-by-sms&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The key in the contact detail is the service/host notifications commands&lt;br /&gt;&lt;br /&gt;service_notification_commands notify-service-by-email,notify-service-by-sms&lt;br /&gt;host_notification_commands notify-host-by-email,notify-host-by-sms&lt;br /&gt;&lt;br /&gt;I have configured a contact so that he can receive notifications via Email 'notify-service-by-email' as well as via SMS 'notify-service-by-sms'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;That's all, finally reload nagios, before reload better to run syntax check&lt;br /&gt;&lt;br /&gt;'nagios -v PathTo nagios.cfg'&lt;br /&gt;&lt;br /&gt;and then reload&lt;br /&gt;&lt;br /&gt;/etc/init.d/nagios reload&lt;br /&gt;&lt;br /&gt;Now Nagios will send SMS notifications on your phone whenever there is problem with any host/service which being monitor with Nagios.&lt;br /&gt;&lt;br /&gt;I hope this could help.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-3675130857127029047?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/3675130857127029047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/03/sending-sms-notification-from-nagios.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3675130857127029047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3675130857127029047'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/03/sending-sms-notification-from-nagios.html' title='Sending SMS Notifications From Nagios'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-4241048531820802481</id><published>2010-03-02T02:08:00.000-08:00</published><updated>2010-03-02T02:20:53.829-08:00</updated><title type='text'>Bash Scripting - Adding pipe "|" to each line of text file</title><content type='html'>Here is a simple script which will add a pipe symbol '|' to the start and end of every line in a text file.&lt;br /&gt;&lt;br /&gt;Well do not ask why I need to do this, it was needed for some nasty text files which we have to deal with in our day to day works.&lt;br /&gt;&lt;br /&gt;Someone will argue why the hell we need a script for this simple task when we can do the same with 'vi', well I must say chill mate...yes there are more then one way to do the work done, and using the script way you don't have to open a file or what if you have to work with more then one txt file? its easy to run a script "add_pipe" and sit back instead of vi file1;vi file2. :)&lt;br /&gt;&lt;br /&gt;Script can be easily modified to accept the "SOURCEDIR" from command line or adding any other symbol, currently I put all such text files in /tmp/manual before running the script.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The Script:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;# Purpose: To add pipe '|' to begin and end of line in a txt file.&lt;br /&gt;# Date: 2010-02-25&lt;br /&gt;# add_pipes&lt;br /&gt;&lt;br /&gt;# Directory to where files need to process for adding pipe&lt;br /&gt;SOURCEDIR="/tmp/manual"&lt;br /&gt;&lt;br /&gt;# Change to source directory&lt;br /&gt;if [ -d "$SOURCEDIR" ];then&lt;br /&gt;&amp;nbsp;cd "$SOURCEDIR"&lt;br /&gt;else&lt;br /&gt;&amp;nbsp;exit 1&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# First convert the files to Unix (if imported from M$ files carries the carrige return&lt;br /&gt;CR='\015'&amp;nbsp; # Carriage return.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # 015 is octal ASCII code for CR.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Lines in a DOS text file end in CR-LF.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Lines in a UNIX text file end in LF only.&lt;br /&gt;&lt;br /&gt;for file in $(ls)&lt;br /&gt;do&lt;br /&gt;&amp;nbsp;if [ ! -d "$file" ];then&lt;br /&gt;&amp;nbsp; tr -d $CR &amp;lt; $file &amp;gt;newname&lt;br /&gt;&amp;nbsp; mv newname $file&lt;br /&gt;&amp;nbsp;fi&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;# Finally add pipe by loop through files&lt;br /&gt;for file in $(ls)&lt;br /&gt;do&lt;br /&gt;&amp;nbsp;if [ ! -d "$file" ];then&lt;br /&gt;&amp;nbsp; #sed -e 's/^/|/g' -e 's/\r$/|/g' &amp;lt; $file &amp;gt;newname&lt;br /&gt;&amp;nbsp; sed -e 's/^/|/g' -e 's/$/|/g' &amp;lt; $file &amp;gt;newname&lt;br /&gt;&amp;nbsp; mv newname $file&lt;br /&gt;&amp;nbsp;fi&lt;br /&gt;done&lt;br /&gt;# End&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-4241048531820802481?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/4241048531820802481/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/03/bash-scripting-adding-pipe-to-each-line.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4241048531820802481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4241048531820802481'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/03/bash-scripting-adding-pipe-to-each-line.html' title='Bash Scripting - Adding pipe &quot;|&quot; to each line of text file'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-5034036451025137609</id><published>2010-02-19T01:06:00.000-08:00</published><updated>2010-02-19T01:06:05.026-08:00</updated><title type='text'>Installing and configuring caching nameserver (named) on Linux (Fedora 12)</title><content type='html'>To configure caching-nameserver on local machine in my case on my laptop running Fedora 12, local caching nameserver which will use "cascade" to other functional DNS server in this case my ISP DNS servers. &lt;br /&gt;&lt;br /&gt;Advantage: Reduces the delay in domain name resolution drastically as the requests for frequently accessed websites are served from cache. Google for cache nameserver to learn more.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Installing caching-nameserver: &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;# yum install caching-nameserver&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Configuring caching-nameserver:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The main configuration file reside in /etc/named.conf&lt;br /&gt;&lt;br /&gt;Not much need to be changed in this file, however if you want to cascade your ISP DNS servers as forwarder, then edit the named.conf and add forwarder directive under the 'options' section.&lt;br /&gt;&lt;br /&gt;options {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; listen-on port 53 { 127.0.0.1; };&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; listen-on-v6 port 53 { ::1; };&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; directory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "/var/named";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dump-file&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "/var/named/data/cache_dump.db";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statistics-file "/var/named/data/named_stats.txt";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memstatistics-file "/var/named/data/named_mem_stats.txt";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow-query&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { localhost; };&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; recursion yes;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Replace the IPs with the DNS of your ISP&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; forwarders { 192.168.36.204; 192.168.36.210; };&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dnssec-enable yes;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dnssec-validation yes;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dnssec-lookaside . trust-anchor dlv.isc.org.;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;And if you do not want to use 'dnssec' then disable it by...&lt;br /&gt;&lt;br /&gt;dnssec-enable no;&lt;br /&gt;dnssec-validation no;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Starting caching-nameserver:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;# service named start &lt;br /&gt;&lt;br /&gt;Or &lt;br /&gt;&lt;br /&gt;# /etc/init.d/named start&lt;br /&gt;&lt;br /&gt;&lt;b&gt;To make named start every time you reboot your machine&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;# chkconfig named on&lt;br /&gt;&lt;br /&gt;Or&lt;br /&gt;&lt;br /&gt;# setup&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Go to "System services" and check named&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Using caching-nameserver:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To use your caching-nameserver, add the following line to /etc/resolv.conf&lt;br /&gt;&lt;br /&gt;nameserver 127.0.0.1&lt;br /&gt;&lt;br /&gt;Now your system will use your own nameserver (in caching mode) for resolving all domain names&lt;br /&gt;&lt;br /&gt;$ dig askarali.org&lt;br /&gt;Query time: 8 msec&lt;br /&gt;&lt;br /&gt;First time the response time will be little high, next time the DNS query response will be served from local cache and will takes very little time&lt;br /&gt;&lt;br /&gt;$ dig askarali.org&lt;br /&gt;$ Query time: 0 msec&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-5034036451025137609?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/5034036451025137609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/02/installing-and-configuring-caching.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5034036451025137609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5034036451025137609'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/02/installing-and-configuring-caching.html' title='Installing and configuring caching nameserver (named) on Linux (Fedora 12)'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-6672779629009989062</id><published>2010-02-12T21:52:00.000-08:00</published><updated>2010-12-16T08:11:53.670-08:00</updated><title type='text'>Sending SNMP Traps from Nagios</title><content type='html'>As well as receiving SNMP traps in Nagios, you can send SNMP traps from Nagios to a remote SNMP management station like HP OpenView (NNM) or the like. The easiest way to do this is to create a notification command that generates an SNMP trap. This way, you can use an SNMP management station as a notification destination. This will mean that the trap will be sent every time a notification is scheduled.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Prerequisites:&lt;br /&gt;&lt;br /&gt;net-snmp, net-snmp-utils should be installed on Monitoring host running Nagios&lt;br /&gt;&lt;br /&gt;Connectivity between management station and nagios has been stablished and nagios can connect and send snmptraps to snmptrap 162/udp port on management station.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. First of all define notification command, below is the commands for service and hosts in commands.cfg&lt;br /&gt;&lt;br /&gt;# 'send-service-trap' command definition&lt;br /&gt;define command{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; command_name send-service-trap&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; command_line /usr/local/bin/send-service-trap manager public "$HOSTNAME$" "$SERVICEDESC$" $SERVICESTATEID$ "$SERVICEOUTPUT$"&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;# 'send-host-trap' command definition&lt;br /&gt;define command{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; command_name send-host-trap&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; command_line /usr/local/bin/send-host-trap manager public "$HOSTNAME$" $HOSTSTATEID$ "$HOSTOUTPUT$"&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Both the commands call the shell scripts send-service-trap and send-host-trap in /usr/local/bin/. Passing the hostname or IP address of the destination management station and the target community string, manager and public, respectively.&lt;br /&gt;&lt;br /&gt;A number of macros are also passed to the shell script representing the hostname, the service description, the service/host state in numeric form, and the output of the host/service check.&lt;br /&gt;&lt;br /&gt;The snmptrap tool generates SNMP traps and can send them to remote management stations. The traps are generated according to a Nagios&lt;br /&gt;MIB available from the same Sourceforge project as the Nagios plug-ins. You can download the MIB from http://prdownloads.sourceforge.net/nagiosplug/nagiosmib-1.0.0.tar.gz?download.&lt;br /&gt;&lt;br /&gt;The package contains two MIB files: a root MIB file containing basic definitions for Nagios OIDs called NAGIOS-ROOT-MIB and an MIB containing events and traps called NAGIOS-NOTIFY-MIB. You will need to install both MIB files into your SNMP management device; for example, if your trap daemon is the snmptrapd daemon, you would generally copy these files to the /usr/share/snmp/mibs directory. When you start the snmptrapd daemon, you load the MIB files using the -m&lt;br /&gt;and -M options:&lt;br /&gt;&lt;br /&gt;Also copy the MIBs files on localhost where Nagios is running under snmp/mibs&lt;br /&gt;&lt;br /&gt;/usr/sbin/snmptrapd -m ALL -M /usr/share/snmp/mibs -Lf /var/log/snmptrapd.log&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Tip:&lt;/b&gt;&amp;nbsp; There is an excellent HOWTO on how to use snmptrap to send traps &lt;a href="http://net-snmp.sourceforge.net/tutorial/tutorial-5/commands/snmptrap.html" linkindex="27"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Note: Your own SNMP management station, such as HP OpenView or the like, will have its own method of loading MIB files. You should refer to its documentation for that.&lt;br /&gt;&lt;br /&gt;2. Define a contact for Management station&lt;br /&gt;&lt;br /&gt;Need to define a contact for management station in the same way we create for other contact person, to receive SNMP traps from Nagios whereever Nagios send notificaiton for host/service&lt;br /&gt;&lt;br /&gt;define contact{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; contact_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; managementstation&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; use&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; generic-contact&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alias&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Management Station&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; service_notification_options&amp;nbsp;&amp;nbsp;&amp;nbsp; w,u,c,r&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; host_notification_options&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d,u,r&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; service_notification_commands&amp;nbsp;&amp;nbsp; send-service-trap&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; host_notification_commands&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; send-host-trap&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. Add the new conatct to contactgroup for hosts/services for which you want to send SNMP traps&lt;br /&gt;&lt;br /&gt;define contactgroup{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; contactgroup_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; linuxadmins&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alias&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Linux Servers Administrators&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; members&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; me, managementstation&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Now whenever there is a alert for linux servers Nagios will notify contact "managementstation" which in turn call the commands send-service-trap/send-host-trap accordingly depends on host or service alert.&lt;br /&gt;&lt;br /&gt;4. send-service-trap/send-host-trap Shell Script&lt;br /&gt;&lt;br /&gt;===/usr/local/bin/send-service-trap ====&lt;br /&gt;# Arguments:&lt;br /&gt;# $1 = Management Station&lt;br /&gt;# $2 = Community String&lt;br /&gt;# $3 = host_name&lt;br /&gt;# $4 = service_description (Description of the service)&lt;br /&gt;# $5 = return_code (An integer that determines the state&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; of the service check, 0=OK, 1=WARNING, 2=CRITICAL,&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3=UNKNOWN).&lt;br /&gt;# $6 = plugin_output (A text string that should be used&lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as the plugin output for the service check)&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;/usr/bin/snmptrap -v 2c -c $2 $1 '' NAGIOS-NOTIFY-MIB::nSvcEvent nSvcHostname s "$3" nSvcDesc s "$4" nSvcStateID i $5 nSvcOutput s "$6"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;===/usr/local/bin/send-host-trap=======&lt;br /&gt;# Arguments:&lt;br /&gt;# $1 = Management Station&lt;br /&gt;# $2 = Community String&lt;br /&gt;# $3 = host_name&lt;br /&gt;# $4 = HostStatID A number that corresponds to the current state of the host: 0=UP, 1=DOWN, 2=UNREACHABLE.&lt;br /&gt;# $5 = HOSTOUTPUT The first line of text output from the last host check (i.e. "Ping OK").&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;/usr/bin/snmptrap -v 2c -c $2 $1 '' NAGIOS-NOTIFY-MIB::nHostEvent nHostname s "$3" nHostStateID i $4 nHostOutput s "$5"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The shell script receives all the incoming variables and passes them to the snmptrap command&lt;br /&gt;&lt;br /&gt;-v = snmp version&lt;br /&gt;-c = community string&lt;br /&gt;$1 = Management Station IP address or hostname&lt;br /&gt;&lt;br /&gt;The next two single quotes are special characters representing the uptime portion of a trap. They will be replaced with the current uptime of the system generating the trap when the snmptrap command is executed.&lt;br /&gt;&lt;br /&gt;The enterprise OID is specified next; in this case it is NAGIOS-NOTIFY-MIB::nSvcEvent and NAGIOS-NOTIFY-MIB::nHostEvent. The NAGIOS-NOTIFY-MIB is the name of the MIB module being referenced, and the nSvcEvent/nHostEvent is the trap defined for sending service events. Together these form the enterprise OID.&lt;br /&gt;&lt;br /&gt;Next specified a list of individual OIDs and their variables that I’m passing as part of the trap. They are, in order, the hostname, the service description, the host/service status ID in numerical form, and the output of the host/service check.&lt;br /&gt;&lt;br /&gt;Enclosing the values ones that might contain multiword data in quotation marks so that they are passed cleanly to the command.&lt;br /&gt;&lt;br /&gt;Tip:&amp;nbsp; You can find these and other OIDs that you can use with the traps and notifications defined in the NAGIOS-ROOT-MIB and NAGIOS-NOTIFY-MIB MIB files.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-6672779629009989062?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/6672779629009989062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/02/sending-snmp-traps-from-nagios.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/6672779629009989062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/6672779629009989062'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/02/sending-snmp-traps-from-nagios.html' title='Sending SNMP Traps from Nagios'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-2970788613470542743</id><published>2010-01-15T01:05:00.000-08:00</published><updated>2010-05-25T23:14:12.521-07:00</updated><title type='text'>Creating Custom Template in pnp4nagios</title><content type='html'>Some time need to create custom template in pnp4nagios for some command which behave differently when execute on remote host as the appearance of graphs depends on the check command used.  eg check_nrpe&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;define command {&lt;br /&gt;command_name check_nrpe&lt;br /&gt;command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;This would lead to a call of the check_nrpe.php template even when the monitored host would use a completely different plugin which is called via NRPE, eg &lt;br /&gt;&lt;br /&gt;In service definition &lt;br /&gt;&lt;br /&gt;define service{&lt;br /&gt;use                             local-service,srv-pnp&lt;br /&gt;host_name                       SomeHost&lt;br /&gt;service_description             Current Load&lt;br /&gt;check_command                   check_nrpe!check_load&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;This will lead to call to check_nrpe command and it will use the default.php PNP template which may or may not give the graph as required.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Solution: Custom Template&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. Define new command in nagios/commands.cfg&lt;br /&gt;&lt;br /&gt;define command{&lt;br /&gt;command_name    check_nrpe_load&lt;br /&gt;command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;2. Modify the service command for the host to use the new command&lt;br /&gt;&lt;br /&gt;define service{&lt;br /&gt;use                             local-service,srv-pnp&lt;br /&gt;host_name                       SomeHost&lt;br /&gt;service_description             Current Load&lt;br /&gt;check_command                   check_nrpe_load!check_load&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Reload Nagios so that it start using the new check command.&lt;br /&gt;&lt;br /&gt;At this point everything will be working just as before,&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Pnp4nagios configuration&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. Define a check command  /usr/local/pnp4nagios/etc/check_commands/check_nrpe_load.cfg (with the same name as the check command in above example)&lt;br /&gt;&lt;br /&gt;Tip: Just copy the sample command definition /usr/local/pnp4nagios/etc/check_commands/check_nwstat.cfg-sample eg&lt;br /&gt;&lt;br /&gt;cd /usr/local/pnp4nagios/etc/check_commands&lt;br /&gt;sudo cp check_nwstat.cfg-sample check_nrpe_load.cfg&lt;br /&gt;&lt;br /&gt;For more detail on custom command refer to http://docs.pnp4nagios.org/pnp-0.6/tpl_custom&lt;br /&gt;&lt;br /&gt;2. Define a customer template for check_nrpe_load&lt;br /&gt;&lt;br /&gt;In the above example if check_nrpe_load.cfg have &lt;br /&gt;&lt;br /&gt;CUSTOM_TEMPLATE = 0,1  the it will results in → "check_nrpe_load_check_load.php"&lt;br /&gt;&lt;br /&gt;Create a custom template in /usr/local/pnp4nagios/share/templates (pnp4nagios first look for template in this direcotry then fallback to other directories http://docs.pnp4nagios.org/pnp-0.6/tpl)&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Note: Or you can just create a symbolic link to existing template that come with pnp4nagios installation eg ...&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;ln -s ../templates.dist/check_load.php check_nrpe_load_check_load.php&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Here is the sample template for check_load on remote hosts that will plot graph of 1M and 15 minute graph for a host, &lt;br /&gt;&lt;br /&gt;cd /usr/local/pnp4nagios/share/templates&lt;br /&gt;&lt;br /&gt;sudo vi check_nrpe_load_check_load.php (template name should match with the custom command definition in our example check_nrpe_load_check_load.php)&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;$opt[1] = "--vertical-label Load -l0&amp;nbsp; -u 1 --title \"CPU Load for $hostname / $servicedesc\" ";&lt;br /&gt;&lt;br /&gt;$def[1] =&amp;nbsp; "DEF:var1=$rrdfile:$DS[1]:AVERAGE " ;&lt;br /&gt;$def[1] .= "DEF:var2=$rrdfile:$DS[2]:AVERAGE " ;&lt;br /&gt;$def[1] .= "DEF:var3=$rrdfile:$DS[3]:AVERAGE " ;&lt;br /&gt;if ($WARN[1] != "") {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $def[1] .= "HRULE:$WARN[1]#FFFF00 ";&lt;br /&gt;}&lt;br /&gt;if ($CRIT[1] != "") {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $def[1] .= "HRULE:$CRIT[1]#FF0000 ";&lt;br /&gt;}&lt;br /&gt;$def[1] .= "AREA:var1#EACC00:\"Load average&amp;nbsp; 1 min \" " ;&lt;br /&gt;$def[1] .= "GPRINT:var1:LAST:\"%6.2lf last\" " ;&lt;br /&gt;$def[1] .= "GPRINT:var1:AVERAGE:\"%6.2lf avg\" " ;&lt;br /&gt;$def[1] .= "GPRINT:var1:MAX:\"%6.2lf max\\n\" ";&lt;br /&gt;$def[1] .= "LINE:var3#FF0000:\"Load average 15 min \" " ;&lt;br /&gt;$def[1] .= "GPRINT:var3:LAST:\"%6.2lf last\" " ;&lt;br /&gt;$def[1] .= "GPRINT:var3:AVERAGE:\"%6.2lf avg\" " ;&lt;br /&gt;$def[1] .= "GPRINT:var3:MAX:\"%6.2lf max\\n\" " ;&lt;br /&gt;?&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-2970788613470542743?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/2970788613470542743/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/01/creating-custom-template-in-pnp4nagios.html#comment-form' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2970788613470542743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2970788613470542743'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/01/creating-custom-template-in-pnp4nagios.html' title='Creating Custom Template in pnp4nagios'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-1231393812004666879</id><published>2010-01-10T21:04:00.000-08:00</published><updated>2010-01-10T21:18:59.707-08:00</updated><title type='text'>Nagios addon - pnp4nagios</title><content type='html'>&lt;a href="http://pnp4nagios.org/" linkindex="24"&gt;PNP4Nagios&lt;/a&gt; is a gem of an add-on; it allows a Nagios administrator to easily add RRD-style graphs and efficient long-term trending ­capabilities to Nagios. This graphing framework makes extensive use of templates and is easy to customize. It consists of a PHP-based front using &lt;a href="http://www.kohanaphp.com/" linkindex="25"&gt;Kohana&lt;/a&gt; framework.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_w4ikZC0SkmQ/S0q0jzzLXMI/AAAAAAAAB8Y/JTzi79EPPVc/s1600-h/dns.png" imageanchor="1" linkindex="27" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_w4ikZC0SkmQ/S0q0jzzLXMI/AAAAAAAAB8Y/JTzi79EPPVc/s320/dns.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Pnp4nagios uses kohana framework for web frontend and kohana requires php 5.2.x has to be installed. In my previous post I have describe how to&lt;a href="http://askaralikhan.blogspot.com/2009/12/installing-php-52x-on-centos.html" linkindex="26"&gt; upgrade to php 5.2.x&lt;/a&gt; on centos which comes with 5.1.x.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;System Requirement&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Perl &amp;gt;= 5.x&lt;br /&gt;RRDtool&lt;br /&gt;PHP &amp;gt;= 5.2. for the Webfrontend based on Kohana&lt;br /&gt;PHP-extension zlib, session and GD.&lt;br /&gt;Nagios &amp;gt;= 2.x&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Installation&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Joerg Linge have written excellent &lt;a href="http://docs.pnp4nagios.org/pnp-0.6/start" linkindex="28"&gt;documentation&lt;/a&gt; for pnp4nagios and using it one can easily install and configure PNP in no time.&lt;br /&gt;&lt;br /&gt;In my case I have used the following ./configure line to have rrd data under nagios directories and rest of pnp4nagios goes its own directories in filesystem.&lt;br /&gt;&lt;br /&gt;./configure --with-perfdata-logfile=/var/nagios/perfdata.log --with-perfdata-dir=/var/nagios/perfdata --with-perfdata-spool-dir=/var/nagios/spool/perfdata&lt;br /&gt;&lt;br /&gt;After installing follow the pnp docs for start generating graphs and web integration with Nagios.&lt;br /&gt;&lt;br /&gt;Before going for production use, decide which &lt;a href="http://docs.pnp4nagios.org/pnp-0.6/modes" linkindex="29"&gt;mode&lt;/a&gt; is right for your Nagios installation.&lt;br /&gt;&lt;br /&gt;In our case we go with &lt;i&gt;Bulk Mode with NPCD&lt;/i&gt; as per docs...&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Nagios again uses a temporary file to store the data and executes a command after expiration of a certain time. Instead of immediate processing by process_perfdata.pl the file is moved to a spool directory. As moving a file inside the same filesystem nearly takes no time nagios is able to execute crucial work immediately. &lt;/i&gt;&lt;br /&gt;&lt;i&gt;The NPCD daemon (Nagios Performance C Daemon) will monitor the directory for new files and will pass the names to process_perfdata.pl. Processing of performance data is decoupled completely from nagios. NPCD itself is able to start multiple thread for processing the data.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Pages&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;One of the cool feature of pnp4nagios to have separate pages of graphs for hosts/services on a single page.&lt;br /&gt;Once again Joerg have an excellent docs for configuring &lt;a href="http://docs.pnp4nagios.org/pnp-0.6/pages" linkindex="30"&gt;pages&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Conclusion&lt;/b&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_w4ikZC0SkmQ/S0qz0ToJtkI/AAAAAAAAB8Q/hqP6J6jJanQ/s1600-h/cpu_util.png" imageanchor="1" linkindex="31" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_w4ikZC0SkmQ/S0qz0ToJtkI/AAAAAAAAB8Q/hqP6J6jJanQ/s320/cpu_util.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Once installed and configured pnp4nagios provides trending and capacity planning which allows organizations to plan for infrastructure upgrades before outdated systems catch them by surprise.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-1231393812004666879?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/1231393812004666879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/01/nagios-addon-pnp4nagios.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1231393812004666879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1231393812004666879'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/01/nagios-addon-pnp4nagios.html' title='Nagios addon - pnp4nagios'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_w4ikZC0SkmQ/S0q0jzzLXMI/AAAAAAAAB8Y/JTzi79EPPVc/s72-c/dns.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-7611664392786346301</id><published>2010-01-10T02:38:00.000-08:00</published><updated>2010-01-10T02:38:34.765-08:00</updated><title type='text'>Picasa 3 sucks</title><content type='html'>Today after upgrading to Picasa 3 on Fedora 12, it no longer let me upload my photos to web album, each time it gives the same error&lt;br /&gt;&lt;br /&gt;Login failed - please try again later.&lt;br /&gt;&lt;br /&gt;I have exhausted all the options googling, uninstall and reinstall but no luck.&lt;br /&gt;&lt;br /&gt;Come on Google you should be watching your groups on which people crying for the issue of sign in after installing/upgrading to picasa 3.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-7611664392786346301?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/7611664392786346301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/01/picasa-3-sucks.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7611664392786346301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7611664392786346301'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/01/picasa-3-sucks.html' title='Picasa 3 sucks'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-7551388706720718179</id><published>2010-01-03T23:17:00.000-08:00</published><updated>2010-01-03T23:17:57.237-08:00</updated><title type='text'>Adding chunk to dbspace in IBM Informix (IDS) using 'onspaces' utility</title><content type='html'>Recently I got into problem when there was on space left on dbspace on one of our Informix database. It took me nearly 2 hours of Googling to figure out how to add CHUNK to existing dbspace.&lt;br /&gt;&lt;br /&gt;I thinks it would be better to blog it, this might help some other folks or might I need to use it some day when the newly added CHUNK also get full :)&lt;br /&gt;&lt;br /&gt;For my setup I do not have the additional hard drive and have a plenty of free space on Unix partition. Therefore I used the unix file as new Chunk.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;'onmonitor', oncheck -pe, onstat -d commands can be used to view the status of dbspaces.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Here are the steps to add chunk.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. First create a chunk file in Unix filesystem and set the permission so that informix user/group have the read/write permission on the file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;touch /export/home/dbspace/billdb_dg/lv_recorddbs11&lt;br /&gt;&lt;br /&gt;chmod 660 /export/home/dbspace/billdb_dg/lv_recorddbs11&lt;br /&gt;&lt;br /&gt;Note: I run the above commands with 'informix' user or the owner of informix db.&lt;br /&gt;&lt;br /&gt;The following example adds a 2GB chunk to recordbs. An offset of 200 kilobytes is specified. &lt;br /&gt;&lt;br /&gt;onspaces -a recorddbs -p /export/home/dbspace/billdb_dg/lv_recorddbs11 -o 200 -s 2093150&lt;br /&gt;&lt;br /&gt;Here -s 2093150 is specified in KB&lt;br /&gt;&lt;br /&gt;The newly added chunk is available immediately.&lt;br /&gt;&lt;br /&gt;After you create the chunk, you must perform a level-0 backup of the root dbspace and the dbspace that contains the chunk.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-7551388706720718179?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/7551388706720718179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/01/adding-chunk-to-dbspace-in-ibm-informix.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7551388706720718179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7551388706720718179'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/01/adding-chunk-to-dbspace-in-ibm-informix.html' title='Adding chunk to dbspace in IBM Informix (IDS) using &apos;onspaces&apos; utility'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-9051306370566135006</id><published>2010-01-01T09:34:00.000-08:00</published><updated>2010-01-01T20:44:21.247-08:00</updated><title type='text'>Chat with Joerg Linge developer/maintainer of pnp4nagios</title><content type='html'>Today I got an opportunity to chat with developer/maintainer Joerg Linge of &lt;a href="http://www.pnp4nagios.org/" linkindex="14"&gt;pnp4nagios&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Chat was mostly about the new feature of using multiple Data Sources for a service in pnp4nagos.&lt;br /&gt;&lt;br /&gt;RRD_STORAE_TYPE = SINGLE means: Store every Datasource in one single RRD Database i.e. for check_icmp this is DS 'pl' and DS 'rta'&lt;br /&gt;&lt;br /&gt;With RRD_STORAE_TYPE = MULTILPLE every DS is stored in its own RRD Database i.e. host/service_pl.rrd and host/service_rta.rrd&lt;br /&gt;&lt;br /&gt;RRD_STORAE_TYPE = MULTILPLE should only used when a plugin is able to change the number of DS like check_disk does.&lt;br /&gt;&lt;br /&gt;&lt;me&gt; Me:&amp;nbsp; Is it ok to set&amp;nbsp; RRD_STORAE_TYPE = MULTIPLE globally in process_perfdata.cfg for new installation of Joerg? when one do not have any RRD data at all.&lt;br /&gt;Me:&amp;nbsp; tomorrow i am going to deploy Joerg 0.6.x on our production nagios server.&lt;br /&gt;Me:&amp;nbsp; thanks.&lt;br /&gt;Joerg : it depends&lt;br /&gt;Joerg : happy new year!&lt;br /&gt;Me:&amp;nbsp; happy new year :)&lt;br /&gt;Me:&amp;nbsp; ok,&lt;br /&gt;Me:&amp;nbsp; going with MULTIPLE has no drawback ok?&lt;br /&gt;Joerg : multiple mean more Disk I/O because of more RRDs to update&lt;br /&gt;&lt;br /&gt;Joerg : on sytems with 10000+ rrds you have to look on your disk I/O clisely&lt;br /&gt;Me:&amp;nbsp; well this really need very close monitoring of I/O which is hard to follow :s&lt;br /&gt;Me:&amp;nbsp; better stick with SINGLE :)&lt;br /&gt;Joerg : right&lt;br /&gt;Joerg : there are some plugins with changing DS counts like check_disk&lt;br /&gt;Joerg : in this case multiple is an option&lt;br /&gt;Joerg : or check_oracle_health for tablespace monitoring&lt;br /&gt;Me:&amp;nbsp; we are using check_disk extensively.&lt;br /&gt;Me:&amp;nbsp; for checking servers partitions.&lt;br /&gt;Joerg : one check for all filesystems?&lt;br /&gt;Me:&amp;nbsp; well mostly separate check_disk for each fs, however we have some servers with lot of fs onthese servers we are using single check_disk to check multiple fs in one go.&lt;br /&gt;Me:&amp;nbsp; with -p option&lt;br /&gt;Me:&amp;nbsp; those are mostly HP-UX&lt;br /&gt;Joerg : so check_disk can be used with multiple&lt;br /&gt;Me:&amp;nbsp; ok to use multiple have to configure it globally?&lt;br /&gt;Joerg : wenn you add a nw filesystem, rrdtool is not able to update the rrd databases&lt;br /&gt;Joerg : lol german wenn&lt;br /&gt;Joerg : english when&lt;br /&gt;Joerg : sorry&lt;br /&gt;Me:&amp;nbsp; np, i thought its typo :)&lt;br /&gt;Me:&amp;nbsp; ok to use multiple have to configure it globally? or their is another way around?&lt;br /&gt;Joerg : moment&lt;br /&gt;Joerg : http://docs.Joerg.org/pnp-0.6/tpl_custom&lt;br /&gt;Me:&amp;nbsp; looking.&lt;br /&gt;Joerg : you can set RRD_STORAGE_TYPE per check_commands&lt;br /&gt;Joerg : i.e. your command is check_disk&lt;br /&gt;Joerg : create etc/check_commands/check_disk.cfg&lt;br /&gt;Joerg : set RRD_STORAGE_TYPE = MULTIPLE within this file&lt;br /&gt;Joerg : thats the same rrd_convert.pl --check_command=check_disk will do in its final version&lt;br /&gt;Me:&amp;nbsp; ok but for most host we are doing the check_disk on remote host and then using check_nrpe on nagios host&lt;br /&gt;Joerg : so your command is?&lt;br /&gt;Joerg : check_nrpe?&lt;br /&gt;Me:&amp;nbsp; yes&lt;br /&gt;Joerg : create a new command nrpe_disk &lt;br /&gt;Joerg : thats it&lt;br /&gt;Me:&amp;nbsp; can you give me full example of nrpe_disk here?&lt;br /&gt;Joerg : define command {&lt;br /&gt;Joerg : command_name nrpe_disk&lt;br /&gt;Joerg : command line $USER1$/check_nrpe -H $HOSTqADDRESS$ -c check_diks1&lt;br /&gt;Joerg : }&lt;br /&gt;Joerg : so your command is nrpe_disk and not check_nrpe&lt;br /&gt;Joerg : and now you are able to define MULTIPLE for this command&lt;br /&gt;Joerg : this is done by creating Joerg/etc/check_commands/nrpe_disk.cfg&lt;br /&gt;&lt;me&gt;&lt;me&gt;&lt;me&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;me&gt;&lt;me&gt;&lt;me&gt;&lt;joerg&gt;&lt;me&gt;&lt;joerg&gt;&lt;me&gt;&lt;me&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;me&gt;&lt;me&gt;&lt;joerg&gt;&lt;me&gt;&lt;me&gt;&lt;me&gt;&lt;joerg&gt;&lt;me&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;me&gt;&lt;me&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;me&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;me&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;me&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;me&gt;&lt;me&gt;&lt;me&gt;&lt;me&gt;&lt;me&gt;&lt;me&gt;&lt;me&gt;&lt;me&gt;&lt;me&gt;&lt;me&gt;&lt;me&gt;&lt;me&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;me&gt;&lt;me&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;joerg&gt;&lt;me&gt;&lt;joerg&gt;&lt;me&gt;Me: Thanks for your time very much appreciated.&lt;/me&gt;&lt;/joerg&gt;&lt;/me&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/me&gt;&lt;/me&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/me&gt;&lt;/me&gt;&lt;/me&gt;&lt;/me&gt;&lt;/me&gt;&lt;/me&gt;&lt;/me&gt;&lt;/me&gt;&lt;/me&gt;&lt;/me&gt;&lt;/me&gt;&lt;/me&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/me&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/me&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/me&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/me&gt;&lt;/me&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/me&gt;&lt;/joerg&gt;&lt;/me&gt;&lt;/me&gt;&lt;/me&gt;&lt;/joerg&gt;&lt;/me&gt;&lt;/me&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/me&gt;&lt;/me&gt;&lt;/joerg&gt;&lt;/me&gt;&lt;/joerg&gt;&lt;/me&gt;&lt;/me&gt;&lt;/me&gt;&lt;/joerg&gt;&lt;/joerg&gt;&lt;/me&gt;&lt;/me&gt;&lt;/me&gt;&lt;/me&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-9051306370566135006?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/9051306370566135006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2010/01/chat-with-developermaintainer-joerg.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/9051306370566135006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/9051306370566135006'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2010/01/chat-with-developermaintainer-joerg.html' title='Chat with Joerg Linge developer/maintainer of pnp4nagios'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-1657135402285374417</id><published>2009-12-28T23:55:00.000-08:00</published><updated>2010-01-01T01:41:15.317-08:00</updated><title type='text'>Installing PHP 5.2.x on Centos</title><content type='html'>Recently I have got into issue where the PHP framework requires php 5.2.x while the installed system of centos 5.4 have php 5.1.x.&lt;br /&gt;&lt;br /&gt;The Testing repo of centos have php 5.2.x, I followed the following steps to install the php 5.2.x from centos dev repository.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Method 1:&amp;nbsp; Which will install all the new packages from Centos Testing repo.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;sudo vi /etc/yum.repos.d/Centos-Test.repo&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[c5-testing]&lt;br /&gt;name=CentOS-5 Testing &lt;br /&gt;baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/&lt;br /&gt;enabled=0&lt;br /&gt;gpgcheck=1&lt;br /&gt;priority=1&lt;br /&gt;gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing&lt;br /&gt;&lt;br /&gt;# CentOS-Testing:&lt;br /&gt;# !!!! CAUTION !!!!&lt;br /&gt;# This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.&lt;br /&gt;# They may or may not replace core CentOS packages, and are not guaranteed to function properly.&lt;br /&gt;# These packages build and install, but are waiting for feedback from testers as to &lt;br /&gt;# functionality and stability. Packages in this repository will come and go during the &lt;br /&gt;# development period, so it should not be left enabled or used on production systems without due&lt;br /&gt;# consideration. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you are using "yum-priorities" like me then you also have to add the following to the above&lt;br /&gt;&lt;br /&gt;&lt;b&gt;priority=1&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Now install the updates&lt;br /&gt;&lt;br /&gt;&lt;b&gt;sudo yum --enablerepo=c5-testing update&lt;/b&gt; &amp;lt;--- this will install php 5.2.x along with other latest packages from Centos dev repo.&lt;br /&gt;&lt;br /&gt;I am not sure how safe its to enable testing repository on production server in my case its a testing server so I can play with it.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Method 2: Only install php 5.2.x and related packages from Centos Testing Repo&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;sudo yum --enablerepo=c5-testing update php-*&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;=============================================================================================================================================================&lt;br /&gt;&amp;nbsp;Package&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Arch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Repository&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&lt;br /&gt;=============================================================================================================================================================&lt;br /&gt;Updating:&lt;br /&gt;&amp;nbsp;php&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i386&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.2.9-2.el5.centos&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c5-testing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.2 M&lt;br /&gt;&amp;nbsp;php-cli&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i386&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.2.9-2.el5.centos&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c5-testing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.4 M&lt;br /&gt;&amp;nbsp;php-common&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i386&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.2.9-2.el5.centos&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c5-testing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 237 k&lt;br /&gt;&amp;nbsp;php-mbstring&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i386&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.2.9-2.el5.centos&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c5-testing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.1 M&lt;br /&gt;&amp;nbsp;php-mysql&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i386&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.2.9-2.el5.centos&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c5-testing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80 k&lt;br /&gt;&amp;nbsp;php-pdo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i386&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.2.9-2.el5.centos&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c5-testing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 62 k&lt;br /&gt;&lt;br /&gt;Transaction Summary&lt;br /&gt;=============================================================================================================================================================&lt;br /&gt;&lt;br /&gt;This will install the php packages&lt;br /&gt;&lt;br /&gt;For more information click &lt;a href="http://wiki.centos.org/AdditionalResources/Repositories" linkindex="76"&gt;Centos Repositories&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-1657135402285374417?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/1657135402285374417/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/installing-php-52x-on-centos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1657135402285374417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1657135402285374417'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/installing-php-52x-on-centos.html' title='Installing PHP 5.2.x on Centos'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-1467980356364630372</id><published>2009-12-19T23:56:00.000-08:00</published><updated>2009-12-19T23:58:19.014-08:00</updated><title type='text'>Fedora 12 Yum New Feature 'history'</title><content type='html'>With Fedora 12 which was recently released and with F12 new version of Yum package manager also released. One of the new feature that new version of Yum bring is &lt;i&gt;history&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;The history command allows the user to view what has happened in past transactions. You can use info/list/summary to view what happened, undo/redo to act on that information and new to start a new his-tory file.&lt;br /&gt;&lt;br /&gt;The info/list/summary commands take either a transactions id or a package (with wildcards, as in Specifying package names), all three&amp;nbsp; can also be passed no arguments. list can be passed the keyword "all" to list all the transactions.&amp;nbsp; undo/redo just take a transaction id.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Here are few examples:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;$ sudo yum history&lt;br /&gt;&lt;/b&gt;Loaded plugins: dellsysidplugin2, fastestmirror, refresh-packagekit&lt;br /&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Login user&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Date and time&amp;nbsp;&amp;nbsp;&amp;nbsp; | Action(s)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Altered&lt;br /&gt;-------------------------------------------------------------------------------&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23 | Askar Ali Khan &lt;askar&gt; | 2009-12-19 20:29 | Update&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; 35&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22 | Askar Ali Khan &lt;askar&gt; | 2009-12-19 20:22 | Install&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 21 | Askar Ali Khan &lt;askar&gt; | 2009-12-19 19:57 | Erase&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20 | System &lt;unset&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 2009-12-16 20:16 | Update&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; 20&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19 | System &lt;unset&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 2009-12-13 10:03 | E, I, U&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; 51&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18 | System &lt;unset&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 2009-12-09 19:19 | Install&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17 | System &lt;unset&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 2009-12-09 19:12 | Update&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; 14&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16 | System &lt;unset&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 2009-12-07 20:51 | I, U&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; 33&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15 | System &lt;unset&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 2009-12-03 17:20 | Update&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; 10&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14 | Askar Ali Khan &lt;askar&gt; | 2009-12-02 17:57 | I, O, U&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; 56&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13 | System &lt;unset&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 2009-11-30 20:37 | Update&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; 46&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12 | Askar Ali Khan &lt;askar&gt; | 2009-11-30 20:29 | Install&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11 | Askar Ali Khan &lt;askar&gt; | 2009-11-25 20:53 | Update&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; 19&amp;nbsp; &amp;lt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10 | Askar Ali Khan &lt;askar&gt; | 2009-11-22 09:55 | Erase&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 &amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9 | Askar Ali Khan &lt;askar&gt; | 2009-11-22 09:55 | Erase&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8 | Askar Ali Khan &lt;askar&gt; | 2009-11-22 09:54 | Install&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7 | Askar Ali Khan &lt;askar&gt; | 2009-11-22 09:53 | Install&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6 | Askar Ali Khan &lt;askar&gt; | 2009-11-22 09:52 | Erase&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5 | Askar Ali Khan &lt;askar&gt; | 2009-11-22 09:50 | Erase&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4 | System &lt;unset&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 2009-11-20 19:12 | I, U&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; 38&lt;br /&gt;&lt;/unset&gt;&lt;/askar&gt;&lt;/askar&gt;&lt;/askar&gt;&lt;/askar&gt;&lt;/askar&gt;&lt;/askar&gt;&lt;/askar&gt;&lt;/askar&gt;&lt;/unset&gt;&lt;/askar&gt;&lt;/unset&gt;&lt;/unset&gt;&lt;/unset&gt;&lt;/unset&gt;&lt;/unset&gt;&lt;/unset&gt;&lt;/askar&gt;&lt;/askar&gt;&lt;/askar&gt;&lt;br /&gt;&lt;br /&gt;To list packages of a transaction, use option 'info' followed by transactions id&lt;br /&gt;&lt;br /&gt;&lt;b&gt;$sudo yum history info 15&lt;/b&gt;&lt;br /&gt;Loaded plugins: dellsysidplugin2, fastestmirror, refresh-packagekit&lt;br /&gt;Transaction ID : 15&lt;br /&gt;Begin time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Thu Dec&amp;nbsp; 3 17:20:15 2009&lt;br /&gt;Begin rpmdb&amp;nbsp;&amp;nbsp;&amp;nbsp; : 1328:10c8f90e66eb2c26aa380265fb4b5b11e56aae7a&lt;br /&gt;End time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17:20:53 2009 (38 seconds)&lt;br /&gt;End rpmdb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 1328:465b91d25241fa9452547719e554f9fb8ec9ac73&lt;br /&gt;User&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : System &lt;unset&gt;&lt;br /&gt;Return-Code&amp;nbsp;&amp;nbsp;&amp;nbsp; : Success&lt;br /&gt;Transaction performed with:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Installed&amp;nbsp;&amp;nbsp;&amp;nbsp; rpm-4.7.1-6.fc12.i686&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Installed&amp;nbsp;&amp;nbsp;&amp;nbsp; yum-3.2.25-1.fc12.noarch&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Installed&amp;nbsp;&amp;nbsp;&amp;nbsp; yum-metadata-parser-1.1.2-14.fc12.i686&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Installed&amp;nbsp;&amp;nbsp;&amp;nbsp; yum-plugin-fastestmirror-1.1.24-2.fc12.noarch&lt;br /&gt;Packages Altered:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Updated&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fontpackages-filesystem-1.35-1.fc12.noarch&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Update&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.41-1.fc12.noarch&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Updated&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gnome-python2-applet-2.28.0-1.fc12.i686&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Update&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.28.0-2.fc12.i686&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Updated&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gnome-python2-desktop-2.28.0-1.fc12.i686&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Update&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.28.0-2.fc12.i686&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Updated&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gnome-python2-gnomekeyring-2.28.0-1.fc12.i686&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Update&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.28.0-2.fc12.i686&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Updated&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gnome-python2-libwnck-2.28.0-1.fc12.i686&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Update&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.28.0-2.fc12.i686&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Updated&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libsndfile-1.0.20-2.fc12.i686&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Update&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.0.20-3.fc12.i686&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Updated&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; liveusb-creator-3.8.6-1.fc12.noarch&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Update&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.8.7-1.fc12.noarch&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Updated&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mdadm-3.0.3-1.fc12.i686&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Update&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.0.3-2.fc12.i686&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Updated&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wget-1.11.4-5.fc12.i686&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Update&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.12-2.fc12.i686&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Updated&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xorg-x11-drv-dummy-0.3.2-3.fc12.i686&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Update&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.3.3-1.fc12.i686&lt;br /&gt;history info&lt;br /&gt;&lt;/unset&gt;&lt;br /&gt;&lt;br /&gt;Now &lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;to undo a transaction, use option '&lt;/span&gt;&lt;span style="font-family: 'Courier New',Courier,monospace;"&gt;undo&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;' with the transaction id:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;$ sudo yum history undo 22&lt;/b&gt;&lt;br /&gt;Loaded plugins: dellsysidplugin2, fastestmirror, refresh-packagekit&lt;br /&gt;Loading mirror speeds from cached hostfile&lt;br /&gt;updates/metalink&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 7.7 kB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;* fedora: mirrors.cytanet.com.cy&lt;br /&gt;&amp;nbsp;Undoing transaction 22, from Sat Dec 19 20:22:12 2009&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Install&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gnokii-0.6.28-1.fc12.i686&lt;br /&gt;Resolving Dependencies&lt;br /&gt;--&amp;gt; Running transaction check&lt;br /&gt;---&amp;gt; Package gnokii.i686 0:0.6.28-1.fc12 set to be erased&lt;br /&gt;--&amp;gt; Finished Dependency Resolution&lt;br /&gt;&lt;br /&gt;Dependencies Resolved&lt;br /&gt;&lt;br /&gt;=============================================================================================================================================================&lt;br /&gt;&amp;nbsp;Package&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Arch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Repository&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&lt;br /&gt;=============================================================================================================================================================&lt;br /&gt;Removing:&lt;br /&gt;&amp;nbsp;gnokii&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i686&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.6.28-1.fc12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; installed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.9 M&lt;br /&gt;&lt;br /&gt;Transaction Summary&lt;br /&gt;=============================================================================================================================================================&lt;br /&gt;Remove&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 Package(s)&lt;br /&gt;Reinstall&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 Package(s)&lt;br /&gt;Downgrade&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 Package(s)&lt;br /&gt;&lt;br /&gt;Is this ok [y/N]: y&lt;br /&gt;Downloading Packages:&lt;br /&gt;Running rpm_check_debug&lt;br /&gt;Running Transaction Test&lt;br /&gt;Finished Transaction Test&lt;br /&gt;Transaction Test Succeeded&lt;br /&gt;Running Transaction&lt;br /&gt;&amp;nbsp; Erasing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : gnokii-0.6.28-1.fc12.i686&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/1 &lt;br /&gt;warning: /etc/gnokiirc saved as /etc/gnokiirc.rpmsave&lt;br /&gt;&lt;br /&gt;Removed:&lt;br /&gt;&amp;nbsp; gnokii.i686 0:0.6.28-1.fc12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Complete!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;Undoing transaction 22 creates a transaction 24. If you want to reinstall what was installed in transaction 22, do the following:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&lt;b&gt;$ sudo yum history redo 22&lt;/b&gt;&lt;br /&gt;Loaded plugins: dellsysidplugin2, fastestmirror, refresh-packagekit&lt;br /&gt;Loading mirror speeds from cached hostfile&lt;br /&gt;&amp;nbsp;* fedora: mirrors.cytanet.com.cy&lt;br /&gt;&amp;nbsp;* rpmfusion-free: ftp-stud.hs-esslingen.de&lt;br /&gt;&amp;nbsp;* rpmfusion-free-updates: ftp-stud.hs-esslingen.de&lt;br /&gt;&amp;nbsp;* rpmfusion-nonfree: ftp-stud.hs-esslingen.de&lt;br /&gt;&amp;nbsp;* rpmfusion-nonfree-updates: ftp-stud.hs-esslingen.de&lt;br /&gt;&amp;nbsp;* updates: mirrors.cytanet.com.cy&lt;br /&gt;Repeating transaction 22, from Sat Dec 19 20:22:12 2009&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Install&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gnokii-0.6.28-1.fc12.i686&lt;br /&gt;Resolving Dependencies&lt;br /&gt;--&amp;gt; Running transaction check&lt;br /&gt;---&amp;gt; Package gnokii.i686 0:0.6.28-1.fc12 set to be updated&lt;br /&gt;--&amp;gt; Finished Dependency Resolution&lt;br /&gt;&lt;br /&gt;Dependencies Resolved&lt;br /&gt;&lt;br /&gt;=============================================================================================================================================================&lt;br /&gt;&amp;nbsp;Package&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Arch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Repository&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&lt;br /&gt;=============================================================================================================================================================&lt;br /&gt;Installing:&lt;br /&gt;&amp;nbsp;gnokii&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i686&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.6.28-1.fc12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fedora&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 539 k&lt;br /&gt;&lt;br /&gt;Transaction Summary&lt;br /&gt;=============================================================================================================================================================&lt;br /&gt;Install&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 Package(s)&lt;br /&gt;Upgrade&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 Package(s)&lt;br /&gt;&lt;br /&gt;Total download size: 539 k&lt;br /&gt;Is this ok [y/N]: y&lt;br /&gt;Downloading Packages:&lt;br /&gt;gnokii-0.6.28-1.fc12.i686.rpm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 539 kB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:03&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;Running rpm_check_debug&lt;br /&gt;Running Transaction Test&lt;br /&gt;Finished Transaction Test&lt;br /&gt;Transaction Test Succeeded&lt;br /&gt;Running Transaction&lt;br /&gt;&amp;nbsp; Installing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : gnokii-0.6.28-1.fc12.i686&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/1 &lt;br /&gt;&lt;br /&gt;Installed:&lt;br /&gt;&amp;nbsp; gnokii.i686 0:0.6.28-1.fc12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Complete!&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;Option '&lt;span style="font-family: 'Courier New',Courier,monospace;"&gt;summary&lt;/span&gt;' associated with a package name gives the list of transaction where that package is involved.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;b&gt;$ sudo yum history summary gnokii&lt;/b&gt;&lt;br /&gt;Loaded plugins: dellsysidplugin2, fastestmirror, refresh-packagekit&lt;br /&gt;Login user&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Action(s)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Altered &lt;br /&gt;-------------------------------------------------------------------------------&lt;br /&gt;Askar Ali Khan &lt;askar&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Last day&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | E, I&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;br /&gt;System &lt;unset&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Last 3 months&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | I, O, U&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3909&lt;br /&gt;history summary&lt;br /&gt;&lt;/unset&gt;&lt;/askar&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;And finally here is the option 'list'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;b&gt;$ sudo yum history list gnokii&lt;/b&gt;&lt;br /&gt;Loaded plugins: dellsysidplugin2, fastestmirror, refresh-packagekit&lt;br /&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Login user&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Date and time&amp;nbsp;&amp;nbsp;&amp;nbsp; | Action(s)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Altered&lt;br /&gt;-------------------------------------------------------------------------------&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25 | Askar Ali Khan &lt;askar&gt; | 2009-12-20 12:50 | Install&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 24 | Askar Ali Khan &lt;askar&gt; | 2009-12-20 12:46 | Erase&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22 | Askar Ali Khan &lt;askar&gt; | 2009-12-19 20:22 | Install&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 21 | Askar Ali Khan &lt;askar&gt; | 2009-12-19 19:57 | Erase&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 | System &lt;unset&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 2009-11-20 01:11 | I, O, U&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 1303&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 | System &lt;unset&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 2009-11-20 00:21 | I, O, U&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 1303&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 | System &lt;unset&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 2009-11-19 05:40 | I, O, U&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 1303&lt;br /&gt;history list&lt;br /&gt;&lt;br /&gt;&lt;/unset&gt;&lt;/unset&gt;&lt;/unset&gt;&lt;/askar&gt;&lt;/askar&gt;&lt;/askar&gt;&lt;/askar&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-1467980356364630372?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/1467980356364630372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/fedora-12-yum-new-feature-history.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1467980356364630372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1467980356364630372'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/fedora-12-yum-new-feature-history.html' title='Fedora 12 Yum New Feature &apos;history&apos;'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-5956343491417072164</id><published>2009-12-16T07:17:00.000-08:00</published><updated>2009-12-16T07:17:59.691-08:00</updated><title type='text'>Nagios and SNMP Traps</title><content type='html'>Recently I have worked on sending and receiving SNMP Traps to and from &lt;a href="http://www.nagios.org/" linkindex="18"&gt;Nagios&lt;/a&gt;, its was really a great experience to extend Nagios alerts to other Managers for example HP NNM. Soon I'll document all the process.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-5956343491417072164?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/5956343491417072164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/nagios-and-snmp-traps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5956343491417072164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5956343491417072164'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/nagios-and-snmp-traps.html' title='Nagios and SNMP Traps'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-5905826862500076410</id><published>2009-12-14T01:32:00.000-08:00</published><updated>2009-12-14T03:04:19.125-08:00</updated><title type='text'>Google Launches Public DNS Resolver</title><content type='html'>Recently Google launches their free DNS resolution service, called &lt;i&gt;&lt;a linkindex="71" href="http://code.google.com/speed/public-dns/"&gt;Google Public DNS. &lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;According to their blog post, Google Public DNS uses continuous record prefetching to avoid cache misses — hopefully making the service faster — and implements a variety of techniques to block spoofing attempts. They also say that (unlike an increasing number of ISPs), Google Public DNS behaves exactly according to the DNS standard, and will not redirect you to advertising in the event of a failed lookup.&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;&lt;h2 style="font-style: italic; font-weight: bold;"&gt;&lt;span style="font-size:100%;"&gt;Google DNS Server IP Addresses&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;The Google Public DNS IP addresses are as follows:&lt;span style="font-family:monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:monospace;"&gt;&lt;/span&gt;8.8.8.8&lt;span style="font-family:monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:monospace;"&gt;&lt;/span&gt;8.8.4.4&lt;br /&gt;&lt;/p&gt;&lt;code&gt;&lt;/code&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;Add Google DNS Server IP Address Under Linux&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Edit the /etc/resolv.conf file and add above two ip address:&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;&lt;br /&gt;&lt;/span&gt;nameserver 8.8.8.8&lt;span style="font-family:monospace;"&gt;&lt;br /&gt;&lt;/span&gt;nameserver 8.8.4.4&lt;br /&gt;&lt;br /&gt;&lt;a linkindex="71" href="http://code.google.com/speed/public-dns/"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-5905826862500076410?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/5905826862500076410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/google-launches-public-dns-resolver.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5905826862500076410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5905826862500076410'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/google-launches-public-dns-resolver.html' title='Google Launches Public DNS Resolver'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-1199761259835332976</id><published>2009-12-14T01:10:00.000-08:00</published><updated>2009-12-14T01:21:29.718-08:00</updated><title type='text'>Mount an ISO image under Linux</title><content type='html'>Mounting ISO images under Linux using loop device.&lt;br /&gt;&lt;br /&gt;Assuming /mnt/disk directory is already exists, if not then create it before running the below command.&lt;br /&gt;&lt;br /&gt;Mount:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# mount -o loop PathTo/images.iso /mnt/disk&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That's it, images.iso has been mounted under /mnt/disk and now you can browse the files.&lt;br /&gt;&lt;br /&gt;Unmount:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# umount /mnt/disk&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;What is loop device, click to read more about loop device.&lt;a href="http://en.wikipedia.org/wiki/Loop_device"&gt; More about loop device.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-1199761259835332976?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/1199761259835332976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/mount-iso-image-under-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1199761259835332976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1199761259835332976'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/mount-iso-image-under-linux.html' title='Mount an ISO image under Linux'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-1142861175579029639</id><published>2009-12-13T23:35:00.001-08:00</published><updated>2009-12-13T23:38:34.395-08:00</updated><title type='text'>Too fast to report a problem!</title><content type='html'>Today when i tries to send SMS using gnokii from laptop with 'gnokii --sendsms' command it gives a long core dump, my bad that I didn't tries anything at my end and reported a problem on gnokii mailing list.&lt;br /&gt;After a while when I tries with plug/unplug the USB cable which attached with my laptop and phone wow after this simple troubleshooting the 'gnokii --sendsms' start working.&lt;br /&gt;&lt;br /&gt;Conclusion: Never report a problem on mailing lists but first exhausting every option at your end.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-1142861175579029639?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/1142861175579029639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/too-fast-to-report-problem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1142861175579029639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1142861175579029639'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/too-fast-to-report-problem.html' title='Too fast to report a problem!'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-4033539822592254172</id><published>2009-12-13T00:15:00.000-08:00</published><updated>2009-12-13T00:15:45.818-08:00</updated><title type='text'>Make Your Own Holiday Cards with GIMP</title><content type='html'>&lt;a href="http://www.linux.com/learn/tutorials/264053-make-your-own-holiday-cards-with-gimp"&gt;Make Your Own Holiday Cards with GIMP&lt;/a&gt;: "It's the holiday season! And regardless of which holidays you celebrate, it's a good time to connect with relatives and absent friends.&lt;br /&gt;&lt;br /&gt;Maybe you can send them some cards! But those packaged cards... so drab, so dull. Wouldn't it be more fun to make your own? GIMP is a great tool for that..."&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-4033539822592254172?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.linux.com/learn/tutorials/264053-make-your-own-holiday-cards-with-gimp' title='Make Your Own Holiday Cards with GIMP'/><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/4033539822592254172/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/make-your-own-holiday-cards-with-gimp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4033539822592254172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4033539822592254172'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/make-your-own-holiday-cards-with-gimp.html' title='Make Your Own Holiday Cards with GIMP'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-2940626389686822737</id><published>2009-12-13T00:02:00.000-08:00</published><updated>2009-12-13T00:02:17.217-08:00</updated><title type='text'>Slashdot Linux Story | GNOME Developer Suggests Split From GNU Project</title><content type='html'>&lt;a href="http://linux.slashdot.org/story/09/12/12/135209/GNOME-Developer-Suggests-Split-From-GNU-Project?art_pos=14"&gt;Slashdot Linux Story | GNOME Developer Suggests Split From GNU Project&lt;/a&gt;: "'In a recent posting from Philip Van Hoof, he suggests that GNOME split off from the GNU Project and has proposed a vote. He was informed he will need 10% of members to agree for a vote to be put forth. At the same time, David Schlesinger (on the GNOME Advisory Board) has agreed on a vote. Stormy Peters said she doesn't agree with this, but then gave everyone instructions on how to proceed with a vote. She mentioned that roughly 20 members are needed to agree.'"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-2940626389686822737?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://linux.slashdot.org/story/09/12/12/135209/GNOME-Developer-Suggests-Split-From-GNU-Project?art_pos=14' title='Slashdot Linux Story | GNOME Developer Suggests Split From GNU Project'/><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/2940626389686822737/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/slashdot-linux-story-gnome-developer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2940626389686822737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2940626389686822737'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/slashdot-linux-story-gnome-developer.html' title='Slashdot Linux Story | GNOME Developer Suggests Split From GNU Project'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-3590531877003997889</id><published>2009-12-11T21:57:00.000-08:00</published><updated>2009-12-11T22:00:37.928-08:00</updated><title type='text'>Inserting character at some location using sed</title><content type='html'>Inserting Colon ":" after every 2nd digit&lt;br /&gt;&lt;br /&gt;Before insertion:  0022938bdea4&lt;br /&gt;After insertion: 00:22:93:8b:de:a4&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Method 1: This will also insert Colon in the end&lt;/span&gt; &lt;br /&gt;sed 's/\(..\)/\1:/g' &lt;&lt;&lt;0022938bdea4&lt;br /&gt;&lt;br /&gt;00:22:93:8b:de:a4:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Method 2: This will work fine without doing the ending colon&lt;/span&gt;.&lt;br /&gt;sed -e 's/\(..\)/\1:/g' -e 's/.$//'  &lt;&lt;&lt;0022938bdea4&lt;br /&gt;00:22:93:8b:de:a4&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Method 3: Same as Method 2&lt;/span&gt;&lt;br /&gt;a=$(sed 's/\(..\)/\1:/g' &lt;&lt;&lt;0022938bdea4); echo "${a:0:${#a}-1}"&lt;br /&gt;00:22:93:8b:de:a4&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Doing it on a file containing the data&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;while read file; do sed -e 's/\(..\)/\1:/g' -e 's/.$//'  &lt;&lt;&lt;"$file";done &lt; mac_addresses.txt&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-3590531877003997889?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/3590531877003997889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/inserting-character-at-some-location.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3590531877003997889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3590531877003997889'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/inserting-character-at-some-location.html' title='Inserting character at some location using sed'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-4819601229771732403</id><published>2009-12-11T20:55:00.000-08:00</published><updated>2009-12-11T21:04:29.094-08:00</updated><title type='text'>Creating tar archive of the directories</title><content type='html'>Below is the script for creating .tar archives of the directories containing files, I have coded this script to create .tar archive of the RADIUS bill files.&lt;br /&gt;&lt;br /&gt;This script simple create .tar (without compressing it) and later &lt;span style="font-style:italic;"&gt;gzip filename&lt;/span&gt; could be used to compress the .tar files.&lt;br /&gt;&lt;br /&gt;Script require one argument in the form of YYYYMM to create tar archive of all the directories for the specific month of the year.&lt;br /&gt;&lt;br /&gt;For example to run, in the current directory&lt;br /&gt;&lt;br /&gt;./billfiles 200912 &lt;---will create .tar archives of all the directories in the current directory which have name like 200912*&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;The script&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#!/usr/bin/bash&lt;br /&gt;# Author: Askar Ali Khan&lt;br /&gt;# Date: 2009-02-10&lt;br /&gt;# Purpose: To create tar of bill files&lt;br /&gt;# billfiles&lt;br /&gt;&lt;br /&gt;SOURCEDIR="/export/home/backup_billdb/bb_bill_backup"&lt;br /&gt;&lt;br /&gt;if [ ! "$1" ]&lt;br /&gt;then&lt;br /&gt; echo "Must provide correct month"&lt;br /&gt; echo "Format: YYYYMM Eg, 200901"&lt;br /&gt; exit 0&lt;br /&gt;else&lt;br /&gt;&lt;br /&gt;if [ ! -d "$SOURCEDIR"/"$1" ]&lt;br /&gt; then&lt;br /&gt;        echo "Directory does not exists,creating ...."&lt;br /&gt;        mkdir "$SOURCEDIR"/"$1"&lt;br /&gt; else&lt;br /&gt;        echo "Directory already exists"&lt;br /&gt;        exit 0&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# Creating tar&lt;br /&gt;for f in "$1"*&lt;br /&gt;do&lt;br /&gt; echo "Making $f.tar, please wait..."&lt;br /&gt; tar cvf "$SOURCEDIR"/"$1"/"$f".tar "$f"&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;fi&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-4819601229771732403?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/4819601229771732403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/creating-tar-archive-of-directories.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4819601229771732403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4819601229771732403'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/creating-tar-archive-of-directories.html' title='Creating tar archive of the directories'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-7714464872440929742</id><published>2009-12-09T22:56:00.000-08:00</published><updated>2009-12-09T23:01:57.921-08:00</updated><title type='text'>New day!</title><content type='html'>I am feeling sleeping coz last night my daughter Ayesha was not feeling well and keep awaking all night. Well this is what usually kids do in this age, when its time to sleep they wake up :)&lt;br /&gt;And this is what fun part of life, to sacrifice your sleep for your beloved ones.&lt;br /&gt;Lot of work to do at work, today we have to finalize the shifting of Broadband users to new AAA which were previously made available by moving all the Narrowband users to another AAA.&lt;br /&gt;I have already created all the required charge policies and services so that during time we do not have to waste time on making them.&lt;br /&gt;&lt;br /&gt;I have still do modify the manual provisioning scripts to work with Oracle, as the old BB AAA have IBM IDS backend while this one having Oracle 9i.&lt;br /&gt;&lt;br /&gt;I wouldn't be difficult to as I have already modified the "Close Account" script to use Oracle and only left the "Create Account" script.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-7714464872440929742?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/7714464872440929742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/new-day.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7714464872440929742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7714464872440929742'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/new-day.html' title='New day!'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-4683361648185392769</id><published>2009-12-09T08:04:00.000-08:00</published><updated>2009-12-09T08:07:44.550-08:00</updated><title type='text'>My daughter Ayesha growing</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_w4ikZC0SkmQ/Sx_LNaZgwMI/AAAAAAAAB7c/SDiTUOCNlY0/s1600-h/28-11-09_0911.jpg"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_w4ikZC0SkmQ/Sx_LNaZgwMI/AAAAAAAAB7c/SDiTUOCNlY0/s320/28-11-09_0911.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5413268708407689410" /&gt;&lt;/a&gt;&lt;br /&gt;My beloved daughter Ayesha is now almost one year and 2 months old and she is learn fast, walking by her own :)&lt;br /&gt;Its really a fun watching her learn a little thing and walk, smile. Its all about  her after I get back to home after work.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-4683361648185392769?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/4683361648185392769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/my-daughter-ayesha-growing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4683361648185392769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4683361648185392769'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/my-daughter-ayesha-growing.html' title='My daughter Ayesha growing'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_w4ikZC0SkmQ/Sx_LNaZgwMI/AAAAAAAAB7c/SDiTUOCNlY0/s72-c/28-11-09_0911.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-1046085360506147643</id><published>2009-12-08T21:32:00.001-08:00</published><updated>2009-12-08T21:36:07.485-08:00</updated><title type='text'>Google Dictionary</title><content type='html'>Recently Google launches free online dictionary &lt;a href="http://www.google.com/dictionary"&gt;Google Dictionary&lt;/a&gt;. So google is going to give a tough time to work/meaning providers :)&lt;br /&gt;I think that the really interesting thing is how they've integrated Google Translate into the drop down language list. Absolutely beautiful. Very useful. Nice work.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-1046085360506147643?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/1046085360506147643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/google-dictionary.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1046085360506147643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1046085360506147643'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/google-dictionary.html' title='Google Dictionary'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-8665867497916541497</id><published>2009-12-08T21:12:00.000-08:00</published><updated>2009-12-08T21:40:52.924-08:00</updated><title type='text'>Google Chrome Browser for Linux</title><content type='html'>Finally google release BETA version of chrome browser for Linux and OSX plateform, I have just install it on my laptop running Fedora 12. Installation was straight forward and as usual google chrome is fast and kick ass browser like all other google applications (GMAIL, gtalk, maps, google search) name the few :)&lt;br /&gt;&lt;br /&gt;&lt;a href="https://chrome.google.com/extensions"&gt;Google Chrome Extensions&lt;/a&gt; Are Now Available is now open for Windows and Linux users — but not yet for Mac — and contains around 300 extensions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-8665867497916541497?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/8665867497916541497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/google-chrome-browser-for-linux.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/8665867497916541497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/8665867497916541497'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/12/google-chrome-browser-for-linux.html' title='Google Chrome Browser for Linux'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-6544871866734677348</id><published>2009-11-20T07:05:00.000-08:00</published><updated>2009-11-20T07:17:52.041-08:00</updated><title type='text'>Upgrade to Fedora 12 using preupgrade</title><content type='html'>Today I have upgraded my work laptop from Fedora 10 to Fedora 12 using 'preupgrade' and guess what everything went smooth and here I am currently blogging from Fedora 12 :)&lt;br /&gt;&lt;br /&gt;Perhaps I have upgraded to Fedora 12 on both of my work and home laptops.&lt;br /&gt;&lt;br /&gt;Here are the steps which I followed to upgrade to Fedora 12.&lt;br /&gt;&lt;br /&gt;1. Fedora 12 upgrade requires quit some extra space on /boot partition (which is default 200MB with fedora install), before doing the upgrade first move all the extra kernels and leave only the last working one.&lt;br /&gt;&lt;br /&gt;2. Adjust the number of reserved filesystem blocks on /boot partition using the command tune2fs. first need to identify the block device for your /boot file system. In the example below, /dev/sda1 is the block device for the /boot filesystem.&lt;br /&gt;&lt;br /&gt;# mount | grep "/boot"&lt;br /&gt;/dev/sda3 on /boot type ext4 (rw)&lt;br /&gt;&lt;br /&gt;Now, adjust the number of reserved blocks for the /boot filesystem using the command tune2fs&lt;br /&gt;&lt;br /&gt;# tune2fs -r 0 /dev/sda3&lt;br /&gt;&lt;br /&gt;3. Finally run the preupgrade command to start fetching the packages while you continue to do your work, remember the downloading will takes times depending on your Internet pipe :)&lt;br /&gt;&lt;br /&gt;# preupgrade &lt;br /&gt;&lt;br /&gt;Or&lt;br /&gt;&lt;br /&gt;sudo preupgrade&lt;br /&gt;&lt;br /&gt;4. After download finish it will ask to reboot the system and then the installation process will begin which will again takes sometime. And then only one last reboot and here is the shiny Fedora 12 Constantine Desktop :)&lt;br /&gt;&lt;br /&gt;5. Some packages may no longer be supported by the new release. You may wish to remove these packages because they will no longer get security updates, and they may cause later conflicts with supported packages. These can be identified with the following command:&lt;br /&gt;&lt;br /&gt;package-cleanup --orphans&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-6544871866734677348?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/6544871866734677348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/11/upgrade-to-fedora-12-using-preupgrade.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/6544871866734677348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/6544871866734677348'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/11/upgrade-to-fedora-12-using-preupgrade.html' title='Upgrade to Fedora 12 using preupgrade'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-5031235230874468601</id><published>2009-11-14T22:18:00.000-08:00</published><updated>2009-11-14T22:30:45.581-08:00</updated><title type='text'>Securing Solaris 10 Host using ipfilter</title><content type='html'>Although the “svc:/network/pfil:default” is enabled and online on a default Solaris 10 installation, no device driver has been configured for it. So that to enable IPFilter, you’ll need to configure “pfil” so that it gets autopushed for the network drivers for which you want to enable your firewall. And then the network interfaces will need to be plumbed or replumbed.&lt;br /&gt;&lt;br /&gt;The point to note here is that IPFilter is enabled per network device driver (hme, ge, qfe,… ).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;# vi /etc/ipf/pfil.ap&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and uncomment there the specific drivers you are interested in, man ipf(1M) for more.&lt;br /&gt;&lt;br /&gt;You now have 2 choices. One : reboot. At boot time, when the “pfil” service is started, the startup script /lib/svc/method/pfil will run the autopush command on the /etc/ipf/pfil.ap file before the network interfaces are confgured so that everything will work as expected. Note that the same script will also start IPFilter with a very restrictive set of rules to cover the window of vulnerability during the time network is initialized and the “ipfilter” service is started.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Second:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;svcadm enable ipfilter&lt;br /&gt;&lt;br /&gt;autopush -f /etc/ipf/pfil.ap&lt;br /&gt;ifconfig bge0 unplumb&lt;br /&gt;ifconfig bge0 plumb xxx.xx.xxx.xxx netmask 255.255.255.0 up&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now you are reading to write your firewall rules.&lt;br /&gt;&lt;br /&gt;You will find some examples of the ipf.conf configuration file in /usr/share/ipfilter/examples. Just copy one of them over /etc/ipf/ipf.conf to start playing around.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Sample firewall rules&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# ipf.conf&lt;br /&gt;#&lt;br /&gt;# IP Filter rules to be loaded during startup&lt;br /&gt;#&lt;br /&gt;# See ipf(4) manpage for more information on&lt;br /&gt;# IP Filter rules syntax.&lt;br /&gt;#&lt;br /&gt;# block all inbound packets.&lt;br /&gt;#&lt;br /&gt;block in from any to any&lt;br /&gt;#&lt;br /&gt;# pass through packets to and from localhost.&lt;br /&gt;#&lt;br /&gt;pass in from 127.0.0.1/32 to 127.0.0.1/32&lt;br /&gt;#&lt;br /&gt;# allow a variety of individual hosts to send any type of IP packet to any&lt;br /&gt;# other host.&lt;br /&gt;#&lt;br /&gt;pass in from xxx.xx.xxx.xxx/32 to any&lt;br /&gt;pass in from xxx.xx.xx.xxx/32 to any&lt;br /&gt;#&lt;br /&gt;# Allow all ICMP&lt;br /&gt;pass in proto icmp from any to any&lt;br /&gt;&lt;br /&gt;# Allow all Radius (the localhost running Radius software for authentication)&lt;br /&gt;pass in proto udp from any to any port = 1812&lt;br /&gt;pass in proto udp from any to any port = 1813&lt;br /&gt;pass in proto tcp from any to any port = 1812&lt;br /&gt;pass in proto tcp from any to any port = 1813&lt;br /&gt;&lt;br /&gt;# Allow all from internal LAN &lt;br /&gt;pass in from xx.xxx.xxx.0/24 to any&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Enabling/Disabling ipf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ipf -D   disable&lt;br /&gt;ipf -E  enable&lt;br /&gt;&lt;br /&gt;ipf -Fa -f /etc/ipf/ipf.conf  read the ipf.conf &lt;br /&gt;&lt;br /&gt;man ipf(1M) for more on ipf&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-5031235230874468601?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/5031235230874468601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/11/securing-solaris-10-host-using-ipfilter.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5031235230874468601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5031235230874468601'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/11/securing-solaris-10-host-using-ipfilter.html' title='Securing Solaris 10 Host using ipfilter'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-6992956945022298777</id><published>2009-10-15T21:54:00.000-07:00</published><updated>2009-10-15T21:58:01.227-07:00</updated><title type='text'>Removing ^M (Ctrl +M) characters</title><content type='html'>Time to time we have to delete ^M charaters in *nix from a files, here is a simple script which will do it fast.&lt;br /&gt;&lt;br /&gt;#!/usr/bin/ksh&lt;br /&gt;# To remove ctrl+M character from txt file in solaris&lt;br /&gt;# Date: 2009-02-06&lt;br /&gt;# ctrl_m.sh&lt;br /&gt;&lt;br /&gt;if [ -f $1 ]&lt;br /&gt;then&lt;br /&gt; tr -d '\15' &lt; $1 &gt;newname&lt;br /&gt; mv newname $1&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;Script first remove the ^M characters and then move the file to same filename.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-6992956945022298777?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/6992956945022298777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/10/removing-m-ctrl-m-characters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/6992956945022298777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/6992956945022298777'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/10/removing-m-ctrl-m-characters.html' title='Removing ^M (Ctrl +M) characters'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-5018995031343805273</id><published>2009-10-14T21:46:00.000-07:00</published><updated>2009-10-14T22:20:39.825-07:00</updated><title type='text'>Nagios Read Only Access</title><content type='html'>Today I got a task to provided &lt;a href="http://nagios.org/"&gt;Nagios&lt;/a&gt; Read Only Web access to Contact Centres, and &lt;a href="http://google.com/"&gt;Google&lt;/a&gt; for a 2 minutes tells that a nice guy  &lt;a href="http://eluted.net/index.php/blue/comments/read_only_cgi_patch_for_nagios_303_updated"&gt;Derrick have written a readonly cgi patch&lt;/a&gt; for Nagios.&lt;br /&gt;&lt;br /&gt;When I tries to patch the Nagios source it give error...&lt;br /&gt;&lt;br /&gt;Reversed (or previously applied) patch detected!  Assume -R? [n]&lt;br /&gt;&lt;br /&gt;Which mean I did have missed something "ChangeLog" between Nagios version 3.0.x to 3.2.x, hey no more manual patching is required if you are running latest version of &lt;a href="http://nagios.org"&gt;Nagios&lt;/a&gt;, as the Nagios Team have included the patch into the &lt;a href="http://nagios.org/"&gt;Nagios&lt;/a&gt; Core :)&lt;br /&gt;&lt;br /&gt;So all one have to do is to add all the users to Nagios cgi.cfg file directive...&lt;br /&gt;&lt;br /&gt;authorized_for_read_only=&lt;user1&gt;username&lt;br /&gt;&lt;br /&gt;That's all, thumb up for Derrick for the nice patch and thanks to Nagios team for including it in the Core.&lt;br /&gt;&lt;br /&gt;&lt;/user1&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-5018995031343805273?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/5018995031343805273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/10/nagios-read-only-access.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5018995031343805273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5018995031343805273'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/10/nagios-read-only-access.html' title='Nagios Read Only Access'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-7070109923787157249</id><published>2009-10-13T02:04:00.000-07:00</published><updated>2010-03-20T00:22:34.337-07:00</updated><title type='text'>Installing configuring Gnokii on Linux</title><content type='html'>&lt;a href="http://gnokii.org/" linkindex="19"&gt;Gnokii&lt;/a&gt; provides tools and a user space driver for use with mobile phones under various operating systems (most testing is done under Linux but also Solaris, *BSD family and MS Windows families are known to work. Using Gnokii one can send/receive SMS, phonebook, call management and others.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Installation from rpm manager (yum)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Gnokii package is available via most of Linux distro repository, on Fedora 10 the below will install the gnokii package if not then do the installation from source.&lt;br /&gt;&lt;br /&gt;yum install gnokii&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Installing from Source: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Download the gnokii source &lt;a href="http://gnokii.org/downloads.shtml" linkindex="20"&gt;download&lt;/a&gt;.&lt;br /&gt;2. Untar the source and  change (cd) to gnokii source directory&lt;br /&gt;&lt;br /&gt;Run...&lt;br /&gt;&lt;br /&gt;./configure (to configure)&lt;br /&gt;make (to compile)&lt;br /&gt;make install (to install the binaries)&lt;br /&gt;&lt;br /&gt;Copy the example config file for gnokii from the Docs/sample/ directory to your home directory:&lt;br /&gt;&lt;br /&gt;$ cp Docs/sample/gnokiirc ~/.gnokiirc&lt;br /&gt;&lt;br /&gt;If you copied the .gnokiirc file to your home directory (not root) then do not forget to add your shell user account to uucp otherwise you wouldn't able to use gnokii due to permission problem on serial device you setup in .gnokiirc file.&lt;br /&gt;&lt;br /&gt;$ groups&lt;br /&gt;askar wheel uucp&lt;br /&gt;&lt;br /&gt;I have tested Gnokii with my Motorola L6/L7 cell phones check gnokii.org whether your phone is supported or not. (Tip.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Configuration.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Gnokii uses gnokiirc file for all this configuration, if gnokii has been installed via package manager then most probably it may have installed a /etc/gnokiirc file, the settings in this file will be used in the absence of a .gnokiirc file in your home directory.&lt;br /&gt;&lt;br /&gt;Below is the minimum setting we need.&lt;br /&gt;&lt;br /&gt;Note: usually you only need to edit the port and model part only &lt;br /&gt;&lt;br /&gt;[global]&lt;br /&gt;port = /dev/ttyACM0 # &lt;i&gt;Set to port on which your phone is connect Tip: check /var/log/messages ]&lt;/i&gt;&lt;br /&gt;model = AT&lt;br /&gt;initlength = default&lt;br /&gt;connection = serial&lt;br /&gt;use_locking = no&lt;br /&gt;serial_baudrate = 19200&lt;br /&gt;smsc_timeout = 10&lt;br /&gt;[xgnokii]&lt;br /&gt;allow_breakage = 0&lt;br /&gt;[gnokiid]&lt;br /&gt;bindir = /usr/sbin/&lt;br /&gt;#[connect_script]&lt;br /&gt;#TELEPHONE = 12345678&lt;br /&gt;[disconnect_script]&lt;br /&gt;[logging]&lt;br /&gt;debug = off  # Turn it on for debugging&lt;br /&gt;rlpdebug = off&lt;br /&gt;xdebug = off&lt;br /&gt;&lt;br /&gt;While phone is connected and /etc/gnokiirc or .gnokiirc has been setup properly.&lt;br /&gt;&lt;br /&gt;2. Check if you phone has been recognize by gnokii.&lt;br /&gt;&lt;br /&gt;gnokii --identify&lt;br /&gt;&lt;br /&gt;GNOKII Version 0.6.27&lt;br /&gt;IMEI         : IMEI359411000810925&lt;br /&gt;Manufacturer : Motorola CE, Copyright 2000&lt;br /&gt;Model        : GSM900","GSM1800","GSM1900","GS&lt;br /&gt;Product name : GSM900","GSM1800","GSM1900","GS&lt;br /&gt;Revision     : R4513_G_08.B7.DCR_R&lt;br /&gt;&lt;br /&gt;This is what I get for my Motorola L7 connected with via USB cable with my laptop running Fedora 10.&lt;br /&gt;&lt;br /&gt;Note: you should see gnokii identified your cellphone/gsm modem, if you don't see it, update your ~/.gnokiirc or /etc/gnokiirc to suit your need&lt;br /&gt;&lt;br /&gt;Note: During testing use 'root' account or  you will need read/write permissions on whatever serial port you specify in /etc/gnokiirc or .gnokiirc file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Using Gnokii&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;All the below information and more can be found &lt;a href="http://wiki.gnokii.org/index.php/User%27s_Guide" linkindex="21"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Backup &amp;amp; Restoration of phonebook on phone SM card using gnokii&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Backup&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;gnokii --getphonebook SM 1 end --vcard &amp;gt; myphonebook.vcf&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Restore&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;gnokii --writephonebook --vcard  \&amp;lt; myphonebook.vcf&lt;br /&gt;&lt;myphonebook.vcf&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Handling calls&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To dial a voice call:&lt;br /&gt;&lt;br /&gt;gnokii --dialvoice 12345678&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;SMS Sending and Receiving&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Use smsd if you need both to send and to receive SMS. You can use it with a file or a database backend.&lt;br /&gt;&lt;br /&gt;If you only need to send, you can also use gnokii --sendsms, which reads message body from stdin.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;echo "This is a test message" | gnokii --sendsms +12345678&lt;br /&gt;&lt;br /&gt;Or&lt;br /&gt;&lt;br /&gt;gnokii --sendsms +12345678&lt;br /&gt;type your text and press&lt;br /&gt;&lt;br /&gt;Ctrl+d to exit.&lt;br /&gt;&lt;br /&gt;You can also use the utils/sendsms bash script that uses a text based interface using dialog as a more friendly frontend to gnokii --sendsms, allowing you to pick recipient numbers from your phonebooks instead of typing them on the command line.&lt;br /&gt;&lt;br /&gt;In my next article you can learn how to use Gnokii + Nagios for &lt;a href="http://askaralikhan.blogspot.com/2010/03/sending-sms-notification-from-nagios.html" linkindex="22"&gt;sending SMS Notifications from Nagios&lt;/a&gt; whenever there is problem with any of the monitored host/service&lt;br /&gt;&lt;/myphonebook.vcf&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-7070109923787157249?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/7070109923787157249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/10/installing-configuring-gnokii-on-linux.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7070109923787157249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7070109923787157249'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/10/installing-configuring-gnokii-on-linux.html' title='Installing configuring Gnokii on Linux'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-4518512728904399275</id><published>2009-10-11T00:16:00.000-07:00</published><updated>2009-10-11T00:22:15.861-07:00</updated><title type='text'>SUSE Studio</title><content type='html'>&lt;a href="http://susestudio.com"&gt;SUSE Studi&lt;/a&gt;&lt;a href="http://susestudio.com"&gt;o&lt;/a&gt; is a ...&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt; SUSE Studio is a simple and fast appliance builder.  &lt;/li&gt;&lt;li&gt; It provides an easy to use, web-based user interface and will run in your browser without other needed software.  &lt;/li&gt;&lt;li&gt; One great feature is the SUSE Studio Testdrive. You can boot, configure and test your appliance in a browser window without download. &lt;/li&gt;&lt;/ul&gt;I have used to to create customize Suse (Gnome Desktop) and Minimal X Vmware images which later I have booted with &lt;a href="http://www.virtualbox.org"&gt;Virtualbox&lt;/a&gt;. One can easily convert images created for vmware to virtualbox.&lt;br /&gt;&lt;br /&gt;I like Suse Studio and its kinda revolution in the field of OS.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-4518512728904399275?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/4518512728904399275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/10/suse-studio.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4518512728904399275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/4518512728904399275'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/10/suse-studio.html' title='SUSE Studio'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-1825660693015433999</id><published>2009-10-05T10:29:00.000-07:00</published><updated>2009-10-05T10:33:39.273-07:00</updated><title type='text'>Checking invalid SSH attempts</title><content type='html'>Running the following will gives the unique count of invalid SSH attempts on Linux server.&lt;br /&gt;&lt;br /&gt;sudo awk 'gsub(".*sshd.*Failed password for (invalid user )?", "") {print $1}' /var/log/secure | sort | uniq -c | sort -rn | head -10&lt;br /&gt;&lt;br /&gt;Or all of the /var/log/secure* files&lt;br /&gt;&lt;br /&gt;sudo awk 'gsub(".*sshd.*Failed password for (invalid user )?", "") {print $1}' /var/log/secure* | sort | uniq -c | sort -rn | head -10&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-1825660693015433999?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/1825660693015433999/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/10/checking-invalid-ssh-attempts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1825660693015433999'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1825660693015433999'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/10/checking-invalid-ssh-attempts.html' title='Checking invalid SSH attempts'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-2804584477420637599</id><published>2009-09-28T23:00:00.000-07:00</published><updated>2009-09-28T23:11:57.424-07:00</updated><title type='text'>Domain name resolutions using 'host' command in Linux</title><content type='html'>&lt;span style="font-weight: bold;"&gt;host - DNS lookup utility&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;host is a simple utility for performing DNS lookups. It is normally used to convert names to IP addresses and vice versa.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1.&lt;/span&gt; In this example we are asking host to give us the IP of www.askarali.org&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;host www.askarali.org&lt;br /&gt;www.askarali.org has address 202.125.140.141&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2.&lt;/span&gt; For more detailed output use -v or -d switch&lt;br /&gt;&lt;br /&gt;host -v askarali.org&lt;br /&gt;Trying "askarali.org"&lt;br /&gt;;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 58441 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2  ;; QUESTION SECTION: ;askarali.org.            IN    A  ;; ANSWER SECTION: askarali.org.        600    IN    A    202.125.140.141  ;; AUTHORITY SECTION: askarali.org.        600    IN    NS    dns00.beaconet.net. askarali.org.        600    IN    NS    dns01.beaconet.net.  ;; ADDITIONAL SECTION: dns00.beaconet.net.    85792    IN    A    202.125.140.139 dns01.beaconet.net.    85792    IN    A    202.125.140.138  Received 130 bytes from 203.99.163.189#53 in 174 ms Trying "askarali.org" ;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 5014 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0  ;; QUESTION SECTION: ;askarali.org.            IN    AAAA  ;; AUTHORITY SECTION: askarali.org.        600    IN    SOA    dns00.beaconet.net. postmaster.askarali.org. 200803202 28800 7200 2419200 86400  Received 95 bytes from 203.99.163.189#53 in 19 ms Trying "askarali.org" ;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 9732&lt;br /&gt;;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3&lt;br /&gt;&lt;br /&gt;;; QUESTION SECTION:&lt;br /&gt;;askarali.org.            IN    MX&lt;br /&gt;&lt;br /&gt;;; ANSWER SECTION:&lt;br /&gt;askarali.org.        600    IN    MX    10 smtp.askarali.org.&lt;br /&gt;&lt;br /&gt;;; AUTHORITY SECTION:&lt;br /&gt;askarali.org.        600    IN    NS    dns00.beaconet.net.&lt;br /&gt;askarali.org.        600    IN    NS    dns01.beaconet.net.&lt;br /&gt;&lt;br /&gt;;; ADDITIONAL SECTION:&lt;br /&gt;smtp.askarali.org.    600    IN    A    203.148.64.29&lt;br /&gt;dns00.beaconet.net.    85792    IN    A    202.125.140.139&lt;br /&gt;dns01.beaconet.net.    85792    IN    A    202.125.140.138&lt;br /&gt;&lt;br /&gt;Received 151 bytes from 203.99.163.189#53 in 12 ms&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3.&lt;/span&gt; For particular type of DNS record for example NS, MX, SOA, CNAME use the -t option. In the following example will search for name server (NS), mail exchanger (MX) and Start of Authority (SOA) for askarali.org&lt;br /&gt;&lt;br /&gt;host -t NS askarali.org&lt;br /&gt;askarali.org name server dns00.beaconet.net.&lt;br /&gt;askarali.org name server dns01.beaconet.net.&lt;br /&gt;&lt;br /&gt;host -t MX askarali.org&lt;br /&gt;askarali.org mail is handled by 10 smtp.askarali.org.&lt;br /&gt;&lt;br /&gt;host -t SOA askarali.org&lt;br /&gt;askarali.org has SOA record dns00.beaconet.net. postmaster.askarali.org. 200803202 28800 7200 2419200 86400&lt;br /&gt;&lt;br /&gt;For more information on host read the RTFM (man host)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-2804584477420637599?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/2804584477420637599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/domain-name-resolutions-using-host.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2804584477420637599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2804584477420637599'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/domain-name-resolutions-using-host.html' title='Domain name resolutions using &apos;host&apos; command in Linux'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-3520823020317855369</id><published>2009-09-27T21:37:00.000-07:00</published><updated>2009-09-27T22:15:26.515-07:00</updated><title type='text'></title><content type='html'>&lt;strong&gt;Installing NRPE in Solaris 10&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1. Install NRPE and dependencies using &lt;a href="http://www.blastwave.org"&gt;blastwave&lt;/a&gt; repository, if new to blastwave then follow the &lt;a href="http://www.blastwave.org/howto.html"&gt;howto&lt;/a&gt; use the repostory for installing third party and GNU tools in Solaris.&lt;br /&gt;&lt;br /&gt;/opt/csw/bin/pkgutil -i nrpe&lt;br /&gt;&lt;br /&gt;2. Download manifest files&lt;br /&gt;wget -P /tmp/ http://www.terdmonk.com/files/solaris/nagios/nrpe_smf.zip&lt;br /&gt;&lt;br /&gt;# cd /tmp&lt;br /&gt;# unzip nrpe_smf.zip&lt;br /&gt;# mv nrpe/manifest/nagios-nrpe.xml /var/svc/manifest/network&lt;br /&gt;# mv nrpe/method/nagios-nrpe /lib/svc/method/nagios-nrpe&lt;br /&gt;# svccfg import /var/svc/manifest/network/nagios-nrpe.xml&lt;br /&gt;&lt;br /&gt;3. Create nrpe.cfg file&lt;br /&gt;mv /opt/csw/etc/nrpe.cfg-sample /opt/csw/etc/nrpe.cfg&lt;br /&gt;&lt;br /&gt;4. Fixing permissions&lt;br /&gt;chown nagios:nagios /opt/csw/etc/nrpe.cfg&lt;br /&gt;chmod ug+x /lib/svc/method/nagios-nrpe&lt;br /&gt;&lt;br /&gt;5. Starting NRPE daemon&lt;br /&gt;# svcadm disable nrpe&lt;br /&gt;# svcadm enable nrpe&lt;br /&gt;&lt;br /&gt;That's all confirm that nrpe is running and listening on port 5666&lt;br /&gt;&lt;br /&gt;# svcs | grep nrpe&lt;br /&gt;online         May_29   svc:/network/nagios/nrpe:default&lt;br /&gt;&lt;br /&gt;# netstat -a | grep 5666&lt;br /&gt;      *.5666               *.*                0      0 49152      0 LISTEN&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-3520823020317855369?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/3520823020317855369/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/installing-nrpe-in-solaris-10-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3520823020317855369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3520823020317855369'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/installing-nrpe-in-solaris-10-1.html' title=''/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-7513347415886469307</id><published>2009-09-27T09:00:00.000-07:00</published><updated>2009-09-27T22:15:26.518-07:00</updated><title type='text'></title><content type='html'>&lt;strong&gt;Booting Linux Over HTTP&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Wow one now can boot Linux over HTTP with &lt;a href="http://boot.kernel.org/"&gt;BKO&lt;/a&gt;, sound very interesting project soon I'll give a try to it.&lt;br /&gt;All one need a machine and have to dowload a small bootable 56K program (pgxe) which take care of network connectivity. After downloading the pgxe have burn it to CD, or copy to USB stick.&lt;br /&gt;&lt;br /&gt;Linux Distributions supported or available to boot over HTTP..&lt;br /&gt;1. Debian : Debian live&lt;br /&gt;2. Ubuntu : 9.04&lt;br /&gt;3. Damm Small Linux : Lightweight linux distribution with GUI.&lt;br /&gt;4. Knoppix : Knoppix 5.0.1 English.&lt;br /&gt;5. Fedora 11 Live CD : Currently only single user mode is working. (Working on complete live CD)&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-7513347415886469307?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/7513347415886469307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/booting-linux-over-http-wow-one-now-can.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7513347415886469307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7513347415886469307'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/booting-linux-over-http-wow-one-now-can.html' title=''/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-6016989989841090176</id><published>2009-09-27T06:59:00.000-07:00</published><updated>2009-09-27T22:15:26.521-07:00</updated><title type='text'></title><content type='html'>&lt;strong&gt;Squid configurations examples&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Here are the collection of Squid Configurations contributed by me on  &lt;a href="http://wiki.squid-cache.org/"&gt;wiki-squid&lt;/a&gt; intended to demonstrate the flexibility of Squid. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;a href="http://www.askarali.org/squid_openldap.html"&gt;SquidAndOpenLDAP&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;In this example a squid installation will use LDAP to authenticate users before allowing them to surf the web. For security reasons users need to enter their username and password before they are allowed to surf the internet. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;a href="http://www.askarali.org/squid_mysql.html"&gt;SquidAndMysql&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;In this example a squid installation will use Mysql to authenticate users before allowing them to surf the web. For security reasons users need to enter their username and password before they are allowed to surf the internet. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;a href="http://www.askarali.org/squid_radius.html"&gt;SquidAndRADIUS&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;In this example a squid installation will use RADIUS "squid_radius_auth" Squid RADIUS authentication helper to authenticate users before allowing them to surf the web. For security reasons users need to enter their username and password before they are allowed to surf the internet. &lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-6016989989841090176?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/6016989989841090176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/squid-configurations-examples-here-are.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/6016989989841090176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/6016989989841090176'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/squid-configurations-examples-here-are.html' title=''/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-7744359304440890778</id><published>2009-09-27T06:51:00.000-07:00</published><updated>2009-09-27T22:15:26.525-07:00</updated><title type='text'></title><content type='html'>&lt;strong&gt;Installing Postfix in Solaris 10&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Solaris 10 like all other Unix/Linux comes with sendmail by default, however managing sendmail is difficult that's where &lt;a href="http://www.postfix.org"&gt;Postfix&lt;/a&gt; come into picture.&lt;br /&gt;Postfix is easier to install and configure in Solaris 10 &lt;a href="http://www.askarali.org/postfix_solaris10.html"&gt;this is how I did&lt;/a&gt; it a while back. &lt;br /&gt;Hope this will also help other fulks looking for installing Postfix in Solaris 10.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-7744359304440890778?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/7744359304440890778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/installing-postfix-in-solaris-10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7744359304440890778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7744359304440890778'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/installing-postfix-in-solaris-10.html' title=''/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-1458864001281697720</id><published>2009-09-16T02:03:00.000-07:00</published><updated>2009-09-17T00:12:39.856-07:00</updated><title type='text'>Securing the BIND using "Views"</title><content type='html'>BIND server is not without centain vulnerabilities, a bad guys can turn misconfigured bind into launching platform for DDOS attacks. Vandals can also take advantage of an insecure BIND configuration and poison the cache, thus permitting host impersonation and redirecting legitimate traffic to black holes or malicious hosts.&lt;br /&gt;&lt;br /&gt;Here you will learn how to secure BIND using views, the sample config is for &lt;span style="font-weight: bold;"&gt;cache only named server&lt;/span&gt; and can easily be modified and used for your primary DNS server which could be authorized for your company domain.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;strong&gt;named.conf&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;acl "trusted" {&lt;br /&gt;   // Place our internal and DMZ subnets in here so that&lt;br /&gt;   // intranet and DMZ clients may send DNS queries.  This&lt;br /&gt;   // also prevents outside hosts from using our name server&lt;br /&gt;   // as a resolver for other domains.&lt;br /&gt;   192.168.1.0/24 // Replace it with your network&lt;br /&gt;   localhost;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;logging {&lt;br /&gt;category lame-servers {null; };&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;options {&lt;br /&gt;directory "/var/named";&lt;br /&gt;dump-file "/var/named/data/cache_dump.db";&lt;br /&gt;     statistics-file "/var/named/data/named_stats.txt";&lt;br /&gt;/*&lt;br /&gt;* If there is a firewall between you and nameservers you want&lt;br /&gt;* to talk to, you might need to uncomment the query-source&lt;br /&gt;* directive below.  Previous versions of BIND always asked&lt;br /&gt;* questions using port 53, but BIND 8.1 uses an unprivileged&lt;br /&gt;* port by default.&lt;br /&gt;*/&lt;br /&gt;// query-source address * port 53;&lt;br /&gt; // Prevent DoS attacks by generating bogus zone transfer&lt;br /&gt; // requests.  This will result in slower updates to the&lt;br /&gt; // slave servers (e.g. they will await the poll interval&lt;br /&gt; // before checking for updates).&lt;br /&gt; notify no;&lt;br /&gt;&lt;br /&gt; // Generate more efficient zone transfers.  This will place&lt;br /&gt; // multiple DNS records in a DNS message, instead of one per&lt;br /&gt; // DNS message.&lt;br /&gt; transfer-format many-answers;&lt;br /&gt;&lt;br /&gt; // Set the maximum zone transfer time to something more&lt;br /&gt; // reasonable.  In this case, we state that any zone transfer&lt;br /&gt; // that takes longer than 60 minutes is unlikely to ever&lt;br /&gt; // complete.  WARNING:  If you have very large zone files,&lt;br /&gt; // adjust this to fit your requirements.&lt;br /&gt; max-transfer-time-in 60;&lt;br /&gt;&lt;br /&gt; // We have no dynamic interfaces, so BIND shouldn't need to&lt;br /&gt; // poll for interface state {UP|DOWN}.&lt;br /&gt; interface-interval 0;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;//&lt;br /&gt;// a caching only nameserver config&lt;br /&gt;//&lt;br /&gt;controls {&lt;br /&gt;inet 127.0.0.1 allow { localhost; } keys { rndckey; };&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;view "trusted" IN {&lt;br /&gt;// Our internal (trusted) view. We permit the internal networks&lt;br /&gt;// to freely access this view. We perform recursion for our&lt;br /&gt;// internal hosts, and retrieve data from the cache for them.&lt;br /&gt;match-clients { trusted; };&lt;br /&gt;recursion yes;&lt;br /&gt;additional-from-auth yes;&lt;br /&gt;additional-from-cache yes;&lt;br /&gt;// Link in our zones&lt;br /&gt;zone "." IN {&lt;br /&gt;     type hint;&lt;br /&gt;     file "named.ca";&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;zone "localdomain" IN {&lt;br /&gt;     type master;&lt;br /&gt;     file "localdomain.zone";&lt;br /&gt;     allow-update { none; };&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;zone "localhost" IN {&lt;br /&gt;     type master;&lt;br /&gt;     file "localhost.zone";&lt;br /&gt;     allow-update { none; };&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;zone "0.0.127.in-addr.arpa" IN {&lt;br /&gt;     type master;&lt;br /&gt;     file "named.local";&lt;br /&gt;     allow-update { none; };&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {&lt;br /&gt;     type master;&lt;br /&gt;     file "named.ip6.local";&lt;br /&gt;     allow-update { none; };&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;zone "255.in-addr.arpa" IN {&lt;br /&gt;     type master;&lt;br /&gt;     file "named.broadcast";&lt;br /&gt;     allow-update { none; };&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;zone "0.in-addr.arpa" IN {&lt;br /&gt;     type master;&lt;br /&gt;     file "named.zero";&lt;br /&gt;     allow-update { none; };&lt;br /&gt;};&lt;br /&gt;};&lt;br /&gt;view "badguys" IN {&lt;br /&gt;// Our external (untrusted) view. We permit any client to access&lt;br /&gt;// portions of this view. We do not perform recursion or cache&lt;br /&gt;// access for hosts using this view.&lt;br /&gt;match-clients {"any"; }; // all others hosts&lt;br /&gt;recursion no;&lt;br /&gt;additional-from-auth no;&lt;br /&gt;additional-from-cache no;&lt;br /&gt;&lt;br /&gt;// Link in our zones&lt;br /&gt;zone "." IN {&lt;br /&gt;type hint;&lt;br /&gt;file "named.ca";&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;zone "localdomain" IN {&lt;br /&gt;type master;&lt;br /&gt;file "localdomain.zone";&lt;br /&gt;allow-update { none; };&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;zone "localhost" IN {&lt;br /&gt;type master;&lt;br /&gt;file "localhost.zone";&lt;br /&gt;allow-update { none; };&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;zone "0.0.127.in-addr.arpa" IN {&lt;br /&gt;type master;&lt;br /&gt;file "named.local";&lt;br /&gt;allow-update { none; };&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {&lt;br /&gt;     type master;&lt;br /&gt;file "named.ip6.local";&lt;br /&gt;allow-update { none; };&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;zone "255.in-addr.arpa" IN {&lt;br /&gt;type master;&lt;br /&gt;file "named.broadcast";&lt;br /&gt;allow-update { none; };&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;zone "0.in-addr.arpa" IN {&lt;br /&gt;type master;&lt;br /&gt;file "named.zero";&lt;br /&gt;allow-update { none; };&lt;br /&gt;};&lt;br /&gt;};&lt;br /&gt;// Create a view for all clients perusing the CHAOS class.&lt;br /&gt;// We allow internal hosts to query our version number.&lt;br /&gt;// This is a good idea from a support point of view.&lt;br /&gt;view "external-chaos" chaos {&lt;br /&gt; match-clients { any; };&lt;br /&gt; recursion no;&lt;br /&gt;&lt;br /&gt;       zone "." {&lt;br /&gt;           type hint;&lt;br /&gt;           file "/dev/null";&lt;br /&gt;       };&lt;br /&gt;&lt;br /&gt;       zone "bind" {&lt;br /&gt;           type master;&lt;br /&gt;           file "db.bind";&lt;br /&gt;       };&lt;br /&gt;&lt;br /&gt;           allow-query {&lt;br /&gt;               trusted;&lt;br /&gt;           };&lt;br /&gt;           allow-transfer {&lt;br /&gt;               none;&lt;br /&gt;           };&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;include "/etc/rndc.key";&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;The db.bind zone file&lt;/h2&gt;  The db.bind zone file is used to track miscreants who attempt to query the CHAOS TXT records version.bind and authors.bind.  You can also use this zone file to change the strings returned by such queries.  Using the "version" directive in the options stanza will block the version.bind query, but it will not log such attempts. &lt;p&gt; &lt;tt&gt; ; @(#)db.bind v1.2 25 JAN 2001 Rob Thomas noc@cymru.com&lt;br /&gt;;&lt;br /&gt;$TTL    1D&lt;br /&gt;$ORIGIN bind.&lt;br /&gt;@       1D      CHAOS   SOA     localhost. root.localhost. (&lt;br /&gt;                2001013101      ; serial&lt;br /&gt;                3H              ; refresh&lt;br /&gt;                1H              ; retry&lt;br /&gt;                1W              ; expiry&lt;br /&gt;                1D )            ; minimum&lt;br /&gt;        CHAOS NS        localhost. &lt;/tt&gt;&lt;/p&gt;&lt;tt&gt;version.bind.   CHAOS  TXT "BIND 9.1.3+robhacks"&lt;br /&gt;authors.bind.   CHAOS  TXT "are better coders than I.  :)"&lt;br /&gt;&lt;br /&gt;&lt;/tt&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-1458864001281697720?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/1458864001281697720/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/securing-bind-using-views-bind-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1458864001281697720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1458864001281697720'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/securing-bind-using-views-bind-server.html' title='Securing the BIND using &quot;Views&quot;'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-6134795339838690741</id><published>2009-09-15T00:53:00.000-07:00</published><updated>2009-09-15T00:56:23.009-07:00</updated><title type='text'>Converting VMware image to VirtualBox</title><content type='html'>VirtualBox can run VMs created by VMware Workstation or Server for this you need to import vmdk files using the following procedure&lt;br /&gt;&lt;br /&gt;  * Start Virtual Box&lt;br /&gt;&lt;br /&gt;  * Goto File &gt; Virtual Disk Manager&lt;br /&gt;&lt;br /&gt;  * Click Add.  Locate and select the copied .vmdk file. Click OK.&lt;br /&gt;&lt;br /&gt;  * Create a New VM as usual using the added vmdk file&lt;br /&gt;&lt;br /&gt;  * Boot the VM&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-6134795339838690741?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/6134795339838690741/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/converting-vmware-image-to-virtualbox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/6134795339838690741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/6134795339838690741'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/converting-vmware-image-to-virtualbox.html' title='Converting VMware image to VirtualBox'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-7781057898446659616</id><published>2009-09-14T22:36:00.000-07:00</published><updated>2009-09-14T22:42:24.532-07:00</updated><title type='text'>OpenSolaris vs. Linux, For Linux Users</title><content type='html'>With Sun busy being swallowed up by Oracle, should Linux geeks pay any interest to OpenSolaris? TuxRadar put together a &lt;a href="http://www.tuxradar.com/content/opensolaris-vs-linux"&gt;guide to OpenSolaris's most interesting features&lt;/a&gt; from a Linux user's perspective, covering how to get started with ZFS and virtualisation alongside more consumer-friendly topics such as hardware and Flash support.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-7781057898446659616?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/7781057898446659616/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/with-sun-busy-being-swallowed-up-by.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7781057898446659616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7781057898446659616'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/with-sun-busy-being-swallowed-up-by.html' title='OpenSolaris vs. Linux, For Linux Users'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-5610589049713472573</id><published>2009-09-14T01:03:00.000-07:00</published><updated>2009-09-14T01:14:15.839-07:00</updated><title type='text'>Linux Tip/Tricks continue...</title><content type='html'>Command to search packages with duplicats sort them&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;rpm -qa --qf "%{name} %{epoch}:%{version} - %{arch}\n" | sort&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Creating thumbnails on the fly using ImageMagick&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;for img in *.jpg; do convert -resize 200 "$img" thumb_"$img";done&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Renaming all files in current directory to filename.orig - you should use quotes around $file if your filenames contain spaces&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;for file in *; do mv $file $file.orig; done&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Chop value to two decimal places using 'bc'&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;printf "%.2f\n" $(echo $'scale=2\n'"1.006"'+.005' | bc)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Finds all files over 20,000KB (roughly 20MB) in size and presents their names and size in a human readable&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OR&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;find / -type f -size +20M -exec ls -lh {} \;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Find some text in lot of files and then delete those files&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;grep -rls "PATTERN" . | tr '\n' '\0' | xargs -0 rm&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-5610589049713472573?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/5610589049713472573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/linux-tiptricks-continue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5610589049713472573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5610589049713472573'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/linux-tiptricks-continue.html' title='Linux Tip/Tricks continue...'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-5223567903660918240</id><published>2009-09-12T00:36:00.000-07:00</published><updated>2009-09-15T23:48:40.844-07:00</updated><title type='text'>Linux Tip/Tricks continue...</title><content type='html'>To print unique IPs from squid access.log and sort them&lt;br /&gt;&lt;blockquote&gt;awk '{print $3}' /var/log/squid/access.log.0 | sort -ut . -n -k 1,1 -k 2,2 -k 3,3 -k 4,4 | nl&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This one doesn't sort but gives uniq ips with line number.&lt;br /&gt;&lt;blockquote&gt;awk '{print $3}' /var/log/squid/access.log.0 | sort -u | nl&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;To put some text on every blank line&lt;br /&gt;&lt;blockquote&gt;sed 's/^/some text/' urls &gt; newfile&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;To kill the process&lt;br /&gt;&lt;blockquote&gt;ps -ef | grep xterm | awk '{print $2}' | xargs kill -9&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Check if the machine is live, useful for use in scripts.&lt;br /&gt;&lt;blockquote&gt;if ping -c 1 mydomain.com &gt;/dev/null 2&gt;&amp;1; then echo "live";else echo "dead";fi&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-5223567903660918240?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/5223567903660918240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/to-print-unique-ips-from-squid-access.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5223567903660918240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5223567903660918240'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/to-print-unique-ips-from-squid-access.html' title='Linux Tip/Tricks continue...'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-3851685361051452939</id><published>2009-09-11T00:08:00.000-07:00</published><updated>2009-09-15T23:49:38.129-07:00</updated><title type='text'>Linux Tip and Tricks continue...</title><content type='html'>Continuation with the day to day commands that I have compiled over the time.&lt;br /&gt;&lt;br /&gt;&lt;strong style="font-weight: normal;"&gt;Removing commented lines (starting with #) from a file&lt;/strong&gt;&lt;br /&gt;grep -v '^#' squid.conf &gt; squid.conf.new&lt;br /&gt;&lt;br /&gt;&lt;strong style="font-weight: normal;"&gt;To remove empty lines from a text file. I've been using sed with&lt;/strong&gt;&lt;br /&gt;sed '/^ *$/d' squid.conf.new &gt; squid.conf.nospace&lt;br /&gt;&lt;br /&gt;Do the same thing with sed in one line&lt;br /&gt;$ sed '/^#/d' squid.conf.default | sed /^$/d &gt; squid.conf.new&lt;br /&gt;&lt;br /&gt;To remove all commented lines &lt;strong style="font-weight: normal;"&gt;(starting with #) and blank lines from a file&lt;/strong&gt;&lt;br /&gt;sed -e '/^\(#\|$\)/ d' squid.conf.default &gt; squid.conf.new&lt;br /&gt;&lt;br /&gt;&lt;strong style="font-weight: normal;"&gt;Same thing using egrep&lt;/strong&gt;&lt;br /&gt;egrep -v '^(#|$)' squid.conf.default &gt; squid.conf.new&lt;br /&gt;&lt;br /&gt;OR&lt;br /&gt;grep '^[^#]' squid.conf &gt; squid.conf.new&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-3851685361051452939?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/3851685361051452939/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/continuation-with-day-to-day-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3851685361051452939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3851685361051452939'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/continuation-with-day-to-day-commands.html' title='Linux Tip and Tricks continue...'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-8112186220352639625</id><published>2009-09-10T10:35:00.000-07:00</published><updated>2009-09-15T23:50:00.000-07:00</updated><title type='text'>Hammad got admission in BCS</title><content type='html'>Hammad got admission in Mardan Univeristy BCS, he is now university going boy :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-8112186220352639625?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/8112186220352639625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/hammad-got-admission-in-mardan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/8112186220352639625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/8112186220352639625'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/hammad-got-admission-in-mardan.html' title='Hammad got admission in BCS'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-2691752802306838449</id><published>2009-09-10T10:22:00.000-07:00</published><updated>2009-09-11T02:08:34.339-07:00</updated><title type='text'></title><content type='html'>It was another cool day of Ramadan, nothing much at work (in this holy month working get bit slow).&lt;br /&gt;In the morning did a tape backup of AAA data, backup taking is already automated including backing up to external machine and restoring.&lt;br /&gt;Tomorrow there is a meeting call on the proposed expansion BRAS project in the CDDT building H9, Mr. Imtiaz (GM IP OPs MMBB Core) will chair the meeting.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-2691752802306838449?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/2691752802306838449/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/it-was-another-cool-day-of-ramadan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2691752802306838449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2691752802306838449'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/it-was-another-cool-day-of-ramadan.html' title=''/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-8534803533294069956</id><published>2009-09-09T10:43:00.000-07:00</published><updated>2009-09-15T23:51:07.579-07:00</updated><title type='text'>Reunion</title><content type='html'>Today after a long time I have contact one of my childhood friend Shamsul Qamar. We lived and grow up in Mirpurkhas Sugar Mills colony where both of our fathers were working.Its was very nice to talk to one childhood friend, it reminds the great and ever lasting memories of childhood.He is working in sugar industry like his father and lives with his family in Torro (Mardan), Shams promise to visit me during coming Eid and I am looking forward :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-8534803533294069956?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/8534803533294069956/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/today-after-long-time-i-have-contact.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/8534803533294069956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/8534803533294069956'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/today-after-long-time-i-have-contact.html' title='Reunion'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-1334988744310524524</id><published>2009-09-07T23:17:00.000-07:00</published><updated>2009-09-15T23:50:38.534-07:00</updated><title type='text'>Linux commands</title><content type='html'>Here are the series of commands bash tip/tricks which I have learn time to time while working.&lt;br /&gt;&lt;br /&gt;# To report oldest file in a directory&lt;br /&gt;ls -1rt | head -n1&lt;br /&gt;&lt;br /&gt;# To rename lot of files to different name&lt;br /&gt;for i in `find -type d`; do mv $i `basename $i (ska)`; done&lt;br /&gt;&lt;br /&gt;# Very handy while copying ssh public key to remote server, where one have to create .ssh directory, authorized file, keeping the permissions straight. &lt;blockquote&gt;mkdir .ssh --mode 700 ; touch .ssh/authorized_keys ; chmod 644 .ssh/authorized_keys&lt;/blockquote&gt;# Whats the quick way to remove .blah.com from mycomany.blah.com ?&lt;br /&gt;&lt;br /&gt;$str=~s/\.blah\.com//i&lt;br /&gt;&lt;br /&gt;# Finding files and then deleting them&lt;br /&gt;&lt;br /&gt;find /software/ftp/ -name '*.exe' -print0 | xargs -0 rm -f&lt;br /&gt;&lt;br /&gt;Or much better to use the -exec action:&lt;br /&gt;&lt;br /&gt;find /software/ftp/ -name '*.exe'  -exec rm {} \;&lt;br /&gt;&lt;br /&gt;# Extract url for path to Full version of last kernel for each branch&lt;br /&gt;&lt;br /&gt;wget -O /dev/stdout http://www.kernel.org/ 2&gt;/dev/null | grep "&gt;F&lt;"|head |awk -F "\"" '{ print $2 }'  # This version will download the kernels  wget -O /dev/stdout http://www.kernel.org/ 2&gt;/dev/null | grep "&gt;F&lt;"|head |awk -F "\"" '{ print $2 }'|while read line;do if [ -n "$line" ]; then wget -c "http://www.kernel.org$line";fi;done#&lt;br /&gt;&lt;br /&gt;#Find files that has been access +n days ago and then remove it.&lt;br /&gt;&lt;br /&gt;find . -mtime +180 -exec ls -lh {} \;&lt;br /&gt;find . -mtime +180 -exec rm -f {} \;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-1334988744310524524?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/1334988744310524524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/here-are-series-of-commands-bash.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1334988744310524524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/1334988744310524524'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/here-are-series-of-commands-bash.html' title='Linux commands'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-274356688929701056</id><published>2009-09-07T02:08:00.000-07:00</published><updated>2009-09-15T23:51:34.751-07:00</updated><title type='text'>Updating Nagios package</title><content type='html'>Today at last I have updated the Nagios package which was delayed from quit sometime.&lt;br /&gt;&lt;br /&gt;Updating was quite transparent, only the index.php page has been replaced. Actually instead of displaying the default Nagios index page I have changed it to display the "Host Group Summary" page to all using Nagios web UI.&lt;br /&gt;&lt;br /&gt;So all I have to do to change&lt;br /&gt;&lt;br /&gt;/usr/share/nagios/index.php (path might be different if installed from source)&lt;br /&gt;&lt;br /&gt;frame src="main.php" name="main" frameborder="0"&lt;br /&gt;&lt;br /&gt;To&lt;br /&gt;&lt;br /&gt;frame src="/nagios/cgi-bin/status.cgi?hostgroup=all&amp;amp;style=summary" name="main" frameborder="0"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-274356688929701056?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/274356688929701056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/today-at-last-i-have-updated-nagios.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/274356688929701056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/274356688929701056'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/today-at-last-i-have-updated-nagios.html' title='Updating Nagios package'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-3338226911861307331</id><published>2009-09-06T04:09:00.000-07:00</published><updated>2009-09-15T23:52:37.762-07:00</updated><title type='text'>Sunday is family day</title><content type='html'>Its Sunday so like every Sunday its family day. On Sunday night i usually watch movie but due to ramadan karim I am not watching movies.&lt;br /&gt;Yesterday i was watching news and then while checking email found an email from Pat (founder of Slackware, a oldest serviving Linux distro). Wow Pat and team released Slackware 13.0 in 2009-08-27.&lt;br /&gt;Its always nice to see Pat working hard and releasing the stable versions of slackware.&lt;br /&gt;Slackware is my favourite Linux distro, and i used it exclusively as my home and work desktop OS for almost 3 years.&lt;br /&gt;However due to work nature (need to work more) got switched to Fedora. Switching off from Slackware doesn't mean that I do not like it. I learn Linux with slackware, and I am still a proud slacker :)&lt;br /&gt;Well Fedora is bit easier to maitain and installing packages is also easy using YUM.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-3338226911861307331?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/3338226911861307331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/its-sunday-so-like-every-sunday-its.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3338226911861307331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3338226911861307331'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/its-sunday-so-like-every-sunday-its.html' title='Sunday is family day'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-7871132306416458793</id><published>2009-09-03T22:43:00.000-07:00</published><updated>2009-09-15T23:53:15.182-07:00</updated><title type='text'>Ayesha wake up in Peshmani</title><content type='html'>Today at the time of Peshmanay my daughter Ayesha wake up, normally she sleeping at that time while me and my wife talk our food. Well long story short then she wants us to play and listen to her :)&lt;br /&gt;It took another hour and half when she again went sleep.&lt;br /&gt;&lt;br /&gt;Ayesah is almost 11 month old now and she is getting very naughty and its very hard for both of us to keep and eye on her not just an eye but these age babies require a very close watch and i am thinking to monitor her via Nagios http://www.nagios.org :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-7871132306416458793?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/7871132306416458793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/today-at-time-of-peshmanay-my-daughter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7871132306416458793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/7871132306416458793'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/today-at-time-of-peshmanay-my-daughter.html' title='Ayesha wake up in Peshmani'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-6840510387879743123</id><published>2009-09-03T22:38:00.000-07:00</published><updated>2009-09-15T23:57:00.808-07:00</updated><title type='text'>Love Open Source</title><content type='html'>I love  open source, not because this community provide free and the best software but bcoz they way this community works. I wish one day all the evil IT empires will open source there fat ass softwares.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-6840510387879743123?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/6840510387879743123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/i-love-open-source-not-because-this.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/6840510387879743123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/6840510387879743123'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/i-love-open-source-not-because-this.html' title='Love Open Source'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-216521237235164238</id><published>2009-09-03T22:31:00.000-07:00</published><updated>2009-09-15T23:57:52.982-07:00</updated><title type='text'>Monitoring</title><content type='html'>You either fight fires all day, or build a flame resistant structure. Monitoring is the smoke detector. Notification is the alarm system. Fireman, or Fire Marshall - take your pick... &lt;br /&gt;&lt;br /&gt;If you are not monitoring, then you are not managing.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-216521237235164238?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/216521237235164238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/you-either-fight-fires-all-day-or-build.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/216521237235164238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/216521237235164238'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/you-either-fight-fires-all-day-or-build.html' title='Monitoring'/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-8572022660939165662</id><published>2009-09-02T00:31:00.000-07:00</published><updated>2009-09-16T00:02:17.339-07:00</updated><title type='text'></title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_w4ikZC0SkmQ/SrCNb6mf9aI/AAAAAAAAB4s/sO6ZQRoTyMA/s1600-h/06-09-09_1909.jpg"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://1.bp.blogspot.com/_w4ikZC0SkmQ/SrCNb6mf9aI/AAAAAAAAB4s/sO6ZQRoTyMA/s320/06-09-09_1909.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5381957065434461602" /&gt;&lt;/a&gt;&lt;br /&gt;I almost forget to talk about my daughter, whom is the centre of gravity these days. &lt;br /&gt;I wonders how smart she is getting day by day, while we (me and my wife) sit during the iftar she is the one to handle :)&lt;br /&gt;She tries to get her hands to each pot she see and if Ayesha got spoon in her hands then its drums all around.&lt;br /&gt;Ayesha mother wait till I come back from work so that she could start working in the kitchen and i could look after Ayesha.&lt;br /&gt;We father and daughter went out after the prayers of Asar. Ayesha loves going out (probably she got bored staying at home all day).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-8572022660939165662?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/8572022660939165662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/i-almost-forget-to-talk-about-my.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/8572022660939165662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/8572022660939165662'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/i-almost-forget-to-talk-about-my.html' title=''/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_w4ikZC0SkmQ/SrCNb6mf9aI/AAAAAAAAB4s/sO6ZQRoTyMA/s72-c/06-09-09_1909.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-3385970696580198027</id><published>2009-09-02T00:25:00.000-07:00</published><updated>2009-09-07T22:45:21.301-07:00</updated><title type='text'></title><content type='html'>Its the Holy month of Ramadan and during this month we fast. Tell you what I got too lazy coz of level of energy :)&lt;br /&gt;As Allah says this month is for me so we fast with devotion to get all out of the this holy month in term of recetation of Quran, praying 5 times (this we do the whole year), the prayers of travis.&lt;br /&gt;After the whole day of fasting its really a blessing when one Iftar, this is the real time to thanks Allah for all his givings. &lt;br /&gt;During the month of Ramadan one could realize for can imagine a bit the feelings of one who's hungry.&lt;br /&gt;This month is the month of brotherhood, love, devotion.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-3385970696580198027?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/3385970696580198027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/its-holy-month-of-ramadan-and-during.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3385970696580198027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3385970696580198027'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/09/its-holy-month-of-ramadan-and-during.html' title=''/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-3577159941749543163</id><published>2009-07-22T07:10:00.000-07:00</published><updated>2009-09-07T22:45:21.306-07:00</updated><title type='text'></title><content type='html'>Today nagios has been successfully integrated with gnokii SMS gateway. Now each work group will receive SMS notification in case of problem with any host/service in our infra.&lt;br /&gt;There is still plenty of work to do, for example need to add lot of devices/hosts monitoring.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-3577159941749543163?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/3577159941749543163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/07/today-nagios-has-been-successfully.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3577159941749543163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/3577159941749543163'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/07/today-nagios-has-been-successfully.html' title=''/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-5887317130861664130</id><published>2009-07-20T21:13:00.000-07:00</published><updated>2009-09-07T22:45:21.313-07:00</updated><title type='text'></title><content type='html'>After two hot summar days today weather is kinda pleasant and clouds are hanging on the sky hopes there will be some rain fall to turn the weather more pleasant.&lt;br /&gt;Today my two nephews Hammad &amp; Ahrar Khan's F.Sc result were announced and with the grace of Almighty Allah both passed the exams with bright colors.&lt;br /&gt;Ahrar have got 359 out of 550 in F.Sc Part 1 so he will sit in F.Sc Part II very soon.&lt;br /&gt;Hammad Khan have got 621 out of 1050 in F.Sc part II. &lt;br /&gt;Whole the family down in Mardan are very happy with the success of our kids :)&lt;br /&gt;Hammad Khan is interested to get admission in the BCS computer, hope he will got admission in some decent university.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-5887317130861664130?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/5887317130861664130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/07/after-two-hot-summar-days-today-weather.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5887317130861664130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/5887317130861664130'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/07/after-two-hot-summar-days-today-weather.html' title=''/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-9057511607650428426</id><published>2009-07-18T23:19:00.000-07:00</published><updated>2009-09-07T22:45:21.318-07:00</updated><title type='text'></title><content type='html'>Ayesha is sleeping so I have time to check my emails and slashdot. On Off day like sunday its all about Ayesha, me and my wife. We spend all time together sometime go outing/shopping.&lt;br /&gt;However as its too hot in here these days we prefer to spend time inside. &lt;br /&gt;Ayesha love to go out, (all the kids love to go outside :))&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-9057511607650428426?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/9057511607650428426/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/07/ayesha-is-sleeping-so-i-have-time-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/9057511607650428426'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/9057511607650428426'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/07/ayesha-is-sleeping-so-i-have-time-to.html' title=''/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5356450989645359839.post-2051817729331787725</id><published>2009-07-13T22:02:00.000-07:00</published><updated>2009-09-07T22:45:21.328-07:00</updated><title type='text'></title><content type='html'>Its working, my fault I was too quick to check my web blogs.&lt;br /&gt;Yesterday I have added few more hosts in nagios, most of them where Linux hosts.&lt;br /&gt;For SMS notifications from nagios I have to work on integrating nagios with our company SMS system. &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5356450989645359839-2051817729331787725?l=askaralikhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askaralikhan.blogspot.com/feeds/2051817729331787725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askaralikhan.blogspot.com/2009/07/its-working-my-fault-i-was-too-quick-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2051817729331787725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5356450989645359839/posts/default/2051817729331787725'/><link rel='alternate' type='text/html' href='http://askaralikhan.blogspot.com/2009/07/its-working-my-fault-i-was-too-quick-to.html' title=''/><author><name>Askar Ali Khan</name><uri>http://www.blogger.com/profile/05507996276162189936</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://1.bp.blogspot.com/-z3fxBLtLfuU/TWU4WqB7LUI/AAAAAAAACkA/clo0WXEdHnQ/s220/askar_wh.jpg'/></author><thr:total>0</thr:total></entry></feed>
