<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Colocation to Virtualization &#187; Linux</title>
	<atom:link href="http://blog.colovirt.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.colovirt.com</link>
	<description>and linux between</description>
	<lastBuildDate>Fri, 30 Jul 2010 13:00:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.colovirt.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/afd0d00d02b5abc67acf29066e3d1e3b?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Colocation to Virtualization &#187; Linux</title>
		<link>http://blog.colovirt.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.colovirt.com/osd.xml" title="Colocation to Virtualization" />
	<atom:link rel='hub' href='http://blog.colovirt.com/?pushpress=hub'/>
		<item>
		<title>Cisco, VMware: Cisco UCS B250-M1 VMware Consolidation Ratio (Oracle DBs)</title>
		<link>http://blog.colovirt.com/2010/06/01/cisco-vmware-cisco-ucs-b250-m1-vmware-consolidation-ratio-oracle-dbs/</link>
		<comments>http://blog.colovirt.com/2010/06/01/cisco-vmware-cisco-ucs-b250-m1-vmware-consolidation-ratio-oracle-dbs/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 14:54:59 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Colocation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[b250]]></category>
		<category><![CDATA[B250-M1]]></category>
		<category><![CDATA[blade]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[consolidation]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[full width]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[ram]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[ucs]]></category>
		<category><![CDATA[utilization]]></category>
		<category><![CDATA[vm]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[x5570]]></category>
		<category><![CDATA[xeon]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=815</guid>
		<description><![CDATA[Cisco, VMware: Cisco UCS B250-M1 VMware Consolidation Ratio (Oracle DBs)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=815&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>So a few days ago, I put out a post on the VMware Virtual Machine consolidation ratio I saw on our <a href="http://blog.colovirt.com/2010/05/24/cisco-vmware-cisco-ucs-b6620-vmware-consolidation-ratio/">Cisco B200-M1 blades</a>.  This post will go over the same for full width B250-M1 blades.</p>
<p><strong>The server itself is running mainly Oracle database VMs.  Blade specs are as follows:</strong></p>
<li>Dual &#8211; Quad core Intel Xeon X5570  2.93 GHZ CPUs</li>
<li>98 gigs of RAMSince the Oracle VMs are running semi-intensive databases, the RAM allocated to the heavy hitters are between 8-10 gigs.<br />
<span id="more-815"></span></p>
<div id="attachment_816" class="wp-caption alignnone" style="width: 469px"><a href="http://colovirt.files.wordpress.com/2010/05/b250m1_4.jpg"><img class="size-full wp-image-816" title="B250m1 Stats From UCS" src="http://colovirt.files.wordpress.com/2010/05/b250m1_4.jpg?w=459&#038;h=560" alt="" width="459" height="560" /></a><p class="wp-caption-text">B250m1 Stats From UCS</p></div>
<div id="attachment_817" class="wp-caption alignnone" style="width: 380px"><a href="http://colovirt.files.wordpress.com/2010/05/b250m1_3.jpg"><img class="size-full wp-image-817" title="B250m1 Stats From Virtual Center" src="http://colovirt.files.wordpress.com/2010/05/b250m1_3.jpg?w=370&#038;h=373" alt="" width="370" height="373" /></a><p class="wp-caption-text">B250m1 Stats From Virtual Center</p></div>
<p><strong>Now for the actual utilization statistics.  The following is from Virtual Center showing the physical B250-M1 database server.  You can see that the CPUs are more highly used in this environment.</strong></p>
<div id="attachment_818" class="wp-caption alignnone" style="width: 507px"><a href="http://colovirt.files.wordpress.com/2010/05/b250m1_1.jpg"><img class="size-full wp-image-818" title="B250m1 VC Utilization" src="http://colovirt.files.wordpress.com/2010/05/b250m1_1.jpg?w=497&#038;h=77" alt="" width="497" height="77" /></a><p class="wp-caption-text">B250m1 VC Utilization</p></div>
<p><strong>Again, this is a mix between Windows Remote desktop and Oracle (RedHat Linux) database servers.  The following shows utilization information perm VM.</strong></p>
<div id="attachment_820" class="wp-caption alignnone" style="width: 507px"><a href="http://colovirt.files.wordpress.com/2010/05/b250m1_2.jpg"><img class="size-full wp-image-820" title="B250m1_2 VM Utilization" src="http://colovirt.files.wordpress.com/2010/05/b250m1_2.jpg?w=497&#038;h=155" alt="" width="497" height="155" /></a><p class="wp-caption-text">B250m1_2 VM Utilization</p></div>
<p><strong>Hopefully this gives you a little more information concerning Oracle, VMware, Cisco UCS, and consolidation ratios for the full-width blades.</strong> <strong> Again, this server is running 98gigs of RAM.  Next purchase cycle, we will be upgrading the amount of RAM in all of our blades to get better consolidation.</strong></li>
<br />Filed under: <a href='http://blog.colovirt.com/category/colocation/'>Colocation</a>, <a href='http://blog.colovirt.com/category/linux/'>Linux</a>, <a href='http://blog.colovirt.com/category/vmware/'>VMWare</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/815/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/815/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/815/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/815/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/815/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/815/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/815/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/815/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/815/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/815/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=815&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2010/06/01/cisco-vmware-cisco-ucs-b250-m1-vmware-consolidation-ratio-oracle-dbs/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>

		<media:content url="http://colovirt.files.wordpress.com/2010/05/b250m1_4.jpg" medium="image">
			<media:title type="html">B250m1 Stats From UCS</media:title>
		</media:content>

		<media:content url="http://colovirt.files.wordpress.com/2010/05/b250m1_3.jpg" medium="image">
			<media:title type="html">B250m1 Stats From Virtual Center</media:title>
		</media:content>

		<media:content url="http://colovirt.files.wordpress.com/2010/05/b250m1_1.jpg" medium="image">
			<media:title type="html">B250m1 VC Utilization</media:title>
		</media:content>

		<media:content url="http://colovirt.files.wordpress.com/2010/05/b250m1_2.jpg" medium="image">
			<media:title type="html">B250m1_2 VM Utilization</media:title>
		</media:content>
	</item>
		<item>
		<title>Storage, SAN, Linux: EMC PowerPath Configuration On Cisco UCS</title>
		<link>http://blog.colovirt.com/2010/05/04/storage-san-linux-emc-powerpath-configuration-on-cisco-ucs/</link>
		<comments>http://blog.colovirt.com/2010/05/04/storage-san-linux-emc-powerpath-configuration-on-cisco-ucs/#comments</comments>
		<pubDate>Tue, 04 May 2010 14:39:42 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[EMC]]></category>
		<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SAN (Storage Area Network)]]></category>
		<category><![CDATA[san]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[license]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[Power Path]]></category>
		<category><![CDATA[powerpath]]></category>
		<category><![CDATA[EMCpower.LINUX]]></category>
		<category><![CDATA[EMCpower]]></category>
		<category><![CDATA[emcpreg]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[powermt]]></category>
		<category><![CDATA[fnic]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[paths]]></category>
		<category><![CDATA[boot from san]]></category>
		<category><![CDATA[emcpowera1]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=707</guid>
		<description><![CDATA[Storage, SAN, Linux: EMC PowerPath Configuration On Cisco UCS<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=707&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>The following is a walk through of installing EMC PowerPath software on RedHat based Linux hosts (CentOS/Fedora).  This is required to fully utilize multiple paths to EMC SANs.  The test server used here is a Cisco UCS B250-M1 blade running FCOE over 10gb Ethernet.  The configuration steps work for ISCSI, Fiber Channel, and FCOE connectivity to Clariion systems.</p>
<p><strong>First, copy the RPM installation package over to the server.  Below shows the package to be installed.</strong></p>
<pre>[root@test_server01 user01]# ll
total 7036
-rw-r--r-- 1 user01 user01 7191661 Apr 27 09:24 EMCpower.LINUX-5.3.1.00.00-111.rhel5.x86_64.rpm</pre>
<p><strong>Install the package via &#8220;rpm -i&#8221;.<span id="more-707"></span></strong></p>
<pre>[root@test_server01 user01]# rpm -i EMCpower.LINUX-5.3.1.00.00-111.rhel5.x86_64.rpm
All trademarks used herein are the property of their respective owners.
NOTE:License registration is not required to manage the CLARiiON AX series array.</pre>
<p><strong>Before powerpath can be used, a license key must be installed.</strong></p>
<pre>[root@test_server01 user01]# emcpreg -list
unable to open license key file: No such file or directory</pre>
<p><strong>Overview of the &#8220;emcpreg -add&#8221; syntax.</strong></p>
<pre>[root@test_server01 user01]# emcpreg -add
Missing option parameter.
Usage:
    emcpreg [opts] -add key [key ...]
    emcpreg [opts] -remove key [key ...]
    emcpreg [opts] -check key [key ...]
    emcpreg [opts] -list
    emcpreg [opts] -edit
    emcpreg [opts] -install
Options:
    -f file     license file</pre>
<p><strong>Now we add the license key to powerpath.  The following key is fake!  You must obtain yours from EMC.</strong></p>
<pre>[root@test_server01 user01]# emcpreg -add AGE4-DFD3-89842-DSAF-JIJ0-WKG50
1 key(s) successfully added.

<strong>Make sure the license was installed correctly.</strong>
[root@test_server01 user01]# emcpreg -list

Key AGE4-DFD3-89842-DSAF-JIJ0-WKG50
  Product: <strong>PowerPath</strong>
  Capabilities: <strong>All</strong>
[root@test_server01 user01]#</pre>
<p><strong>Next, start the Power Path service.</strong></p>
<pre>[root@test_server01 user01]# /etc/init.d/PowerPath start
Starting PowerPath:  done</pre>
<p><strong>Display the current paths to storage via &#8220;powermt&#8221;.  Since this server is booting from SAN and just being installed, there is currently only one path to storage.</strong></p>
<pre>[root@test_server01 ~]# powermt display dev=all
Pseudo name=emcpowera
CLARiiON ID=AXE00515480482 [test_server01_ucs]
Logical device ID=15618646804648SDSDFW84FW4894949 [test_server01_ucs_boot]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=Unknown, current=SP A    Array failover mode: 1
==============================================================================
---------------- Host ---------------   - Stor -   -- I/O Path -  -- Stats ---
###  HW Path                I/O Paths    Interf.   Mode    State  Q-IOs Errors
==============================================================================
   0 fnic                      sda       SP A0     active  alive      0      0</pre>
<p>Now that powerpath is installed, we need to edit fstab to boot off of the Power Path device.</p>
<p>Origional fstab using labels for &#8220;/boot&#8221;.</p>
<pre>/dev/lvm/root           /                       ext3    defaults        1 1
/dev/lvm/usr            /usr                    ext3    defaults        1 2
/dev/lvm/app            /app                    ext3    defaults        1 2
/dev/lvm/home           /home                   ext3    defaults        1 2
/dev/lvm/var            /var                    ext3    defaults        1 2
/dev/lvm/vartmp         /var/tmp                ext3    defaults        1 2
/dev/lvm/UsrLocal       /usr/local              ext3    defaults        1 2
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-sda3         swap                    swap    defaults        0 0</pre>
<p><strong>Below is the edited fstab with &#8220;LABEL=/boot&#8221; commented out and /boot changed to use &#8220;/dev/emcpowera1&#8243;</strong></p>
<pre>[root@test_server01 ~]# vi /etc/fstab
/dev/lvm/root           /                       ext3    defaults        1 1
/dev/lvm/usr            /usr                    ext3    defaults        1 2
/dev/lvm/app            /app                    ext3    defaults        1 2
/dev/lvm/home           /home                   ext3    defaults        1 2
/dev/lvm/var            /var                    ext3    defaults        1 2
/dev/lvm/vartmp         /var/tmp                ext3    defaults        1 2
/dev/lvm/UsrLocal       /usr/local              ext3    defaults        1 2
/dev/emcpowera1         /boot                   ext3    defaults        0 0
#LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-sda3         swap                    swap    defaults        0 0</pre>
<p><strong>Filesystem options were changed to &#8220;0 0&#8243; on emcpowera due to RedHat trying to do filesystem scans before the Power Path driver is started.</strong></p>
<p><strong>All paths now need to be zoned in the fiber switch, initiators registered in Navisphere, and paths added to the host in it&#8217;s storage group.  This will not be covered here.</strong></p>
<p><strong>After zoning both paths on one switch, &#8220;powermt&#8221; now shows a path to both Clariion SPA and SPB.  If not, try either stopping and restartaring &#8220;/etc/init.d/PowerPath&#8221; or restarting the server.</strong></p>
<pre>[root@test_server01 ~]# powermt display dev=all
Pseudo name=emcpowera
CLARiiON ID=AXE00515480482 [test_server01_ucs]
Logical device ID=15618646804648SDSDFW84FW4894949 [test_server01_ucs_boot]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=SP B, current=SP A       Array failover mode: 1
==============================================================================
---------------- Host ---------------   - Stor -   -- I/O Path -  -- Stats ---
###  HW Path                I/O Paths    Interf.   Mode    State  Q-IOs Errors
==============================================================================
   0 fnic                      sdc       SP B1     active  alive      0      0
   0 fnic                      sdd       SP A0     active  alive      0      0</pre>
<p><strong>Configuration has now been completed on fiber switch 2 and both SPA and SPB in the Clariion.  Reboot the server.  Again, &#8220;powermt&#8221; is used to list the paths.</strong></p>
<pre>[root@test_server01 ~]# powermt display dev=all
Pseudo name=emcpowera
CLARiiON ID=AXE00515480482 [test_server01_ucs]
Logical device ID=15618646804648SDSDFW84FW4894949 [test_server01_ucs_boot]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=SP B, current=SP B       Array failover mode: 1
==============================================================================
---------------- Host ---------------   - Stor -   -- I/O Path -  -- Stats ---
###  HW Path                I/O Paths    Interf.   Mode    State  Q-IOs Errors
==============================================================================
   0 fnic                      sdc       SP B1     active  alive      0      0
   0 fnic                      sdd       SP A0     active  alive      0      0
   1 fnic                      sde       SP B0     active  alive      0      0
   1 fnic                      sdf       SP A1     active  alive      0      0</pre>
<p><strong>From above, you can see that we now have 4 paths definied.  Both fnic interfaces can see SPA and SPB.  Each fnic is attached to a seperage fiber switch, so we have redundant paths to both Clariion heads (SP&#8217;s).  Once rebooted, the server should load fine with no issues and see all paths via powermt.</strong></p>
<p><strong>Notes:  &#8220;/boot&#8221; is the storage label used in this example.  If your mount point is different, modify it&#8217;s entry instead.  &#8220;/dev/emcpowera1&#8243; is used since there is only one LUN mapped to this host.  Like anything else, if there are more than one, each would have it&#8217;s own device.<br />
</strong></p>
<br />Filed under: <a href='http://blog.colovirt.com/category/san-storage-area-network/emc-san-storage-area-network/'>EMC</a>, <a href='http://blog.colovirt.com/category/filesystems/'>Filesystems</a>, <a href='http://blog.colovirt.com/category/linux/'>Linux</a>, <a href='http://blog.colovirt.com/category/san-storage-area-network/'>SAN (Storage Area Network)</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/707/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/707/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/707/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/707/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/707/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=707&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2010/05/04/storage-san-linux-emc-powerpath-configuration-on-cisco-ucs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Hardware, Linux, Networking: Cisco UCS Time Problem</title>
		<link>http://blog.colovirt.com/2010/04/28/hardware-linux-networking-cisco-ucs-time-problem/</link>
		<comments>http://blog.colovirt.com/2010/04/28/hardware-linux-networking-cisco-ucs-time-problem/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 14:12:55 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[Cisco Unified Computing]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[ucs]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 2008]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=698</guid>
		<description><![CDATA[Hardware, Linux, Networking: Cisco UCS Time Problem<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=698&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>So we have our new Cisco UCS system installed  and a weird problem is showing up.  The Cisco UCS Manager console shows the correct date (2010), but when setting up a new server, the date is incorrect.  Also, an NTP server (working correctly) is set.  Since we mainly run Linux here, the NTP service will not update the date/time from the NTP server because of how long the difference is between the system clock and NTP.  Also, on a Windows 2008 install we had to manually adjust the time/date as well</p>
<p>This is not a major issue, just an annoyance.  We also use RedHat Satellite server and can not join to the patch management system with the incorrect date.  So my question is where does the OS get it&#8217;s bad time from?  I figure that the OS gets the time from the bios and that the bios would obtaion the information from UCS Manger.  That does not appear to be the case.</p>
<p><span id="more-698"></span><strong>Below is an example of the issue:</strong></p>
<div id="attachment_700" class="wp-caption alignnone" style="width: 310px"><a href="http://colovirt.files.wordpress.com/2010/04/cisco_ucs_time.jpg"><img class="size-medium wp-image-700" title="Cisco_UCS_Time" src="http://colovirt.files.wordpress.com/2010/04/cisco_ucs_time.jpg?w=300&#038;h=157" alt="" width="300" height="157" /></a><p class="wp-caption-text">Cisco UCS Time</p></div>
<p><strong>Above in the bottom right corner shows the correct time and date in the Cisco UCS Manager.</strong></p>
<p><strong>Below you can see that the date shows 2009 on a freshly installed server in UCS.  The difference of the time and day are due to screen shots taking a day apart, but you get the idea.  It&#8217;s not 2009.</strong></p>
<div id="attachment_702" class="wp-caption alignnone" style="width: 310px"><strong><strong><a href="http://colovirt.files.wordpress.com/2010/04/cisco_ucs_time_1.jpg"><img class="size-medium wp-image-702" title="Cisco UCS Bios Time" src="http://colovirt.files.wordpress.com/2010/04/cisco_ucs_time_1.jpg?w=300&#038;h=266" alt="" width="300" height="266" /></a></strong></strong><p class="wp-caption-text">Cisco UCS Bios Time</p></div>
<p><strong> </strong></p>
<p><strong>Server has just been installed and booted.  The command &#8220;date&#8221; is issued to see the current time.</strong></p>
<pre>[root@test-server02 build]# date
Sat Aug 15 02:37:24 EDT 2009</pre>
<p><strong>As seen from above, the date is incorrect (2009).  NTP needs to be updated, but the service must be stopped first, or else it will not accept the new time.</strong></p>
<pre>[root@test-server02 build]# /etc/init.d/ntpd stop
Shutting down ntpd:                                        [  OK  ]</pre>
<p><strong>Once stopped, &#8220;ntpdate&#8221; is used to query an NTP server and adjust the local server time.</strong></p>
<pre>[root@test-server02 build]# ntpdate pool.ntp.org
27 Apr 14:36:23 ntpdate[5214]: step time server 70.86.250.6 offset 22075095.967480 sec</pre>
<p><strong>Now that the system time is correct, NTP service is restarted to</strong></p>
<pre>[root@test-server02 build]# /etc/init.d/ntpd start
Starting ntpd:                                             [  OK  ]</pre>
<p><strong>From here on out, the time will be correct and sync with the NTP service withouth issue.</strong></p>
<pre>[root@test-server02 build]# date
Tue Apr 27 14:36:40 EDT 2010</pre>
<br />Filed under: <a href='http://blog.colovirt.com/category/hardware/'>Hardware</a>, <a href='http://blog.colovirt.com/category/linux/'>Linux</a>, <a href='http://blog.colovirt.com/category/networking/'>Networking</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/698/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/698/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/698/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/698/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/698/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/698/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/698/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/698/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/698/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/698/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=698&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2010/04/28/hardware-linux-networking-cisco-ucs-time-problem/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>

		<media:content url="http://colovirt.files.wordpress.com/2010/04/cisco_ucs_time.jpg?w=300" medium="image">
			<media:title type="html">Cisco_UCS_Time</media:title>
		</media:content>

		<media:content url="http://colovirt.files.wordpress.com/2010/04/cisco_ucs_time_1.jpg?w=300" medium="image">
			<media:title type="html">Cisco UCS Bios Time</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux: Cat And Tac &#8211; Reverse File Browsing</title>
		<link>http://blog.colovirt.com/2010/04/22/linux-cat-and-tac-reverse-file-browsing/</link>
		<comments>http://blog.colovirt.com/2010/04/22/linux-cat-and-tac-reverse-file-browsing/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 14:49:22 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[log files]]></category>
		<category><![CDATA[more]]></category>
		<category><![CDATA[pipe]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[reverse]]></category>
		<category><![CDATA[tac]]></category>
		<category><![CDATA[tail]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=690</guid>
		<description><![CDATA[Linux: Cat And Tac - Reverse File Browsing.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=690&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I always wind up forgetting the &#8220;tac&#8221; command, but it is definitely useful!  Normally when I am trying to track down issues, the command usually winds up looking like</p>
<pre>[root@tsthost01 log]# tail -50 /var/log/messages | more
Apr 21 14:27:58 t1ps-db01 snmpd[2936]: Received SNMP packet(s) from UDP: [127.0.10.77]
Apr 21 14:28:13 127.0.10.99 last message repeated 9 times
Apr 21 14:28:13 127.0.10.99 snmpd[2291]: Connection from UDP: [127.0.10.77]
Apr 21 14:28:13 127.0.10.99 snmpd[2291]: Received SNMP packet(s) from UDP: [127.0.10.77]
Apr 21 14:28:13 127.0.10.99 snmpd[2291]: Connection from UDP: [127.0.10.77]
Apr 21 14:28:13 127.0.10.99 snmpd[2291]: Received SNMP packet(s) from UDP: [127.0.10.77]
Apr 21 14:28:13 127.0.10.99 snmpd[2291]: Connection from UDP: [127.0.10.77]
Apr 21 14:28:19 127.0.10.81 last message repeated 18 times
Apr 21 14:28:25 127.0.10.26 MultiModemiSMS last message repeated 2 time(s)
... truncated
--More--</pre>
<p>Then I scroll through the results and how what I am looking for is in those 50 linues.  Unfortunately the information nornally is not and I re-run the command adding &#8220;-100&#8243; or &#8220;-200&#8243; to replace the &#8220;-50&#8243;.  That is definitely not the best way to do it.<span id="more-690"></span></p>
<p>The better way for searching from the end of large files is to use &#8220;tac&#8221; instead of &#8220;cat&#8221; or tail.  It might be obvious, but &#8220;tac&#8221; is just &#8220;cat&#8221; reversed.  Bellow are from the man pages of each command</p>
<pre>NAME       cat - concatenate files and print on the standard output

NAME       tail - output the last part of files

NAME       tac - concatenate and print files in reverse</pre>
<p>Below is an example of cat used to read a file.</p>
<pre>root@kdesk-l:~# cat GreenEggs
Do you like
green eggs and ham?
I do not like them, Sam-I-am.
I do not like
green eggs and ham.

Would you like them
here or there?

I would not like them
here or there.
I would not like them anywhere.
</pre>
<p>Next is tac reading the same file.  Notice the content has been read in reverse.</p>
<pre>root@kdesk-l:~# tac GreenEggs
I would not like them anywhere.
here or there.
I would not like them

here or there?
Would you like them

green eggs and ham.
I do not like
I do not like them, Sam-I-am.
green eggs and ham?
Do you like
</pre>
<p>Hopefully you can see some benefit to using this, especially in conjunction with the &#8220;more&#8221; command.</p>
<pre>[root@tsthost01 log]# tac messages | more</pre>
<p>Below are some schenarios that tac would be good for<br />
- Going through log files from newest events to old<br />
- Reviewing Java error log files (normally waaayyyyy to much information in those)<br />
- Checking mailserver or DNS server logs<br />
- When needing to go through a file without knowing exactly what you need to use &#8220;grep&#8221; to search for</p>
<p>Notes:  The &#8220;tac&#8221; command is pretty much standard issue on Linux based systems. I tested this on RedHat, CentOS, and Ubuntu</p>
<br />Filed under: <a href='http://blog.colovirt.com/category/linux/'>Linux</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/690/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/690/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/690/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/690/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/690/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/690/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/690/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/690/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/690/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/690/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=690&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2010/04/22/linux-cat-and-tac-reverse-file-browsing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux, Networking, Security: Get Remote SSL Certificate From Command Line</title>
		<link>http://blog.colovirt.com/2010/03/03/linux-networking-security-get-remote-ssl-certificate-from-command-line/</link>
		<comments>http://blog.colovirt.com/2010/03/03/linux-networking-security-get-remote-ssl-certificate-from-command-line/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 20:31:00 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Middle Ware]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[443]]></category>
		<category><![CDATA[ca]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[certificate authority]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[s_client]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=676</guid>
		<description><![CDATA[Linux, Networking, Security: Get Remote SSL Certificate From Command Line<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=676&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Easy way to get the SSL certificate of a server from the command line in Linux.  The nice thing about it is that you get the full certificate chain.  Nice for troubleshooting issues.  After the &#8220;-connect&#8221;, specify the host and port you want to connect to.  TCP port 443 is the default https port. </strong></p>
<pre>[user1@testserver ~]$ openssl s_client -connect mail.google.com:443
<span id="more-676"></span>
CONNECTED(00000003)
---
Certificate chain
 0 s:/C=US/ST=California/L=Mountain View/O=Google Inc/CN=mail.google.com
   i:/C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA
 1 s:/C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA
   i:/C=US/O=VeriSign, Inc./OU=Class 3 Public Primary Certification Authority
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIDIjCCAougAwIBAgIQHxn23jXdY6FCkYrVLMCrEjANBgkqhkiG9w0BAQUFADBM
MQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkg
THRkLjEWMBQGA1UEAxMNVGhhd3RlIFNHQyBDQTAeFw0wOTEyMTgwMDAwMDBaFw0x
MTEyMTgyMzU5NTlaMGkxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlh
MRYwFAYDVQQHFA1Nb3VudGFpbiBWaWV3MRMwEQYDVQQKFApHb29nbGUgSW5jMRgw
FgYDVQQDFA9tYWlsLmdvb2dsZS5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJ
AoGBANknyBHye+RFyUa2Y3WDsXd+F0GJgDjxRSegPNnoqABL2QfQut7t9CymrNwn
E+wMwaaZF0LmjSfSgRSwS4L6ssXQuyBZYiijlrVh9nbBbUbS/brGDz3RyXeaWDP2
BnYyrVFfKV9u+BKLrebFCDmzQ0OpW5Ed1+PPUd91WY6NgKtTAgMBAAGjgecwgeQw
DAYDVR0TAQH/BAIwADA2BgNVHR8ELzAtMCugKaAnhiVodHRwOi8vY3JsLnRoYXd0
ZS5jb20vVGhhd3RlU0dDQ0EuY3JsMCgGA1UdJQQhMB8GCCsGAQUFBwMBBggrBgEF
BQcDAgYJYIZIAYb4QgQBMHIGCCsGAQUFBwEBBGYwZDAiBggrBgEFBQcwAYYWaHR0
cDovL29jc3AudGhhd3RlLmNvbTA+BggrBgEFBQcwAoYyaHR0cDovL3d3dy50aGF3
dGUuY29tL3JlcG9zaXRvcnkvVGhhd3RlX1NHQ19DQS5jcnQwDQYJKoZIhvcNAQEF
BQADgYEAicju7fexy+yRP2drx57Tcqo+BElR1CiHNZ1nhPmS9QSZaudDA8jy25IP
VWvjEgaq13Hro0Hg32ZNVK53qcXwjWtnCAReojvNwj6/x1Ciq5B6D7E6eiYDSfXJ
8/a2vR5IbgY89nq+wuHaA6vspH6vNR848xO3z1PQ7BrIjnYQ1A0=
-----END CERTIFICATE-----
subject=/C=US/ST=California/L=Mountain View/O=Google Inc/CN=mail.google.com issuer=/C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA
---
No client certificate CA names sent
---
SSL handshake has read 1778 bytes and written 316 bytes
---
New, TLSv1/SSLv3, Cipher is AES256-SHA
Server public key is 1024 bit
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1
    Cipher    : AES256-SHA
    Session-ID: DEB23CF699255054E08F69181B2342E9F6D6DF0D02B399C36034E0D8BE18AC0C
    Session-ID-ctx:
    Master-Key: D696A99CEC2FDD9535FE2EC936531AD129FD97E56441E37AE7A143C40304E395EA7DA039797B948B009B42DA5377E668
    Key-Arg   : None
    Krb5 Principal: None
    Start Time: 1267560715
    Timeout   : 300 (sec)
    Verify return code: 0 (ok)
---
HTTP/1.0 400 Bad Request
Content-Type: text/html; charset=UTF-8
Content-Length: 1350
Date: Tue, 02 Mar 2010 20:11:57 GMT
Server: GFE/2.0
X-XSS-Protection: 0
</pre>
<br />Filed under: <a href='http://blog.colovirt.com/category/linux/'>Linux</a>, <a href='http://blog.colovirt.com/category/middle-ware/'>Middle Ware</a>, <a href='http://blog.colovirt.com/category/networking/'>Networking</a>, <a href='http://blog.colovirt.com/category/security/'>Security</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/676/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/676/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/676/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/676/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/676/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/676/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/676/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/676/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/676/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/676/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=676&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2010/03/03/linux-networking-security-get-remote-ssl-certificate-from-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>VMware, Linux: Install VMware Tools On RedHat Based Systems</title>
		<link>http://blog.colovirt.com/2010/01/12/vmware-linux-install-vmware-tools-on-redhat-based-systems/</link>
		<comments>http://blog.colovirt.com/2010/01/12/vmware-linux-install-vmware-tools-on-redhat-based-systems/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 18:58:20 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rh]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[vSphere]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[vmware-config-tools.pl]]></category>
		<category><![CDATA[vmware-config-tools]]></category>
		<category><![CDATA[rpm -i]]></category>
		<category><![CDATA[cdrom]]></category>
		<category><![CDATA[drivers]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=662</guid>
		<description><![CDATA[VMware, Linux: Install VMware Tools On RedHat Based Systems<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=662&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><strong>The following is a quick overview of installing VMware Tools on RedHat, CentOS, and Fedora systems.  Specifically for VMware ESX, ESXi, and vSphere systems.</strong></p>
<p><strong>First, go into the VMware console and right-click on the VM (Virtual Machine) that you are going to install VMware tools on.  Select &#8220;Install/Upgrade VMware Tools&#8221; option from the list.  Below is a screen shot of the menu.</strong><strong></p>
<div id="attachment_664" class="wp-caption alignnone" style="width: 252px"><strong><a href="http://colovirt.files.wordpress.com/2010/01/vmwtools.jpg"><img class="size-full wp-image-664" title="VMware Tools Menu" src="http://colovirt.files.wordpress.com/2010/01/vmwtools.jpg?w=242&#038;h=451" alt="" width="242" height="451" /></a></strong><p class="wp-caption-text">VMware Tools Menu</p></div>
<p><span id="more-662"></span>By default, most CDROM devices are symbolically linked to /dev/cdrom by the operating system.</strong></p>
<p>Just in case, you can search the messages file to see the actual device.  This is needed only if /dev/cdrom is not automatically linked or you have setup multiple cdrom devices on the VM (Virtual Machine).</p>
<pre>[root@RHserver01 media]# cat /var/log/messages | grep CDROM
Jan 10 10:59:03 RHserver01 kernel: hda: VMware Virtual IDE CDROM Drive, ATAPI CD/DVD-ROM drive</pre>
<p><!--more--><strong>From above, you can see that the actual device is hda, specifically /dev/hda.  If you are just curious you can do an &#8220;ll&#8221; on the /dev/cdrom device to see where is it linked to.  In this case again, it&#8217;s going to hda.</strong></p>
<pre>[root@RHserver01 ~]# ll /dev/cdrom
lrwxrwxrwx 1 root root 3 Jan 12 13:18 /dev/cdrom -&gt; hda</pre>
<p><strong>Mount the cdrom device to an empty or non-mounted point on the filesystem.  Here I use the defaultly present /media location.</strong></p>
<pre>[root@RHserver01 /]# mount /dev/cdrom /media/
mount: block device /dev/cdrom is write-protected, mounting read-only</pre>
<p><strong>Below we move into the /media location using &#8220;cd&#8221;.</strong></p>
<pre>[root@RHserver01 /]# cd /media/</pre>
<p><strong>&#8220;ls&#8221; is used to display what files are present.  Here we see both an RPM (native RedHat based OS package) and a gzip archive.  If you were installing VMware Tools on a non-RedHat derived distribution, you would use the .gz package.</strong></p>
<pre>[root@RHserver01 media]# ls
VMwareTools-3.5.0-143128.i386.rpm  VMwareTools-3.5.0-143128.tar.gz</pre>
<p><strong>Since we are on RedHat, this is simple.  Pass &#8220;-i&#8221; to the rpm command then the package name to be installed.</strong></p>
<pre>[root@RHserver01 media]# rpm -i VMwareTools-3.5.0-143128.i386.rpm</pre>
<p><strong>Immediately after installing the RPM, you might see the following errors to your console, or in /var/log/messages.</strong></p>
<pre>Jan 12 13:15:07 RHserver01 kernel: VFS: busy inodes on changed media or resized disk hda
Jan 12 13:15:07 RHserver01 kernel: VFS: busy inodes on changed media or resized disk hda</pre>
<p><strong>If you are getting these to the console, it makes it hard to continue working form the command line.  This is easy to stop.  First, cd out of the /media/ mount point</strong></p>
<pre>[root@RHserver01 ~]# cd ..</pre>
<p><strong>Next, unmount the cdrom device.  After doing so, the messages will stop</strong></p>
<pre>[root@RHserver01 ~]# umount /dev/cdrom</pre>
<p><strong>The &#8220;vmware-config-tools.pl&#8221; command must be ran from the VMware console.  Below is the output you would get if it was tried through a remote session (SSH).</strong></p>
<pre>[root@RHserver01 ~]# vmware-config-tools.pl

It looks like you are trying to run this program in a remote session. This
program will temporarily shut down your network connection, so you should only
run it from a local console session. Are you SURE you want to continue?
[no]
Please re-run this program from a local console shell.
Execution aborted.</pre>
<p><strong>There is a good reason for this.  vmware-config-tools.pl drops networking on the server to install the VMware network drives.  In doing so, you loose remote connectivity. </strong></p>
<p><strong>Below shows the actual output from vmware-config-tools.pl on the console</strong></p>
<pre>[root@RHserver01 ~]# vmware-config-tools.pl
Shutting down interface eth0:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [  OK  ]
   Unmounting HGFS shares:                                 [  OK  ]
   Guest filesystem driver:                                [  OK  ]
   Guest memory manager:                                   [  OK  ]
Trying to find a suitable vmmemctl module for your running kernel.

The module bld-2.6.18-8.el5-i686smp-RHEL5 loads perfectly in the running
kernel.

Trying to find a suitable vmhgfs module for your running kernel.

The module bld-2.6.18-8.el5-i686smp-RHEL5 loads perfectly in the running
kernel.

Trying to find a suitable vmxnet module for your running kernel.

The module bld-2.6.18-8.el5-i686smp-RHEL5 loads perfectly in the running
kernel.

Trying to find a suitable vmblock module for your running kernel.

The module bld-2.6.18-8.el5-i686smp-RHEL5 loads perfectly in the running
kernel.

No X install found.

Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                       [  OK  ]
   Guest memory manager:                                   [  OK  ]
   Guest vmxnet fast network device:                       [  OK  ]
   DMA setup:                                              [  OK  ]
   Guest operating system daemon:                          [  OK  ]

The configuration of VMware Tools 3.5.0 build-143128 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking the following command:
"/usr/bin/vmware-toolbox" during an X server session.

To use the vmxnet driver, restart networking using the following commands:
/etc/rc.d/init.d/network stop
rmmod pcnet32
rmmod vmxnet
depmod -a
modprobe vmxnet
/etc/rc.d/init.d/network start

If you wish to configure any experimental features, please run the following
command: "vmware-config-tools.pl --experimental".

Enjoy,

--the VMware team</pre>
<p><strong>Notes: From my experience, restart of networking via init.d scripts or rebooting the server is always needed.  I personally always reboot the server to be safe. </strong></p>
<br />Posted in Linux, Networking, VMWare  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/662/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=662&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2010/01/12/vmware-linux-install-vmware-tools-on-redhat-based-systems/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>

		<media:content url="http://colovirt.files.wordpress.com/2010/01/vmwtools.jpg" medium="image">
			<media:title type="html">VMware Tools Menu</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux, Security, LDAP: Local Authentication Fallback</title>
		<link>http://blog.colovirt.com/2009/12/16/linux-security-ldap-local-authentication-fallback/</link>
		<comments>http://blog.colovirt.com/2009/12/16/linux-security-ldap-local-authentication-fallback/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 17:49:33 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[failed to bind to LDA]]></category>
		<category><![CDATA[fallback]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[ldap.conf]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[local authentication]]></category>
		<category><![CDATA[nss_ldap]]></category>
		<category><![CDATA[openldap]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rh]]></category>

		<guid isPermaLink="false">http://colovirt.wordpress.com/?p=658</guid>
		<description><![CDATA[Linux, Security, LDAP: Local Authentication Fallback When LDAP Is Unavailable<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=658&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I have been setting up and integrating an LDAP authentication system into our infrastructure over the past few days.  This is just one small &#8220;got-cha&#8221; that I ran into.  The default setting in the OpenLDAP configuration (/etc/ldap.conf) is to continuously try reconnecting to the LDAP server on failure.  This is definitely not what I want to happen if we loose LDAP.  In this scenario, when connecting to the server via SSH, the session will hang and eventually timeout.  This even removes the ability to login with a local system account.<br />
<span id="more-658"></span><strong>Example of the timeout when LDAP server is down:</strong></p>
<pre>testuser@workstation4-l:~$ ssh test123@ldapclientsrv
Connection closed by 172.16.0.192</pre>
<p><strong>To begin, lets look at a typical error that you would get on the system if LDAP communication was down.</strong></p>
<pre>Dec 13 12:52:58 ldapServer sshd[15965]: nss_ldap: failed to bind to LDAP server ldap://127.0.0.16: Can't contact LDAP server
Dec 13 12:52:58 ldapServer sshd[15965]: nss_ldap: reconnecting to LDAP server (sleeping 4 seconds)...
Dec 13 12:53:02 ldapServer sshd[15965]: nss_ldap: failed to bind to LDAP server ldap://127.0.0.16: Can't contact LDAP server
Dec 13 12:53:02 ldapServer sshd[15965]: nss_ldap: reconnecting to LDAP server (sleeping 8 seconds)...
Dec 13 12:53:10 ldapServer sshd[15965]: nss_ldap: failed to bind to LDAP server ldap://127.0.0.16: Can't contact LDAP server
Dec 13 12:53:10 ldapServer sshd[15965]: nss_ldap: reconnecting to LDAP server (sleeping 16 seconds)...</pre>
<p><strong>As noted before, I was unable to login with a local account.  Turns out that the problem was with the default &#8220;bind_policy&#8221; in /etc/ldap.conf.  Per the document:</strong></p>
<pre># Reconnect policy: hard (default) will retry connecting to
# the software with exponential backoff, soft will fail
# immediately.
#bind_policy hard</pre>
<p><strong>This was changed to:</strong></p>
<pre>bind_policy soft</pre>
<p><strong>Once this was changed, I brought up the firewall on the LDAP server and refused connections.  Ability to login via LDAP was gone, but the server did fail back to local system authentication</strong></p>
<p><strong>Note(s)</strong>: When failing back to local authentication, there is no error sent back to the client trying to login, only errors go to /var/log/secure file.  The server will just keep rejecting the users login until LDAP is back up.  At least this gives you the ability to get in with a local system account in an emergency.</p>
<p><strong>Example error to /var/log/secure when LDAP server is down and local authentication is rejecting the LDAP user received from the client:</strong></p>
<pre>Dec 13 12:59:59 ldapServer sshd[2588]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=172.16.0.22</pre>
<br />Posted in Linux, Networking, Security  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/658/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=658&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/12/16/linux-security-ldap-local-authentication-fallback/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux, Filesystem: GNOME Virtual File System (GVFS) Remote Connectivity CLI</title>
		<link>http://blog.colovirt.com/2009/12/07/linux-filesystem-gnome-virtual-file-system-gvfs-remote-connectivity-cli/</link>
		<comments>http://blog.colovirt.com/2009/12/07/linux-filesystem-gnome-virtual-file-system-gvfs-remote-connectivity-cli/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 17:47:46 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[GNOME Virtual File System]]></category>
		<category><![CDATA[gvfs]]></category>
		<category><![CDATA[gvfs un-mount]]></category>
		<category><![CDATA[gvfs-mount]]></category>
		<category><![CDATA[gvfsd]]></category>
		<category><![CDATA[gvfsd-ftp]]></category>
		<category><![CDATA[gvfsd-sftp]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vfs]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=651</guid>
		<description><![CDATA[Linux, Filesystem: GNOME Virtual File System (GVFS) Remote Connectivity CLI<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=651&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>When not using NFS, Linux administrators generally move files from one server to the next via SFTP or FTP.  This can sometimes be a headache when needing to move large amounts of files between the systems.  This is where I like <strong>GVFS</strong> (GNOME Virtual File System).  This subsystem allows you to mount remote systems via the following protocols to a local directory tree:</p>
<li>SSH</li>
<li>FTP</li>
<li>CIFS (Windows shares)</li>
<li>WebDav (HTTP)</li>
<li>Secure WebDav (HTTPS)
<p><span id="more-651"></span><br />
Above are the common protocols supported, but there is support for more.  Using GVFS to mount the remote filesystem to yours allows you to create and move files to and from the remote system using typical &#8220;cp&#8221;, &#8220;rm&#8221;, and &#8220;mv&#8221; commands.  This makes things even easier if you are working through an X windows console.  Just bring up the remote directory structure through a file manager application and work from there.  Gnome also uses GVFS to manage USB based storage.  The following will go through manually connecting to a server using GVFS.<strong>Move into the &#8220;.gvfs&#8221; filesystem in the users home directory.  Unless Gnome has automatically mounted a device, this filesystem should be empty.</strong></p>
<pre>user01@LinuxDesk:~$ cd ~/.gvfs</pre>
<p><strong>In the below example, a remote servers filesystem will be mounted over an SSH/SFTP session.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$ gvfs-mount ssh://user05@SftpServer02
Enter password
Password:</pre>
<p><strong>Verify that the location has been mounted.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$ ls
sftp for user05 on SftpServer02</pre>
<p><strong>The SFTP was mounted and we can now traverse the remote servers filesystem as if it were our own.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$ cd sftp\ for\ user05\ on\ SftpServer02/

user01@LinuxDesk:~/.gvfs/sftp for user05 on SftpServer02$ ls
app  boot  etc   hs_err_pid15240.log  lib         media  mnt  opt   relay  sbin     srv  tmp  var
bin  dev   home  hs_err_pid8660.log   lost+found  misc   net  proc  root   selinux  sys  usr</pre>
<p><strong>Since we logged into the SSH/SFTP system using user &#8220;user05&#8243;, we can write to any direcotry that remote user has access to.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs/sftp for user05 on SftpServer02$ cd home/user05/</pre>
<p><strong>Below creates a new file &#8220;asdf&#8221; containing the text &#8220;asdfasdf&#8221;.  Here we are just testing write capability to the remote server</strong></p>
<pre>user01@LinuxDesk:~/.gvfs/sftp for user05 on SftpServer02/home/user05$ echo "asdfasdf" &gt; asdf
user01@LinuxDesk:~/.gvfs/sftp for user05 on SftpServer02/home/user05$ cat asdf
asdfasdf</pre>
<p><strong>&#8220;gvfs-mount&#8221; can also be used to list all currently mounted gvfs systems.  Below shows only the sftp session.</strong></p>
<pre>user01@LinuxDesk:~$ gvfs-mount -l
Mount(0): sftp on SftpServer02 -&gt; sftp://SftpServer02/
  Type: GDaemonMount</pre>
<p><strong>For reference, the following shows my 4gig USB drive that was automatically mounted when attached to the workstation through Gnome.</strong></p>
<pre>user01@LinuxDesk:~$ gvfs-mount -l
Drive(0): USB Drive
  Type: GProxyDrive (GProxyVolumeMonitorHal)
  Volume(0): 4.1 GB Media
    Type: GProxyVolume (GProxyVolumeMonitorHal)
    Mount(0): 4.1 GB Media -&gt; file:///media/disk
      Type: GProxyMount (GProxyVolumeMonitorHal)
Mount(0): sftp on SftpServer02 -&gt; sftp://SftpServer02/
  Type: GDaemonMount</pre>
<p><strong>GVFS mount points can be un-mounted using the &#8220;-u&#8221; argument.  Below will un-mount the remote ssh server.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$ gvfs-mount -u ssh://user05@SftpServer02</pre>
<p><strong>Notes: GVFS contains one master daemon (gvfsd) which tracks current GVFS mounts.  Each mount is created as an individual daemon with it&#8217;s own process.  Knowing this, we can find the actual gvfsd process ID that the sftp connection is running under.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$  ps -ef | grep gvfsd-sftp
user01  8022     1  0 10:34 ?        00:00:00 /usr/lib/gvfs/gvfsd-sftp --spawner :1.8 /org/gtk/gvfs/exec_spaw/21</pre>
</li>
<br />Posted in Filesystems, Linux, Networking  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/651/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=651&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/12/07/linux-filesystem-gnome-virtual-file-system-gvfs-remote-connectivity-cli/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux, IBM: WebSphere WAS and Partner Gateway Version 6.2 FixPack 1</title>
		<link>http://blog.colovirt.com/2009/11/03/linux-ibm-websphere-was-and-partner-gateway-version-6-2-fixpack-1/</link>
		<comments>http://blog.colovirt.com/2009/11/03/linux-ibm-websphere-was-and-partner-gateway-version-6-2-fixpack-1/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 19:28:42 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Middle Ware]]></category>
		<category><![CDATA[bcgStartServer.sh]]></category>
		<category><![CDATA[bcgStopServer]]></category>
		<category><![CDATA[bcgStopServer.sh]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[cgStartServer]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[fix pack]]></category>
		<category><![CDATA[ibm]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[partner gateway]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[Update Installer]]></category>
		<category><![CDATA[update.sh]]></category>
		<category><![CDATA[updateinstaller]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[was]]></category>
		<category><![CDATA[websphere]]></category>
		<category><![CDATA[websphere application server]]></category>
		<category><![CDATA[websphere partner gateway]]></category>
		<category><![CDATA[wpg]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=646</guid>
		<description><![CDATA[Linux, IBM: WebSphere WAS and Partner Gateway Version 6.2 FixPack 1 Upgrade Notes<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=646&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>This is just a brief overview.  The installation process is pretty easy on these.  Same as with most patches, IBM UpdateInstaller &#8220;update.sh&#8221; was used to install the service &#8220;pak&#8221; files.  These patches must be done in order.  Patch the WAS installation before patching WPG.</p>
<p><strong>All WebSphere services must be stopped to install the WAS updates.  On a standard installation, bcguser must be used to stop the service</strong></p>
<pre>[bcguser@WPGhost ~]$/opt/IBM/bcghub-simple/bin/./bcgStopServer.sh</pre>
<p>We do not use &#8216;/opt&#8217; for our WebSphere location, so change this if yours is different.</p>
<p><strong>Next, use Update Installer to patch the WebSphere Application Server</strong><br />
<span id="more-646"></span>[user@WPGhost ~]$ sudo /opt/IBM/WebSphere/UpdateInstaller/./update.sh</p>
<p>There is a <strong>gotcha</strong> here that had me<strong> &#8220;chasing my tail&#8221;</strong> for about 10 minutes.  When going to install the WebSphere Partner Gateway fix pack, the Partner Gateway and WAS server must be started.  Installation of the update will fail with error &#8220;user input validation&#8221;.</p>
<p><strong>So before installing the WPG update, re-launch the Application Server and Partner Gateway</strong></p>
<pre>[bcguser@WPGhost ~]$ /opt/IBM/bcghub-simple/bin/./bcgStartServer.sh</pre>
<p><strong>Once done, launch IBM Update Installer again, passing the customized responce file for your environment.  This needs to be executed as the root user, so sudo was used to allow xforwarding from a non-root account</strong></p>
<pre>[user@WPGhost ~]$ sudo /opt/IBM/WebSphere/UpdateInstaller/./update.sh -options /opt/IBM/bcghub-simple/responsefiles/bcgupdate_en_US.txt</pre>
<p>Those are my miscellaneous notes about the update installation.  Everything went fine here and I hope this fixes some of the SFTP issues we have been having.<br />
<strong>This brings the WebSphere Partner Gateway Console form version 6.2.0.0.273 to 6.2.0.1.333</strong></p>
<p><strong>Notes: Here is the <a href="http://www-01.ibm.com/support/docview.wss?uid=swg27016776" target="_blank">link to IBM&#8217;s website</a> that lists the fixes that are provided in the update.</strong></p>
<br />Posted in Linux, Middle Ware  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/646/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=646&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/11/03/linux-ibm-websphere-was-and-partner-gateway-version-6-2-fixpack-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux / Oracle: IBM WebSphere Partner Gateway Oracle Gotcha</title>
		<link>http://blog.colovirt.com/2009/10/21/linux-oracle-ibm-websphere-partner-gateway-oracle-gotcha/</link>
		<comments>http://blog.colovirt.com/2009/10/21/linux-oracle-ibm-websphere-partner-gateway-oracle-gotcha/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 08:49:33 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Middle Ware]]></category>
		<category><![CDATA[application server]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[database user]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[partner gateway]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[patching]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[schema]]></category>
		<category><![CDATA[schema owner]]></category>
		<category><![CDATA[SID]]></category>
		<category><![CDATA[was]]></category>
		<category><![CDATA[websphere]]></category>
		<category><![CDATA[websphere application server]]></category>
		<category><![CDATA[websphere partner gateay]]></category>
		<category><![CDATA[wpg]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=629</guid>
		<description><![CDATA[Linux / Oracle: IBM WebSphere Partner Gateway Oracle Gotcha<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=629&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I have been wrestling around with IBM WebSphere Partner Gateway for a few weeks now.  There are so many tiny gotcahs out there that can affect the whole installation process.</p>
<p><strong>The main one that got me was integration with Oracle.    An overview of the installation steps are shown below:<br />
<span id="more-629"></span></strong></p>
<li>Install Oracle Client</li>
<li>Configure Oracle environment (SID, server)</li>
<li>Install WebSphere Application Server</li>
<li>Patch WebSphere Application Server</li>
<li>Install WebSphere Partner Gateway Application (apps) Database</li>
<li>Install WebSphere Partner Gateway</li>
<li>Patch WebSphere Partner Gateway</li>
<p>So the problem came down to the ‘Database owner name’ and ‘Schema owner login’ being the same.  This typically is not an issue.  The worst part is that the WAS (WebSphere Application Server) and WPG (WebSphere Partner Gateway) installation would both complete successfully.  Not only that, they system would run with no errors.</p>
<p>That being said, once I started the patching process, it would always fail.    So as a last resort, I tried changing the ‘Database user name’ and ‘Schema owner login’ to be different.    Thanks to DBA Eric&#8217;s recommendation.  This worked!<br />
<strong><br />
I decided to put this blog up because I could not find any useful information for this when searching.  The patching process is a pain and I might go into more details on it in more blogs later.  Anyone else ran into this issue?</strong></p>
<br />Posted in Linux, Middle Ware  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/629/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=629&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/10/21/linux-oracle-ibm-websphere-partner-gateway-oracle-gotcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux / Security: User Account Expiration Management</title>
		<link>http://blog.colovirt.com/2009/10/20/linux-security-user-account-expiration-management/</link>
		<comments>http://blog.colovirt.com/2009/10/20/linux-security-user-account-expiration-management/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 09:00:33 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[account]]></category>
		<category><![CDATA[account expiration]]></category>
		<category><![CDATA[accounts]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[chage]]></category>
		<category><![CDATA[expiration]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[password expires]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=625</guid>
		<description><![CDATA[Linux / Security: User Account Expiration Management<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=625&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I am a firm believer in regular password rotation/change and Linux has a built in mechanism that makes it easy.  The following is a brief overview of password and account ageing for Linux based systems.</p>
<p><strong>The program that enables listing and modification on the expiration parameters is &#8216;chage&#8217;.  Each individual user can view their account settings as shown below.<br />
<span id="more-625"></span></strong>testuser@testServer:~$ chage -l testuser</p>
<pre>Last password change					: Aug 07, 2009
Password expires					: Nov 05, 2009
Password inactive					: never
Account expires						: Aug 05, 1992
Minimum number of days between password change		: 90
Maximum number of days between password change		: 90
Number of days of warning before password expires	: 7</pre>
<p><strong>As you can see above, the last password change date is listed, as well as the expiration date for the current password.  When executed from a non-privileged account, the user can only view their own account.</strong></p>
<pre>testuser@testServer:~$ chage -l root
chage: <strong>Permission denied</strong>.</pre>
<p><strong>Also, the non-privileged account can not change their settings either.</strong></p>
<pre>testuser@testServer:~$ chage -M 99 testuser
chage: Permission denied.</pre>
<p><strong>From the root account, you have to ability to modify all the settings for individual users.</strong></p>
<pre>root@testServer:~# chage
Usage: chage [options] [LOGIN]

Options:
  -d, --lastday LAST_DAY        set last password change to LAST_DAY
  -E, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
  -h, --help                    display this help message and exit
  -I, --inactive INACTIVE       set password inactive after expiration
                                to INACTIVE
  -l, --list                    show account aging information
  -m, --mindays MIN_DAYS        set minimum number of days before password
                                change to MIN_DAYS
  -M, --maxdays MAX_DAYS        set maximim number of days before password
                                change to MAX_DAYS
  -W, --warndays WARN_DAYS      set expiration warning days to WARN_DAYS</pre>
<p><strong>Before modification, I am going to turn off all expiration settings on the &#8216;testuser&#8217; account.  This is disabling password expiration on that individual account.</strong></p>
<pre>root@testServer:~# chage -E -1 -I -1 -m 0 -M 99999 testuser</pre>
<p><strong>No lets configure password aging for the test user.  The first example below runs change in interactive mode.</strong></p>
<pre>root@testServer:~# chage testuser
Changing the aging information for testuser
Enter the new value, or press ENTER for the default

	Minimum Password Age [0]:
	Maximum Password Age [99999]: 90
	Last Password Change (YYYY-MM-DD) [2009-10-16]:
	Password Expiration Warning [7]:
	Password Inactive [-1]:
	Account Expiration Date (YYYY-MM-DD) [1969-12-31]: 2012-12-31</pre>
<p><strong>Verify that the settings took.</strong></p>
<pre>root@testServer:~# chage -l testuser
Last password change					: Oct 16, 2009
Password expires					: Jan 14, 2010
Password inactive					: never
Account expires						: Dec 31, 2012
Minimum number of days between password change		: 0
Maximum number of days between password change		: 90
Number of days of warning before password expires	: 7</pre>
<p><strong>The same can be accomplished using the command line, non-interactively.</strong></p>
<pre>root@testServer:~# chage -E 2012-12-31 -I -1 -m 0 -M 90 -W 7 testuser</pre>
<p>With the above settings in place, the user should be warned 7 days before the password expires on their account.  If the password is not changed before expiration day, on the next login the user will be forced to change their password.</p>
<br />Posted in Linux, Security  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/625/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/625/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/625/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/625/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/625/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/625/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/625/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/625/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/625/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/625/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=625&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/10/20/linux-security-user-account-expiration-management/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux / Storage:  Memory – Huge Pages Overview</title>
		<link>http://blog.colovirt.com/2009/10/13/linux-storage-memory-huge-pages-overview/</link>
		<comments>http://blog.colovirt.com/2009/10/13/linux-storage-memory-huge-pages-overview/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 14:39:16 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[Huge Pages]]></category>
		<category><![CDATA[hugepage]]></category>
		<category><![CDATA[hugepages]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[ram]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[swap]]></category>
		<category><![CDATA[TLB]]></category>
		<category><![CDATA[Translation Lookaside Buffers]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtual memory]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=621</guid>
		<description><![CDATA[Linux / Storage:  Memory - Huge Pages Overview<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=621&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>A page is really <strong>virtual memory</strong> which is managed by the<strong> Translation Lookaside Buffers(TLB)</strong> in the CPU.  The TLB controls the mapping of the virtual memory pages to physical memory addresses.  In doing so, it bypasses the kernel virtual memory manager.</p>
<p><strong>Per RedHat,</strong></p>
<blockquote><p><strong> The TLB is a limited hardware resource, so utilising a huge amount of physical memory with the default page size consumes the TLB and adds processing overhead &#8211; many pages of size 4096 Bytes equates to many TLB resources consumed.</strong></p></blockquote>
<p><span id="more-621"></span>This is where Huge Pages come in.  Pages are created at a larger size than the default 4096 bytes, and each page will consume only one TLB resource.  So you can see this is a huge benefit.  Using Huge Pages decrease the number of TLB resources required.</p>
<p><strong>Side Affect</strong><br />
This is great, depending on what you are trying to accomplish.  Once the physical memory is mapped to a Huge Page, it can no longer be used for &#8220;normal&#8221; memory allocation.  This is because the memory is no longer mapped by the kernel virtual memory manager.  The applications that you want to dedicate the Huge Pages to have to have support for them.</p>
<p><strong>Benefit</strong><br />
So here is the best part of Huge Pages.  It is dedicated memory to be used by only applications that request them.<strong> This dedicated memory is stored in physical RAM and will NEVER be swapped out! </strong>Thus, guaranteeing a level of performance.  When memory is swapped to disk, it&#8217;s a lot slower than RAM and decreases the performance of the process(s)/program(s) gets pushed there.</p>
<p>Now knowing that Huge Pages are stored in RAM, this also means that the allocated RAM is dedicated.  This is a little bit redundant to the above, but I want to make sure this point is clear.</p>
<p>Example: If a server has 8gigs of RAM and 5gigs are allocated to Huge Pages, that only leaves 3gigs for all other processes, programs, and underlining operating system to use.</p>
<p><strong>Below shows my Linux desktop that has the default page size of 4096 set</strong></p>
<pre>user@workstation:~$ cat /proc/meminfo | grep Huge
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       4096 kB</pre>
<p><strong>So as you can see, I have no Huge Pages reserved or in use.  The next example is from a production Oracle database server</strong></p>
<pre>[root@OracleServer1 ~]# cat /proc/meminfo | grep Huge
HugePages_Total: 12200
HugePages_Free:     85
Hugepagesize:     2048 kB</pre>
<p><strong>So to calculate the space dedicated to Huge Pages from above, it is 12,200 x 2048 kB which gives us</strong></p>
<pre><strong>24 985 600 kilobytes = 23.828125 gigabytes</strong></pre>
<p>In the 2.6x Linux kenel, Huge Pages are enabled using the CONFIG_HUGETLB_PAGE feature when compiling the kernel.  Most &#8220;Enterprise&#8221; Linux OSs by default have this enabled.  The ones that I know of are RedHat, CentOS, and possibly Fedora from version 4+.</p>
<p><strong>Notes:  Again, applications that you want to dedicate Huge Pages to must have support for them.  Most memory intensive ones do, but check for this first.</strong></p>
<br />Posted in Filesystems, Linux  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/621/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=621&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/10/13/linux-storage-memory-huge-pages-overview/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux / Security: Encrypted External Drive Part 1 – Urandom</title>
		<link>http://blog.colovirt.com/2009/09/04/linux-security-encrypted-external-drive-part-1-urandom/</link>
		<comments>http://blog.colovirt.com/2009/09/04/linux-security-encrypted-external-drive-part-1-urandom/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 08:34:40 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[data protection]]></category>
		<category><![CDATA[encrypt]]></category>
		<category><![CDATA[encrypted filesystem]]></category>
		<category><![CDATA[external drive]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[raid 1]]></category>
		<category><![CDATA[raid1]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[urandom]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=613</guid>
		<description><![CDATA[Linux / Security: Encrypted External Drive Part 1 - Urandom<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=613&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>So I am re-doing my external RAID 1 drive enclosure.  I love this little thing.  It has two 2.5 inch 160gig SATA drives in it.  The enclosure is connected via USB 2.0 but it does have an eSATA interface as well.  I will be configuring this to have a 10 gig non-encrypted partition. The remaining ~150 gigs will be an encrypted (LUKS) filesystem to be used on my linux machine.</p>
<p>All of this will not be detailed here but will be split up in 3 blogs.  Below just shows the time it takes to use Linux to overwrite the disk device using /dev/urandom.  This is done to make it just that much harder for a would be hacker to try and brute force the key on the encrypted partition.  If this is not done, the un-used space would just show up as empty, allowing for a more targeted attack against the pseudo random filesystem.  Being pseudo-random means that it is not truly random.  This being the case, with a lot of time and computing power, an attacker might be able to either brute force or find a pattern in the encryption.</p>
<p>So why not use /dev/random?  For me, this would take forever!  I do not have any special hardware or scripts pulling information from the environment and adding to the entropy pool.  The data on this drive not being national security grade, /dev/random will do the job.</p>
<p><strong>I know that the drive is under /dev/sdb.  With that information, it is as simple as using &#8220;dd&#8221; (built in Linux utility) to overwrite all blocks on the drive with pseudo-random data.</strong></p>
<pre>root@tstbox:~# dd if=/dev/urandom of=/dev/sdb
dd: writing to `/dev/sdb': No space left on device
312581810+0 records in
312581809+0 records out
160041886208 bytes (160 GB) copied, 40284.5 s, 4.0 MB/s</pre>
<p>From above, it tool 40,284.5 seconds to overwrite the drive with urandom data.  This equals ~11 hours and 19 minutes.  Definitely still a long time, but a lot faster than if /dev/random was used.</p>
<p><strong>This workstation is not an impressive computer.  It is a single CPU dual core machine with 2 gigs of ram.  Below is the info on one of the cores.</strong></p>
<pre>root@tstbox:~# cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 15
model name	: Intel(R) Core(TM)2 CPU          6300  @ 1.86GHz
stepping	: 2
cpu MHz		: 1867.000
cache size	: 2048 KB
physical id	: 0
siblings	: 2</pre>
<p><strong>Notes: I wish I could use /dev/random and probably will eventually when I can sit a drive out for a week.  Setting up external drives in this fashion is really geared towards data protection.  Not only are the drives in a mirrored RAID (one can fail and everything would still run fine), important data is encrypted using a strong key.  So who cares is the external enclosure walks away at a conference?  I would be out ~190$ but the data will be safe.</strong></p>
<br />Posted in Linux, Security  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/613/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=613&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/09/04/linux-security-encrypted-external-drive-part-1-urandom/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux / Security: Sudo &#8216;sudo su -&#8217; vs &#8216;sudo -s&#8217;</title>
		<link>http://blog.colovirt.com/2009/08/18/linux-security-sudo-sudo-su-vs-sudo-s/</link>
		<comments>http://blog.colovirt.com/2009/08/18/linux-security-sudo-sudo-su-vs-sudo-s/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 19:34:18 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[root access]]></category>
		<category><![CDATA[su]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[sudo -s]]></category>
		<category><![CDATA[sudo su -]]></category>
		<category><![CDATA[sudoers]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=607</guid>
		<description><![CDATA[Linux / Security: Sudo 'sudo su -' vs 'sudo -s'<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=607&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I always use &#8216;sudo su -&#8217; when I need to get to a root shell.  I have seen a few people before, and a new co-worker recently use &#8216;sudo -s&#8217;.  Since I could not remember off hand the actual differences between the two, I had to check.  The following will run through the actual limitations.</p>
<p><strong>The big difference when using &#8216;-s&#8217; are listed below<br />
<span id="more-607"></span><br />
</strong></p>
<li>This option reads the environment or password file for the shell to be executed.  Does not execute root shell!</li>
<li>All environment variables are passed over from the current account to the root account<strong>Per the Linux man page for sudo</strong><br />
-s  The -s (shell) option runs the shell specified by the SHELL environment variable if it is set or the shell as specified inpasswd(5).</p>
<p><strong>Below is the typical sudo command when going to root</strong><br />
$ sudo su -</p>
<p><strong>Now that we are root, check the current environment variables.  Here we see that we are in the bash shell, which is different from the Korn (ksh) shell that the user was in.  Also note, the home directory is &#8216;/root&#8217;, and the &#8216;PATH&#8217; locations.</strong></p>
<pre>[root@testServ01 ~]# printenv
HOSTNAME=testServ01.testDomain.com
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
USER=root
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
INPUTRC=/etc/inputrc
PWD=/root
LANG=en_US.UTF-8
SHLVL=1
HOME=/root
LOGNAME=root
CVS_RSH=ssh
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=localhost:10.0
G_BROKEN_FILENAMES=1
_=/usr/bin/printenv</pre>
<p><strong>When &#8216;sudo su -&#8217; was executed, we were in the testuser01 home directory (/home/testuser01).  After execution, we are now in the root user home directory (/root)<br />
</strong>[root@testServ01 ~]# pwd<br />
/root</p>
<p><strong>Now that we have seen what &#8216;sudo su -&#8217; does, lets check out &#8216;sudo -s&#8217;.</strong><br />
$ sudo -s</p>
<p><strong>Time to check the current environment variables again.  Main things to note here are the home directory, PATH definition, and the SUDO_* variables.  This is definitely different then what was listed before.<br />
</strong># printenv<br />
_=/usr/bin/printenv</p>
<pre>DISPLAY=localhost:10.0
HISTSIZE=1000
HOME=/home/testuser01
HOSTNAME=testServ01.testDomain.com
INPUTRC=/etc/inputrc
LANG=en_US.UTF-8
LOGNAME=root
MAIL=/var/spool/mail/testuser01
PATH=/usr/bin:/bin
PWD=/home/testuser01
SHELL=/bin/ksh
SUDO_COMMAND=/bin/ksh
SUDO_GID=500
SUDO_UID=500
SUDO_USER=testuser01
TERM=xterm
USER=root
USERNAME=root</pre>
<p><strong>When &#8216;sudo -s&#8217; was executed, we were in the testuser01 home directory (/home/testuser01).  After execution, you can see that we are still in the same directory.<br />
</strong># pwd<br />
/home/testact</p>
<p><strong>Since the &#8216;PATH&#8217; variable was passed from the testuers01 shell to the sudo environment, the administrative tools directories (/sbin, /usr/sbin) are not listed.  This is not a huge issue, just more of a hassle if there were not passed from the user account.</strong></p>
<p><strong>Since this was the case for the test, I tried to issue &#8216;iptables&#8217; without the absolute path.  Per below, it failed. </strong></p>
<pre># iptables -L
/bin/ksh: iptables: not found [No such file or directory]</pre>
<p><strong>Since I do actually have root level access, when I issue the command with the absolute path it works fine</strong></p>
<pre># /sbin/iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere            

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere            

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination</pre>
<p><strong>To conclude &#8216;sudo -s&#8217;:</strong></li>
<li>does NOT change the shell</li>
<li>&#8216;PATH&#8217; does not change since root shell is not executed</li>
<li>carries over all environment variables from the non-privileged user<strong>
<p>Notes: So to be safe, I will still use &#8216;sudo su -&#8217; when needing root level access.  Seems that the &#8216;sudo -s&#8217; option would be a little more safe for some users.  Mainly due to the sbin locations not being in the &#8216;PATH&#8217;.  This would make the user execute most administrative commands using the full path to the executable, unless sbin(s) were exported.</strong></li>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:171px;width:1px;height:1px;">I always use &#8216;sudo su -&#8217; when I need to get to a root shell.  I have seen a few people before, and a new co-worker recently use &#8216;sudo -s&#8217;.  Since I could not remember off hand the actual differences between the two, I had to check.  The following will run through the actual limitations.</p>
<p>The big difference when using &#8216;-s&#8217; are listed below<br />
&lt;li&gt;This option reads the environment or password file for the shell to be executed.  Does not execute root shell!<br />
&lt;li&gt;All environment variables are passed over from the current account to the root account</p>
<p>Per the Linux man page for sudo<br />
&lt;pre&gt;-s  The -s (shell) option runs the shell specified by the SHELL environment variable if it is set or the shell as specified in<br />
passwd(5).&lt;/pre&gt;</p>
<p>Below is the typical sudo command when going to root<br />
&lt;pre&gt;$ sudo su -&lt;/pre&gt;</p>
<p>Now that we are root, check the current environment variables.  Here we see that we are in the bash shell, which is different from the Korn (ksh) shell that the user was in.  Also note, the home directory is &#8216;/root&#8217;, and the &#8216;PATH&#8217; locations.<br />
&lt;pre&gt;[root@testServ01 ~]# printenv<br />
HOSTNAME=testServ01.testDomain.com<br />
SHELL=/bin/bash<br />
TERM=xterm<br />
HISTSIZE=1000<br />
USER=root<br />
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin<br />
INPUTRC=/etc/inputrc<br />
PWD=/root<br />
LANG=en_US.UTF-8<br />
SHLVL=1<br />
HOME=/root<br />
LOGNAME=root<br />
CVS_RSH=ssh<br />
LESSOPEN=|/usr/bin/lesspipe.sh %s<br />
DISPLAY=localhost:10.0<br />
G_BROKEN_FILENAMES=1<br />
_=/usr/bin/printenv&lt;/pre&gt;</p>
<p>When &#8216;sudo su -&#8217; was executed, we were in the testuser01 home directory (/home/testuser01).  After execution, we are now in the root user home directory (/root)<br />
&lt;pre&gt;[root@testServ01 ~]# pwd<br />
/root&lt;/pre&gt;</p>
<p>Now that we have seen what &#8216;sudo su -&#8217; does, lets check out &#8216;sudo -s&#8217;.<br />
&lt;pre&gt;$ sudo -s&lt;/pre&gt;</p>
<p>Time to check the current environment variables again.  Main things to note here are the home directory, PATH definition, and the SUDO_* variables.  This is definitely different then what was listed before.<br />
&lt;pre&gt;# printenv<br />
_=/usr/bin/printenv<br />
DISPLAY=localhost:10.0<br />
HISTSIZE=1000<br />
HOME=/home/testuser01<br />
HOSTNAME=testServ01.testDomain.com<br />
INPUTRC=/etc/inputrc<br />
LANG=en_US.UTF-8<br />
LOGNAME=root<br />
MAIL=/var/spool/mail/testuser01<br />
PATH=/usr/bin:/bin<br />
PWD=/home/testuser01<br />
SHELL=/bin/ksh<br />
SUDO_COMMAND=/bin/ksh<br />
SUDO_GID=500<br />
SUDO_UID=500<br />
SUDO_USER=testuser01<br />
TERM=xterm<br />
USER=root<br />
USERNAME=root&lt;/pre&gt;</p>
<p>When &#8216;sudo -s&#8217; was executed, we were in the testuser01 home directory (/home/testuser01).  After execution, you can see that we are still in the same directory.<br />
&lt;pre&gt;# pwd<br />
/home/testact&lt;/pre&gt;</p>
<p>Since the &#8216;PATH&#8217; variable was passed from the testuers01 shell to the sudo environment, the administrative tools directories (/sbin, /usr/sbin) are not listed.  This is not a huge issue, just more of a hassle if there were not passed from the user account.</p>
<p>Since this was the case for the test, I tried to issue &#8216;iptables&#8217; without the absolute path.  Per below, it failed.<br />
&lt;pre&gt;# iptables -L<br />
/bin/ksh: iptables: not found [No such file or directory]&lt;/pre&gt;</p>
<p>Since I do actually have root level access, when I issue the command with the absolute path it works fine<br />
&lt;pre&gt;# /sbin/iptables -L<br />
Chain INPUT (policy ACCEPT)<br />
target     prot opt source               destination<br />
RH-Firewall-1-INPUT  all  &#8211;  anywhere             anywhere</p>
<p>Chain FORWARD (policy ACCEPT)<br />
target     prot opt source               destination<br />
RH-Firewall-1-INPUT  all  &#8211;  anywhere             anywhere</p>
<p>Chain OUTPUT (policy ACCEPT)<br />
target     prot opt source               destination&lt;/pre&gt;</p>
<p>To conclude &#8216;sudo -s&#8217;:<br />
&lt;li&gt;does NOT change the shell<br />
&lt;li&gt;&#8217;PATH&#8217; does not change since root shell is not executed<br />
&lt;li&gt;carries over all environment variables from the non-privileged user</p>
<p>Notes: So to be safe, I will still use &#8216;sudo su -&#8217; when needing root level access.  Seems that the &#8216;sudo -s&#8217; option would be a little more safe for some users.  Mainly due to the sbin locations not being in the &#8216;PATH&#8217;.  This would make the user execute most administrative commands using the full path to the executable, unless sbin(s) were exported.</p></div>
<br />Posted in Linux, Security  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/607/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=607&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/08/18/linux-security-sudo-sudo-su-vs-sudo-s/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux / Security: Iptables CLI &#8211; List Rules Without DNS Resolution</title>
		<link>http://blog.colovirt.com/2009/06/02/linux-security-iptables-cli-list-rules-without-dns-resolution/</link>
		<comments>http://blog.colovirt.com/2009/06/02/linux-security-iptables-cli-list-rules-without-dns-resolution/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 13:13:12 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[chain]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[dns resolution]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[iptables -L -n]]></category>
		<category><![CDATA[iptales -L]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[reverse dns]]></category>
		<category><![CDATA[rule]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=565</guid>
		<description><![CDATA[Linux / Security: Iptables CLI - List Rules Without DNS Resolution<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=565&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>This is quick and a little basic, but most people do not actually read the &#8220;man pages&#8221; or documentation.  The majority of the time, requests for access comes in specifying IP address instead of hostnames (FQDN).  I actually prefer this, but when doing a typical &#8220;iptables -L&#8221;, the reverse DNS is automatically checked for all IPs.<br />
<strong><br />
Most of the time I do not actually know the hostname that is associated and makes it hard to confirm the rule without doing a dns lookup on my own.  Below is the typical output of the command.<br />
<span id="more-565"></span></strong>[root@testserver ~]# iptables -L</p>
<pre>Chain Firewall-INPUT
(2 references)
target     prot opt source               destination
ACCEPT     tcp  --  mail.asdf.com        anywhere            tcp dpt:ssh
ACCEPT     tcp  --  static.123.net       anywhere            tcp dpt:ssh
ACCEPT     tcp  --  private.9z.com       anywhere            tcp dpts:ftp-data:ftp
ACCEPT     tcp  --  nto.ntpgr.com        anywhere            tcp dpts:ftp-data:ftp</pre>
<p>Iptables has a built in option to disable DNS resolution.  This is done by passing &#8220;-n&#8221; in conjunction with &#8220;-L&#8221; and shown below.</p>
<pre>[root@testserver ~]# iptables -L -n
Chain Firewall-INPUT
(2 references)
target     prot opt source               destination
ACCEPT     tcp  --  10.1.129.119         0.0.0.0/0           tcp dpt:22
ACCEPT     tcp  --  172.168.22.87        0.0.0.0/0           tcp dpt:22
ACCEPT     tcp  --  172.33.100.2         0.0.0.0/0           tcp dpts:ftp-data:ftp
ACCEPT     tcp  --  10.90.15.104         0.0.0.0/0           tcp dpts:ftp-data:ftp</pre>
<p>Above you can see how easy it would be to verify the rules now without knowing the hostname or performing a lookup on your own.</p>
<p><strong>Notes:  The iptables output was edited to remove non-relevant information and all IPs/hostnames were changed.</strong></p>
<br />Posted in Linux, Networking, Security  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/565/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=565&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/06/02/linux-security-iptables-cli-list-rules-without-dns-resolution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
	</channel>
</rss>