<?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-17222475</id><updated>2012-01-19T14:53:55.754+05:30</updated><category term='Red Hat Enterprise Linux'/><category term='co'/><category term='active directory'/><category term='proxy'/><category term='installation'/><category term='sms'/><category term='ISA 2004 xml password lost ISA 2006 migration'/><category term='HP openview'/><category term='Oracle 10g'/><category term='websphere Application server'/><category term='status'/><category term='rconnect reliance card linux pcmci dell d620 latitude'/><category term='fedora'/><category term='disk'/><category term='solaris 10.3 installation dell latitute 620'/><category term='Fix pack error'/><category term='lvm'/><category term='autocad'/><category term='service'/><category term='websphere startup linux init.d'/><category term='rhel'/><category term='ldap'/><category term='websphere Application server can&apos;t login troubleshooting'/><category term='tmg'/><category term='compare'/><category term='monitor'/><category term='rnl.log HP openview radia dell optiplex 755 sata image upload remote'/><category term='script'/><category term='VBScript active directory lookup mail outlook php upload'/><category term='vcd rip linux'/><category term='Oracle static dhcp rhel linux network detection'/><category term='csv'/><category term='cron'/><category term='ArcSDE 9.3'/><category term='kerberos'/><category term='user modification'/><category term='backup'/><category term='linux'/><category term='apache'/><category term='uninstall rpm linux red hat fedora'/><category term='anonymous user'/><category term='recovery'/><category term='vgextend lvm linux fails'/><category term='system'/><category term='sms gateway linux howto gsm modem'/><category term='pdf merge linux'/><category term='NetBackup Veritas HPUX'/><category term='64-bit'/><category term='mysql'/><category term='php'/><category term='apache kerberos windows 2003  AD authentication'/><category term='407:proxy authentication'/><category term='check'/><category term='subversion svn linux rhel fedora kerberos active directory permissions apache webdav'/><category term='WAS 6.0'/><category term='php script'/><category term='uninstallation'/><category term='bash'/><category term='RHEL5'/><category term='dbora oracle ora10g rhel linux startup script'/><category term='oracle'/><category term='OvEpMsgActSrv'/><category term='ad'/><category term='php script linux monitor server service status'/><category term='Red Hat Enterprise Linux 5'/><category term='perl ftp backup script'/><category term='active directory modifications'/><category term='dvd rip linux fedora'/><category term='Init script'/><category term='windows 2003 share permissions restore backup'/><category term='permissions'/><category term='network license error'/><category term='report'/><category term='DB2'/><category term='Oracle 10g installation RHEL4 AS x86_64 bit HP Blade BL 480c'/><category term='firefox google search extension language'/><category term='server'/><category term='rhel red hat enterprise linux update specific version'/><category term='tablespace'/><category term='batch rename file bash linux'/><category term='Websphere Portal'/><category term='utilization'/><category term='svn'/><category term='subversion'/><title type='text'>From the notes of a system administrator</title><subtitle type='html'>My Sysadmin notes and a few other topics</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>87</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-17222475.post-6918195920017910552</id><published>2012-01-19T14:53:00.002+05:30</published><updated>2012-01-19T14:53:55.763+05:30</updated><title type='text'>Compare list of files to identify files and directories</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Say xyz is a file with a list of files and directories. (The files and directories are all on the working system itself)&lt;br /&gt;You need to print only the directories amongst them.&lt;br /&gt;&lt;br /&gt;for i in `cat xyz`; do if [ -d $i ] ; then echo $i ;fi; done&lt;br /&gt;&lt;br /&gt;will print out only directories among them.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-6918195920017910552?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/6918195920017910552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=6918195920017910552' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/6918195920017910552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/6918195920017910552'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2012/01/compare-list-of-files-to-identify-files.html' title='Compare list of files to identify files and directories'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-4197135612999684949</id><published>2011-05-01T13:35:00.000+05:30</published><updated>2011-05-01T13:35:13.437+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='HP openview'/><category scheme='http://www.blogger.com/atom/ns#' term='OvEpMsgActSrv'/><title type='text'>Hp Openview Errors</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Last week, I had a few issues with bringing up the HP Openview Operations Manager. The snap-in wouldn't load .It just gave this error.&lt;br /&gt;&lt;br /&gt;"The Console is unable to connect to the server. Please make sure that all services including the database are up and running."&lt;br /&gt;&lt;br /&gt;Now on the services.msc in Windows, the database services and related services were all up and running. I could also connect to the db using the SQL studio. ( My DB is MS SQL 2005)&lt;br /&gt;&lt;br /&gt;Then i tried to run this &lt;br /&gt;C:\Program Files\HP\HP BTO Software\support\OVMigration\Binn\osql -E openview -S DBserverName\InstanceName&lt;br /&gt;&lt;br /&gt;That too showed that things were running fine.&lt;br /&gt;&lt;br /&gt;Next I tried running the command on the OVO server&lt;br /&gt;vpstat -8 &lt;br /&gt;&lt;br /&gt;It showed that all services except OvEpMsgActSrv was running fine.&lt;br /&gt;&lt;br /&gt;You can also use ovc  -status to check the services.&lt;br /&gt;&lt;br /&gt;Now this turned out to be failing due to a huge message queue file at this location.&lt;br /&gt;"&lt;install dir=""&gt;\Program Files\HP Openview\Data\Shared\tmp\queues"&lt;br /&gt;&lt;br /&gt;Once that was dumped, I restarted the services with&lt;br /&gt;vpstat -8 -r&lt;br /&gt;&lt;br /&gt;and things were fine again. This is how a good configuration should look. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;D:\HP\OM\support\OVMigration\Binn&amp;gt;osql.exe -E openview -s SERVERNAME\DBNAME&lt;br /&gt;1&amp;gt;&lt;br /&gt;2&amp;gt;&lt;br /&gt;3&amp;gt;&lt;br /&gt;4&amp;gt;&lt;br /&gt;5&amp;gt; quit&lt;br /&gt;&lt;br /&gt;D:\HP\OM\support\OVMigration\Binn&amp;gt;&lt;br /&gt;D:\HP\OM\support\OVMigration\Binn&amp;gt;ovc -status&lt;br /&gt;ovcd        OV Control                          CORE         (5624)   Running&lt;br /&gt;opcmsga     OVO Message Agent                   AGENT,EA     (2148)   Running&lt;br /&gt;opcmsgi     OVO Message Interceptor             AGENT,EA     (6480)   Running&lt;br /&gt;opcle       OVO Logfile Encapsulator            AGENT,EA     (428)    Running&lt;br /&gt;opcacta     OVO Action Agent                    AGENT,EA     (5580)   Running&lt;br /&gt;agtrep      OV Discovery Agent                  AGENT,AgtRep (5776)   Running&lt;br /&gt;coda        OV Performance Core                 COREXT       (6456)   Running&lt;br /&gt;opcmona     OVO Monitor Agent                   AGENT,EA     (6576)   Running&lt;br /&gt;ovconfd     OV Config and Deploy                COREXT       (9720)   Running&lt;br /&gt;opcwbemi    OVO WMI Interceptor                 AGENT,EA     (5572)   Running&lt;br /&gt;ovbbccb     OV Communication Broker             CORE         (4424)   Running&lt;br /&gt;ovcs        OV Certificate Server               SERVER       (1524)   Running&lt;br /&gt;ovtomcatB   OV Tomcat(B) Servlet Container      WEB          (6128)   Running&lt;br /&gt;&lt;br /&gt;D:\HP\OM\support\OVMigration\Binn&amp;gt;&lt;br /&gt;D:\HP\OM\support\OVMigration\Binn&amp;gt;vpstat -3&lt;br /&gt;============================================================&lt;br /&gt;running: D:\HP\OM\bin\vpstat.exe&lt;br /&gt;version: A.22.0.56.30 on SERVERNAME&lt;br /&gt;now:     Sun May 01 11:01:25 2011&lt;br /&gt;============================================================&lt;br /&gt;&lt;br /&gt;============================================================&lt;br /&gt;==================== Services Information ==================&lt;br /&gt;============================================================&lt;br /&gt;&lt;br /&gt;Configuration file: D:\HP\OM\data\conf\vpstat\vpstat.conf&lt;br /&gt;Ver: 0.8.10.074&lt;br /&gt;Date: Thu Jun 19 15:40:36 2008&lt;br /&gt;Remark: HP Operation Manager - Performance.&lt;br /&gt;&lt;br /&gt;Services on     : LOCAL MACHINE&lt;br /&gt;&lt;br /&gt;(NT Services) :&lt;br /&gt;&lt;br /&gt;OK: All services : SERVICE_ACTIVE&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;D:\HP\OM\support\OVMigration\Binn&amp;gt;vpstat -8&lt;br /&gt;============================================================&lt;br /&gt;running: D:\HP\OM\bin\vpstat.exe&lt;br /&gt;version: A.22.0.56.30 on UP-OVO01&lt;br /&gt;now:     Sun May 01 11:01:28 2011&lt;br /&gt;============================================================&lt;br /&gt;&lt;br /&gt;============================================================&lt;br /&gt;==================== Processes Information =================&lt;br /&gt;============================================================&lt;br /&gt;&lt;br /&gt;Configuration file: D:\HP\OM\data\conf\vpstat\vpstat.conf&lt;br /&gt;Ver: 0.8.10.074&lt;br /&gt;Date: Thu Jun 19 15:40:36 2008&lt;br /&gt;Remark: HP Operation Manager - Performance.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OK:ALL CRITICAL PROCESSES ARE RUNNING&lt;br /&gt;&lt;br /&gt;D:\HP\OM\support\OVMigration\Binn&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/install&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-4197135612999684949?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/4197135612999684949/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=4197135612999684949' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/4197135612999684949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/4197135612999684949'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2011/05/hp-openview-errors.html' title='Hp Openview Errors'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-139937283467971546</id><published>2011-04-14T14:30:00.000+05:30</published><updated>2011-04-14T14:30:36.137+05:30</updated><title type='text'>PIX and SMTP troubles</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Twice in our current environment, we've had to face issues with PIX interfering with very specific SMTP communications. The first time, one of our users could not receive a particular type of pdf attachments from one source. After a hell of troubleshooting, it finally turned out to be that PIX ESMTP filtering was the source of the problem.&lt;br /&gt;&lt;br /&gt;This time, there was another similar issue. Some domains with a big list of entries in the "ADDITIONAL SECTION" of the DNS response could not me sent emails. The error being&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="font-size: 11px; line-height: 14px;"&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td nowrap="nowrap" width="175"&gt;&lt;b&gt;Delivery Failure&lt;/b&gt;&lt;/td&gt;&lt;td nowrap="nowrap" width="275"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td nowrap="nowrap"&gt;Attempted Delivery to: Unknown&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;Error: 554 5.4.4 [internal] domain lookup failed&amp;nbsp;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="font-size: 11px; line-height: 14px;"&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td nowrap="nowrap"&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;This error though was not correct, since the DNS lookups were successful in the nslookup utility on the messaging gateway.&lt;br /&gt;&lt;br /&gt;Digging further in pointed to the issue being related to large DNS query responses which were being rejected by PIX DNS restrictions. DNS UDP Packets of size greater than 512 bytes were not allowed by PIX. So Once that was removed, things started working well.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="font-size: 11px; line-height: 14px;"&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td nowrap="nowrap" width="175"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td nowrap="nowrap" width="275"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td nowrap="nowrap"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td nowrap="nowrap"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-139937283467971546?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/139937283467971546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=139937283467971546' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/139937283467971546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/139937283467971546'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2011/04/pix-and-smtp-troubles.html' title='PIX and SMTP troubles'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-4101108914987871567</id><published>2010-10-25T17:19:00.000+05:30</published><updated>2010-10-25T17:19:16.957+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='autocad'/><category scheme='http://www.blogger.com/atom/ns#' term='network license error'/><title type='text'>Autocad network license manager error</title><content type='html'>I was having a tough time with the following error in many systems on a trusted domain within our network. The Autocad licensing server was on our domain and could be accessed without issues from the client desktop which was on the trusted domain, but AutoCAD wouldn't start. It just kept popping up this error&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;The network license manager was not able to get a valid license. If this  problem continues, please contact your system administrator. Error  [1.5.-18]&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;span style="color: black;"&gt;Turned out that, in the AutoCAD server license file, the server name provided was not accessible from the client desktop since it was not in a FQDN format. When the hosts file was modified to do the name mapping, it worked fine. I then created a host record in the trusted domain with the same name to point to the licensing server and it worked. &lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-4101108914987871567?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/4101108914987871567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=4101108914987871567' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/4101108914987871567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/4101108914987871567'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2010/10/autocad-network-license-manager-error.html' title='Autocad network license manager error'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-5773038628845437328</id><published>2010-09-01T13:16:00.001+05:30</published><updated>2010-09-01T13:16:53.565+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='407:proxy authentication'/><category scheme='http://www.blogger.com/atom/ns#' term='anonymous user'/><category scheme='http://www.blogger.com/atom/ns#' term='tmg'/><category scheme='http://www.blogger.com/atom/ns#' term='proxy'/><title type='text'>Anonymous users in proxy logs</title><content type='html'>Ever since we installed a new Microsoft TMG server for proxy authentication and web filtering, we've seen random users being denied access for no good reason. The rules have been set to allow access to these users and it works for most of the other users.&lt;br /&gt;&lt;br /&gt;The logs seem to show that the users, who are logged in as domain users still show up as anonymous accounts at the TMG server.&lt;br /&gt;&lt;br /&gt;In one such instance, this step fixed it.&lt;br /&gt;In IE-&gt; tools-&gt; Internet Options-&gt; Advanced-&gt; Security&lt;br /&gt;Toggle the "Enable integrated windows authentication."&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-5773038628845437328?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/5773038628845437328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=5773038628845437328' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/5773038628845437328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/5773038628845437328'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2010/09/anonymous-users-in-proxy-logs.html' title='Anonymous users in proxy logs'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-3695729446764248510</id><published>2010-08-05T14:13:00.002+05:30</published><updated>2010-08-05T14:13:20.961+05:30</updated><title type='text'>Kernel versions to RHEL versions mapping</title><content type='html'>2.6.18-53.el5 (RHEL5.1)&lt;br /&gt;2.6.18-92.el5 (RHEL5.2)&lt;br /&gt;2.6.18-128.el5 (RHEL5.3)&lt;br /&gt;2.6.18-164.el5 (RHEL5.4)&lt;br /&gt;2.6.18-194.el5 (RHEL 5.5)&lt;br /&gt;&lt;br /&gt;2.6.9-11.EL (RHEL4.1)&lt;br /&gt;2.6.9-42.EL (RHEL4.4)&lt;br /&gt;2.6.9-55.EL (RHEL4.5)&lt;br /&gt;2.6.9-67.EL (RHEL4.6)&lt;br /&gt;2.6.9-78-0.1.EL (RHEL4.7)&lt;br /&gt;2.6.9-89.EL(RHEL4.8)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-3695729446764248510?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/3695729446764248510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=3695729446764248510' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/3695729446764248510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/3695729446764248510'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2010/08/kernel-versions-to-rhel-versions.html' title='Kernel versions to RHEL versions mapping'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-5644082929046648858</id><published>2010-05-16T17:00:00.000+05:30</published><updated>2010-05-16T17:00:13.427+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='websphere Application server'/><category scheme='http://www.blogger.com/atom/ns#' term='Fix pack error'/><category scheme='http://www.blogger.com/atom/ns#' term='WAS 6.0'/><title type='text'>Update error on Websphere</title><content type='html'>I was trying to update a WAS 6.0 server on linux with &lt;br /&gt;6.0-WS-WAS-LinuxX32-RP0000002.pak&lt;br /&gt;&lt;br /&gt;It completed successfully. &lt;br /&gt;&lt;br /&gt;Then with the same IBM Update Installer for WebSphere package(6.0.2.0) I tried to apply the fix pack 6.0.2-WS-WAS-LinuxX32-FP00000013.pak to the server but it kept popping up the message&lt;br /&gt;&lt;br /&gt;"Unable to find IBM WebSphere Application Server at a version that is greater than or equal to 6.0.0.0 and less than or equal to 6.0.2.0.".&lt;br /&gt;&lt;br /&gt;The issue was that it had to be done with IBM Update Installer for WebSphere 6.0.2.7. So I moved the earlier updateinstaller directory to updateinstaller.old and then untarred the new version, moved the fixpack to the maintenance directory and ran updateInstaller and it worked.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-5644082929046648858?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/5644082929046648858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=5644082929046648858' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/5644082929046648858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/5644082929046648858'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2010/05/update-error-on-websphere.html' title='Update error on Websphere'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-9063917632165461768</id><published>2010-05-10T15:58:00.000+05:30</published><updated>2010-05-10T15:58:27.210+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='websphere Application server'/><category scheme='http://www.blogger.com/atom/ns#' term='uninstallation'/><title type='text'>Websphere uninstallation error</title><content type='html'>Often when we remove the /opt/IBM folder manually to remove a Websphere installation (for reinstalling) this error pops up during the second attempt&lt;br /&gt;&lt;br /&gt;Specify a different directory or perform a manual uninstall to remove all packages before reinstalling to the same directory&lt;br /&gt;&lt;br /&gt;This happens because the WAS installation is stored in more locations than just the /opt folder. To clean up the system after you accidentally remove the /opt folder,(kill all java processes first)&lt;br /&gt;&lt;br /&gt;1) rpm -qa  |grep WS&lt;br /&gt;and remove the rpms&lt;br /&gt;&lt;br /&gt;2)remove the ~/.WASRegistry file.&lt;br /&gt;&lt;br /&gt;3) remove vpd.properties.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-9063917632165461768?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/9063917632165461768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=9063917632165461768' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/9063917632165461768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/9063917632165461768'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2010/05/websphere-uninstallation-error.html' title='Websphere uninstallation error'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-584791214549016661</id><published>2010-02-24T15:24:00.006+05:30</published><updated>2011-08-14T13:19:45.307+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle 10g'/><category scheme='http://www.blogger.com/atom/ns#' term='utilization'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='check'/><category scheme='http://www.blogger.com/atom/ns#' term='tablespace'/><category scheme='http://www.blogger.com/atom/ns#' term='script'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Oracle Tablespace Check</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Here's a script that checks the tablespace utilization on a database, and sends a mail if it crosses a threshold&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;#!/bin/bash&lt;br /&gt;# Tablespace check script &lt;br /&gt;# Author: Nabeel Moidu&lt;br /&gt;# Website: nmkuttiady.blogspot.com&lt;br /&gt;# Set threshold here&lt;br /&gt;THRESHOLD=70&lt;br /&gt;# Set the Oracle user here&lt;br /&gt;ORACLE_USER=ora10g&lt;br /&gt;# Set the mail id of the DBA&lt;br /&gt;DBA="dba@organization.tld"&lt;br /&gt;&lt;br /&gt;# Get output of tablespace usage on the database&lt;br /&gt;su - $ORACLE_USER -c "sqlplus -s \"/ as sysdba\" &amp;lt; /backup/script/tablespace_usage.sql &amp;gt; /tmp/output.txt "&lt;/pre&gt;&lt;pre class="brush: bash"&gt;&lt;/pre&gt;&lt;pre class="brush: bash"&gt;&lt;/pre&gt;&lt;pre class="brush: bash"&gt;&lt;/pre&gt;&lt;pre class="brush: bash"&gt;&lt;/pre&gt;&lt;pre class="brush: bash"&gt;# Remove blank lines from file &lt;/pre&gt;&lt;pre class="brush: bash"&gt;cat /tmp/output.txt | grep -v ^$ | grep -v "no rows selected" &amp;gt; tablespaces.txt&lt;/pre&gt;&lt;pre class="brush: bash"&gt;# If no tablespace crosses threshold, the file will be empty. So send mail only if file not empty&lt;/pre&gt;&lt;pre class="brush: bash"&gt;&lt;/pre&gt;&lt;pre class="brush: bash"&gt;if test -s "tablespaces.txt"&lt;br /&gt;&lt;br /&gt;then&lt;br /&gt;&lt;br /&gt;        # Prepare the mail&lt;br /&gt;        echo "The following tablespaces have exceeded the 60 percent threshold" &amp;gt; mail.txt&lt;br /&gt;&lt;br /&gt;        #Send the mail with the hostname in subject&lt;br /&gt;        HOST=`hostname`&lt;br /&gt;        SUBJECT="Daily Tablespace Check - "$HOST&lt;br /&gt;        echo $SUBJECT&lt;br /&gt;        mail -s "$SUBJECT" $DBA &amp;lt; mail.txt&lt;br /&gt;&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;This is the SQL query to get the tablespace output  &lt;br /&gt;&lt;pre class="brush: sql"&gt;set pages 700&lt;br /&gt;set linesize 1000&lt;br /&gt;select t.tablespace_name,total_MB,round((total_MB-free_MB),2) used_MB, round(free_MB,2) free_MB,round(((total_MB-free_MB)/total_MB)*100,2) per_used,round((free_MB/total_MB)*100,2) per_free from (select tablespace_name,sum(bytes/1024/1024) free_MB from dba_free_space group by tablespace_name) f,(select tablespace_name,sum(bytes/1024/1024) total_MB from dba_data_files group by tablespace_name) t where f.tablespace_name(+)=t.tablespace_name order by 5;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-584791214549016661?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/584791214549016661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=584791214549016661' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/584791214549016661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/584791214549016661'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2010/02/oracle-tablespace-check.html' title='Oracle Tablespace Check'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-7014020249833138782</id><published>2010-01-26T16:47:00.016+05:30</published><updated>2010-01-27T15:28:53.481+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='VBScript active directory lookup mail outlook php upload'/><title type='text'>VBScript for Telephone Extension verification by users</title><content type='html'>This VBScript application identifies a logged on User, retrieves their login name, checks up their telephone number and asks them for a confirmation if its the correct number. If its wrong, it mails the corrected name and number to a particular user and also uploads it to a particular php script. I used this to migrate our users from Cisco Call Manager phone directory to an integrated Active Directory Address book.&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: vb"&gt;&lt;br /&gt;&lt;br /&gt;Dim objADSysInfo,strUser,objUser,inputPhone,strEngInfo,strEngMsg,strAraInfo,strAraMsg,Result&lt;br /&gt;Dim xmlhttp,httpURL,strDate,strMsg&lt;br /&gt;&lt;br /&gt;' Function to display the retrieved information to a user and accept his modification&lt;br /&gt;Function EnterExtension&lt;br /&gt;'Collect AD information from system where the application is executed&lt;br /&gt;Set objADSysInfo = CreateObject("ADSystemInfo")&lt;br /&gt;'Retrieve username of the logged in user&lt;br /&gt;strUser = objADSysInfo.UserName&lt;br /&gt;'Lookup LDAP for other properties of the user&lt;br /&gt;Set objUser = GetObject("LDAP://" &amp;amp; strUser)&lt;br /&gt;'Display the retrieved information to the user&lt;br /&gt;strEngInfo = "Your Name is " &amp;amp; objUser.CN &amp;amp; VbCrLf &amp;amp; VbCrLf &amp;amp; "Telephone Extension is " &amp;amp; objUser.ipPhone &amp;amp; "." &amp;amp; VbCrLf&lt;br /&gt;strEngMsg = " If this is incorrect, enter your extension (only the last four digits Eg. 5159) and click OK. Otherwise click Cancel"&lt;br /&gt;'Accept User's modified extension number&lt;br /&gt;inputPhone=InputBox( strEngInfo &amp;amp; VbCrLf &amp;amp; strEngMsg &amp;amp; VbCrLf &amp;amp; VbCrLf )&lt;br /&gt;&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;'Function to Process the extension number entered by the user&lt;br /&gt;Function ProcessExtension&lt;br /&gt;&lt;br /&gt;'Upload the modified number and useraccount to a php application which can process it&lt;br /&gt;httpURL = "http://servername.domain/TelExtension.php?UName=" + objUser.sAMAccountName + "&amp;amp;UExt=" + inputPhone&lt;br /&gt;Set xmlhttp = CreateObject("Microsoft.XMLHTTP")&lt;br /&gt;xmlhttp.Open "GET", httpURL, false&lt;br /&gt;xmlhttp.Send&lt;br /&gt;strDate = formatDateTime(Now(), vbLongDate)&lt;br /&gt;strMsg = "Your request will be processed by end of " &amp;amp; strDate&lt;br /&gt;MsgBox strMsg,64,"Information Systems Department"&lt;br /&gt;&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;'Function to trigger an email&lt;br /&gt;Function SendMail&lt;br /&gt;&lt;br /&gt;'Launch Outlook&lt;br /&gt; Set MyApp = CreateObject("Outlook.Application")&lt;br /&gt; Set MyItem = MyApp.CreateItem(0) 'olMailItem&lt;br /&gt; With MyItem&lt;br /&gt; .To = "admin@domain.tld"&lt;br /&gt;' Properly set subject so as to filter out mail at the mail client&lt;br /&gt; .Subject = "Request for Extension change :" + objUser.sAMAccountName + "," + inputPhone&lt;br /&gt; .ReadReceiptRequested = False&lt;br /&gt;' Compose body of the Email&lt;br /&gt; .HTMLBody = objUser.sAMAccountName + " was previously " + objUser.ipPhone + " and needs to be modified to " + inputPhone&lt;br /&gt;' Send the mail&lt;br /&gt; .Send&lt;br /&gt; End With&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;'Function to Check the validity of extension entered&lt;br /&gt;Function CheckExtension&lt;br /&gt;&lt;br /&gt;If IsEmpty(inputPhone) Then&lt;br /&gt;MsgBox strEngInfo &amp;amp; VbCrLf &amp;amp; "Thank You for your cooperation",64,"Information Systems Department"&lt;br /&gt;'This is expected if the user clicks Cancel, i.e. his extension in our records is correct. So Set Flag to 1&lt;br /&gt;Result=1&lt;br /&gt; If (inputPhone &gt; 4000 And inputPhone &lt; 4199) OR (inputPhone &gt; 5000 And inputPhone &lt; 5999) Then&lt;br /&gt;   ProcessExtension()&lt;br /&gt;   Result=1&lt;br /&gt;  Else&lt;br /&gt;   strMsg = "Please enter your extension again. Enter only the last four digits.For Eg. 5678 " &lt;br /&gt;   MsgBox strMsg,48,"UPDA Information Systems Department"&lt;br /&gt;   Result=0&lt;br /&gt;  End If&lt;br /&gt;   &lt;br /&gt; End If&lt;br /&gt;&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;' Main code Begins here&lt;br /&gt;&lt;br /&gt;Result=0&lt;br /&gt;&lt;br /&gt;'Run till the user enters a valid number or cancels &lt;br /&gt; Do While Result=0&lt;br /&gt;  EnterExtension()&lt;br /&gt;  CheckExtension()&lt;br /&gt; Loop &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-7014020249833138782?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/7014020249833138782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=7014020249833138782' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7014020249833138782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7014020249833138782'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2010/01/vbscript-for-telephone-extension.html' title='VBScript for Telephone Extension verification by users'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-846601187308484709</id><published>2010-01-14T16:21:00.002+05:30</published><updated>2010-01-27T15:29:37.799+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='csv'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='compare'/><category scheme='http://www.blogger.com/atom/ns#' term='co'/><category scheme='http://www.blogger.com/atom/ns#' term='php script'/><title type='text'>Compare data in two CSV files</title><content type='html'>[root@nabeelmoidu html]# cat compare.php&lt;br /&gt;&lt;pre class="brush: php"&gt; &lt;br /&gt; &lt;br /&gt;// Input of the format&lt;br /&gt;// field1 in file1 (eg, 2446)&lt;br /&gt;// field2,field1 in file2  (Nabeel, 2446)&lt;br /&gt; &lt;br /&gt;$filename='file1.csv';&lt;br /&gt;$handle = fopen("$filename", "r");&lt;br /&gt;$ctr=0;&lt;br /&gt; &lt;br /&gt;while (($read = fgetcsv($handle, 1000, ",")) !== FALSE){&lt;br /&gt;    $num[$ctr]= (int)$read[0];&lt;br /&gt;//    echo $num[$ctr]."&lt;br&gt;";&lt;br /&gt;        $ctr = $ctr + 1;&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;$filename1='file2.csv';&lt;br /&gt;$handle1 = fopen("$filename1", "r");&lt;br /&gt;$ctr1=0;&lt;br /&gt;     while (($rawname = fgetcsv($handle1, 1000, ",")) !== FALSE)&lt;br /&gt;{    $ext[$ctr1]= (int)$rawname[0];&lt;br /&gt;    $name[$ctr1]= $rawname[1];&lt;br /&gt;//    echo $ext[$ctr1]."&lt;br&gt;";&lt;br /&gt;       $ctr1 = $ctr1 + 1;&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;for ($n=0; $n &lt;= $ctr1; $n++) { $match[$n]=1; }&lt;br /&gt; &lt;br /&gt;for ($x=0; $x &lt;= $ctr; $x++)&lt;br /&gt;    {&lt;br /&gt;    for ($y=0; $y &lt;= $ctr1; $y++) {&lt;br /&gt;            if ($num[$x]==$ext[$y]){$match[$y]=0;}&lt;br /&gt;        else {};&lt;br /&gt;    }&lt;br /&gt;    }&lt;br /&gt; &lt;br /&gt;for ($y=0; $y &lt;= $ctr1; $y++) {&lt;br /&gt;                if ($match[$y])&lt;br /&gt;                        { echo $name[$y]." |  ".$ext[$y]."&lt;br&gt;";}&lt;br /&gt;                else {};&lt;br /&gt;    }&lt;br /&gt; &lt;br /&gt;fclose($handle);&lt;br /&gt;fclose($handle1);&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-846601187308484709?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/846601187308484709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=846601187308484709' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/846601187308484709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/846601187308484709'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2010/01/compare-data-in-two-csv-files.html' title='Compare data in two CSV files'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-3443011237301287831</id><published>2010-01-14T11:16:00.005+05:30</published><updated>2010-01-27T15:58:21.531+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='csv'/><category scheme='http://www.blogger.com/atom/ns#' term='ad'/><category scheme='http://www.blogger.com/atom/ns#' term='user modification'/><category scheme='http://www.blogger.com/atom/ns#' term='ldap'/><category scheme='http://www.blogger.com/atom/ns#' term='active directory modifications'/><category scheme='http://www.blogger.com/atom/ns#' term='script'/><category scheme='http://www.blogger.com/atom/ns#' term='php script linux monitor server service status'/><category scheme='http://www.blogger.com/atom/ns#' term='apache kerberos windows 2003  AD authentication'/><title type='text'>PHP scripts for LDAP modifications</title><content type='html'>[root@nabeelmoidu html]# cat ldap-search.php&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: php"&gt; &lt;br /&gt;// Open file handles for input and output file&lt;br /&gt;$ip_handle = fopen('input.csv', 'r');&lt;br /&gt;$op_handle = fopen('output.ldif','w');&lt;br /&gt; &lt;br /&gt;$server="xx.xx.xx.xx";//Enter DC ip here&lt;br /&gt;$basedn="DC=domain,DC=tld";&lt;br /&gt; &lt;br /&gt;//User to bind to the active directory to search for the users, can be any ordinary user&lt;br /&gt;$bindname="CN=binder,OU=Users,DC=domain,DC=tld";&lt;br /&gt; &lt;br /&gt;// Read from csv, with the comma , as the delimiter&lt;br /&gt;     while (($rawname = fgetcsv($ip_handle, 1000, ",")) !== FALSE)&lt;br /&gt;     {&lt;br /&gt;    $searchname=$rawname[1];  // First column is the useraccount&lt;br /&gt;    $extension=$rawname[2];   // Second column is the extension number&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;    $filter="sAMAccountName=".$searchname; // search filter set as per the first column&lt;br /&gt; &lt;br /&gt;        // Attempt to connect to the LDAP server&lt;br /&gt;    if (!($connect = ldap_connect($server))) { die ("Could not connect to LDAP server"); }&lt;br /&gt;         ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3);ldap_set_option($connect, LDAP_OPT_REFERRALS, 0);&lt;br /&gt; &lt;br /&gt;        // Test if the user can be bound to the LDAP&lt;br /&gt;        if (!($bind = ldap_bind($connect, $bindname, "passwd"))) { die ("Could not bind to $bindname"); }&lt;br /&gt; &lt;br /&gt;        // Search for the user&lt;br /&gt;        $result = ldap_search($connect, $basedn,$filter);&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;    if ($result) {&lt;br /&gt;            $info = ldap_get_entries($connect, $result);&lt;br /&gt;            for ($i=0; $i&lt;$info["count"]; $i++)&lt;br /&gt;            {&lt;br /&gt;                        // Retrieve user information from the result&lt;br /&gt;            $userdn = $info[$i]["dn"];&lt;br /&gt;                $usersamname = $info[$i]["samaccountname"][0];&lt;br /&gt;                $usertelno = $info[$i]["telephonenumber"][0];&lt;br /&gt;                $useript = $info[$i]["ipphone"][0];&lt;br /&gt; &lt;br /&gt;                // Echo output to screen and to file. If phone number exists, set changetype to modify, else to add&lt;br /&gt;        if ($usertelno) {&lt;br /&gt;            echo "&lt;br&gt;dn: ".$userdn."&lt;br&gt;changetype: modify&lt;br&gt;replace: telephonenumber&lt;br&gt;telephonenumber: ".$extension."&lt;br&gt;-&lt;br&gt;";&lt;br /&gt;            fwrite($op_handle, "\ndn: ".$userdn."\nchangetype: modify\nreplace: telephonenumber\ntelephonenumber: ".$extension."\n-\n");&lt;br /&gt;        }&lt;br /&gt;            else {&lt;br /&gt;            echo "&lt;br&gt;dn: ".$userdn."&lt;br&gt;changetype: modify&lt;br&gt;add: telephonenumber&lt;br&gt;telephonenumber: ".$extension."&lt;br&gt;-&lt;br&gt;";&lt;br /&gt;            fwrite($op_handle, "\ndn: ".$userdn."\nchangetype: modify\nadd: telephonenumber\ntelephonenumber: ".$extension."\n-\n");&lt;br /&gt;        }&lt;br /&gt; &lt;br /&gt;        if ($useript) {&lt;br /&gt;            echo "replace: ipPhone&lt;br&gt;ipPhone: ".$extension ;&lt;br /&gt;            fwrite($op_handle, "replace: ipPhone\nipPhone: ".$extension."\n" );&lt;br /&gt;            }&lt;br /&gt;        else {&lt;br /&gt;            fwrite($op_handle, "add: ipPhone\nipPhone: ".$extension."\n" );&lt;br /&gt;            echo "add: ipPhone&lt;br&gt;ipPhone: ".$extension ;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;        echo "&lt;br&gt;";&lt;br /&gt;    }&lt;br /&gt;    else {}&lt;br /&gt;    ldap_unbind($connect);&lt;br /&gt;}&lt;br /&gt;fclose($op_handle);&lt;br /&gt;fclose($ip_handle);&lt;br /&gt; &lt;br /&gt;// Output will be&lt;br /&gt; &lt;br /&gt;//dn: CN=Name1,OU=Department,OU=Users,DC=domain,DC=tld&lt;br /&gt;//changetype: modify&lt;br /&gt;//replace: telephonenumber&lt;br /&gt;//telephonenumber: 5266222&lt;br /&gt;//-&lt;br /&gt;//replace: ipPhone&lt;br /&gt;//ipPhone: 5266222&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The output file created by this script is then passed to ldapmodify to do the modifications&lt;br /&gt;[root@nabeelmoidu html]# ldapmodify -a -v -h dc.domain.tld -D "CN=Administrator,CN=Users,DC=domain,DC=tld" -W -f /var/www/html/output.ldif&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-3443011237301287831?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/3443011237301287831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=3443011237301287831' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/3443011237301287831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/3443011237301287831'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2010/01/php-scripts-for-ldap-modifications.html' title='PHP scripts for LDAP modifications'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-5555384788507388895</id><published>2010-01-03T12:31:00.005+05:30</published><updated>2010-01-31T00:11:23.786+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='disk'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='recovery'/><category scheme='http://www.blogger.com/atom/ns#' term='lvm'/><category scheme='http://www.blogger.com/atom/ns#' term='system'/><category scheme='http://www.blogger.com/atom/ns#' term='report'/><title type='text'>A system recovery report</title><content type='html'>A linux server was unable to boot up after someone powered it off during an unresponsive state. The boot process was getting stuck at this error :&lt;br /&gt;&lt;br /&gt;&lt;font style="color: rgb(255, 0, 0); font-style: italic;" size="2"&gt;REDHAT nash version 5.1.19.6 Starting&lt;br /&gt;Reading all volumes, This make take a while....&lt;br /&gt;Found volume "volgroup01" using metadata type lvm2&lt;br /&gt;VFS: can't find ext3 file system on dev dm-0&lt;br /&gt;Mount: error mounting /dev/root on /sysroot as ext3: invalid argument&lt;br /&gt;Setuproot: moving /DEV failed: no such file or directory&lt;br /&gt;Setuproot: error mounting /proc: no such file or directory&lt;br /&gt;Setuproot: error mounting /sys: no such file or directory&lt;br /&gt;Switchroot: mount failed: no such file or directory&lt;br /&gt;Kernel panic - not syncing attempted to kill init !&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;So I went into rescue mode by inserting the RHEL original DVD and entering&lt;br /&gt;linux rescue&lt;br /&gt;&lt;br /&gt;2) The system booted up on the DVD in rescue mode but failed to discover any existing installations.&lt;br /&gt;&lt;br /&gt;3) I then manually scanned and activated  logical volumes, but mounting the partitions on the logical volume with the /root partition failed. The other partition on the Logical Volume 2 was cleanly mountable without any errors.&lt;br /&gt;&lt;br /&gt;lvm pvscan&lt;br /&gt;lvm vgscan&lt;br /&gt;lvm vgchange -ay&lt;br /&gt;lvm lvscan&lt;br /&gt;&lt;br /&gt;mount /dev/mapper/Vol--storage-Vol00&lt;br /&gt;&lt;br /&gt;4) This pointed to an instance of corruption of partition information on the root partition of the system, thus rendering it unbootable.&lt;br /&gt;&lt;br /&gt;Corrective Actions&lt;br /&gt;1) As no existing backup was available during the time of this recovery, and since the data on the disk was in a totally inaccessible state, the only way ahead was to proceed with data recovery procedures.&lt;br /&gt;2) The partition table on the disk, since it was an ext3 journaling filesystem, was scanned for backup filesystem superblocks.&lt;br /&gt;&lt;br /&gt;dumpe2fs /dev/mapper/Vol--storage-Vol00  | grep superblock&lt;br /&gt;&lt;br /&gt;3) The listed backup superblocks were then passed on to the mount utility one by one till a noncorrupted superblock was found.&lt;br /&gt;&lt;br /&gt;e2fsck -f -b 32768 /dev/mapper/Vol--storage-Vol00&lt;br /&gt;&lt;br /&gt;4) The system was then mounted with this superblock and the partition data was corrected. The journaling was automatically converted to ext2 at this point to avoid conflicting superblocks.&lt;br /&gt;5) The system was rebooted at this point but failed when it attempted to read any actual data necessary for booting up on the /root partition .&lt;br /&gt;6) The system was again rebooted with the installation DVD into rescue mode and the partition was then scanned for filesystem errors. All diagnosed errors on the filesystem were fixed.&lt;br /&gt;7) The filesystem scan resulted in the entire existing filesystem to be moved to the 'lost+found' location as the top level file structure was lost though ALL data within it was intact.&lt;br /&gt;8) The data within the partition as available at this stage was then copied to the other empty partition on Logical Volume 2 as a backup before proceeding further.&lt;br /&gt;9) The top level directories had been renamed by the scan utility to '#294942343' like numerical names. Based on the files contained in each of these folders, the actual names of the folders were identified correctly (as later verified) and moved correspondingly.&lt;br /&gt;10) The entire top level file structure was thus recreated and verified with the fstab entries in the system. The permissions of all files were preserved intact throughout the procedures by using the corresponding options provided by the rsync utility.&lt;br /&gt;11) The partition was then re-journaled to return to an ext3 state.&lt;br /&gt;&lt;br /&gt;cd /lost+found&lt;br /&gt;tune2fs -j /dev/mapper/Vol--storage-Vol00&lt;br /&gt;&lt;br /&gt;12) The system then booted fine into a normal mode and all services configured at boot time started without errors.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-5555384788507388895?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/5555384788507388895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=5555384788507388895' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/5555384788507388895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/5555384788507388895'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2010/01/system-recovery-report.html' title='A system recovery report'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-1320494197357191091</id><published>2009-09-02T16:16:00.004+05:30</published><updated>2010-01-27T15:58:49.492+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='active directory'/><category scheme='http://www.blogger.com/atom/ns#' term='ad'/><category scheme='http://www.blogger.com/atom/ns#' term='permissions'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora'/><category scheme='http://www.blogger.com/atom/ns#' term='subversion'/><category scheme='http://www.blogger.com/atom/ns#' term='rhel'/><category scheme='http://www.blogger.com/atom/ns#' term='kerberos'/><category scheme='http://www.blogger.com/atom/ns#' term='subversion svn linux rhel fedora kerberos active directory permissions apache webdav'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><title type='text'>Subversion setup in AD environment</title><content type='html'>Setting up Subversion in an Windows 2003 Active Directory environment&lt;br /&gt;&lt;pre class="brush: bash"&gt; &lt;br /&gt; Install the following packages :&lt;br /&gt;&lt;br /&gt;subversion-1.4.2-4.el5_3.1&lt;br /&gt;mod_dav_svn-1.4.2-4.el5_3.1&lt;br /&gt;&lt;br /&gt; Create the repository&lt;br /&gt;&lt;br /&gt;mkdir /var/www/svn&lt;br /&gt;chown -R apache.apache /var/www/svn&lt;br /&gt;cd /var/www/svn&lt;br /&gt;svnadmin create SVN-REPO&lt;br /&gt; &lt;br /&gt;  Create a file structure for project initializations&lt;br /&gt;&lt;br /&gt;[root@isportal svn]# mkdir /opt/svn&lt;br /&gt;[root@isportal svn]# cd /opt/svn&lt;br /&gt;[root@isportal svn]# mkdir {branches,tags,trunks}&lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;      Import directory structure to the new project&lt;br /&gt;&lt;br /&gt;[root@isportal svn]# svn import /opt/svn/ file:///var/www/svn/SVN-REPO/Project1 -m "Initial import for first project"&lt;br /&gt;Adding         /opt/svn/branches&lt;br /&gt;Adding         /opt/svn/trunks&lt;br /&gt;Adding         /opt/svn/tags&lt;br /&gt; &lt;br /&gt;Committed revision 15.&lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;      Now the project can be viewed via an SVN client or firefox using http://servername/SVN-REPO/Project1 provided you have the access rights. Access permissions are provided in the /etc/httpd/conf.d/subversion.conf file as follows :&lt;br /&gt;&lt;br /&gt;&lt;Location /SVN-REPO&gt;&lt;br /&gt;   DAV svn&lt;br /&gt;   SVNPath /var/www/svn/SVN-REPO&lt;br /&gt;        AuthzSVNAccessFile /var/www/svn/accessfile&lt;br /&gt;        AuthType Kerberos&lt;br /&gt;        AuthName "Kerberos Login"&lt;br /&gt;        KrbAuthRealm DOMAIN.TLD&lt;br /&gt;        KrbVerifyKDC off&lt;br /&gt;        Require valid-user&lt;br /&gt; &lt;br /&gt;&lt;/Location&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;      Setup /etc/krb5.conf for kerberos authentication and define the svn access file as below:&lt;br /&gt;&lt;br /&gt;[groups]&lt;br /&gt;IT = user@DOMAIN.TLD, user2@DOMAIN.TLD&lt;br /&gt;QCSWrite = developer@DOMAIN.TLD&lt;br /&gt;&lt;br /&gt;[SVN-REPO:/Project1]&lt;br /&gt;@IT = r&lt;br /&gt;@QCSWrite = rw&lt;br /&gt;* =&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Here the IT group defined in the first section has read access to all repos, the nameWrite groups have read and write access, all others have no access.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      To create any new project, just import the directory structure as shown earlier with the new project name, and added a section in the above accessfile as per the requirements of the application team.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-1320494197357191091?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/1320494197357191091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=1320494197357191091' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/1320494197357191091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/1320494197357191091'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2009/09/subversion-setup-in-ad-environment.html' title='Subversion setup in AD environment'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-882731992656083405</id><published>2009-08-24T11:01:00.003+05:30</published><updated>2009-08-24T11:17:33.927+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows 2003 share permissions restore backup'/><title type='text'>Windows restore and Share permissions</title><content type='html'>I'd to recently do a tape restore of the D drive on one of our machines and the restore worked fine. But the shares were not enabled immediately. After a bit of reading, I figured out this nice thing that Windows stores the shares and security permissions here in the registry&lt;br /&gt;&lt;br /&gt;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares&lt;br /&gt;&lt;br /&gt;All you need to do is restart the server service.&lt;br /&gt;If you are in any case gonna reinstall the server, etc, you can backup this registry (done automatically if u do a system state backup) to a .reg fiel and restore once you're reinstalled the server.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-882731992656083405?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/882731992656083405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=882731992656083405' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/882731992656083405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/882731992656083405'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2009/08/windows-restore-and-share-permissions.html' title='Windows restore and Share permissions'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-2267134450726344987</id><published>2009-07-12T13:10:00.005+05:30</published><updated>2010-01-31T00:20:27.974+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle 10g'/><category scheme='http://www.blogger.com/atom/ns#' term='Red Hat Enterprise Linux 5'/><category scheme='http://www.blogger.com/atom/ns#' term='installation'/><category scheme='http://www.blogger.com/atom/ns#' term='ArcSDE 9.3'/><category scheme='http://www.blogger.com/atom/ns#' term='64-bit'/><title type='text'>Installing ArcSDE 9.3 64-bit on Red Hat Enterprise Linux 5</title><content type='html'>* Install Red Hat Enterprise Linux 5.0 with the following package groups:&lt;br /&gt;    &lt;code&gt;&lt;br /&gt;          * from Development group&lt;br /&gt;          + Development Tools package group&lt;br /&gt;          + Legacy Software Development package group&lt;br /&gt;          * from Base System group&lt;br /&gt;          + Legacy Software Support package group with compat-openldap from Optional Packages&lt;br /&gt;          + X Window System package group&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;  * Ensure 32-bit i386 versions of these softwares are installed:&lt;br /&gt;          &lt;code&gt;&lt;br /&gt;          o compat-libf2c-34&lt;br /&gt;          o compat-libstdc++-33&lt;br /&gt;          o compat-libstdc++-296&lt;br /&gt;          o libXp&lt;br /&gt;          o mesa-libGL&lt;br /&gt;          o mesa-libGLU&lt;br /&gt;          o openldap&lt;br /&gt;          o openssl&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@srvsde cdrom]#  rpm -qa  --queryformat %-{name}-%{version}-%{release}-%{arch}"\n" | grep ^compat | grep i386$ | sort&lt;br /&gt;compat-libf2c-34-3.4.6-4-i386&lt;br /&gt;compat-libstdc++-296-2.96-138-i386&lt;br /&gt;compat-libstdc++-33-3.2.3-61-i386&lt;br /&gt;compat-openldap-2.3.43_2.2.29-3.el5-i386&lt;br /&gt;[root@srvsde cdrom]#  rpm -qa  --queryformat %-{name}-%{version}-%{release}-%{arch}"\n" | grep ^mesa | grep i386$ | sort&lt;br /&gt;mesa-libGL-6.5.1-7.7.el5-i386&lt;br /&gt;mesa-libGLU-6.5.1-7.7.el5-i386&lt;br /&gt;[root@srvsde cdrom]#  rpm -qa  --queryformat %-{name}-%{version}-%{release}-%{arch}"\n" | grep ^libXp | grep i386$ | sort&lt;br /&gt;libXp-1.0.0-8.1.el5-i386&lt;br /&gt;[root@srvsde cdrom]#  rpm -qa  --queryformat %-{name}-%{version}-%{release}-%{arch}"\n" | grep ^open | grep 86$ | sort&lt;br /&gt;openldap-2.3.43-3.el5-i386&lt;br /&gt;openssl-0.9.8e-7.el5-i686&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   * Mount the installation cdrom into /mnt/cdrom&lt;br /&gt;&lt;br /&gt;[root@srvsde sde]# mount 172.31.32.120:/media/ESRI /mnt/cdrom/&lt;br /&gt;[root@srvsde sde]# ls /mnt/cdrom/&lt;br /&gt;Autorun.inf  ESRI.bmp  ESRI.exe  ESRI.ini  GDBDirectConnect  GDBDirectConnect_unix  hp  hpia  ibm  linux  Media  PDFs  quickstart.pdf  quickstart_unix.pdf  Readme.txt  sdk  solaris  windows  Xtras&lt;br /&gt;&lt;br /&gt;   * Create the sde user&lt;br /&gt;[root@srvsde ~]# useradd sde&lt;br /&gt;[root@srvsde ~]# passwd sde&lt;br /&gt;[root@srvsde ~]# useradd -G oinstall sde&lt;br /&gt;  &lt;br /&gt;   * Switch to sde user&lt;br /&gt;&lt;br /&gt;[root@srvsde cdrom]# su - sde&lt;br /&gt;[sde@srvsde ~]$ ls ESRI-linux/&lt;br /&gt;db2  documentation_server  install_db2.htm  install_oracle.htm  install_postgresql.htm  oracle10g  oracle11g  oracle9i  pg&lt;br /&gt;[sde@srvsde ESRI-linux]$ ls ESRI-linux/oracle10g/&lt;br /&gt;01.toc  02.tar  b5.nls  en.nls  install  ja.nls  jp.nls  ko.nls  th.nls  tw.nls  zh.nls&lt;br /&gt;&lt;br /&gt;   * Start the installation :&lt;br /&gt;[sde@srvsde oracle10g]$ ./install -load&lt;br /&gt;ESRI is willing to license the software to you only if you accept and agree to the enclosed license agreement. &lt;br /&gt;If you have read and agree with the terms in the enclosed license agreement type 'yes' to continue the installation process, if not press &lt;return&gt; or type 'no' to exit installation process. [no] yes&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Press &lt;return&gt; to take the default, '?' for help, '^' to return to &lt;br /&gt;the previous question, or 'q' to quit.&lt;br /&gt;&lt;br /&gt;Enter CD-ROM mount point: [/cdrom] /mnt/cdrom&lt;br /&gt;&lt;br /&gt;Select which product to load by entering the product number.&lt;br /&gt;&lt;br /&gt;   1 - /mnt/cdrom/hp/db2_64&lt;br /&gt;   2 - /mnt/cdrom/hp/informix&lt;br /&gt;   3 - /mnt/cdrom/hp/oracle10g_64&lt;br /&gt;   4 - /mnt/cdrom/hp/oracle9i_64&lt;br /&gt;   5 - /mnt/cdrom/hpia/oracle10g_64&lt;br /&gt;   6 - /mnt/cdrom/ibm/db2_64&lt;br /&gt;   7 - /mnt/cdrom/ibm/informix&lt;br /&gt;   8 - /mnt/cdrom/ibm/oracle10g_64&lt;br /&gt;   9 - /mnt/cdrom/ibm/oracle11g_64&lt;br /&gt;  10 - /mnt/cdrom/ibm/oracle9i_64&lt;br /&gt;  11 - /mnt/cdrom/linux/db2&lt;br /&gt;  12 - /mnt/cdrom/linux/oracle10g&lt;br /&gt;  13 - /mnt/cdrom/linux/oracle11g&lt;br /&gt;  14 - /mnt/cdrom/linux/oracle9i&lt;br /&gt;  15 - /mnt/cdrom/linux/pg/arcsde&lt;br /&gt;  16 - /mnt/cdrom/solaris/db2_64&lt;br /&gt;  17 - /mnt/cdrom/solaris/informix&lt;br /&gt;  18 - /mnt/cdrom/solaris/oracle10g_64&lt;br /&gt;  19 - /mnt/cdrom/solaris/oracle11g_64&lt;br /&gt;  20 - /mnt/cdrom/solaris/oracle9i_64&lt;br /&gt;&lt;br /&gt;Enter product number to load: [1] 12&lt;br /&gt;&lt;br /&gt;Enter pathname to install directory: [/home/sde/ESRI-linux/oracle10g] &lt;br /&gt;The pathname to the install directory must not contain any upper-case letters&lt;br /&gt;&lt;br /&gt;Enter pathname to install directory: [/home/sde/ESRI-linux/oracle10g] /home/sde/sdeexe9.3&lt;br /&gt;&lt;br /&gt;Directory does not exist: /home/sde/sdeexe9.3&lt;br /&gt;Would you like to create it? [yes] &lt;br /&gt;&lt;br /&gt;ArcSDE version 9.3 for Oracle10g - May 14, 2008  &lt;br /&gt;-------------------------------------------------&lt;br /&gt;&lt;br /&gt;ArcSDE Product&lt;br /&gt;Package numbers to load: [all] &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Package selection complete&lt;br /&gt;--------------------------&lt;br /&gt;&lt;br /&gt;You have chosen the following packages to be loaded&lt;br /&gt;&lt;br /&gt;ArcSDE Product&lt;br /&gt; ArcSDE Server                                         &lt;br /&gt;&lt;br /&gt;Is this correct? [yes] &lt;br /&gt;&lt;br /&gt;Total size of chosen packages in megabytes: 169.7&lt;br /&gt;Available space in megabytes: 4460.0&lt;br /&gt;&lt;br /&gt;List file names while loading? [no] yes&lt;br /&gt;&lt;br /&gt;Loading package(s), Please wait...&lt;br /&gt;&lt;br /&gt;Help/&lt;br /&gt;Help/accom_users.htm&lt;br /&gt;Help/accounts.png&lt;br /&gt;Help/add_new_svc.htm&lt;br /&gt;Help/add_server.png&lt;br /&gt;Help/add_soc.htm&lt;br /&gt;Help/add_soc_1.png&lt;br /&gt;Help/add_usrs_agsadmin.htm&lt;br /&gt;Help/add_usrs_agsusers.htm&lt;br /&gt;Help/agol_coordsys_extent.png&lt;br /&gt;&lt;br /&gt;------------SNIP--------------&lt;br /&gt;&lt;br /&gt;sdeexe93/lib/libpe.so&lt;br /&gt;sdeexe93/lib/libsg.so&lt;br /&gt;sdeexe93/lib/libsde.so&lt;br /&gt;sdeexe93/lib/libsdeora10gsrvr93.so&lt;br /&gt;sdeexe93/lib/libgsrvrora10g93.so&lt;br /&gt;sdeexe93/lib/libsdesetup.so&lt;br /&gt;sdeexe93/lib/liblocssa.so&lt;br /&gt;sdeexe93/lib/libst_shapelib.so&lt;br /&gt;&lt;br /&gt;Finished loading package(s)&lt;br /&gt;&lt;br /&gt;Exiting...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   * Uncomment&lt;br /&gt;      esri_sde      5151/tcp     # ArcSDE service on pinetree&lt;br /&gt;in $SDEHOME/etc/services.sde&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   * Copy the createsdeoracle.sql script to oracle home.&lt;br /&gt;[root@srvsde ~]# cp /home/sde/sdeexe9.3/sdeexe93/tools/oracle/createsdeoracle.sql /home/ora10g/&lt;br /&gt;&lt;br /&gt;   * Switch to Oracle user&lt;br /&gt;[root@srvsde ~]# su - ora10g&lt;br /&gt;&lt;br /&gt;   * Modify the createsdeoracle.sql file to replace the LOCATION variable in the line&lt;br /&gt;datafile '/LOCATION/sde.dbf' size 400M&lt;br /&gt;to&lt;br /&gt;datafile '/u03/oradata/SRVSDE/sde.dbf' size 400M&lt;br /&gt;&lt;br /&gt;   * Execute the script&lt;br /&gt;&lt;code oracle8&gt;&lt;br /&gt;[ora10g@srvsde ~]$ sqlplus "/ as sysdba" @createsdeoracle.sql&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 10.2.0.4.0 - Production on Thu Jul 2 09:47:13 2009&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production&lt;br /&gt;With the Partitioning, OLAP, Data Mining and Real Application Testing options&lt;br /&gt;&lt;br /&gt;* CREATESDEORACLE.SQL script         *&lt;br /&gt;*            *&lt;br /&gt;* Purpose:           *&lt;br /&gt;*            *&lt;br /&gt;* To create the SDE tablespace, the SDE Oracle user    *&lt;br /&gt;* and grant privileges to the SDE user       *&lt;br /&gt;*            *&lt;br /&gt;* NOTES: 1. Before running this script        *&lt;br /&gt;*     Replace the word LOCATION with the pathname for  *&lt;br /&gt;*     the sde.dbf datafile to be created.       *&lt;br /&gt;*            *&lt;br /&gt;*  2. If upgrading remove rem from the grants in the   *&lt;br /&gt;*     upgrade section         *&lt;br /&gt;*            *&lt;br /&gt;*  3. Please use the sys user to run this script.      *&lt;br /&gt;*     You will also need to the system password      *&lt;br /&gt;*            *&lt;br /&gt;*    Example:           *&lt;br /&gt;* % sqlplus "sys as sydba" @createsdeoracle.sql      *&lt;br /&gt;*            *&lt;br /&gt;*            *&lt;br /&gt;**************************************************************&lt;br /&gt;* Granting of permissions by the SYS user in Oracle, on two packages&lt;br /&gt;* to the public role.&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;* * * * * * * * * * * * * * *&lt;br /&gt;* ArcSDE NEW INSTALLATION   *&lt;br /&gt;* * * * * * * * * * * * * * *&lt;br /&gt;* Connect as system/&lt;password&gt; to create the sde&lt;br /&gt;* tablespace and user.&lt;br /&gt;Enter password: &lt;br /&gt;Connected.&lt;br /&gt;* Create the sde tablespace.&lt;br /&gt;* Before you run this script update LOCATION for the desired datafile pathname.&lt;br /&gt;&lt;br /&gt;Tablespace created.&lt;br /&gt;&lt;br /&gt;* Create the sde user&lt;br /&gt;* The password for the sde user is set to "XXX". You may&lt;br /&gt;* change this if you wish.&lt;br /&gt;&lt;br /&gt;User created.&lt;br /&gt;&lt;br /&gt;* Granting the required privileges to the sde user.&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;* SELECT ANY TABLE is required for compressing the database&lt;br /&gt;* This privilege needs to be granted whenever a compress is run.&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;* ADMINISTER DATABASE TRIGGER can be revoked after install&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;* * * * * * * * * * *&lt;br /&gt;* ArcSDE UPGRADE    *&lt;br /&gt;* * * * * * * * * * *&lt;br /&gt;* If upgrading please remove rem from each grant.&lt;br /&gt;* Granting the required privileges to the sde user.&lt;br /&gt;* After upgrading you may revoke the following privileges&lt;br /&gt;* Please remove rem from each grant.&lt;br /&gt;* Revoking the upgrade privileges to the sde user.&lt;br /&gt;Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production&lt;br /&gt;With the Partitioning, OLAP, Data Mining and Real Application Testing options&lt;br /&gt;[ora10g@srvsde ~]$ sqlplus "/ as sysdba"&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 10.2.0.4.0 - Production on Thu Jul 2 09:48:20 2009&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production&lt;br /&gt;With the Partitioning, OLAP, Data Mining and Real Application Testing options&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;br /&gt;SQL&gt; &lt;br /&gt;SQL&gt; &lt;br /&gt;SQL&gt; &lt;br /&gt;SQL&gt; GRANT EXECUTE ON dbms_pipe TO public;&lt;br /&gt;&lt;br /&gt;GRANT EXECUTE ON dbms_lock TO public;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;SQL&gt; SQL&gt; &lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;SQL&gt; exit&lt;br /&gt;Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production&lt;br /&gt;With the Partitioning, OLAP, Data Mining and Real Application Testing options&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    * Configure the .bash_profile in /home/sde&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@srvsde lib]# cat /home/sde/.bash_profile&lt;br /&gt;# .bash_profile&lt;br /&gt;&lt;br /&gt;# Get the aliases and functions&lt;br /&gt;if [ -f ~/.bashrc ]; then&lt;br /&gt; . ~/.bashrc&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# User specific environment and startup programs&lt;br /&gt;&lt;br /&gt;PATH=$PATH:$HOME/bin&lt;br /&gt;SDEHOME=/home/sde/sdeexe9.3/sdeexe93/&lt;br /&gt;export SDEHOME&lt;br /&gt;ORACLE_HOME=/oracle/product/10.2.0&lt;br /&gt;export ORACLE_HOME&lt;br /&gt;TNS_ADMIN=$ORACLE_HOME/network/admin&lt;br /&gt;export TNS_ADMIN&lt;br /&gt;ORACLE_SID=QNMPSDE&lt;br /&gt;export ORACLE_SID&lt;br /&gt;PATH=$PATH:$SDEHOME/bin:$ORACLE_HOME/bin&lt;br /&gt;export PATH&lt;br /&gt;LD_LIBRARY_PATH=$SDEHOME/lib:/usr/lib:/lib:$ORACLE_HOME/lib:$ORACLE_HOME/lib32&lt;br /&gt;export LD_LIBRARY_PATH&lt;br /&gt;unset USERNAME&lt;br /&gt;&lt;br /&gt;export PATH&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    * Execute the sdesetup script&lt;br /&gt;[sde@srvsde bin]$ ./sdesetup  -o install -d ORACLE10G -H /home/sde/sdeexe9.3/sdeexe93/ -u sde -p XXX -D qnmpsde -i esri_sde -l /home/sde/ECP666666666_v93.ecp &lt;br /&gt;&lt;br /&gt;ESRI ArcSDE Server Setup Utility Thu Jul  2 10:43:51 2009&lt;br /&gt;----------------------------------------------------------------&lt;br /&gt;Install or update ArcSDE, GDB schema objects: &lt;br /&gt;  Are you sure? (Y/N): y&lt;br /&gt;Creating ArcSde schema.....&lt;br /&gt;Successfully created ArcSde schema.&lt;br /&gt;&lt;br /&gt;Installing locators.....&lt;br /&gt;Successfully installed locators.&lt;br /&gt;&lt;br /&gt;Creating geodatabase schema.....&lt;br /&gt;Successfully created GDB schema.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Registering authorization key.....&lt;br /&gt;Successfully registered authorization key.&lt;br /&gt;&lt;br /&gt;Successfully installed ArcSDE components. &lt;br /&gt;Refer SDEHOME\etc\sde_setup.log for more details.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    * Start the sde service&lt;br /&gt;[sde@srvsde bin]$ sdemon -o start&lt;br /&gt;Please enter ArcSDE DBA password: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------&lt;br /&gt;ArcSDE 9.3  for Oracle10g Build 508 Thu Apr 17 12:23:18  2008&lt;br /&gt;-------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ST_Geometry Schema Owner: (SDE) Type Release: 1007&lt;br /&gt;&lt;br /&gt;Instance initialized for ((sde)) . . .&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connected to instance . . .&lt;br /&gt;&lt;br /&gt;DBMS Connection established...&lt;br /&gt;&lt;br /&gt;RDBMS:     "Oracle"&lt;br /&gt;Instance Name:    "esri_sde"&lt;br /&gt;&lt;br /&gt;IOMGR Process ID (PID):           13547 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ArcSDE Instance esri_sde started Thu Jul  2 11:05:33 2009&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-2267134450726344987?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/2267134450726344987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=2267134450726344987' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/2267134450726344987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/2267134450726344987'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2009/07/installing-arcsde-93-64-bit-on-red-hat.html' title='Installing ArcSDE 9.3 64-bit on Red Hat Enterprise Linux 5'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-8211151647631362095</id><published>2009-07-12T11:55:00.004+05:30</published><updated>2010-01-31T00:16:01.118+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='sms'/><category scheme='http://www.blogger.com/atom/ns#' term='cron'/><title type='text'>Schedule cron jobs to send sms on mobile</title><content type='html'>I've got a weekly shutdown for our Websphere servers for a Database backup. To keep an eye on the logs as the shutdown procedures happen, I've got this cron entry &lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;&lt;br /&gt;# Shut down Websphere Portal for Oracle backup every Thursday 12:05 midnight and start next morning 4:15 AM&lt;br /&gt;05 00 * * 5    /etc/init.d/websphere_portal stop 2&gt;&amp;1 &gt; /root/portal-stop.log; echo $HOSTNAME &gt;&gt; /root/portal-stop.log; tail -n 6 /root/portal-stop.log | mailx 'nabeel@smsserver.domain.tld'&lt;br /&gt;15 04 * * 5    /etc/init.d/websphere_portal start 2&gt;&amp;1 &gt; /root/portal-start.log; echo $HOSTNAME &gt;&gt; /root/portal-start.log; tail -n 6 /root/portal-start.log | mailx 'nabeel@smsserver.domain.tld'&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;So I get the last 6 lines in my mobile inbox as SMS&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-8211151647631362095?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/8211151647631362095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=8211151647631362095' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/8211151647631362095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/8211151647631362095'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2009/07/schedule-cron-jobs-to-send-sms-on.html' title='Schedule cron jobs to send sms on mobile'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-519995217994770843</id><published>2009-07-12T11:39:00.008+05:30</published><updated>2010-01-31T00:26:23.982+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='DB2'/><category scheme='http://www.blogger.com/atom/ns#' term='Red Hat Enterprise Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='RHEL5'/><category scheme='http://www.blogger.com/atom/ns#' term='Init script'/><category scheme='http://www.blogger.com/atom/ns#' term='dbora oracle ora10g rhel linux startup script'/><category scheme='http://www.blogger.com/atom/ns#' term='Websphere Portal'/><title type='text'>Init script for Websphere Portal/DB2 on linux</title><content type='html'>Copy the following script to /etc/init.d/webpshere_portal or some name. &lt;br /&gt;&lt;br /&gt;&lt;pre class="brush :bash"&gt;&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;# Websphere_portal  # Startup script for IBM WebSphere Portal Server&lt;br /&gt;#&lt;br /&gt;# chkconfig: - 99 15&lt;br /&gt;# description: Websphere Portal server startup&lt;br /&gt;# processname: websphere_portal&lt;br /&gt;# pidfile: /var/run/websphere_portal.pid&lt;br /&gt;# author: Nabeel Moidu nabeelmoidu.at.gmail dot com&lt;br /&gt;# Source function library.&lt;br /&gt;. /etc/rc.d/init.d/functions&lt;br /&gt;&lt;br /&gt;portal=/opt/IBM/PE/AppServer/profiles/wp_profile/bin&lt;br /&gt;args=WebSphere_Portal&lt;br /&gt;prog="WebSphere Portal Server"&lt;br /&gt;proc=/opt/IBM/WebSphere/AppServer/java/bin/java&lt;br /&gt;RETVAL=0&lt;br /&gt;username=portaluser&lt;br /&gt;password=password&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# verify installation&lt;br /&gt;if [ ! -x $portal ]; then&lt;br /&gt;echo "$prog is not installed"&lt;br /&gt;exit 0&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# source function library&lt;br /&gt;. /etc/rc.d/init.d/functions&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;case "$1" in&lt;br /&gt;start)&lt;br /&gt;&lt;br /&gt; # Websphere should come up only if DB2 is up.&lt;br /&gt; for (( ; ; ))&lt;br /&gt; do&lt;br /&gt;&lt;br /&gt; # Check status of DB2&lt;br /&gt; su - wpdb2ins -c 'db2gcf -s' | grep Available;&lt;br /&gt; PRC_EXT_STAT=$?;&lt;br /&gt;&lt;br /&gt; # If DB2 is available, then startup the portal&lt;br /&gt;&lt;br /&gt; if [ $PRC_EXT_STAT = "0" ]; then&lt;br /&gt;  echo -n "Starting $prog: "&lt;br /&gt;  &lt;br /&gt;  # Set ulimit&lt;br /&gt;  ulimit -n 1000000&lt;br /&gt;  &lt;br /&gt;  # setup environment variables&lt;br /&gt;  . /home/wpdb2ins/sqllib/db2profile&lt;br /&gt;  &lt;br /&gt;  # Bring up the portal&lt;br /&gt;  $portal/startServer.sh $args &lt;br /&gt;  RETVAL=$?&lt;br /&gt;  if [ $RETVAL = 0 ]; then&lt;br /&gt;   touch /var/lock/subsys/websphere_portal&lt;br /&gt;   echo_success&lt;br /&gt;  else&lt;br /&gt;   echo_failure&lt;br /&gt;  fi&lt;br /&gt;  break;&lt;br /&gt; # If DB2 is not up, then start DB2&lt;br /&gt; else&lt;br /&gt;  su - wpdb2ins -c 'db2start'&lt;br /&gt; fi&lt;br /&gt; done&lt;br /&gt;&lt;br /&gt; ;;&lt;br /&gt;stop)&lt;br /&gt; echo -n "Shutting down $prog: "&lt;br /&gt; $portal/stopServer.sh $args  -username $username -password $password &lt;br /&gt; RETVAL=$?&lt;br /&gt; if [ $RETVAL = 0 ]; then&lt;br /&gt;  rm -f /var/lock/subsys/websphere_portal&lt;br /&gt;  # Shut down DB2&lt;br /&gt;  su - wpdb2ins -c 'db2stop';&lt;br /&gt;  echo_success&lt;br /&gt; else&lt;br /&gt;  echo_failure&lt;br /&gt; fi&lt;br /&gt; echo&lt;br /&gt; ;;&lt;br /&gt;restart)&lt;br /&gt; $0 stop&lt;br /&gt; $0 start&lt;br /&gt; ;;&lt;br /&gt;status)&lt;br /&gt; status $proc&lt;br /&gt; ;;&lt;br /&gt;*)&lt;br /&gt; echo "Usage: websphered {start|stop|restart|status}"&lt;br /&gt; exit 1&lt;br /&gt;&lt;br /&gt;esac&lt;br /&gt;&lt;br /&gt;exit 0&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Then execute the following commands&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;chmod +x /etc/init.d/websphere_portal&lt;br /&gt;chkconfig --add /etc/init.d/websphere_portal&lt;br /&gt;chkconfig --level 345 websphere_portal on&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-519995217994770843?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/519995217994770843/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=519995217994770843' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/519995217994770843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/519995217994770843'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2009/07/init-script-for-websphere-portaldb2-on.html' title='Init script for Websphere Portal/DB2 on linux'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-2726567657210075899</id><published>2009-05-28T16:27:00.000+05:30</published><updated>2009-05-28T16:28:13.280+05:30</updated><title type='text'>SVN error</title><content type='html'>[root@up-subversion ~]# svn import NetBackup file:///test/ -m "test"&lt;br /&gt;svn: The log message is a pathname (was -F intended?); use '--force-log' to override&lt;br /&gt;&lt;br /&gt;Fix &lt;br /&gt;[root@up-subversion ~]# svn import NetBackup file:///test/ -m "test message"&lt;br /&gt;&lt;br /&gt;The message name was the same as the repo name and hence the error&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-2726567657210075899?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/2726567657210075899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=2726567657210075899' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/2726567657210075899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/2726567657210075899'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2009/05/svn-error.html' title='SVN error'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-7323081077900412409</id><published>2009-05-28T13:57:00.002+05:30</published><updated>2009-05-28T14:00:21.446+05:30</updated><title type='text'>Lotus Forms Error</title><content type='html'>One of the developers in our application team was deploying a forms app on a Websphere Portal and this error kept occuring&lt;br /&gt;&lt;br /&gt;[com/PureEdge/xfdl/FormNodeP]: java.lang.NoClassDefFoundError: com/PureEdge/xfdl/FormNodeP &lt;br /&gt;&lt;br /&gt;It turned out the Websphere Portal did not have the Shared Library LFS_API_LIB configured. Once I added it and restarted the Portal , it worked.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-7323081077900412409?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/7323081077900412409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=7323081077900412409' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7323081077900412409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7323081077900412409'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2009/05/lotus-forms-error.html' title='Lotus Forms Error'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-2007426364688926377</id><published>2009-05-20T16:28:00.001+05:30</published><updated>2009-05-20T16:29:46.608+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox google search extension language'/><title type='text'>Set language firefox google search</title><content type='html'>It annoys me often when my google searches via the default firefox google extension directs me to an arabic page. Here's how you fix it on linux (thanks to Colin Verot http://www.verot.net/google_language.htm ).&lt;br /&gt;&lt;br /&gt;Edit the file&lt;br /&gt;/usr/lib64/firefox-x.x.x/searchplugins/google.xml&lt;br /&gt;or&lt;br /&gt;/usr/lib/firefox-x.x.x/searchplugins/google.xml&lt;br /&gt;&lt;br /&gt;and add the line&lt;br /&gt; Param name="hl" value="en"&lt;br /&gt;&lt;br /&gt;Restart Firefox.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-2007426364688926377?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/2007426364688926377/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=2007426364688926377' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/2007426364688926377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/2007426364688926377'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2009/05/set-language-firefox-google-search.html' title='Set language firefox google search'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-7494134306771632290</id><published>2009-04-28T11:29:00.002+05:30</published><updated>2009-04-28T11:30:55.607+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='vgextend lvm linux fails'/><title type='text'>LVM Volume group extension fails</title><content type='html'>If it fails with a message about missing uuid, try&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;vgreduce --removemissing VolGroupName&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This removes the mising volumes in the group and we can proceed with the volume group extension&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-7494134306771632290?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/7494134306771632290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=7494134306771632290' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7494134306771632290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7494134306771632290'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2009/04/lvm-volume-group-extension-fails.html' title='LVM Volume group extension fails'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-5574273200170429147</id><published>2009-04-21T18:59:00.004+05:30</published><updated>2009-04-21T19:03:48.531+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='websphere Application server can&apos;t login troubleshooting'/><title type='text'>Disabling security for Websphere Application Server</title><content type='html'>Quite a few times I've got my WAS installations having their security settings corrupted thereby denying me login into the admin console.&lt;br /&gt;Here's how you disable security in such cases (of course you need to have root access to shell )&lt;br /&gt;&lt;br /&gt;vim /opt/IBM/PE/AppServer/profiles/profile_name/config/cells/instance_name/security.xml &lt;br /&gt;&lt;br /&gt;in the first line disable security&lt;br /&gt;&lt;br /&gt;useLocalSecurityServer="false"&lt;br /&gt;enabled="false"&lt;br /&gt;&lt;br /&gt;Now login with any name, troubleshoot the login issues and switch it back.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-5574273200170429147?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/5574273200170429147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=5574273200170429147' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/5574273200170429147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/5574273200170429147'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2009/04/disabling-security-for-websphere.html' title='Disabling security for Websphere Application Server'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-871348693043496383</id><published>2009-04-09T17:05:00.002+05:30</published><updated>2009-04-09T17:10:35.969+05:30</updated><title type='text'>ISA unable to access site</title><content type='html'>One of my friends couldn't access the birlasunlife.com website on IE 8 when passed through a proxy.&lt;br /&gt;It was working on firefox though. Looks like its a malformed url as mentioned here&lt;br /&gt;http://blogs.technet.com/yuridiogenes/archive/2008/10/09/error-64-from-the-field-to-the-classroom.aspx&lt;br /&gt;good article in there.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-871348693043496383?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/871348693043496383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=871348693043496383' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/871348693043496383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/871348693043496383'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2009/04/isa-unable-to-access-site.html' title='ISA unable to access site'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-576401516451063884</id><published>2009-01-25T15:36:00.003+05:30</published><updated>2009-01-25T15:43:13.587+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ISA 2004 xml password lost ISA 2006 migration'/><title type='text'>ISA 2006 and migration troubles</title><content type='html'>Our ISA 2004 server got screwed up and from my previous experience I'd found that setting up a new one and importing the settings is easier than troubleshooting one. So while my colleague worked on troubleshooting the existing one, I put up a new server with ISA 2006 ( a FORCED upgrade ;) )&lt;br /&gt;and tried importing the old settings to the new server. &lt;br /&gt;&lt;br /&gt;I'd exported the configuration of the ISA 2004 server to an xml file some time back so that came in handy today. But while importing, it prompted for a password. I don't remember ever providing a password for the exported xml. I tried my usual ones but it was all in vain. I tried deleting the password line in the xml file.It didn't work. Finally after going through some forums etc. I figured out that the best way was to export the config of the new ISA 2006 to a new file, open the new and old xml files in an xml editor and identify the Array and Enterprise sections. Copy over the two sections from the old config to the newly exported file. Save it and import the configurations from the new xml file. You should have all the settings and rules of the old server working.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-576401516451063884?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/576401516451063884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=576401516451063884' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/576401516451063884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/576401516451063884'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2009/01/isa-2006-and-migration-troubles.html' title='ISA 2006 and migration troubles'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-5183500692515102986</id><published>2009-01-21T17:11:00.004+05:30</published><updated>2010-02-10T13:20:51.890+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='backup'/><category scheme='http://www.blogger.com/atom/ns#' term='script'/><title type='text'>MySQL backup script</title><content type='html'>&lt;pre class="brush: bash"&gt;&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;# A simple shell script to backup all MySQL Server Database&lt;br /&gt;# Each dump will be line as follows:&lt;br /&gt;# Directory:  /var/lib/mysql/backup/mm-dd-yyyy&lt;br /&gt;# File: mysql-DBNAME.04-25-2008.gz&lt;br /&gt;# -------------------------------------------------------------------------&lt;br /&gt;NOW=$(date +"%m-%d-%Y") # mm-dd-yyyy format&lt;br /&gt;FILE="db-full-$NOW.tar.gz"&lt;br /&gt;BAK="/var/lib/mysql/backups/"&lt;br /&gt; &lt;br /&gt;### Server Setup ###&lt;br /&gt;#* MySQL login user name *#&lt;br /&gt;MUSER="user"&lt;br /&gt; &lt;br /&gt;#* MySQL login PASSWORD name *#&lt;br /&gt;MPASS="pass"&lt;br /&gt; &lt;br /&gt;#* MySQL binaries *#&lt;br /&gt;MYSQL="$(which mysql)"&lt;br /&gt;MYSQLDUMP="$(which mysqldump)"&lt;br /&gt;GZIP="$(which gzip)"&lt;br /&gt; &lt;br /&gt;# get all application related databases&lt;br /&gt;DBS="$($MYSQL -u $MUSER -p$MPASS -Bse 'show databases' | grep -v information_schema)"&lt;br /&gt;&lt;br /&gt;# create backups securely&lt;br /&gt;umask 006 &lt;br /&gt;&lt;br /&gt;# start to dump database one by one&lt;br /&gt;for db in $DBS&lt;br /&gt;do&lt;br /&gt; FILE=$BAK/mysql-$db.$NOW.gz&lt;br /&gt; # gzip compression for each backup file&lt;br /&gt; $MYSQLDUMP -u $MUSER -p$MPASS $db | $GZIP -9 &gt; $FILE&lt;br /&gt;done&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-5183500692515102986?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/5183500692515102986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=5183500692515102986' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/5183500692515102986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/5183500692515102986'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2009/01/mysql-backup-script.html' title='MySQL backup script'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-2305675926139522913</id><published>2009-01-21T17:01:00.004+05:30</published><updated>2010-02-10T13:16:32.324+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='websphere startup linux init.d'/><title type='text'>Websphere startup script for linux</title><content type='html'>Startup script for Websphere Application server on linux. Its got an added check for Oracle connectivity before the service is brought up.&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;# Websphered  # Startup script for IBM WebSphere Application Server&lt;br /&gt;#&lt;br /&gt;# chkconfig: - 99 15&lt;br /&gt;# description: IBM's J2EE application server&lt;br /&gt;# processname: websphered&lt;br /&gt;# pidfile: /var/run/websphered.pid&lt;br /&gt;&lt;br /&gt;# Source function library.&lt;br /&gt;. /etc/rc.d/init.d/functions&lt;br /&gt;&lt;br /&gt;websphered=/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin&lt;br /&gt;args=server1&lt;br /&gt;prog="WebSphere Application Server"&lt;br /&gt;proc=/opt/IBM/WebSphere/AppServer/java/bin/java&lt;br /&gt;RETVAL=0&lt;br /&gt;username=user&lt;br /&gt;password=password&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# verify installation&lt;br /&gt;if [ ! -x $websphered ]; then&lt;br /&gt;echo "$prog is not installed"&lt;br /&gt;exit 0&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# source function library&lt;br /&gt;. /etc/rc.d/init.d/functions&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;case "$1" in&lt;br /&gt;start)&lt;br /&gt;&lt;br /&gt; # Continous loop to check Oracle connectivity. Websphere should come up only if Oracle is up.&lt;br /&gt; for (( ; ; ))&lt;br /&gt; do&lt;br /&gt;&lt;br /&gt; # Check for Oracle connectivity&lt;br /&gt;&lt;br /&gt; su - oracle -c '/opt/Oracle/product/10.2.0/client_1/bin/tnsping database_name ' | grep OK;&lt;br /&gt; PRC_EXT_STAT=$?;&lt;br /&gt;&lt;br /&gt; # If Oracle is pingable, then startup WAS and break out of loop&lt;br /&gt;&lt;br /&gt; if [ $PRC_EXT_STAT = "0" ]; then&lt;br /&gt;  echo -n "Starting Websphere Application Server: "&lt;br /&gt;  $websphered/startServer.sh $args &lt;br /&gt;  RETVAL=$?&lt;br /&gt;  if [ $RETVAL = 0 ]; then&lt;br /&gt;   touch /var/lock/subsys/websphered&lt;br /&gt;   echo_success&lt;br /&gt;  else&lt;br /&gt;   echo_failure&lt;br /&gt;  fi&lt;br /&gt; #Break out of loop&lt;br /&gt; break;&lt;br /&gt; echo&lt;br /&gt; fi&lt;br /&gt; # Wait 30 seconds before checking again &lt;br /&gt; echo " Waiting for Oracle connectivity: "&lt;br /&gt; sleep 30&lt;br /&gt;&lt;br /&gt; done&lt;br /&gt;&lt;br /&gt; ;;&lt;br /&gt;stop)&lt;br /&gt; echo -n "Shutting down websphered: "&lt;br /&gt; $websphered/stopServer.sh $args  -username $username -password $password &lt;br /&gt; RETVAL=$?&lt;br /&gt; if [ $RETVAL = 0 ]; then&lt;br /&gt;  rm -f /var/lock/subsys/websphered&lt;br /&gt;  echo_success&lt;br /&gt; else&lt;br /&gt;  echo_failure&lt;br /&gt; fi&lt;br /&gt; echo&lt;br /&gt; ;;&lt;br /&gt;restart)&lt;br /&gt; $0 stop&lt;br /&gt; $0 start&lt;br /&gt; ;;&lt;br /&gt;status)&lt;br /&gt; status $proc&lt;br /&gt; ;;&lt;br /&gt;*)&lt;br /&gt; echo "Usage: websphered {start|stop|restart|status}"&lt;br /&gt; exit 1&lt;br /&gt;&lt;br /&gt;esac&lt;br /&gt;&lt;br /&gt;exit 0&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-2305675926139522913?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/2305675926139522913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=2305675926139522913' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/2305675926139522913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/2305675926139522913'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2009/01/websphere-startup-script-for-linux.html' title='Websphere startup script for linux'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-4023942618787098751</id><published>2008-11-19T14:37:00.001+05:30</published><updated>2008-11-19T14:38:25.154+05:30</updated><title type='text'>Uptime on Windows</title><content type='html'>If u need to know the uptime on windows,&lt;br /&gt;&lt;br /&gt;use either systeminfo (doesn't work on win2k)&lt;br /&gt;or &lt;br /&gt;net statistics server&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-4023942618787098751?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/4023942618787098751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=4023942618787098751' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/4023942618787098751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/4023942618787098751'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2008/11/uptime-on-windows.html' title='Uptime on Windows'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-8267278350776081547</id><published>2008-11-11T12:28:00.002+05:30</published><updated>2008-11-11T14:52:37.245+05:30</updated><title type='text'>Some useful shell tips</title><content type='html'>When in vi use :split for split view of two files, use Ctrl+W to toggle&lt;br /&gt;&lt;br /&gt;for rpm query of only names &lt;br /&gt; rpm -qa --queryformat='%{NAME} \n' | sort -n&lt;br /&gt;or using awk&lt;br /&gt; rpm -qa | awk -F"-[0-9]" '{ print $1}'&lt;br /&gt;&lt;br /&gt;for grep with highlight of matched word, &lt;br /&gt;grep --color word file&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-8267278350776081547?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/8267278350776081547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=8267278350776081547' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/8267278350776081547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/8267278350776081547'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2008/11/some-useful-shell-tips.html' title='Some useful shell tips'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-8575110135312202073</id><published>2008-08-11T14:29:00.003+05:30</published><updated>2010-01-31T00:14:32.037+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='service'/><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='monitor'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='status'/><category scheme='http://www.blogger.com/atom/ns#' term='script'/><title type='text'>PHP script to monitor servers.</title><content type='html'>&lt;pre class="brush: php"&gt;&lt;br /&gt;&amp;lt;title&amp;gt;Code&amp;lt;/title&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;title&amp;gt;Server Status&amp;lt;/title&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;center&amp;gt; &amp;lt;b&amp;gt;&amp;lt;font style=&amp;quot;&amp;quot; size=&amp;quot;5&amp;quot; face=&amp;quot;Times New Roman,Times,serif&amp;quot;&amp;gt; Servers - Status of critical services &amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;p&amp;gt;&amp;lt;font style=&amp;quot;&amp;quot; size=&amp;quot;2&amp;quot; face=&amp;quot;Verdana,Arial,Helvetica,sans-serif&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;b&amp;gt;Servers&amp;lt;/b&amp;gt; &amp;quot;;&lt;br /&gt;for( $j=0; $servicenames[$j]; $j++)&lt;br /&gt;   { echo &amp;quot;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt; &amp;lt;b&amp;gt; $servicenames[$j]&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt; &amp;quot;; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$serviceports_array = $ini_array['service_ports'];&lt;br /&gt;$serviceports = explode (&amp;quot;,&amp;quot;,$serviceports_array);&lt;br /&gt;sort($serviceports,SORT_NUMERIC);&lt;br /&gt;&lt;br /&gt;for($i=0;$hostnames[$i];$i++)&lt;br /&gt;{&lt;br /&gt;   $hostname = $hostnames[$i];&lt;br /&gt;   $port_array = $ini_array[$hostname];&lt;br /&gt;   $ports = explode (&amp;quot;,&amp;quot;,$port_array);&lt;br /&gt;       sort ($ports,SORT_NUMERIC);&lt;br /&gt;  &lt;br /&gt;   echo &amp;quot;    &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt; &amp;lt;b&amp;gt; $hostname &amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt; &amp;quot;;&lt;br /&gt;   for($m=0,$n=0;$serviceports[$m];$m++)&lt;br /&gt;   {    if ($serviceports[$m] == $ports[$n])&lt;br /&gt;       { disp_status($hostname,$ports[$n],'Y'); $n++;  &lt;br /&gt;       } else {&lt;br /&gt;        disp_status($hostname,$ports[$n],'N');}  &lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function disp_status($_hostname, $_port, $_status){&lt;br /&gt;&lt;br /&gt;   error_reporting(0);&lt;br /&gt;//    header(&amp;quot;Content-type: image/gif&amp;quot;);&lt;br /&gt;   if ($_status == 'Y')&lt;br /&gt;   {&lt;br /&gt;       $fp = fsockopen($_hostname, $_port);&lt;br /&gt;       if (!$fp)&lt;br /&gt;       { echo &amp;quot; &amp;lt;img src=&amp;quot;http://www.blogger.com/%27offline.png%27&amp;quot;&amp;gt;&amp;quot;;}&lt;br /&gt;        else&lt;br /&gt;       { echo &amp;quot; &amp;lt;img src=&amp;quot;http://www.blogger.com/%27online.png%27&amp;quot;&amp;gt;&amp;quot;;}&lt;br /&gt;       fclose($fp);&lt;br /&gt;   }&lt;br /&gt;   else&lt;br /&gt;       { echo &amp;quot; &amp;lt;img src=&amp;quot;http://www.blogger.com/%27NA.png%27&amp;quot;&amp;gt;&amp;quot;;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/font&amp;gt;&lt;br /&gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt; &amp;lt;b&amp;gt;KEY :     &amp;lt;img src=&amp;quot;http://www.blogger.com/%27offline.png%27&amp;quot;&amp;gt; OFFLINE          &amp;lt;img src=&amp;quot;http://www.blogger.com/%27online.png%27&amp;quot;&amp;gt; ONLINE        &amp;lt;img src=&amp;quot;http://www.blogger.com/%27NA.png%27&amp;quot;&amp;gt; NOT MONITORED &amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;b&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/b&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-8575110135312202073?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/8575110135312202073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=8575110135312202073' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/8575110135312202073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/8575110135312202073'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2008/08/php-script-to-monitor-servers.html' title='PHP script to monitor servers.'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-7867870932416255759</id><published>2008-08-06T12:39:00.002+05:30</published><updated>2010-02-10T13:18:51.275+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='dbora oracle ora10g rhel linux startup script'/><title type='text'>DBORA script for oracle startup in RHEL</title><content type='html'>&lt;pre class="brush: bash"&gt;&lt;br /&gt;&lt;br /&gt;[root@myserver ~]# cat /etc/init.d/dbora &lt;br /&gt;#!/bin/bash&lt;br /&gt;#&lt;br /&gt;# chkconfig: 345  60 50&lt;br /&gt;# description: Oracle auto start-stop script.&lt;br /&gt;&lt;br /&gt;# Modify the variables $ORA_HOME, $ORA_OWNER and $LOG as appropriate for each server.&lt;br /&gt;#          -  Nabeel Moidu&lt;br /&gt;&lt;br /&gt;# Source function library.&lt;br /&gt;. /etc/rc.d/init.d/functions&lt;br /&gt;# Source networking configuration.&lt;br /&gt;[ -r /etc/sysconfig/network ] &amp;&amp; . /etc/sysconfig/network&lt;br /&gt;&lt;br /&gt;# Modify the variables $ORA_HOME, $ORA_OWNER and $LOG as appropriate for each server.&lt;br /&gt;#          -  Nabeel Moidu&lt;br /&gt;ORA_HOME=/u01/oracle/product/10.2.0.1&lt;br /&gt;ORA_OWNER=ora10g&lt;br /&gt;LOG=$ORA_HOME/log/server/dbora/dbora.log&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if [ ! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME ] &lt;br /&gt;then&lt;br /&gt;   echo "Oracle startup: cannot start"&lt;br /&gt;   exit&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;case "$1" in&lt;br /&gt;    start)&lt;br /&gt;       echo "$0: starting up" &gt;&gt; $LOG&lt;br /&gt;       # Start the Oracle databases:&lt;br /&gt;       su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart &amp;" &gt;&gt; $LOG&lt;br /&gt;       # Start Oracle listener&lt;br /&gt;       date &gt;&gt; $LOG&lt;br /&gt;       su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start" &gt;&gt; $LOG 2&gt;&amp;1&lt;br /&gt;       touch /var/lock/subsys/dbora&lt;br /&gt;       echo "Refer to $LOG for details"&lt;br /&gt;        ;;&lt;br /&gt;     stop)&lt;br /&gt;        echo "$0: stopping down" &gt;&gt; $LOG&lt;br /&gt;        date &gt;&gt; $LOG&lt;br /&gt;        # Stop Oracle Net&lt;br /&gt;        su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop" &gt;&gt; $LOG 2&gt;&amp;1&lt;br /&gt;        # Stop the Oracle databases:&lt;br /&gt;        su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut &amp;" &gt;&gt; $LOG&lt;br /&gt;        rm -f /var/lock/subsys/dbora&lt;br /&gt;        ;;&lt;br /&gt;    restart)&lt;br /&gt;        $0 stop&lt;br /&gt;        sleep 120&lt;br /&gt;        $0 start&lt;br /&gt;        ;;&lt;br /&gt;    status)&lt;br /&gt;        if [ -f /var/lock/subsys/dbora ]; then&lt;br /&gt;            echo $0 started.&lt;br /&gt;            su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl status"  &lt;br /&gt;        else&lt;br /&gt;            echo $0 stopped.&lt;br /&gt;            su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl status"  &lt;br /&gt;        fi&lt;br /&gt;        ;;&lt;br /&gt;    *)&lt;br /&gt;        echo "usage: dbora {start|stop|restart|status}"&lt;br /&gt;        exit 1&lt;br /&gt;esac&lt;br /&gt;exit 0&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-7867870932416255759?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/7867870932416255759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=7867870932416255759' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7867870932416255759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7867870932416255759'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2008/08/dbora-script-for-oracle-startup-in-rhel.html' title='DBORA script for oracle startup in RHEL'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-9093625501294931422</id><published>2008-07-09T00:45:00.004+05:30</published><updated>2008-07-09T23:45:22.625+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='batch rename file bash linux'/><title type='text'>Bash script for renaming files en masse</title><content type='html'>&lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 146px; text-align: left;"&gt;&lt;br /&gt;#! /bin/bash&lt;br /&gt;x=0&lt;br /&gt;for i in `ls $1/*.$2`&lt;br /&gt;do&lt;br /&gt;mv $i `printf "%03x.$2" $x`&lt;br /&gt;x=$(($x+1))&lt;br /&gt;done&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Usage : (say call the script a.sh )&lt;br /&gt;./a.sh /var/www/html/images jpeg&lt;br /&gt;will sequentially rename all jpeg files in /var/www/html/images to 001.jpeg 002.jpeg etc.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-9093625501294931422?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/9093625501294931422/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=9093625501294931422' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/9093625501294931422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/9093625501294931422'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2008/07/bash-script-for-renaming-files-en-masse.html' title='Bash script for renaming files en masse'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-9069261393618289162</id><published>2008-06-25T17:24:00.003+05:30</published><updated>2008-07-09T12:27:16.017+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='rhel red hat enterprise linux update specific version'/><title type='text'>Updating RHEL to a specific version</title><content type='html'>&lt;h5&gt;&lt;a name="updating_rhel_to_a_specific_version" id="updating_rhel_to_a_specific_version"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/h5&gt; &lt;div class="level5"&gt;  &lt;p&gt;  1) Download the isos for the specific version from &lt;a href="https://rhn.redhat.com/rhn/software/downloads/SupportedISOs.do" class="urlextern" title="https://rhn.redhat.com/rhn/software/downloads/SupportedISOs.do" rel="nofollow"&gt;https://rhn.redhat.com/rhn/software/downloads/SupportedISOs.do&lt;/a&gt; using the &lt;acronym title="Urban Planning and Development Authority"&gt;rhn&lt;/acronym&gt; login. &lt;/p&gt;  &lt;p&gt; 2) Mount the CDs/DVD and copy the rpm packages in the RPMS folder in it to a particular folder like say /var/spool/RPMS/. &lt;/p&gt;  &lt;p&gt; 3) Open the file /etc/sysconfig/rhn/sources and comment the line &lt;/p&gt; &lt;pre class="code"&gt;   #up2date default&lt;/pre&gt;  &lt;p&gt;  Modify the line beginning ”# dir my-favorite-rpms ” &lt;/p&gt; &lt;pre class="code"&gt;   dir UPDATE-RPMS /var/spool/RPMS/&lt;/pre&gt;  &lt;p&gt;  Save the file and exit. &lt;/p&gt;  &lt;p&gt; 4) Run the following command  &lt;/p&gt; &lt;pre class="code"&gt;  [root@rhel ~]# up2date --configure&lt;br /&gt;0.  adminAddress       ['root@localhost', '']                                &lt;br /&gt;1.  debug              No                                                    &lt;br /&gt;==SNIPPED==                 &lt;br /&gt;19. pkgSkipList        ['kernel*', '']                                       &lt;br /&gt;20. pkgsToInstallNotUp ['kernel', 'kernel-modules', 'kernel-devel', '']      &lt;br /&gt;==SNIPPED==&lt;br /&gt;Enter number of item to edit &lt;return&gt;: &lt;/return&gt;&lt;/pre&gt;  &lt;p&gt;  Edit the pkgSkipList to include the kernel rpms for update. &lt;/p&gt;  &lt;p&gt; 5) Make sure the server is backed up in the current state ( A lot of softwares might not work after the update or might face reconfiguration etc, especially third party softwares ). Then run the command &lt;/p&gt; &lt;pre class="code"&gt;   [root@rhel ~]# up2date -u&lt;/pre&gt;  &lt;p&gt;  If all goes well the system will update to the version of the dvd we have put in the /var/spool/RPMS folder.  &lt;/p&gt;  &lt;p&gt; 6) Reboot the server for the new kernel to be loaded. To verify the update, run &lt;/p&gt; &lt;pre class="code"&gt;   [root@rhel ~]# cat /etc/redhat-release&lt;/pre&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-9069261393618289162?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/9069261393618289162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=9069261393618289162' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/9069261393618289162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/9069261393618289162'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2008/06/updating-rhel-to-specific-version_25.html' title='Updating RHEL to a specific version'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-7732219451314960945</id><published>2008-06-03T19:12:00.003+05:30</published><updated>2008-06-04T17:28:30.847+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='rnl.log HP openview radia dell optiplex 755 sata image upload remote'/><title type='text'>Remote boot upload image error HP RADIA Dell Optiplex 755</title><content type='html'>One of my colleagues was trying to upload a boot image of an xp install on a dell optiplex 755 using the HP OpenView configuration management tool (formerly radia) and it was showing up an error&lt;br /&gt;no BootDisk found (actually something like that)&lt;br /&gt;&lt;br /&gt;It's backend was (of course ;) ) linux so I tried switching the terminal and did an lsmod and tail of the /log/rnl.log file. An empty fdisk -l output confirmed it was a case of driver not being loaded for the sata.&lt;br /&gt;I changed the SATA Operation parameter in the BIOS to AHCI from ATA and it worked fine.&lt;br /&gt;&lt;br /&gt;UPDATE:&lt;br /&gt;This didn't solve the issue. It doesn't install using an image uploaded this way. HP later released a patch for this .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-7732219451314960945?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/7732219451314960945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=7732219451314960945' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7732219451314960945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7732219451314960945'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2008/06/remote-boot-upload-image-error-hp-radia.html' title='Remote boot upload image error HP RADIA Dell Optiplex 755'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-180917474876312587</id><published>2008-03-31T13:36:00.002+05:30</published><updated>2008-03-31T13:39:19.806+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='NetBackup Veritas HPUX'/><title type='text'>Veritas NBU Installation on HPUX</title><content type='html'>I was getting stuck at this message while trying to install a Veritas Net Backup Agent on an HPUX box.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Can't call method "info" on an undefined value at VxIF/4.2.2.12/VxIF/Installer.pm line 231&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Googling suggested that it was an issue with the hostname resolution. The hostname looked fine in /etc/hosts and /etc/rc.config.d/netconf but the script still gave errors. Finally I set the hostname using&lt;br /&gt;uname -S hostname&lt;br /&gt;and the thing worked :)&lt;b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-180917474876312587?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/180917474876312587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=180917474876312587' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/180917474876312587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/180917474876312587'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2008/03/veritas-nbu-installation-on-hpux.html' title='Veritas NBU Installation on HPUX'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-8800089280385751007</id><published>2008-02-05T11:13:00.000+05:30</published><updated>2008-02-05T11:20:12.717+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle static dhcp rhel linux network detection'/><title type='text'>Oracle and network detection</title><content type='html'>I recently had to do a rhel server setup for Oracle 10g. I'd configured static networking for the server but Oracle started complaining I had dhcp set for the NIC. I verified my network settings and tried again but it still kept complaining about the same. Finally I added an entry to the /etc/hosts file and Oracle was happy about it. I don't understand the logic in looking at the /etc/hosts file to determine whether the network configuration is static or dhcp. But anyhow "it works" :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-8800089280385751007?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/8800089280385751007/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=8800089280385751007' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/8800089280385751007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/8800089280385751007'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2008/02/oracle-and-network-detection.html' title='Oracle and network detection'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-1328408484828021925</id><published>2008-01-27T12:56:00.001+05:30</published><updated>2009-07-12T14:38:22.434+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle 10g installation RHEL4 AS x86_64 bit HP Blade BL 480c'/><title type='text'>Oracle 10g installation on RHEL4 AS x86_64 bit HP Blade BL 480c</title><content type='html'>Hardware:&lt;br /&gt;HP ProLiant BL480c G1, Intel Xeon E5345 (x86_64) 2 * Quad Core 2.33GHz&lt;br /&gt;Memory 8192 MB, Hard disk 440 GB - RAID 5 H/w array of 146.8 * 4 SAS disks&lt;br /&gt;&lt;br /&gt;Software:&lt;br /&gt;Operating System Red Hat Enterprise Linux 4 AS Update 6 x86_64 bit&lt;br /&gt;Kernel Version Linux 2.6.967.ELsmp #1 SMP x86_64 GNU/Linux&lt;br /&gt;Database Oracle 10g Release 2 Database&lt;br /&gt;&lt;br /&gt;Installation procedure:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Note: Many of the special notes and parameters are specific to this installation on this &lt;/span&gt;&lt;span style="font-style: italic;"&gt;hardware only. While installing other servers on a different type of hardware or different &lt;/span&gt;&lt;span style="font-style: italic;"&gt;versions of the OS or any software used, choose the values accordingly.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;1. Login as Administrator into iLO homepage. Choose the Integrated Remote Console option.( You'll need a Windows machine with IE for this)&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;Note: The RHEL Installation DVD needs to be connected to the server via the&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Virtual Media option and hence the other options in iLO via serial/web/java&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;based cannot be used for installation since they don't have this option.&lt;br /&gt;The other option is use the DVD ROM in the blade chassis. I'm lazy to go all the way to the data center for this . So I prefer the virtual media stuff ;)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;2. Boot from the RHEL 4 AS Update 6 x86_64bit DVD ROM&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;Note: The RHEL 4 versions prior to U 6 do not contain the drivers for the SAS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;disks and will not detect a hard disk on the server. The driver though can be&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;separately downloaded from the HP site and loaded from a floppy during the&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;installation.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;3. Choose “linux text” method of installation since the mouse doesn't work during the graphical installation on the HP BL480c blade servers. Proceed with default options till the partitioning stage is reached.&lt;br /&gt;&lt;br /&gt;4. Select to manually partition disk with Disk Druid and build the following disk&lt;br /&gt;configuration:&lt;br /&gt;/boot 100 MB&lt;br /&gt;/ 50 GB&lt;br /&gt;Ignore the swap warning and proceed.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Note: The rest of the partitions can be created on lvm &lt;/span&gt;&lt;span style="font-style: italic;"&gt; ONLY  &lt;/span&gt;&lt;span style="font-style: italic;"&gt;using the graphical &lt;/span&gt;&lt;span style="font-style: italic;"&gt;system-config-lvm tool once the installation is completed. The swap can be &lt;/span&gt;&lt;span style="font-style: italic;"&gt;configured on a logical volume so that in case of memory upgrades we can &lt;/span&gt;&lt;span style="font-style: italic;"&gt;easily increase the swap space accordingly. Its recommended to place the /boot partition on a non-lvm partition.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;5. Configure the IP Address and hostname , select the adapter to activate on boot.&lt;br /&gt;&lt;br /&gt;6. Select “customize the packages for installation” and choose the following :&lt;br /&gt;&lt;span style="font-style: italic;"&gt;a) X Window System&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;b) Gnome Desktop Environment&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;c) Editors&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;d) Graphical Internet&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;e) Text based Internet&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;f) Server configuration tools&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;g) Web Server&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;h) Windows File Server&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;i) FTP Server&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;j) Development tools&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;k) X software development&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;l) Legacy software development&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;m) Administration tools&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;n) System Tools&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Leave the default options unchanged for the remaining steps and proceed.&lt;br /&gt;&lt;br /&gt;7. Reboot the server once the package installation is complete and login as root.&lt;br /&gt;&lt;br /&gt;8. Create an LVM (8e) partition with the remaining space on the disk using fdisk.&lt;br /&gt;Issue the partprobe command so that the kernel reloads the new partition table.&lt;br /&gt;&lt;br /&gt;9. Create a Physical Volume on the new partition using&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[root@server1 ~]# pvcreate /dev/cciss/c0d0p5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Physical volume "/dev/cciss/c0d0p5" successfully created&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;10. Launch the system-config-lvm tool and create individual Logical Volumes on the newly created Physical Volume Vol0 with the sizes and mount points as below ( Set the mount points to be mounted only after reboot as we need to rsync the existing /tmp and /var directories before we move them to the newly created LVs ):&lt;br /&gt;/dev/mapper/Vol0-u01 20G /u01&lt;br /&gt;/dev/mapper/Vol0-u02 15G /u02&lt;br /&gt;/dev/mapper/Vol0-u03 20G /u03&lt;br /&gt;/dev/mapper/Vol0-u04 20G /u04&lt;br /&gt;/dev/mapper/Vol0-u05 40G /u05&lt;br /&gt;/dev/mapper/Vol0-u06 20G /u06&lt;br /&gt;/dev/mapper/Vol0-u07 25G /u07&lt;br /&gt;/dev/mapper/Vol0-u08 20G /u08&lt;br /&gt;/dev/mapper/Vol0-u10 20G /u10&lt;br /&gt;/dev/mapper/Vol0-backup 79G /backup&lt;br /&gt;/dev/mapper/Vol0-archive 40G /archive&lt;br /&gt;/dev/mapper/Vol0-tmp 9.9G /tmp&lt;br /&gt;/dev/mapper/Vol0-var 15G /var&lt;br /&gt;/dev/mapper/Vol0-swap 16 GB&lt;br /&gt;&lt;br /&gt;11. Exit the system-config-lvm tool.&lt;br /&gt;&lt;br /&gt;12. Prepare the /dev/Vol0/swap partition for swap.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[root@server1 ~] mkswap /dev/Vol0/swap&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[root@server1 ~] swapon /dev/Vol0/swap&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;13. Move the /var and /tmp directories to LVs so that in case they get filled up due to any unexpected reasons, the system and the root ( “/” ) partition is not affected and so that in case they need to be expanded later on, it can be done easily. Create two temporary folders in /tmp for mounting the LVs var and tmp&lt;br /&gt;temporarily. rsync the existing var and tmp directories to the corresponding LVs.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[root@server1 ~]mkdir /tmp/{var,tmp}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[root@server1 ~]mount /dev/mapper/Vol0-tmp /tmp/tmp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[root@server1 ~]mount /dev/mapper/Vol0-var /tmp/var&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[root@server1 ~]rsync -av /var /tmp/var&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[root@server1 ~]rsync -av /tmp /tmp/tmp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[root@server1 ~]&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;14. Add entries to /etc/fstab for all the newly created LVs.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/dev/Vol0/swap swap swap defaults 0 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/dev/Vol0/u01 /u01 ext3 defaults 1 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/dev/Vol0/u02 /u02 ext3 defaults 1 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/dev/Vol0/u03 /u03 ext3 defaults 1 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/dev/Vol0/u04 /u04 ext3 defaults 1 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/dev/Vol0/u05 /u05 ext3 defaults 1 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/dev/Vol0/u06 /u06 ext3 defaults 1 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/dev/Vol0/u07 /u07 ext3 defaults 1 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/dev/Vol0/u08 /u08 ext3 defaults 1 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/dev/Vol0/u10 /u10 ext3 defaults 1 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/dev/Vol0/backup /backup ext3 defaults 1 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/dev/Vol0/archive /archive ext3 defaults 1 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/dev/Vol0/tmp /tmp ext3 defaults 1 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/dev/Vol0/var /var ext3 defaults 1 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;15. Reboot system and login as root. Ensure all the filesystems have been mounted.&lt;br /&gt;&lt;br /&gt;16. Make sure the following packages do not exist so that there's no package conflict with the oracle prerequisites.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;a) Ksh2004022912&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;b) Ipw2200firmware2.03&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;c) Ipw2100firmware1.31&lt;/span&gt;&lt;br /&gt;Use the command #rpm –e &lt;package name=""&gt; to remove the packages.&lt;br /&gt;&lt;br /&gt;17. Make sure the following packages (or later versions if available) are available and install/upgrade if necessary. The packages can be installed/upgraded either by manually downloading the rpm packages from RHN with subscription account.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;kernel-2.6.9-42.0.3.EL&lt;br /&gt;libstdc++-3.4.6-3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;kernel-smp-2.6.9-42.0.3.EL&lt;br /&gt;make-3.80-5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;compat-db-4.1.25-9&lt;br /&gt;pdksh-5.2.14-30.3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;control-center-2.8.0-12.rhel4.5&lt;br /&gt;sysstat-5.0.5-1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;xscreensaver-4.18-5.rhel4.11&lt;br /&gt;gcc-3.4.6-3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;compat-libstdc++-33-3.2.3-47.3&lt;br /&gt;libaio-0.3.102-1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;openmotif21-2.1.30-11.RHEL4.2&lt;br /&gt;gcc-c++-3.4.6-3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;compat-libstdc++-296-2.96-132.7.2&lt;br /&gt;glibc-2.3.4-2.25&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;glibc-common-2.3.4-2.25&lt;br /&gt;gcc-g77-3.4.6-3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;gnome-libs-1.4.1.2.90-44.1&lt;br /&gt;mkinitrd-4.2.1.8-1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;18. Configure the VNC server for remote administration.&lt;br /&gt;&lt;/package&gt;&lt;span style="font-style: italic;"&gt;[root@server1&lt;/span&gt;&lt;package style="font-style: italic;" name=""&gt; ~]# cat /etc/sysconfig/vncservers&lt;br /&gt;VNCSERVERS="1:ora10g"&lt;br /&gt;VNCSERVERARGS[1]="-geometry 1024x768"&lt;br /&gt;&lt;/package&gt;&lt;span style="font-style: italic;"&gt;[root@server1&lt;/span&gt;&lt;package name=""&gt;&lt;span style="font-style: italic;"&gt; ~]# cat ~ora10g/.vnc/xstartup&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#!/bin/sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;unset SESSION_MANAGER&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;exec /etc/X11/xinit/xinitrc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;19. Download and install the latest HP Proliant Service Pack from the HP website&lt;br /&gt;for x86_64 bit RHEL 4 AS to remotely administer the system and monitor the&lt;br /&gt;server health. Untar the tarball and extract it to a folder. cd into the directory and&lt;br /&gt;execute the following command:&lt;br /&gt;&lt;/package&gt;&lt;span style="font-style: italic;"&gt;[root@server1&lt;/span&gt;&lt;package style="font-style: italic;" name=""&gt;#]chmod u+x install791.sh ;&lt;br /&gt;&lt;/package&gt;&lt;span style="font-style: italic;"&gt;[root@server1&lt;/span&gt;&lt;package name=""&gt;&lt;span style="font-style: italic;"&gt;#]./install791.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;21. Reboot the server and get ready for the Oracle Database installation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Oracle Database 10g Release 2 installation.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;1. Check the prerequisite RPMs (Get the latest list from the oracle website)&lt;br /&gt;&lt;br /&gt;&lt;package name=""&gt;2. Create the Oracle Groups&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#/usr/sbin/groupadd oinstall&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#/usr/sbin/groupadd dba&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Create the oracle user&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#/usr/sbin/useradd --home /u01/oracle/product/10.2.0.1 -g oinstall -G dba ora10g&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Note: g for primary group and –G for other group&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;4. Change the password of the oracle user&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#passwd oracle&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Create oracle directories for binaries and data files&lt;br /&gt;Creation of the ORACLE_HOME&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#mkdir -p /u01/oracle/product/10.2.0.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#chown -R ora10g:oinstall /u01/oracle/product/10.2.0.1&lt;/span&gt;&lt;br /&gt;Creation of directories for oracle files&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#mkdir -p /u01/oradata/prod&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#chown -R ora10g:oinstall /u01/oradata/prod&lt;/span&gt;&lt;br /&gt;Change ownership of /backup directory to the ora10g user.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#chown -R ora10g:oinstall /backup&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;6. Change the kernel parameters by appending the following to /etc/sysctl.conf:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#vi /etc/sysctl.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# For Oracle&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;kernel.shmall = 2097152&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;kernel.shmmax = 4294967296 # Set this to half of physical RAM&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;kernel.shmmni = 4096&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;kernel.sem = 250 32000 100 128&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;fs.file-max = 192000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;net.ipv4.ip_local_port_range = 1024 65000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;net.core.rmem_default = 262144&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;net.core.rmem_max = 262144&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;net.core.wmem_default = 262144&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;net.core.wmem_max = 262144&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Enter the following command to change the current values of the kernel&lt;br /&gt;parameters (Reboot the machine if the command fails)&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#/sbin/sysctl -p&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;7. Set the shell limits for the oracle user&lt;br /&gt;Add the following lines in the /etc/security/limits.conf file&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Ora10g soft nproc 2047&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Ora10g hard nproc 16384&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Ora10g soft nofile 1024&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Ora10g hard nofile 65536&lt;/span&gt;&lt;br /&gt;Add the following line to the /etc/pam.d/login file, if it does not exist&lt;br /&gt;Session required /lib/security/pam_limits.so&lt;br /&gt;&lt;br /&gt;8. Create the .bash_profile&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#su - ora10g&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;$vi .bash_profile&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ORACLE_BASE=/u01/oracle&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Export ORACLE_BASE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ORACLE_HOME=/u01/oracle/product/10.2.0.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Export ORACLE_HOME&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ORACLE_SID-prod&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Export ORACLE_SID&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;PATH=$PATH:$ORACLE_HOME/bin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Export PATH&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Umask 022&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;9. Copy the oracle database installation file 10201_database_linux_x86_64.cpio&lt;br /&gt;to /tmp and extract it&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#cpio -idmv &lt;10201_database_linux_x86_64.cpio&lt;br /&gt;&lt;br /&gt;10. Start the installation by running runinstaller and proceed with the installation.&lt;br /&gt;&lt;br /&gt;11. After completing the installation apply the oracle patch version 10.2.0.3 (latest).&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/package&gt;&lt;/package&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-1328408484828021925?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/1328408484828021925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=1328408484828021925' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/1328408484828021925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/1328408484828021925'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2008/01/oracle-10g-installation-on-rhel4-as.html' title='Oracle 10g installation on RHEL4 AS x86_64 bit HP Blade BL 480c'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-4603250908493027316</id><published>2008-01-22T12:16:00.000+05:30</published><updated>2008-01-22T13:39:54.355+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='uninstall rpm linux red hat fedora'/><title type='text'>If you uninstall the rpm package itself!!!!!!!!!!!!</title><content type='html'>Installing rpm's rpm without... rpm!&lt;br /&gt;A friend of mine recently uninstalled the rpm package on his system and panicked. Now thats sure a tough situation. rpm is the lifeline of red hat based distros. Here's what to do in case it happens to you &lt;br /&gt;&lt;br /&gt;Download the rpm-4.x.x.i386.rpm package (the version depends upon the version of your distro )&lt;br /&gt;Download this script and make it executable (chmod 775 rpm2cpio.sh)&lt;br /&gt;http://www.rpm.org/tools/scripts/rpm2cpio.sh&lt;br /&gt;&lt;br /&gt;Copy the script and the rpm-4.x.x.i386.rpm package in the / directory.&lt;br /&gt;From the / directory, run the following command as root:&lt;br /&gt;&lt;br /&gt;./rpm2cpio.sh rpm-4.x.x.i386.rpm | cpio -ivd&lt;br /&gt;&lt;br /&gt;This will extract the files from the rpm-4.x.x.i386.rpm package and place them in the right directories, as if you installed it with the rpm command, but without updating the rpm database nor executing any postinstall script.&lt;br /&gt;&lt;br /&gt;The pre- and post-install script are described in the attached file, that can be extracted from the rpm-4.x.x.i386.rpm package. You have to run them manually in a console window.&lt;br /&gt;&lt;br /&gt;At the end, as extra security option, you could run&lt;br /&gt;&lt;br /&gt;rpm -ivh --force rpm-x.x.i386.rpm&lt;br /&gt;&lt;br /&gt;This should install rpm over itself, updating the rpm database and executing the pre- and post-install scripts as usual.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-4603250908493027316?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/4603250908493027316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=4603250908493027316' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/4603250908493027316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/4603250908493027316'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2008/01/if-you-uninstall-rpm-package-itself.html' title='If you uninstall the rpm package itself!!!!!!!!!!!!'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-7887844825931660313</id><published>2007-11-20T12:15:00.000+05:30</published><updated>2007-11-20T13:52:47.092+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='apache kerberos windows 2003  AD authentication'/><title type='text'>Apache on Kerberos from Win 2k3 AD</title><content type='html'>So after a one year stint at Red Hat, I'm back to Doha. I've joined a govt. body that surprisingly has a Linux based infrastructure backend ( Surprising coz in this part of the world Linux deployment is still in its infancy). But the front end is still Windows mostly and so I'm back to a mixed environment. My first project was to test out an apache server to authenticate from the existing win 2k3 AD. After a few struggles I got it working. Here's the step by step&lt;br /&gt;&lt;br /&gt;1) On the windows DNS server, add an entry for the linux server where the apache is running.&lt;br /&gt;&lt;br /&gt;2) Install Support tools for Windows 2003 server. We'll need the ktpass tool for the next step.&lt;br /&gt;&lt;br /&gt;3)  C:\Program Files\Support Tools&gt;ktpass -princ HTTP/testapache.foo.bar@foo.bar -mapuser apache1 -pass apachepassword -out c:\temp\testapache.keytab&lt;br /&gt;&lt;br /&gt;4) Copy this file over to the linux machine and drop it in /etc/krb5.keytab&lt;br /&gt;&lt;br /&gt;5) Configure the /etc/krb5.conf on linux as follows ( FOO.BAR is the FQDN of the Windows domain, DC.FOO.BAR is the domain controller ):&lt;br /&gt;&lt;br /&gt;[root@testapache html]# cat /etc/krb5.conf&lt;br /&gt;[logging]&lt;br /&gt;default = FILE:/var/log/krb5libs.log&lt;br /&gt;kdc = FILE:/var/log/krb5kdc.log&lt;br /&gt;admin_server = FILE:/var/log/kadmind.log&lt;br /&gt;&lt;br /&gt;[libdefaults]&lt;br /&gt;default_realm = FOO.BAR&lt;br /&gt;dns_lookup_realm = false&lt;br /&gt;dns_lookup_kdc = false&lt;br /&gt;&lt;br /&gt;[realms]&lt;br /&gt;FOO.BAR = {&lt;br /&gt;kdc = DC.FOO.BAR:88&lt;br /&gt;admin_server = DC.FOO.BAR:749&lt;br /&gt;default_domain = FOO.BAR&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;[domain_realm]&lt;br /&gt;.foo.bar = FOO.BAR&lt;br /&gt;foo.bar = FOO.BAR&lt;br /&gt;&lt;br /&gt;[kdc]&lt;br /&gt;profile = /var/kerberos/krb5kdc/kdc.conf&lt;br /&gt;&lt;br /&gt;[appdefaults]&lt;br /&gt;pam = {&lt;br /&gt; debug = false&lt;br /&gt; ticket_lifetime = 36000&lt;br /&gt; renew_lifetime = 36000&lt;br /&gt; forwardable = true&lt;br /&gt; krb4_convert = false&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;6) Add the kerberos authentication module entry in apache. Then add the following ( Remember the caps for the Realm name is important) in httpd.conf within the "Directory" section. The tags seem to be getting overridden when publishing this blog:&lt;br /&gt;&lt;br /&gt; &lt;directory&gt;&lt;directory&gt;&lt;directory&gt;&lt;br /&gt;&lt;br /&gt;  Options FollowSymLinks&lt;br /&gt;  AllowOverride None&lt;br /&gt;&lt;br /&gt;AuthType Kerberos&lt;br /&gt;AuthName "Kerberos Login"&lt;br /&gt;KrbAuthRealm FOO.BAR&lt;br /&gt;Krb5KeyTab /etc/krb5.keytab&lt;br /&gt;KrbVerifyKDC off&lt;br /&gt;Require user apache1@FOO.BAR&lt;br /&gt;#require valid-user&lt;br /&gt;&lt;br /&gt;&lt;/directory&gt;&lt;!--&lt;br--&gt;&lt;/directory&gt;&lt;br /&gt;&lt;br /&gt;That should be it. restart apache and test kerberos using kinit and then the website via logging to the website.&lt;/directory&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-7887844825931660313?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/7887844825931660313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=7887844825931660313' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7887844825931660313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7887844825931660313'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/11/apache-on-kerberos-from-win-2k3-ad.html' title='Apache on Kerberos from Win 2k3 AD'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-7500277268616201706</id><published>2007-10-18T15:39:00.001+05:30</published><updated>2010-02-10T13:21:16.637+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='perl ftp backup script'/><title type='text'>perl script for ftp backup</title><content type='html'>&lt;pre class="brush: perl"&gt;&lt;br /&gt;&lt;br /&gt;root@srvsun01 # cat /usr/scripts/backup.pl&lt;br /&gt;#!/usr/bin/perl&lt;br /&gt;use Net::FTP;&lt;br /&gt;#my $ftp = Net::FTP-&gt;new("172.16.39.7");&lt;br /&gt;#$ftp-&gt;login("backupadmin@foo.bar.edu","foobar");&lt;br /&gt;my $host="172.16.39.7";&lt;br /&gt;my $directory="pub";&lt;br /&gt;($a,$d,$d,$day,$month,$yearoffset,$r,$u,$o) = localtime();&lt;br /&gt;$year = 1900 + $yearoffset;&lt;br /&gt;$backupdate= "$day-$month-$year";&lt;br /&gt;print $backupdate;&lt;br /&gt;$ftp=Net::FTP-&gt;new($host,Timeout=&gt;240) or $newerr=1;&lt;br /&gt;  push @ERRORS, "Can't ftp to $host: $!\n" if $newerr;&lt;br /&gt;  myerr() if $newerr;&lt;br /&gt;print "Connected\n";&lt;br /&gt;&lt;br /&gt;$ftp-&gt;login("backupadmin@foo.bar.edu","foobar") or $newerr=1;&lt;br /&gt;print "Getting file list";&lt;br /&gt;  push @ERRORS, "Can't login to $host: $!\n" if $newerr;&lt;br /&gt;  $ftp-&gt;quit if $newerr;&lt;br /&gt;  myerr() if $newerr;&lt;br /&gt;print "Logged in\n";&lt;br /&gt;&lt;br /&gt;$ftp-&gt;binary;&lt;br /&gt;$ftp-&gt;put("backup-$backupdate.tar.gz");&lt;br /&gt;$ftp-&gt;quit;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-7500277268616201706?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/7500277268616201706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=7500277268616201706' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7500277268616201706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7500277268616201706'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/10/perl-script-for-ftp-backup.html' title='perl script for ftp backup'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-5737059564413733554</id><published>2007-10-07T23:43:00.000+05:30</published><updated>2007-11-20T13:50:23.702+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='solaris 10.3 installation dell latitute 620'/><title type='text'>Solaris 10.3 Installation on Dell Latitude 620</title><content type='html'>My uncle was kind enough to temporarily provide me with a Dell Latitude D620. Now that I'm in Doha and have little else to do other than job hunting, I decided to install Solaris 10.3 on it. Things weren't easy initially. The installation would never cross the grub stage . Finally browsing through web forums , it was pointed out that the dual-core is not supported. So I disabled that and continued with the installation. There were no other hitches during the installation.&lt;br /&gt;&lt;br /&gt;Then at the reboot, it didn't seem to proceed after grub again. This time I had to add "kernel/unix" to the kernel line in the grub entry for solaris boot, i.e.  &lt;br /&gt;&lt;br /&gt;kernel /platform/i86pc/multiboot&lt;br /&gt;into&lt;br /&gt;kernel /platform/i86pc/multiboot kernel/unix -v&lt;br /&gt;&lt;br /&gt;That did it and the system booted fine. It was so nice to see a good GUI for Solaris. The last time I worked on Solaris, it was on those horrible Netra 1125 boxes which don't even have the mercy to display anything on screen other than via serial console or ssh/telnet. We did have an Enterprise E450 too, but the GUI for that wasn't that impressive either.&lt;br /&gt;&lt;br /&gt;Anyway Solaris 10.3 looks really nice, clean. Video card and NIC worked out of the box. Only the sound remains to be installed. Will do that tomorrow.&lt;br /&gt;And btw, firefox doesn't seem to be there in the default  installation, only mozilla is installed. So I got a package of firefox for solaris on x86 and installed it. Now I feel much at home here too..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-5737059564413733554?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/5737059564413733554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=5737059564413733554' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/5737059564413733554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/5737059564413733554'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/10/solaris-103-installation-on-dell.html' title='Solaris 10.3 Installation on Dell Latitude 620'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-8272101206997019237</id><published>2007-08-26T17:39:00.000+05:30</published><updated>2007-11-20T13:50:39.468+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='pdf merge linux'/><title type='text'>Merging pdfs</title><content type='html'>ImageMagick package has a tool called convert which can easily merge pdfs. so if you get tutorials that have a file each for a chapter , then just use convert&lt;br /&gt;convert chapter1.pdf chapter2.pdf tutorial.pdf&lt;br /&gt;&lt;br /&gt;and you get a combined pdf of all the chapters :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-8272101206997019237?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/8272101206997019237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=8272101206997019237' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/8272101206997019237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/8272101206997019237'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/08/merging-pdfs.html' title='Merging pdfs'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-1423596238447713105</id><published>2007-08-22T14:26:00.000+05:30</published><updated>2007-08-22T14:33:29.876+05:30</updated><title type='text'>Padma for firefox</title><content type='html'>I'm a regular reader of the Madhyamam newspaper but couldn't ever read its online version because of some font incompatibility with firefox. That was till I found out this plugin padma.&lt;br /&gt;https://addons.mozilla.org/en-US/firefox/addon/873&lt;br /&gt;&lt;br /&gt;Now I can happily read all the malayalam websites without any problems. Thats one more reason to go for firefox. Flexibility like never before.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-1423596238447713105?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/1423596238447713105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=1423596238447713105' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/1423596238447713105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/1423596238447713105'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/08/padma-for-firefox.html' title='Padma for firefox'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-8045520224573697232</id><published>2007-08-22T13:58:00.000+05:30</published><updated>2007-08-22T14:26:48.038+05:30</updated><title type='text'>FTP troubles</title><content type='html'>We have an FTP server where we've disabled active FTP , so we often get complaints from users about being unable to use the server. Normally we just reply to specifically use passive mode, but we recently got a complaint from a user with a snippet of his output of the ftp client where he specifically mentions passive ftp and still gets a 550. &lt;br /&gt;I set detailed logging on my vsftpd server using these parameters in the vsftpd.conf&lt;br /&gt;&lt;br /&gt;log_ftp_protocol=YES&lt;br /&gt;xferlog_std_format=NO&lt;br /&gt;&lt;br /&gt;and started monitoring the vsftpd.log file.&lt;br /&gt;It started showing me that despite the client showing me an output saying that the PASV command was issued, it was reaching us as PORT. On further investigation , we figured out that the person was using an ftp proxy and it was probably modifying the commands.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-8045520224573697232?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/8045520224573697232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=8045520224573697232' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/8045520224573697232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/8045520224573697232'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/08/ftp-troubles.html' title='FTP troubles'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-5859614785873550178</id><published>2007-08-22T13:37:00.000+05:30</published><updated>2007-11-20T13:51:01.358+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='vcd rip linux'/><title type='text'>Ripping VCDs</title><content type='html'>Copying vcds on linux is a bit tricky. The normal cp and mv doesn't work.&lt;br /&gt;So we need to rip the cds. Here's how to do it using mencoder&lt;br /&gt;mencoder vcd://1 -ovc lavc -lavcopts vcodec=mpeg4:vhq -oac mp3lame -lameopts abr:br=128 -o Song1.avi&lt;br /&gt;&lt;br /&gt;If you need to rip the multiple files, you can put in a small loop&lt;br /&gt;&lt;br /&gt;for i in `seq 1 10` ; do mencoder vcd://$i -ovc lavc -lavcopts vcodec=mpeg4:vhq -oac mp3lame -lameopts abr:br=128 -o Song$i.avi; done;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-5859614785873550178?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/5859614785873550178/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=5859614785873550178' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/5859614785873550178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/5859614785873550178'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/08/ripping-vcds.html' title='Ripping VCDs'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-6333356481146272353</id><published>2007-07-24T15:19:00.000+05:30</published><updated>2007-07-24T15:21:35.610+05:30</updated><title type='text'>Zgrep</title><content type='html'>To grep through archived gz files etc , instead of unzipping and then grep&lt;br /&gt;you can use this tool zgrep&lt;br /&gt;say for eg.&lt;br /&gt;zgrep anonymous /var/log/xferlog.*&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-6333356481146272353?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/6333356481146272353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=6333356481146272353' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/6333356481146272353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/6333356481146272353'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/07/zgrep.html' title='Zgrep'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-6096872864059862918</id><published>2007-07-23T21:02:00.000+05:30</published><updated>2007-07-23T21:13:34.789+05:30</updated><title type='text'>Scripting woes</title><content type='html'>I was trying to get a perl script with a sed oneliner called from within the perl script..&lt;br /&gt;It started itching me when I tried inserting a few leading spaces into the replacement text in sed.&lt;br /&gt;Here's the snippet&lt;br /&gt;&lt;br /&gt;    my $mask = '255.255.255.0';&lt;br /&gt;    foreach my $device (sort keys %ifaddrs) {&lt;br /&gt;        unless ($ifmasks{$device}) {&lt;br /&gt;        $t = `sed -e "/255.255/ a\ \\\t        '$device' =&gt; '$mask'," $deffile &gt; $deffile.new `  ;&lt;br /&gt; print $t ;   &lt;br /&gt;&lt;br /&gt;The leading tab never worked properly till we finally preceded \t with two escape sequences- one each for the perl and sed parsing.&lt;br /&gt;With the third one , it finally worked. The better part of it was that the perl variables worked well in sed ..i.e. they were parsed by perl before passing it on to sed..well, in another way thats what screwed me when it came to the white spaces..Anyway all working now, here's the full script...&lt;br /&gt;#!/usr/bin/perl &lt;br /&gt;#use strict;&lt;br /&gt;use warnings;&lt;br /&gt;my $file = shift @ARGV;&lt;br /&gt;my $check = 0;&lt;br /&gt;print "\nchecking $file\n";&lt;br /&gt;check_arrays($file);&lt;br /&gt;sub check_arrays {&lt;br /&gt;    my $deffile = shift;&lt;br /&gt;    #my (%ifaddrs, %ifmasks, %bootproto, %onboot);&lt;br /&gt;    require "$deffile";&lt;br /&gt;    my $mask = '255.255.255.0';&lt;br /&gt;    foreach my $device (sort keys %ifaddrs) {&lt;br /&gt;        unless ($ifmasks{$device}) {&lt;br /&gt;            print "$deffile def file does not have ifmasks for $device\n";&lt;br /&gt;     $t = `sed -e "/255.255/ a\ \\\t        '$device' =&gt; '$mask'," $deffile &gt; $deffile.new `  ;&lt;br /&gt;     print $t ;   &lt;br /&gt;  }&lt;br /&gt;        unless ($bootproto{$device}) {&lt;br /&gt;            print "$deffile def file does not have bootproto for $device\n";&lt;br /&gt;    }&lt;br /&gt;        unless ($onboot{$device}) {&lt;br /&gt;            print "$deffile def file does not have onboot for $device\n";&lt;br /&gt;    }&lt;br /&gt;    }&lt;br /&gt;    undef %ifaddrs;&lt;br /&gt;    undef %ifmasks;&lt;br /&gt;    undef %bootproto;&lt;br /&gt;    undef %onboot;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-6096872864059862918?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/6096872864059862918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=6096872864059862918' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/6096872864059862918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/6096872864059862918'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/07/scripting-woes.html' title='Scripting woes'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-7091606446790485967</id><published>2007-07-14T02:08:00.000+05:30</published><updated>2007-07-14T02:09:27.745+05:30</updated><title type='text'>A few tips</title><content type='html'>Running multiple X sessions&lt;br /&gt;On your login prompt. Insert your login and password and then execute:&lt;br /&gt;startx -- :1&lt;br /&gt;to get into your graphical environment. &lt;br /&gt;To go back to the previous user session, press Ctrl+Alt+F7, while to get yours back press Ctrl+Alt+F8.&lt;br /&gt;The keys F1 to F6 identify six console sessions, while F7 to F12 identify six X sessions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-7091606446790485967?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/7091606446790485967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=7091606446790485967' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7091606446790485967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7091606446790485967'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/07/few-tips.html' title='A few tips'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-5156757404521780981</id><published>2007-07-12T23:01:00.000+05:30</published><updated>2008-02-05T11:37:25.206+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='dvd rip linux fedora'/><title type='text'>DVD Ripping</title><content type='html'>I've been ripping a few DVDs of late and I've got this wonderful tool&lt;br /&gt;HandBrakeCLI http://handbrake.m0k.org/&lt;br /&gt;Its really cool and simple.You might need to get the right libraries installed but its really simple to use. Just remember to select your subtitle no..the default is none..&lt;br /&gt;&lt;br /&gt;Just happened to get this strange error today while playing with one of the servers&lt;br /&gt;shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory&lt;br /&gt;was wondering what it was...and finally turned out that I was installing an rpm sitting in a directory which the rpm moved and I ended up getting the error :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-5156757404521780981?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/5156757404521780981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=5156757404521780981' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/5156757404521780981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/5156757404521780981'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/07/dvd-ripping.html' title='DVD Ripping'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-7317060691358579097</id><published>2007-07-03T19:56:00.000+05:30</published><updated>2007-07-03T19:57:54.952+05:30</updated><title type='text'>Screen tips</title><content type='html'>For scrolling  back on screen&lt;br /&gt;press Ctrl A Esc&lt;br /&gt;then Ctrl U&lt;br /&gt;&lt;br /&gt;For down Ctrl D&lt;br /&gt;&lt;br /&gt;To switch windows in screen&lt;br /&gt;Ctrl A 1 , 2 , 3 etc&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-7317060691358579097?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/7317060691358579097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=7317060691358579097' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7317060691358579097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7317060691358579097'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/07/screen-tips.html' title='Screen tips'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-1217115667391613641</id><published>2007-06-19T08:05:00.000+05:30</published><updated>2007-06-19T08:08:23.568+05:30</updated><title type='text'>NFS options</title><content type='html'>At times there are instances where you'd want to export an NFS share temporarily but don't want to add it in your /etc/exports file esp when its huge and bulky and another temporary entry might add to its ugliness. You can always do a temporary export using&lt;br /&gt;exportfs -v -i -o root=server.domain.tld:rw=client.domain.tld /vol/tmp_data&lt;br /&gt;&lt;br /&gt;Remember everytime anyone runs exportfs -a on the nfs server , the volume vanishes ..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-1217115667391613641?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/1217115667391613641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=1217115667391613641' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/1217115667391613641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/1217115667391613641'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/06/nfs-options.html' title='NFS options'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-3901200175406145365</id><published>2007-05-24T00:33:00.000+05:30</published><updated>2007-05-24T00:35:36.524+05:30</updated><title type='text'>for loop</title><content type='html'>I often get confused with the for loop &lt;br /&gt;its always the ` and not the ' . For eg&lt;br /&gt;for i in `ls *.log.*`; do gzip $i; done&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-3901200175406145365?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/3901200175406145365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=3901200175406145365' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/3901200175406145365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/3901200175406145365'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/05/for-loop.html' title='for loop'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-1043401841029997034</id><published>2007-05-03T02:37:00.000+05:30</published><updated>2007-05-03T02:42:05.852+05:30</updated><title type='text'>Kickstarts</title><content type='html'>I was doing a kickstart installation on one of my servers and it seemed to always get stuck at the first language prompt. Obviously that meant the ks.cfg was not accessible since thats the first entry in a kickstart file. so hunting down the reasons, I arrived at a DNS error , the hostname of the server was not properly added to the dns server. Once that was done , it was still not working.&lt;br /&gt;Finally the nscd of the server where the requests for ks.cgi co was cleared of its hosts table and the kickstart finally got off to a nice start :)&lt;br /&gt;&lt;br /&gt;Btw I cleared an RHCA paper for the RH401 exam . Now for the rest .........&lt;br /&gt;&lt;br /&gt;NB: My earlier post about Rconnect wifi works with airtel too , just the difference that the no. to be dialled is *99#&lt;br /&gt;&lt;br /&gt;Thats all for now!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-1043401841029997034?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/1043401841029997034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=1043401841029997034' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/1043401841029997034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/1043401841029997034'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/05/kickstarts.html' title='Kickstarts'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-3379658159490923852</id><published>2007-02-21T13:24:00.000+05:30</published><updated>2007-02-21T13:26:23.313+05:30</updated><title type='text'>Adobe Reader on FC6</title><content type='html'>I suppose many others too might have faced this problem of Adobe Reader not working in FC 6. so here's a workaround&lt;br /&gt;Edit the file &lt;InstallationDir&gt;/bin/acroread and replace the following line:&lt;br /&gt;&lt;br /&gt;check_gtk_ver_and_set_lib_path "$MIN_GTK_VERSION"&lt;br /&gt;&lt;br /&gt;with&lt;br /&gt;&lt;br /&gt;# check_gtk_ver_and_set_lib_path "$MIN_GTK_VERSION"&lt;br /&gt;&lt;br /&gt;(i.e. comment the line).&lt;br /&gt;&lt;br /&gt;It worked for me. Thanks to AshutoshJSharma on Adobeforums.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-3379658159490923852?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/3379658159490923852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=3379658159490923852' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/3379658159490923852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/3379658159490923852'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/02/adobe-reader-on-fc6.html' title='Adobe Reader on FC6'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-8149345243266321334</id><published>2007-02-14T22:19:00.000+05:30</published><updated>2007-02-14T22:21:34.637+05:30</updated><title type='text'>Reset the binary screen</title><content type='html'>Sometimes it gets really irritating if you mistakenly do a cat of some binary file and you end up with a command prompt that shows up with binary characters and everything you type on screen echoes as binary characters. the remedy is simple&lt;br /&gt;just type "reset" and press enter.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-8149345243266321334?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/8149345243266321334/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=8149345243266321334' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/8149345243266321334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/8149345243266321334'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/02/reset-binary-screen.html' title='Reset the binary screen'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-3811616562833912048</id><published>2007-02-13T19:15:00.000+05:30</published><updated>2006-12-29T10:35:51.662+05:30</updated><title type='text'>Youtube downloads</title><content type='html'>I normally used to use the site vixy.net for converting youtube flv videos to avi and download it to my system, but it seems to be down for some time now . So looking for alternatives I happened to find these two cools scripts that download videos from the youtube site and then convert them to avi.&lt;br /&gt;Just copy this script for downloads..&lt;br /&gt;http://www.arrakis.es/~rggi3/youtube-dl/youtube-dl&lt;br /&gt;Details about the script are available at http://www.arrakis.es/~rggi3/youtube-dl/&lt;br /&gt;-------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Thats the script . Thanks a lot Ricardo.. Just pass the url of the youtube video as its argument and execute it and the file gets saved on to your system as a .flv file.&lt;br /&gt;Then you can use this script to convert it to avi.You'll need the mencoder package for this to work.&lt;br /&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;if [ -z "$1" ]; then&lt;br /&gt;  echo "Usage: $0 {-divx|-xvid} list_of_flv_files"&lt;br /&gt;  exit 1&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# video encoding bit rate&lt;br /&gt;V_BITRATE=1000&lt;br /&gt;&lt;br /&gt;while [ "$1" ]; do&lt;br /&gt;  case "$1" in&lt;br /&gt;    -divx)&lt;br /&gt;      MENC_OPTS="-ovc lavc -lavcopts \&lt;br /&gt;        vcodec=mpeg4:vbitrate=$V_BITRATE:mbd=2:v4mv:autoaspect"&lt;br /&gt;      ;;&lt;br /&gt;    -xvid)&lt;br /&gt;      MENC_OPTS="-ovc xvid -xvidencopts bitrate=$V_BITRATE:autoaspect"&lt;br /&gt;      ;;&lt;br /&gt;    *)&lt;br /&gt;      if file "$1" | grep -q "Macromedia Flash Video"; then&lt;br /&gt;        mencoder "$1" $MENC_OPTS -vf pp=lb -oac mp3lame \&lt;br /&gt;          -lameopts fast:preset=standard -o \&lt;br /&gt;          "`basename $1 .flv`.avi"&lt;br /&gt;      else&lt;br /&gt;        echo "$1 is not Flash Video. Skipping"&lt;br /&gt;      fi&lt;br /&gt;      ;;&lt;br /&gt;  esac&lt;br /&gt;  shift&lt;br /&gt;done&lt;br /&gt;-----------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;To run this , just set the executable permission on the script and use the -divx option or whatever you choose as the compression format and pass the flv file as the argument. You can also pass multiple files in the same command.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-3811616562833912048?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/3811616562833912048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=3811616562833912048' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/3811616562833912048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/3811616562833912048'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2007/02/youtube-downloads.html' title='Youtube downloads'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-2561985151290321967</id><published>2006-12-29T09:48:00.000+05:30</published><updated>2008-02-05T11:38:39.849+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='rconnect reliance card linux pcmci dell d620 latitude'/><title type='text'>Getting an Rconnect card working in linux</title><content type='html'>Well I thought this would be pretty difficult but turned out a lot simpler though.&lt;br /&gt;&lt;br /&gt;First the specs&lt;br /&gt;I am using a Dell D620 laptop with the Rconnect card in my PCMCI slot. I specifically told the Reliance guys to get me a card that works for Linux and they gave me a Huawei one . The normal ZTE cards they give don't work with linux AFAIK. Nevertheless the drivers you get with the Huawei card are still for Windoze. But don't worry, if you are using the latest kernel it will get detected automatically. For the record, mine is 2.6.9-42.13 thats RHEL 4.&lt;br /&gt;&lt;br /&gt;Now su as root. open vi and create this small script file say rconnect in your directory.&lt;br /&gt;[root@nmoidu ~]# cat rconnect&lt;br /&gt;sudo modprobe usbserial vendor=0x12d1 product=0x1001&lt;br /&gt;mknod /dev/ttyUSB0 c 188 0&lt;br /&gt;mknod /dev/ttyUSB1 c 188 1&lt;br /&gt;&lt;br /&gt;Then set permissions for this to be executable.&lt;br /&gt;&lt;br /&gt;Now for the modem properties and details of the dialup parameters, configure this file as below :&lt;br /&gt;&lt;br /&gt;[root@nmoidu sysconfig]# cat /etc/wvdial.conf&lt;br /&gt;[Modem0]&lt;br /&gt;Modem = /dev/ttyUSB0&lt;br /&gt;Baud = 115200&lt;br /&gt;SetVolume = 0&lt;br /&gt;Dial Command = ATDT&lt;br /&gt;Init1 = ATZ&lt;br /&gt;Init3 = ATM0&lt;br /&gt;FlowControl = NOFLOW&lt;br /&gt;[Dialer Rconnect]&lt;br /&gt;Username = 93293292323&lt;br /&gt;Password = 932939392323&lt;br /&gt;Phone = #777&lt;br /&gt;Stupid Mode = 1&lt;br /&gt;Init1 = ATZ&lt;br /&gt;Init2 = ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2 +FCLASS=0&lt;br /&gt;Inherits = Modem0&lt;br /&gt;[root@nmoidu sysconfig]#&lt;br /&gt;&lt;br /&gt;Then add this file to setup the network parameters of the Rconnect interface.&lt;br /&gt;[root@nmoidu ~]# cat /etc/sysconfig/network-scripts/ifcfg-Rconnect&lt;br /&gt;# Please read /usr/share/doc/initscripts-*/sysconfig.txt&lt;br /&gt;# for the documentation of these parameters.&lt;br /&gt;ONBOOT=no&lt;br /&gt;USERCTL=yes&lt;br /&gt;PEERDNS=yes&lt;br /&gt;TYPE=Modem&lt;br /&gt;DEVICE=ppp0&lt;br /&gt;BOOTPROTO=dialup&lt;br /&gt;AC=off&lt;br /&gt;BSDCOMP=off&lt;br /&gt;VJCCOMP=off&lt;br /&gt;CCP=off&lt;br /&gt;PC=off&lt;br /&gt;VJ=off&lt;br /&gt;LINESPEED=115200&lt;br /&gt;MODEMPORT=/dev/ttyUSB0&lt;br /&gt;PROVIDER=Rconnect&lt;br /&gt;DEFROUTE=yes&lt;br /&gt;PERSIST=no&lt;br /&gt;PAPNAME=93293293293# Change this no...:)&lt;br /&gt;WVDIALSECT=Rconnect&lt;br /&gt;MODEMNAME=Modem0&lt;br /&gt;DEMAND=no&lt;br /&gt;IPV6INIT=no&lt;br /&gt;IDLETIMEOUT=600&lt;br /&gt;[root@nmoidu ~]#&lt;br /&gt;&lt;br /&gt;Customize each script and file according to the specifics in your machine like the device name and your phone no. etc. Run a dmesg to see under what device name your card is detected .&lt;br /&gt;Now Run the script rconnect twice. Then do an ifup Rconnect.&lt;br /&gt;Btw you'll have to call up Reliance and ask them to activate the card first and then the first connection will have to be done from a Windoze machine using the Rconnect software. Thats the unavoidable world of Windows . You have to live with it ;) .&lt;br /&gt;Now once you are connected, browse , enjoy........&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Alternately you can do it using the GUI too.&lt;br /&gt;Create the rconnect script, run it.&lt;br /&gt;Then open system-config-network . Add a new modem connection. Set the provider name to Reliance. Give no. to be dialled as #777. Enter your mob. no and password . Leave the other parameters as it is.&lt;br /&gt;Follow the wizard and create the the new connection. Activate the new device from the GUI. Thats it.&lt;br /&gt;&lt;br /&gt;In case of issues, Pls let me know. Leave a comment or mail me.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-2561985151290321967?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/2561985151290321967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=2561985151290321967' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/2561985151290321967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/2561985151290321967'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/12/getting-rconnect-card-working-in-linux.html' title='Getting an Rconnect card working in linux'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-7539704374682070839</id><published>2006-12-06T05:11:00.001+05:30</published><updated>2008-09-14T13:22:55.870+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sms gateway linux howto gsm modem'/><title type='text'>Setting up an SMS gateway</title><content type='html'>I am writing this little howto for setting up an email2sms gateway which basically sends a mail to your mobile , like any alerts etc.&lt;br /&gt;&lt;br /&gt;Hardware/software requirements are:&lt;br /&gt;&lt;br /&gt;1)  A GSM modem (or a phone which can act as one). The key point is it should be able to talk to Linux as a modem. A lot of the modern CDMA/GSM phones have modems that need proprietary drivers to access the modem. These generally are not available for Linux.Choose one with support for linux.&lt;br /&gt;Put your SIM into the modem, connect the serial cable to a serial-to-USB converter and connect to the system via USB port.( Nowadays I've seen the modems coming directly with a USB interface).&lt;br /&gt;&lt;br /&gt;2) Linux , we used FC 5 since the modem drivers had some issues on RHEL.&lt;br /&gt;&lt;br /&gt;3) The SMS software. We use here smstools ( http://smstools.meinemullemaus.de/)&lt;br /&gt;&lt;br /&gt;Download the tar.gz file and do the normal installation - unzip , make , make install.&lt;br /&gt;&lt;br /&gt;Go to  the configuration file /etc/smsd.conf . Configure as follows&lt;br /&gt;&lt;br /&gt;[root@smsgw]# cat /etc/smsd.conf&lt;br /&gt;# Example smsd.conf. Read the manual for a description&lt;br /&gt;&lt;br /&gt;devices = GSM1 # Put in any name here for the modem to be identified.&lt;br /&gt;logfile = /var/log/smsd.log # Set the log file here so that you can use it for debugging&lt;br /&gt;loglevel = 7 # Check out the http://smstools.meinemullemaus.de/configure.html for details&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;outgoing = /var/spool/sms/outgoing # Define directory where the mails will come&lt;br /&gt;checked = /var/spool/sms/checked&lt;br /&gt;failed = /var/spool/sms/failed # Failed sms , for reasons like say - nil balance in SIM&lt;br /&gt;incoming = /var/spool/sms/incoming # Define directory where incoming sms will be stored&lt;br /&gt;sent = /var/spool/sms/sent # Mails sent out as sms&lt;br /&gt;&lt;br /&gt;[GSM1] # Define each modem you named above , eg GSM1 , GSM2 etc.&lt;br /&gt;device = /dev/ttyUSB0 # Define the device name of the modem&lt;br /&gt;incoming = yes&lt;br /&gt;&lt;br /&gt;We had used a serial-to-USB converter to connect the modem to the system. The modem hence appears to the system as a SUB device. So we define the GSM modem device as /dev/ttyUSB0. The mails that come into the outgoing folder should have the To field as the mobile no. of the person to whom the sms should be sent to. For automatically setting it to change the names of the mail id in the To field of the mail to the phone no. you will have to configure a filter like procmail to automatically change this.&lt;br /&gt;&lt;br /&gt;[root@odin sent]# cat /etc/procmailrc&lt;br /&gt;SHELL=/bin/sh&lt;br /&gt;LOGFILE=/var/log/Proctest.log&lt;br /&gt;LOG="--- Logging for ${LOGNAME}, "&lt;br /&gt;#First, a few environment variables are included.&lt;br /&gt;#Troubleshooting:&lt;br /&gt;VERBOSE=yes&lt;br /&gt;LOGABSTRACT=all&lt;br /&gt;&lt;br /&gt;:0&lt;br /&gt;  * ^TO_ .*@company.com&lt;br /&gt;  | /usr/local/bin/extract-headers.sh&lt;br /&gt;&lt;br /&gt;This calls for execution of the script extract-headers.sh for all mails coming to @ company.com domain.&lt;br /&gt;The extract-headers.sh is just a script to extract the required headers only from the mail body and replace it with the phone no.s of the persons concerned in the To field , since the smsd sends the message to the number given in the To field of the message. See http://smstools.meinemullemaus.de/fileformat.html for more details on the sms format to be followed.&lt;br /&gt;&lt;br /&gt;[root@smsgw]# cat /usr/local/bin/extract-headers.sh&lt;br /&gt;#!/bin/bash&lt;br /&gt;TMPFILE=$(mktemp)&lt;br /&gt;FILE=$(mktemp -p /var/spool/sms/outgoing/)&lt;br /&gt;formail -k -XFrom: -XSubject: -XTo: &gt;&gt; $TMPFILE # From, To and Subject headers copied to TMPFILE&lt;br /&gt;rcptad=$(grep ^To: $TMPFILE | gawk '{print $2}') # search To field, output only mail-id part&lt;br /&gt;perl -pi -e 's/To.*/To: 91999999999/' $TMPFILE;; # Replace mail id with mobile no.&lt;br /&gt;FROM=$(grep From: $TMPFILE |gawk -F":" '{print $2}') # Get the From machine name&lt;br /&gt;echo "from $FROM" &gt;&gt; $TMPFILE # Push the line "from sender-name" to the TMPFILE&lt;br /&gt;cp $TMPFILE $FILE # Move the contents of TMPFILE to FILE&lt;br /&gt;rm $TMPFILE # Delete TMPFILE&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;END of story. Start smsd in your system. put some mail in the /var/spool/outgoing folder , pay your mobile bill ;) and pray for the sms alerts to come :).&lt;br /&gt;Contact me for any doubts.&lt;br /&gt;___________________________________________________________________________&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;Thanks and Regards&lt;br /&gt;Nabeel Moidu&lt;br /&gt;Red Hat Inc.&lt;br /&gt;Pune, India&lt;br /&gt;&lt;br /&gt;If we don't believe in freedom of expression for people we despise, we don't believe in it at all.  Noam Chomsky&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-7539704374682070839?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/7539704374682070839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=7539704374682070839' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7539704374682070839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/7539704374682070839'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/12/setting-up-sms-gateway.html' title='Setting up an SMS gateway'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-115505489274154784</id><published>2006-08-08T20:34:00.000+05:30</published><updated>2006-08-08T22:04:52.853+05:30</updated><title type='text'>Xen configuration</title><content type='html'>For those who have trouble on installing a CentOS VM on xen on Debian or Ubuntu , this page has a few helpful hints&lt;br /&gt;http://www.tapodi.net/~jda/blog/archive/2006_05_01_index.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-115505489274154784?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/115505489274154784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=115505489274154784' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/115505489274154784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/115505489274154784'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/08/xen-configuration.html' title='Xen configuration'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-115469324032195901</id><published>2006-08-04T17:29:00.000+05:30</published><updated>2006-08-04T17:37:20.333+05:30</updated><title type='text'>Xen and virtualization</title><content type='html'>I have been working on Xen and virtualization for some time now and its been really impressive. Although it was a bit tough to get started and the concepts really took some time to get into my head , now it looks fine . I have got an FC3 xen kernel as a Guest OS (DomU) on an FC5 xen kernel. Things were pretty straight forward in FC5 . The networking and virtual disk concepts are a bit complicated for a starter , but finally what you get is an impressively efficient virtual OS running on top of your Host OS and you can hardly notice the performance difference.Nice work from Cambridge  University. I'd certainly like to go deeper into the technology.&lt;br /&gt;&lt;br /&gt;By the way I recently came across a good pasting site that you can use to paste large text that you would want to avoid directly pasting on a yahoo chat or IRC forum.  http://rafb.net/paste/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-115469324032195901?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/115469324032195901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=115469324032195901' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/115469324032195901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/115469324032195901'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/08/xen-and-virtualization.html' title='Xen and virtualization'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-115107583727820084</id><published>2006-06-23T20:39:00.000+05:30</published><updated>2006-06-23T20:53:08.820+05:30</updated><title type='text'>Anti virus plays villain</title><content type='html'>I recently had a bad time with my CEO's laptop(Its on M$ XP.As of now I can't even dream about having it on linux.But at least I am happy he admires Mozilla Thunderbird after using it). &lt;br /&gt;It was showing a strange behaviour. The wireless network gets connected for a few seconds and then it immediately gets off from the network. When I try reconnecting it, it again repeats this same behaviour.I start a ping and the first few packets , say 12 or 15 of them give a response even if I try www.google.com if its done immediately after a reconnect to the wireless network , but then after a few seconds it even stops pinging to the gateway ( the wireless AP). I couldn't think of any firewall that would block any pattern of traffic only after a few seconds .&lt;br /&gt;&lt;br /&gt;Well, finally it turned out to be an issue with the anti virus software installed , or rather a virus in the machine. The explanation I  can think of is like this.&lt;br /&gt;&lt;br /&gt;There's a virus in the system which the anti-virus seems to detect only after the network comes up and there's some regular interval when the anti virus software polls something to detect it and the moment it identifies the virus , it's inbuilt firewall cuts off the machine from the network.&lt;br /&gt;&lt;br /&gt;If anyone has any better ideas , please suggest.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-115107583727820084?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/115107583727820084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=115107583727820084' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/115107583727820084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/115107583727820084'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/06/anti-virus-plays-villain.html' title='Anti virus plays villain'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-115089242216017276</id><published>2006-06-21T17:39:00.000+05:30</published><updated>2006-06-21T17:52:30.613+05:30</updated><title type='text'>Working on command line tools with proxy settings</title><content type='html'>In situations where you have a proxy and you need to use command line tools like wget going through the proxy , add the following commands &lt;br /&gt;&lt;br /&gt;export http_proxy="http://192.168.1.10:3128"&lt;br /&gt;export ftp_proxy="http://192.168.1.10:3128"&lt;br /&gt;&lt;br /&gt;If you need authentication on it in wget,add &lt;br /&gt;&lt;br /&gt;wget --proxy-user "Domain\username" --proxy-passwd "pass123" http://mirror.kernel.org/linux.iso&lt;br /&gt;&lt;br /&gt;Altenatively, you may encode the username/password in the http_proxy variable: &lt;br /&gt;&lt;br /&gt;export http_proxy="http://username:password@192.168.1.10:3128"&lt;br /&gt;export ftp_proxy="http://username:password@192.168.1.10:3128"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-115089242216017276?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/115089242216017276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=115089242216017276' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/115089242216017276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/115089242216017276'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/06/working-on-command-line-tools-with.html' title='Working on command line tools with proxy settings'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-115013238335380667</id><published>2006-06-12T22:36:00.000+05:30</published><updated>2006-06-12T22:43:03.390+05:30</updated><title type='text'>Linux Netfilter is better than PIX</title><content type='html'>Well, in some aspects.........&lt;br /&gt;The other day I was trying to migrate a Linux Netfilter based firewall onto a Cisco PIX device.&lt;br /&gt;I really felt pity for PIX. The GUI was very ill designed , many things were just so bad in the GUI that I decided to switch over to its CLI. I tried adding a new NAT rule , it went wrong and then when I tried to delete it it started giving errors.When I did the same with the CLI , it worked well.When I tried to change the interface IP of the mgmt interface , it said the dhcp server is in  a different range so you cant change it.Vice versa it the dhcp said the interface ip was on a diff subnet. Finally the CLI worked.&lt;br /&gt;Then to the rules .I don't know why Cisco doesn't feel that two external IPs should not be mapped to an internal IP. Iptables just flawlessly allows it.I've really lost the big impression I had about PIX.Though its better than the Checkpoint Firewall-1 that I have used on Nortel Contivity boxes it still doesn't have many feature that Netfilter has. Well it does have a few that Netfilter doesn't have too...But then PIX is supposed to be best in the market ....&lt;br /&gt;Well , it didn't convince me.............&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-115013238335380667?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/115013238335380667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=115013238335380667' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/115013238335380667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/115013238335380667'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/06/linux-netfilter-is-better-than-pix.html' title='Linux Netfilter is better than PIX'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114881982563925109</id><published>2006-05-28T14:44:00.000+05:30</published><updated>2006-05-28T18:07:05.706+05:30</updated><title type='text'>Dragging windows in linux</title><content type='html'>On many occasions in linux , I have come across the situation where the window size is bigger thatn the screen size so in effect , i can't see the ok or apply buttons at the bottom .&lt;br /&gt;In such cases , you can use the alt + mouse left click combination and press the arrow keys to drag the window up and down .&lt;br /&gt;Hope it helps&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114881982563925109?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114881982563925109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114881982563925109' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114881982563925109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114881982563925109'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/05/dragging-windows-in-linux.html' title='Dragging windows in linux'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114831455956333887</id><published>2006-05-22T21:42:00.000+05:30</published><updated>2006-05-22T21:45:59.583+05:30</updated><title type='text'>Brainbench Job role</title><content type='html'>I didn't notice till recently that Brainbench had job role certifications that was given if a selected set of papers was cleared.Well, I set my sights on three of the available ones.&lt;br /&gt;Network Administrator, Linux Administrator, Unix Administrator.&lt;br /&gt;Finally cleared Network Administrator.The other two are still pending.Need to clear an elective from C , Bash , Perl , Python .&lt;br /&gt;I think Bash or C might be my choice.&lt;br /&gt;If that is also cleared , I will get the latter two job roles also.&lt;br /&gt;I hope I can do it before the Games ends this 31st.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114831455956333887?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114831455956333887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114831455956333887' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114831455956333887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114831455956333887'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/05/brainbench-job-role.html' title='Brainbench Job role'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114797367189655862</id><published>2006-05-17T20:23:00.000+05:30</published><updated>2006-05-19T00:28:43.620+05:30</updated><title type='text'>Some more games with Awk</title><content type='html'>To rename all files in current directory (append .bak to all of them):&lt;br /&gt;ls -l | awk '{print "mv "$1" "$1".new"}' | sh&lt;br /&gt;&lt;br /&gt;Thats doing an ls of all files , passing each name to awk as argument , renaming the awk input and passing the whole formatted output to shell&lt;br /&gt;&lt;br /&gt;  1. Renaming within the name:&lt;br /&gt;      ls -1 *name1* | awk '{print "mv "$1" "$1}' | sed s/name1/name2/2 | sh&lt;br /&gt;&lt;br /&gt;  2. remove only files:&lt;br /&gt;      ls -l * | grep -v drwx | awk '{print "rm "$9}' | sh&lt;br /&gt;      or with awk alone:&lt;br /&gt;      ls -l|awk '$1!~/^drwx/{print $9}'|xargs rm&lt;br /&gt;      Be careful when trying this out in your home directory. We remove files!&lt;br /&gt;&lt;br /&gt;   3. remove only directories&lt;br /&gt;      ls -l | grep '^d' | awk '{print "rm -r "$9}' | sh&lt;br /&gt;      or&lt;br /&gt;      ls -p | grep /$ | wk '{print "rm -r "$1}'&lt;br /&gt;      or with awk alone:&lt;br /&gt;      ls -l|awk '$1~/^d.*x/{print $9}'|xargs rm -r&lt;br /&gt;      Be careful when trying this out in your home directory. We remove things!&lt;br /&gt;&lt;br /&gt;   4. killing processes by name (in this example we kill the process called netscape):&lt;br /&gt;      kill `ps auxww | grep netscape | egrep -v grep | awk '{print $2}'`&lt;br /&gt;      or with awk alone:&lt;br /&gt;      ps auxww | awk '$0~/netscape/&amp;&amp;$0!~/awk/{print $2}' |xargs kill&lt;br /&gt;      It has to be adjusted to fit the ps command on whatever unix system you are on. Basically it is: "If the process is called netscape and it is not called 'grep netscape' (or awk) then print the pid"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114797367189655862?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114797367189655862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114797367189655862' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114797367189655862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114797367189655862'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/05/some-more-games-with-awk.html' title='Some more games with Awk'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114779939921761876</id><published>2006-05-16T22:35:00.000+05:30</published><updated>2006-05-18T23:10:13.570+05:30</updated><title type='text'>Today's catch</title><content type='html'>I was busy most of the day with some networking issue at office. But I took some time out later at night to write at least one exam .So the catch of the day is&lt;br /&gt;&lt;br /&gt;Networking Concepts.&lt;br /&gt;&lt;br /&gt;I have set my sights on few others.Will have to wait till tomorrow for that.....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114779939921761876?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114779939921761876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114779939921761876' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114779939921761876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114779939921761876'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/05/todays-catch.html' title='Today&apos;s catch'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114771207171298873</id><published>2006-05-15T22:20:00.000+05:30</published><updated>2006-05-18T23:05:41.786+05:30</updated><title type='text'>Brainbench games</title><content type='html'>Well ,Happy news for those who are looking out for a certification to add to your resume...&lt;br /&gt;the famous online certification site Brainbench.com has started their brainbench games for this year.Its the best opportunity to write their exams for free online.Normally you get to write only a few for free and for the rest you need to pay.&lt;br /&gt;I attempted the following today and cleared them&lt;br /&gt;1)Information Technology Security Fundamentals  &lt;br /&gt;2)Network Technical Support &lt;br /&gt;3)Internet Technology Fundamentals&lt;br /&gt;4)Linux Administration - Redhat&lt;br /&gt;&lt;br /&gt;That takes my Brainbench tally to 8 certifications.&lt;br /&gt;Well it seems there is a prize for each country that has the most no. of certificate earners.&lt;br /&gt;Check out www.brainbench.com for more...........&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114771207171298873?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114771207171298873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114771207171298873' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114771207171298873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114771207171298873'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/05/brainbench-games.html' title='Brainbench games'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114769545151076597</id><published>2006-05-15T17:45:00.000+05:30</published><updated>2006-05-15T17:47:31.520+05:30</updated><title type='text'>My younger brother receiving a prize</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/3018/1655/1600/Screenshot.png"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://photos1.blogger.com/blogger/3018/1655/320/Screenshot.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;Thats him shaking hands with the principal&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114769545151076597?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114769545151076597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114769545151076597' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114769545151076597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114769545151076597'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/05/my-younger-brother-receiving-prize.html' title='My younger brother receiving a prize'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114767933227124941</id><published>2006-05-15T13:16:00.000+05:30</published><updated>2006-05-15T13:18:52.290+05:30</updated><title type='text'>Pronouncing "Linux"</title><content type='html'>I've seen many people pronouncing Linux in many different ways.&lt;br /&gt;Some say it with li as in liar&lt;br /&gt;some with the li as in limit&lt;br /&gt;some with the nu as in nook&lt;br /&gt;Well going by what Torvalds says&lt;br /&gt;http://www.paul.sladen.org/pronunciation/torvalds-says-linux.wav&lt;br /&gt;&lt;br /&gt;I'll go by that&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114767933227124941?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114767933227124941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114767933227124941' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114767933227124941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114767933227124941'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/05/pronouncing-linux.html' title='Pronouncing &quot;Linux&quot;'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114736406350802711</id><published>2006-05-11T21:33:00.000+05:30</published><updated>2006-05-12T23:36:10.513+05:30</updated><title type='text'>What Shorewall could and Nortel Contivity couldn't</title><content type='html'>I happened to have a strange issue.I had an IP to which I had done  a layer of NATting so that an IP w.x.y.z would see to my network users as a.b.c.d. I used Nortel Contivity CSF/NAT software for this.&lt;br /&gt;But whenever we did an FTP to the natted IP , the initial connection got established but after that the data connection was never established.It dropped connection whenever a data connection or passive mode was requested.I checked the rules at my end thoroughly , opened up the required ports , ensured that at the other end also everything was open.But nothing worked.Finally I decided to do a packet capture and set an ethereal capture with the filter on ftp port alone.&lt;br /&gt;To my wonder the PORT raw FTP command was giving the ip a.b.c.d to the ftp server at w.x.y.z which the server was not aware since I was doing a NAT. &lt;br /&gt;The problem was detected, but earlier this used to work when I did the same using Shorewall.&lt;br /&gt;I read the documentation of Shorewall and understood that Linux was aware of this issue and hence there was a kernel module ip_nat_ftp which took care of modifying PORT and PASV commands in case of a nat.Shorewall automatically loads this module .Thats why it used to work earlier.&lt;br /&gt;When contacted Nortel said its a known bug with their firmware version which they will fix in their next update.&lt;br /&gt;Perhaps if their code was open, it might have got noticed a long back .................&lt;br /&gt;Am I right????????&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114736406350802711?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114736406350802711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114736406350802711' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114736406350802711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114736406350802711'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/05/what-shorewall-could-and-nortel.html' title='What Shorewall could and Nortel Contivity couldn&apos;t'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114733689011323233</id><published>2006-05-10T21:07:00.000+05:30</published><updated>2006-05-16T12:52:11.766+05:30</updated><title type='text'>A few cool vim tips</title><content type='html'>The "*" key will search for the word from the current cursor position to EOF&lt;br /&gt;The "#" key will search for the word from the current cursor position to the top of the file.&lt;br /&gt;&lt;br /&gt;/^[A-M]\+/      : search for lines beginning with one or more A-M&lt;br /&gt;/you\|me     : search for YOU OR ME&lt;br /&gt;&lt;br /&gt;/\&lt;\d\d\d\d\&gt;               : Search for exactly 4 digit numbers&lt;br /&gt;/\&lt;\d\{4}\&gt;                 : same thing&lt;br /&gt;&lt;br /&gt;:s%/,/\r/gc                 : To find and replace all commas with a new line&lt;br /&gt;&lt;br /&gt;/^\n\{3}                    : find 3 empty lines&lt;br /&gt;:%s/^\n\{3}//               : delete blocks of 3 empty lines&lt;br /&gt;&lt;br /&gt;:%s/^\(.*\)\n\1$/\1/        : delete duplicate lines&lt;br /&gt;&lt;br /&gt;" Recording (BEST TIP of ALL)&lt;br /&gt;qq  # record to q&lt;br /&gt;your complex series of commands&lt;br /&gt;q   # end recording&lt;br /&gt;@q to execute&lt;br /&gt;@@ to Repeat&lt;br /&gt;5@@ to Repeat 5 times&lt;br /&gt;&lt;br /&gt;Thats it for now.Rest later&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114733689011323233?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114733689011323233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114733689011323233' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114733689011323233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114733689011323233'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/05/few-cool-vim-tips.html' title='A few cool vim tips'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114717878069531767</id><published>2006-05-09T17:06:00.000+05:30</published><updated>2006-05-11T21:47:54.820+05:30</updated><title type='text'>Connection drops when TTL changes!!!</title><content type='html'>I had a very strange issue today.There was a linux server that had been working for some time and suddenly the developer team suddenly started facing connection drops.they also noticed that whenever the ping ttl was 63 it was working fine. When it switched to 127 it started dropping. And worst, people started putting the blame on linux saying it was showing inconsistent behaviour and that was the last thing on earth I wanted to hear on linux. One of the biggest reasons why I prefer Linux/Unix over M$ is because for everything that misbehaves there is a reason.Its not that you restart the OS and all your problems will be over .But here I was left clueless because in /proc/sys/net/ipv4/ip_default_ttl was 64 only and there was no reason why it showed 127 in the ping .&lt;br /&gt;Well finally the problem was somebody else had given a new windows machine the same ip .Whenever traffic hit the windows machine it was returning 127 as the TTL and hence all connections to services on the linux server was dropping.&lt;br /&gt;The ip was then changed on the new machine and then the services connected happily ever after...............................&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114717878069531767?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114717878069531767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114717878069531767' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114717878069531767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114717878069531767'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/05/connection-drops-when-ttl-changes.html' title='Connection drops when TTL changes!!!'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114715750042035631</id><published>2006-05-09T12:11:00.000+05:30</published><updated>2006-05-09T21:46:50.590+05:30</updated><title type='text'>At work</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/3018/1655/1600/DSC01274.jpg"&gt;&lt;img style="cursor: pointer;" src="http://photos1.blogger.com/blogger/3018/1655/400/DSC01274.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/3018/1655/1600/DSC01308.jpg"&gt;&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114715750042035631?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114715750042035631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114715750042035631' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114715750042035631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114715750042035631'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/05/at-work.html' title='At work'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114702175192250252</id><published>2006-05-07T22:07:00.001+05:30</published><updated>2006-05-07T22:39:11.923+05:30</updated><title type='text'>Some occasions where you can replace awk with  cut</title><content type='html'>Let me tell you first that I love awk and its my favourite scripting language.But  in case you just have a one time simple requirement for column processing and you don't know awk , in some cases you can fulfil the requirement with cat and cut&lt;br /&gt;&lt;br /&gt;cat inputfile | cut -f 6 -d ' '&lt;br /&gt;where the sixth column would be output when space is the delimiter.&lt;br /&gt;&lt;br /&gt;the awk equivalent would be&lt;br /&gt;awk -F  ' { print  $6 } ' inputfile&lt;br /&gt;&lt;br /&gt;"And yet they said awk is difficult&lt;br /&gt;But Awk is a wonderful tool"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114702175192250252?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114702175192250252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114702175192250252' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114702175192250252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114702175192250252'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/05/some-occasions-where-you-can-replace_07.html' title='Some occasions where you can replace awk with  cut'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114693590225210269</id><published>2006-05-06T22:45:00.000+05:30</published><updated>2006-05-09T22:40:19.126+05:30</updated><title type='text'>A new great link</title><content type='html'>I got this one from my favourite linux support forum&lt;br /&gt;linuxquestions.org&lt;br /&gt;&lt;br /&gt;This guy has put up a large no of wonderful howto's .Probably if I had got this five months back I could have avoided my company having to pay Redmond a huge amount for M$ Exchange.Well in case there is anyone else right now in my situation its all right here.Have a look.Great work Paul&lt;br /&gt;http://www.yourhowto.org&lt;br /&gt;&lt;br /&gt;And one new thing that i learnt&lt;br /&gt;If you are pretty irritated by the password prompt every time you type sudo&lt;br /&gt;add an option NOPASSWD: ALL this to the visudo config file line where you have specified your user rights .The ALL above is for all commands you can restrict it according to your needs&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114693590225210269?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114693590225210269/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114693590225210269' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114693590225210269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114693590225210269'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/05/new-great-link.html' title='A new great link'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114672937450938928</id><published>2006-05-04T13:22:00.000+05:30</published><updated>2006-05-04T13:26:14.520+05:30</updated><title type='text'>Some M$ stuff</title><content type='html'>I am not suppose to be posting Redmond stuff here, but I feel this might be helpful to those *nix users who are used to configuring everything from the command line when they are forced to do something on a M$ system&lt;br /&gt;To use a command line to set IP address information on a Windows NIC :-&lt;br /&gt;&lt;span class="article"&gt;&lt;span name="intelliTxt" id="intelliTxt"&gt;&lt;b&gt; &lt;/b&gt; Windows Server 2003 and Windows XP provide the Netsh utility, which, among its many capabilities, can configure the IP properties of NICs. To set a static IP address, use this format:&lt;br /&gt;netsh interface ip set address local static &lt;ip&gt; &lt;subnet&gt; &lt;gateway&gt; &lt;metric&gt;&lt;br /&gt;as in the following example:&lt;br /&gt;netsh interface ip set address local static 192.168.1.15 255.255.255.0 192.168.1.1 1&lt;br /&gt; (Some command lines wrap to two lines here because of space constraints.)&lt;br /&gt; To set a client's NIC DNS settings, run this command:&lt;br /&gt;netsh interface ip set dns local static 192.168.1.150 primary&lt;br /&gt;To set a client back to DHCP, run these commands:&lt;br /&gt;netsh interface ip set address local source=dhcp&lt;br /&gt;netsh interface ip set dns local source=dhcp&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/17222475-114672937450938928?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114672937450938928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114672937450938928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114672937450938928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114672937450938928'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/05/some-m-stuff.html' title='Some M$ stuff'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114658685096953181</id><published>2006-05-02T21:42:00.000+05:30</published><updated>2006-05-02T21:50:51.026+05:30</updated><title type='text'>Partition deletion and grub problems</title><content type='html'>I recently deleted some partitions from my disk using fdisk , and they had nothing to do with my active OS , but at my next reboot , my system started giving kernel panic.&lt;br /&gt;The problem was that the deleted partitions were like hda5, hda6 etc and the partition where my OS was loaded was something like hda10,hda11 etc.Once the others were deleted , the partitions got renamed while menu.lst and fstab was as per the old numbering of the partitions.&lt;br /&gt;I went into single user mode , edited grub and fstab , and rebooted , but then on it got stuck at grub prompt.&lt;br /&gt;When i entered the parameters for root, kernel and initrd in grub and gave boot , it worked , but again at reboot it stood at grub.I tried rebooting after ensuring all changes were properly affected in grub.conf , menu.lst and in fstab(I use SUSE at home) but it still got stuck at grub.every time I entered the parameters and gave the boot command it worked ,but when the same thing was written in menu.lst it did not accept it.&lt;br /&gt;Finally I reinstalled grub from the normal prompt after booting from grub and rebooted and things were back to normal.&lt;br /&gt;Now my system works fine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114658685096953181?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114658685096953181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114658685096953181' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114658685096953181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114658685096953181'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/05/partition-deletion-and-grub-problems.html' title='Partition deletion and grub problems'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114655670509885734</id><published>2006-05-02T13:02:00.000+05:30</published><updated>2006-05-02T13:29:56.746+05:30</updated><title type='text'>SELinux (t)errors</title><content type='html'>One of my friends had a strange experience.He had a script stored inside the Apache document root and it could not be executed when the script was called directly using  "  ./script ".The executable permissions and all were fine but there was no way to run it there.But when the same script was called with   "bash script "&lt;br /&gt;It worked fine. Again if the script was copied somewhere else outside the Apache doc root it would work when directly executed also. The strace showed that open(/dev/tty) was returning a failure return code only when executed from the apache doc root. The strace o/p of both successful and unsuccessful executions of the script were put to diff and all the troubles seemed to begin from there.A lot of head scratching later we saw that Selinux was enabled on the box and that was the cause for all this.It was putting the Apache doc root in a chroot jail and was not allowing any script to be executed there.&lt;br /&gt;Then changed the setting in /etc/selinux/config from enforcing to disabled and&lt;br /&gt;echo 0 &gt; /selinux/enforce&lt;br /&gt;and lo things were back to normal&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114655670509885734?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114655670509885734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114655670509885734' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114655670509885734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114655670509885734'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/05/selinux-terrors.html' title='SELinux (t)errors'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114579922616823270</id><published>2006-04-23T18:59:00.000+05:30</published><updated>2006-04-24T15:13:52.620+05:30</updated><title type='text'>Firewall upgrade</title><content type='html'>I had upgraded my Nortel Contivity router with its latest firmware and all of a sudden traffic seemed to reach only my ISP's gateway but not beyond.Initially I thought it was the ISP's issue but then they confirmed  that there was no issue on their side.I had a look at my routing table and the default gateway was set to the next hop of one of our serial links .But in my configuration for the router I had not configured it like that anywhere .The ISP gateway was in the same subnet as my public ip so that was the reason why their gateway was reachable but not the other destinations.I searched through the static route entries and the default gateway specifications and saw a new check box to verify public default route .I checked it and then refreshed the routing table.That did not help.&lt;br /&gt;Next I thought of checking out the interface config of the serial links and  there stood a new check box for default route .It  was not there in the older version of the  GUI  for the firewall. It  caused that interface to be the default route and hence the other entry where I had specified the public default route was not being effective.Well I unchecked it and things started working fine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114579922616823270?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114579922616823270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114579922616823270' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114579922616823270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114579922616823270'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/04/firewall-upgrade.html' title='Firewall upgrade'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114579040257100229</id><published>2006-04-23T16:33:00.000+05:30</published><updated>2006-04-23T18:57:48.606+05:30</updated><title type='text'>A few but very simple ones</title><content type='html'>Check out this one&lt;br /&gt;cp /etc/httpd/conf/httpd.conf {,.bak}&lt;br /&gt;would substitute&lt;br /&gt;cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak&lt;br /&gt;Now that's a pretty simple one right ?&lt;br /&gt;&lt;br /&gt;To see the details about a file - i.e. its access time ,  size , blocks , inode etc..&lt;br /&gt;stat filename&lt;br /&gt;&lt;br /&gt;A cool link from Stanford University&lt;br /&gt;Here's a pretty impressive collection of network monitoring tools for any network admin&lt;br /&gt;http://www.slac.stanford.edu/xorg/nmtf/nmtf-tools.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114579040257100229?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114579040257100229/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114579040257100229' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114579040257100229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114579040257100229'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/04/few-but-very-simple-ones.html' title='A few but very simple ones'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114422348654837603</id><published>2006-04-05T12:45:00.000+05:30</published><updated>2006-04-05T22:08:20.056+05:30</updated><title type='text'>A few new tips</title><content type='html'>To identify if the processor is 32 bit or 64 bit  ( I guess the OS will also have to be corresponding)&lt;br /&gt;use        uname -i        or         getconf LONG_BIT&lt;br /&gt;&lt;br /&gt;To   identify processes using files or sockets (will come handy esp when you are unable to unmount disks)&lt;br /&gt;fuser port/type  eg   fuser   21/tcp will give the process ids using ftp on your machine&lt;br /&gt;fuser -km /home kills all processes accessing the file system /home in any way.&lt;br /&gt;Alternatively you could also use lsof and then pipe it to grep to find the file or process you are looking for&lt;br /&gt;&lt;br /&gt;To print real and effective UIDs and GIDs of a user use&lt;br /&gt;id username&lt;br /&gt;&lt;br /&gt;In case you get these errors for yum while attempting multiple mirrors&lt;br /&gt;[Errno -1] Metadata file does not match checksum&lt;br /&gt;give&lt;br /&gt;yum clean metadata&lt;br /&gt;and if that doesn't work then give&lt;br /&gt;yum clean all&lt;br /&gt;then try again&lt;br /&gt;&lt;br /&gt;To know the exit status of the last process executed&lt;br /&gt;echo $?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114422348654837603?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114422348654837603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114422348654837603' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114422348654837603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114422348654837603'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/04/few-new-tips.html' title='A few new tips'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114364059290345745</id><published>2006-03-29T19:19:00.000+05:30</published><updated>2006-03-29T22:56:24.696+05:30</updated><title type='text'>IPSEC from Nortel contivity to Juniper netscreen</title><content type='html'>I was having difficulties in getting an IPSEC tunnel shifted from a Cisco VPN Concentrator onto a Nortel Contivity router . Well it turned out that there were lots of options that needed to be changed with respect to the encryption settings in the Contivity.The default settings for each manufacturer is quite different.Anyway I got a document to configure the tunnel to a Juniper Netscreen (That was the other endpoint)  from a Nortel Contivity device and once the settings were done , it worked fine.&lt;br /&gt;I was also able to configure a User tunnel  on the Contivity .It was rather simple , I just created a user account in the profiles -&gt; users section of the gui for it and then assigned a IP address pool for the user and lo that did it.The connection was established . Then I had to open the firewall rules for people accessing the network through the tunnel.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114364059290345745?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114364059290345745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114364059290345745' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114364059290345745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114364059290345745'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/03/ipsec-from-nortel-contivity-to-juniper.html' title='IPSEC from Nortel contivity to Juniper netscreen'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114354264218575843</id><published>2006-03-28T16:08:00.000+05:30</published><updated>2006-03-29T22:55:50.416+05:30</updated><title type='text'>Packet drops on an RF link</title><content type='html'>This has been bugging me for so many days now. A small percentage of packet drops and remote connections become a nightmare.Well this time it seems the signals from the RF transmitter on top of the ISP's tower were weak because the  alignment of the transmitter had changed and the signal strength to our ISP base station had become low and thus the packet drops.&lt;br /&gt;The ISP guys aligned the transmitter and now the link is fine&lt;br /&gt;Well on other occasions the reasons for packet drops were duplex setting mismatch, choking etc&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114354264218575843?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114354264218575843/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114354264218575843' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114354264218575843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114354264218575843'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/03/packet-drops-on-rf-link.html' title='Packet drops on an RF link'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114353427420211612</id><published>2006-03-28T13:48:00.000+05:30</published><updated>2006-03-29T22:55:31.950+05:30</updated><title type='text'>Samba  suddenly stopped working</title><content type='html'>My Samba server with ADS authentication suddenly stopped working .&lt;br /&gt;When I gave wbinfo -u and getent passwd it was all working fine.&lt;br /&gt;Then i tried kinit username@domain.tld and it gave the error&lt;br /&gt;kinit(v5): Cannot find KDC for requested realm while getting initial credentials&lt;br /&gt;I set dns_lookup_kdc = true in krb5.conf&lt;br /&gt;Next it gave the error&lt;br /&gt;kinit(v5): Clock skew too great while getting initial credentials&lt;br /&gt;For some reason the ntp synchronization with my Windows AD had stopped.&lt;br /&gt;I went to system-config-time and reconfigured the ntp server as the AD and it worked.&lt;br /&gt;Well later I figured out that the first error was because I gave lower case in the domain name in the kinit statement and the actual problem was not that.Anyway with the dns_lookup_kdc = true in the krb5.conf lower case also seems to work....................:-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114353427420211612?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114353427420211612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114353427420211612' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114353427420211612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114353427420211612'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/03/samba-suddenly-stopped-working.html' title='Samba  suddenly stopped working'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114348130892138380</id><published>2006-03-27T23:11:00.000+05:30</published><updated>2006-03-29T22:52:22.760+05:30</updated><title type='text'>Misc Tips for Linux</title><content type='html'>The First Collection&lt;br /&gt;To sort the union of two files removing duplicate lines. Suppose a and b contain the files. Do just this:&lt;br /&gt;cat a b | sort -u -k 2&lt;br /&gt;-u means unique, -k 2 selects the second field as sorting key.&lt;br /&gt;&lt;br /&gt;Need to "watch" everything a user does? The following watches donkey.&lt;br /&gt;$ watch lsof -u donkey&lt;br /&gt;Or, to see what in going on in directory "/work/junk"&lt;br /&gt;$ watch lsof +D /work/junk&lt;br /&gt;&lt;br /&gt;To view text output of a binary file&lt;br /&gt;strings /bin/ls&lt;br /&gt;&lt;br /&gt;strace can also be used to trace an already started program.&lt;br /&gt;Usage: strace -p pid (where pid is the process id of the program)&lt;br /&gt;&lt;br /&gt;To find files opened by a process&lt;br /&gt;ls -al /proc/process-id/fd/&lt;br /&gt;&lt;br /&gt;*Find package which gives library&lt;br /&gt;rpm -q --whatprovides /usr/lib/libreadline.so.4&lt;br /&gt;&lt;br /&gt;Files being used by diff processes&lt;br /&gt;/usr/sbin/lsof&lt;br /&gt;to check how much swap is under use type "cat /proc/meminfo" at a console.&lt;br /&gt;&lt;br /&gt;MOUNTS&lt;br /&gt;mount -t smbfs -o workgroup=domain.tld,uid=user,password=password //192.168.21.14/share /mnt/mountpoint&lt;br /&gt;&lt;br /&gt;GUI Problems&lt;br /&gt;* panel disappears suddenly - killall -9 panel ; /usr/bin/gnome-panel ;&lt;br /&gt;&lt;br /&gt;CREATE A SWAP FILE INSTEAD OF PARTITION&lt;br /&gt;# dd if=/dev/zero of=swapfile bs=1024 count=65536&lt;br /&gt;---&gt; this creates a 64Mb file with the name "swapfile"&lt;br /&gt;# mkswap swapfile ---&gt; to make it a swap file&lt;br /&gt;# swapon swapfile ----&gt; this will add the file as a swapfile&lt;br /&gt;# cat /proc/meminfo ---&gt; to check the new swap size&lt;br /&gt;If you are done using the swap file, you can swapoff the file:&lt;br /&gt;# swapoff swapfile ----&gt; to remove the swap file&lt;br /&gt;&lt;br /&gt;Using a CORAID box as LVM :&lt;br /&gt;Include this line in /etc/lvm2/lvm.conf&lt;br /&gt;under the devices section&lt;br /&gt;types = [ "aoe" ,16 ]&lt;br /&gt;modprobe aoe&lt;br /&gt;vgscan&lt;br /&gt;vgchange -a y&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114348130892138380?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114348130892138380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114348130892138380' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114348130892138380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114348130892138380'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/03/misc-tips-for-linux.html' title='Misc Tips for Linux'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17222475.post-114347930426372489</id><published>2006-03-27T22:25:00.000+05:30</published><updated>2006-03-29T22:54:24.316+05:30</updated><title type='text'>In the name of Allah ,Most Gracious , Most merciful</title><content type='html'>I am not a regular diary writer and so I wasn't much interested in blogging but then I thought OK I will post on this everyday whatever troubleshooting I do in my work  and some misc tips - might be handy for me later or for somebody else.And some other thoughts that come across my mind during my day's work or while browsing the net.&lt;br /&gt;&lt;br /&gt;If at all any of it helps you at any point of time , please put in a comment in here.&lt;br /&gt;If you have got any doubts about it also , feel free to put it across to me ,we'll sit and sort it out.&lt;br /&gt;And of course If you see any mistakes please point that out also.&lt;br /&gt;&lt;br /&gt;I will begin by putting up a few of my favourite tips that I have compiled over the past year&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/17222475-114347930426372489?l=nmkuttiady.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nmkuttiady.blogspot.com/feeds/114347930426372489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=17222475&amp;postID=114347930426372489' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114347930426372489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17222475/posts/default/114347930426372489'/><link rel='alternate' type='text/html' href='http://nmkuttiady.blogspot.com/2006/03/in-name-of-allah-most-gracious-most.html' title='In the name of Allah ,Most Gracious , Most merciful'/><author><name>Nabeel</name><uri>http://www.blogger.com/profile/11566577757682981764</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp1.blogger.com/_X4SVZsxyXEQ/Rop3aRC8BYI/AAAAAAAAABg/Gta-9FVdWAM/s320/DSC00784.JPG'/></author><thr:total>0</thr:total></entry></feed>
