<?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/"
	>

<channel>
	<title>Binbert &#187; Servers</title>
	<atom:link href="http://www.binbert.com/blog/category/servers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.binbert.com/blog</link>
	<description>Technology &#124; Computer &#124; Security &#124; Networking &#124; Mobile</description>
	<lastBuildDate>Mon, 23 Jan 2012 06:11:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Export the list of virtual machines to a CSV file</title>
		<link>http://www.binbert.com/blog/2011/12/export-the-list-of-virtual-machines-to-a-csv-file/</link>
		<comments>http://www.binbert.com/blog/2011/12/export-the-list-of-virtual-machines-to-a-csv-file/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 08:04:26 +0000</pubDate>
		<dc:creator>Albin Sebastian</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.binbert.com/blog/?p=1708</guid>
		<description><![CDATA[Here is the script to collect vmware virtual machines details and export to an excel (.csv) using  vSphere PowerCLI commands. This will help Vmware administrator to take a report of Memory, CPU usage,  Data store, HDD space allocation, Host server, Guest OS etc..  here we are using command &#8220;get-vm&#8221; and &#8220;Select-Object&#8221; to filter the properties [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the script to collect vmware virtual machines details and export to an excel (.csv) using  vSphere PowerCLI commands. This will help Vmware administrator to take a report of Memory, CPU usage,  Data store, HDD space allocation, Host server, Guest OS etc..  here we are using command &#8220;get-vm&#8221; and &#8220;Select-Object&#8221; to filter the properties of virtual machine</p>
<h3>How to connect to Vcenter/ESXi Server</h3>
<p>First you have to connect to the vmware server. It can be a ESXi server or a Vcenter</p>
<pre>PowerCLI C:\&gt; Connect-VIServer</pre>
<p>It will prompt the server address.</p>
<pre>cmdlet Connect-VIServer at command pipeline position 1
Supply values for the following parameters:
Server[0]:</pre>
<p><a href="http://www.binbert.com/blog/2011/12/export-the-list-of-virtual-machines-to-a-csv-file/"><img class="size-large wp-image-1710 aligncenter" title="connect-viserver - power cli" src="http://www.binbert.com/blog/wp-content/uploads/2011/12/connect-viserver-power-cli-500x146.jpg" alt="" width="500" height="146" /></a></p>
<p>Enter the IP address and hit ENTER</p>
<p>Then a new window will prompt from authentication credentials of the VMware server</p>
<p style="text-align: center;"><a href="http://www.binbert.com/blog/2011/12/export-the-list-of-virtual-machines-to-a-csv-file/"><img class="size-full wp-image-1711" title="power cli - authentication" src="http://www.binbert.com/blog/wp-content/uploads/2011/12/power-cli-authentication.jpg" alt="" width="337" height="267" /></a></p>
<h3>Export VM list</h3>
<p style="text-align: left;">Once you connected to the server, you can run VM commands to get the output, Following script will give you a list of guest servers with Name of the virtual machine, Number of CPU, Memory, Disk Space</p>
<pre>Get-VM | Select-Object Name, NumCPU, MemoryMB, ProvisionedSpaceGB | Export-Csv "Report.csv"</pre>
<p>Find the<a href="http://www.binbert.com/blog/2011/12/list-of-vm-object-names-in-vmware-vsphere-powercli/"> list of List of VM Property Names here</a>.  you can use this names after “select-object” . separated by comma</p>
<p style="text-align: center;"><a href="http://www.binbert.com/blog/2011/12/export-the-list-of-virtual-machines-to-a-csv-file/"><img class="aligncenter size-full wp-image-1717" title="out-gridview powercli" src="http://www.binbert.com/blog/wp-content/uploads/2011/12/out-gridview-powercli.jpg" alt="" width="476" height="216" /></a></p>
<p>Use “out-gridview” instead of “Export-Csv“ to get a sample output. See the figure</p>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.binbert.com%2Fblog%2F2011%2F12%2Fexport-the-list-of-virtual-machines-to-a-csv-file%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.binbert.com/blog/2011/12/export-the-list-of-virtual-machines-to-a-csv-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List of VM Property Names in Vmware &#8211; vSphere PowerCLI</title>
		<link>http://www.binbert.com/blog/2011/12/list-of-vm-object-names-in-vmware-vsphere-powercli/</link>
		<comments>http://www.binbert.com/blog/2011/12/list-of-vm-object-names-in-vmware-vsphere-powercli/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 05:12:22 +0000</pubDate>
		<dc:creator>Albin Sebastian</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Command]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.binbert.com/blog/?p=1698</guid>
		<description><![CDATA[VMware vSphere PowerCLI is a Powerful tool to automate the vmware infrastructure management. Here is the list of object names which you can use with &#8220;Get-vm&#8221; command. This object name will help you to create scripts with specific parameters like Host, Power State, CPU etc. Its also helpful to generate VM list (Inventory). Following list [...]]]></description>
			<content:encoded><![CDATA[<p>VMware vSphere PowerCLI is a Powerful tool to automate the vmware infrastructure management. Here is the list of object names which you can use with &#8220;Get-vm&#8221; command.<br />
This object name will help you to create scripts with specific parameters like Host, Power State, CPU etc. Its also helpful to generate VM list (Inventory).<br />
Following list contains Object names and sample outputs.</p>
<pre>PowerState              : Power State
 Version                 : v7
 Description             :
 Notes                   :
 Guest                   : WEB-Server-01:CentOS 4/5 (64-bit)
 NumCpu                  : 1
 MemoryMB                : 4096
 HardDisks               : {Hard disk 1}
 NetworkAdapters         : {Network adapter 1}
 UsbDevices              : {}
 CDDrives                : {CD/DVD Drive 1}
 FloppyDrives            : {Floppy drive 1}
 Host                    : vm01
 HostId                  : HostSystem-host-248
 VMHostId                : HostSystem-host-248
 VMHost                  : vm01
 VApp                    :
 FolderId                : Folder-group-v264
 Folder                  : Production
 ResourcePoolId          : ResourcePool-resgroup-247
 ResourcePool            : Resources
 PersistentId            : 502b8ac0-d052-d637-980d-1e52c6f54340
 UsedSpaceGB             : 40
 ProvisionedSpaceGB      : 40
 DatastoreIdList         : {Datastore-datastore-395}
 HARestartPriority       : ClusterRestartPriority
 HAIsolationResponse     : AsSpecifiedByCluster
 DrsAutomationLevel      : AsSpecifiedByCluster
 VMSwapfilePolicy        : Inherit
 VMResourceConfiguration : CpuShares:Normal/1000 MemShares:Normal/20480
 Name                    : WEB-Server-01
 CustomFields            : {}
 ExtensionData           : VMware.Vim.VirtualMachine
 Id                      : VirtualMachine-vm-407
 Uid                     : /VIServer=root@192.168.1.1:443/VirtualMachine=Virt
 ualMachine-vm-407/</pre>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.binbert.com%2Fblog%2F2011%2F12%2Flist-of-vm-object-names-in-vmware-vsphere-powercli%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.binbert.com/blog/2011/12/list-of-vm-object-names-in-vmware-vsphere-powercli/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Configure LACP  with ESX/ESXi and Foundry BigIron switches</title>
		<link>http://www.binbert.com/blog/2011/11/configure-lacp-with-esxesxi-and-foundry-bigiron-switches/</link>
		<comments>http://www.binbert.com/blog/2011/11/configure-lacp-with-esxesxi-and-foundry-bigiron-switches/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 06:48:57 +0000</pubDate>
		<dc:creator>Albin Sebastian</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.binbert.com/blog/?p=1684</guid>
		<description><![CDATA[Here we are explaining how to configure ESXi server and Foundry Bigiron  switch for Link aggregation ( LACP ).  It is known as NIC teaming In VMware virtualization. Make sure that you have a Esxi configuration backup before the changes. There are different type of network load balancing mechanisms. here we are using &#8220;Route based [...]]]></description>
			<content:encoded><![CDATA[<p>Here we are explaining how to configure ESXi server and Foundry Bigiron  switch for Link aggregation ( LACP ).  It is known as NIC teaming In VMware <a href="http://www.binbert.com/blog/tag/virtualization/">virtualization</a>. Make sure that you have a <a href="http://www.binbert.com/blog/2011/08/backup-and-restore-esxi-configuration-using-vmware-vsphere-cli/">Esxi configuration backup</a> before the changes. There are different type of network load balancing mechanisms. here we are using &#8220;Route based on IP hash&#8221;</p>
<h2>Configuring Foundry Switch for LACP</h2>
<p>in example we are using ports 1/1 to 1/4 and Vlan 100. Configure your device according to  your port configurations and Vlan names.</p>
<pre>lag &lt;lag name&gt; static
port e 1/1 to 1/4
primary-port e 1/1</pre>
<p>To assign a Vlan to the teamed Ethernet ports go to the VLAN interface, and tag the ports which you want to add the vlan</p>
<pre>
Vlan 100
tagged e 1/1</pre>
<h2>Configuring Virtual Switch on ESXi Server</h2>
<p><a href="http://www.binbert.com/blog/wp-content/uploads/2011/11/VMware-LACP.jpg"><img class="size-large wp-image-1686 aligncenter" title="VMware LACP" src="http://www.binbert.com/blog/wp-content/uploads/2011/11/VMware-LACP-500x345.jpg" alt="" width="500" height="345" /></a><br />
Do following steps to configure vSwitch properties for load balancing:<br />
Open your vSphere and connect to ESXi or VCenter.<br />
1.    Click the ESX host.<br />
2.    Click the Configuration tab.<br />
3.    Click the Networking link.<br />
4.    Click Properties.<br />
5.    Click the virtual switch in the Ports tab and click Edit.<br />
6.    Click the NIC Teaming tab.<br />
7.    From the Load Balancing dropdown, choose Route based on ip hash.<br />
8.    From the Network Failover Detection  dropdown, choose Link Status Only</p>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.binbert.com%2Fblog%2F2011%2F11%2Fconfigure-lacp-with-esxesxi-and-foundry-bigiron-switches%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.binbert.com/blog/2011/11/configure-lacp-with-esxesxi-and-foundry-bigiron-switches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup and Restore ESXi configuration using VMware vSphere CLI</title>
		<link>http://www.binbert.com/blog/2011/08/backup-and-restore-esxi-configuration-using-vmware-vsphere-cli/</link>
		<comments>http://www.binbert.com/blog/2011/08/backup-and-restore-esxi-configuration-using-vmware-vsphere-cli/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 07:41:55 +0000</pubDate>
		<dc:creator>Albin Sebastian</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.binbert.com/blog/?p=1670</guid>
		<description><![CDATA[How to backup Here is the command to Backup ESXi server configuration to your local computer. You should have access to the ESXi server using  vSphere CLI tool. This will help administrator to schedule ESXi backup using Scripts. Download vSphere CLI tool from here. Open the CLI console and run following command. Tool located at [...]]]></description>
			<content:encoded><![CDATA[<h2>How to backup</h2>
<p>Here is the command to Backup ESXi server configuration to your local computer. You should have access to the ESXi server using  vSphere CLI tool. This will help administrator to schedule ESXi backup using Scripts. Download vSphere CLI tool from <a href="http://downloads.vmware.com/d/details/vcli40u1/ZHcqYmRqZUBiZGVqdA==">here</a>. Open the CLI console and run following command.</p>
<p style="text-align: center;"><a href="http://www.binbert.com/blog/?p=1670"><img class="size-full wp-image-1674 aligncenter" title="vSphere CLI" src="http://www.binbert.com/blog/wp-content/uploads/2011/08/vSphere-CLI.jpg" alt="" width="372" height="206" /></a></p>
<p>Tool located at C:\Program Files (x86)\VMware\VMware vSphere CLI&gt;</p>
<pre>vicfg-cfgbackup.pl  --server 192.168.0.1  --username root
--password your_password --save backup.cfg</pre>
<p><strong>Possible Errors:</strong></p>
<p><strong>CLI Error : </strong><em> Saving firmware configuration to backup.cfg …</em><br />
<em> GET https://192.168.0.1/downloads/configBundle-servername..tgz unsuccessful : 404 Not</em><br />
Found</p>
<p><strong>Event log :</strong><em> Boot partition : /usr/lib/vmware/hostd/docroot/downloads//files cannot be found</em></p>
<h2><span style="text-decoration: underline;">Solution :</span></h2>
<p>/usr/lib/vmware/hostd/docroot/downloads is only a link to /scratch/downloads/</p>
<p>and /scratch is link to /tmp/scratch</p>
<p>Problem will be solved after create a folders under /tmp</p>
<p>SSH to ESXi Server</p>
<pre>cd /tmp
mkdir scratch
cd scratch
mkdir downloads
cd downloads</pre>
<h2>How to restore</h2>
<p>We are using same command to restore also, Use &#8211;load (-l) syntax instead of &#8211;save<br />
While restore all the guest machines should in off state. Command will give a message to shutdown all the gust VMs. ESXi will go to maintenance mode and restore the configuration and reboot the server.</p>
<pre>vicfg-cfgbackup.pl  --server 192.168.0.1  --username root
--password your_password --load backup.cfg</pre>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.binbert.com%2Fblog%2F2011%2F08%2Fbackup-and-restore-esxi-configuration-using-vmware-vsphere-cli%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.binbert.com/blog/2011/08/backup-and-restore-esxi-configuration-using-vmware-vsphere-cli/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Automatically start virtual machine (guest) Xen Server</title>
		<link>http://www.binbert.com/blog/2011/07/automatically-start-virtual-machine-guest-xen-server/</link>
		<comments>http://www.binbert.com/blog/2011/07/automatically-start-virtual-machine-guest-xen-server/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 08:27:35 +0000</pubDate>
		<dc:creator>Albin Sebastian</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.binbert.com/blog/?p=1582</guid>
		<description><![CDATA[It is difficult to start all guest servers whenever the Xen server (Host) restarts. Sometimes the Host Server restarts are unplanned. Services (guest) will be unavailable after restarts. This can be solved by enable feature called “Auto-Start”. Follow the steps to enable this option in Xen Server. Open your Xen – Center Go to the [...]]]></description>
			<content:encoded><![CDATA[<p>It is difficult to start all guest servers whenever the Xen server (Host) restarts. Sometimes the Host Server restarts are unplanned. Services (guest) will be unavailable after restarts. This can be solved by enable feature called “Auto-Start”. Follow the steps to enable this option in Xen Server.</p>
<p><a href="http://www.binbert.com/blog/wp-content/uploads/2011/07/xserver.jpg"><img class="aligncenter" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="xserver" src="http://www.binbert.com/blog/wp-content/uploads/2011/07/xserver_thumb.jpg" alt="xserver" width="550" height="343" border="0" /></a></p>
<ol>
<li>Open your Xen – Center</li>
<li>Go to the server which you want to start automatically</li>
<li>Take the properties</li>
<li>Go to Start-up Options</li>
<li>Put the tick mark on “Auto-start on Server boot”</li>
</ol>
<p>&nbsp;</p>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.binbert.com%2Fblog%2F2011%2F07%2Fautomatically-start-virtual-machine-guest-xen-server%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.binbert.com/blog/2011/07/automatically-start-virtual-machine-guest-xen-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a simple web based file server</title>
		<link>http://www.binbert.com/blog/2011/04/create-a-simple-web-based-file-server/</link>
		<comments>http://www.binbert.com/blog/2011/04/create-a-simple-web-based-file-server/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 07:21:06 +0000</pubDate>
		<dc:creator>Albin Sebastian</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Softwares]]></category>
		<category><![CDATA[DynDNS]]></category>
		<category><![CDATA[Freeware]]></category>

		<guid isPermaLink="false">http://www.binbert.com/blog/?p=1496</guid>
		<description><![CDATA[HFS is an open source application to create a simple file server. It is a lightweight file server with file size of 600 Kbyte. This is a standalone application. So you can setup your web based file server in minutes. Good for small offices / instant file sharing. This server can be used as anonymous [...]]]></description>
			<content:encoded><![CDATA[<p>HFS is an open source application to create a simple file server. It is a lightweight file server with file size of 600 Kbyte. This is a standalone application. So you can setup your web based file server in minutes. Good for small offices / instant file sharing. This server can be used as anonymous or with user accounts. File uploading feature help your friends to share their files without uploading in public file sharing servers.</p>
<p style="text-align: center;"><a href="http://www.binbert.com/blog/wp-content/uploads/2011/04/HFS-Server.jpg"></a><a href="http://www.binbert.com/blog/wp-content/uploads/2011/04/HFS-Server.jpg"><img class="size-full wp-image-1497 aligncenter" title="HFS Server" src="http://www.binbert.com/blog/wp-content/uploads/2011/04/HFS-Server.jpg" alt="" width="500" height="428" /></a></p>
<p style="text-align: left;">By default HFS application is listening TCP port 80. You can change if you are already using this port for some other application. Read this  article if you have <a href="http://www.binbert.com/blog/2010/04/find-which-application-service-is-running-in-a-port-windows/">port conflicts</a>. HFS is supported by Wine, so linux users can use the advantage of HFS. Inbuilt DNS updater is one of the interesting features of HFS. So that you can configure your DynDNS account with HFS and assign public domain name for your file server. It is helpful for internet connections with dynamic IP address.</p>
<p><a href="http://www.binbert.com/blog/wp-content/uploads/2011/04/Browse-HFS.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="Browse HFS" src="http://www.binbert.com/blog/wp-content/uploads/2011/04/Browse-HFS_thumb.jpg" border="0" alt="Browse HFS" width="504" height="515" /></a></p>
<p>You can see connected users in  the application bottom panel. Full control over connected users in terms of bandwidth and access list. It will also log the IP address of connected users.</p>
<h3>Download :  <a href="http://www.rejetto.com/hfs/?f=dl">HFS</a></h3>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.binbert.com%2Fblog%2F2011%2F04%2Fcreate-a-simple-web-based-file-server%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.binbert.com/blog/2011/04/create-a-simple-web-based-file-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Command line tool to Kill remote desktop connections from XP</title>
		<link>http://www.binbert.com/blog/2011/03/command-line-tool-to-kill-remote-desktop-connections-from-xp/</link>
		<comments>http://www.binbert.com/blog/2011/03/command-line-tool-to-kill-remote-desktop-connections-from-xp/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 12:16:36 +0000</pubDate>
		<dc:creator>Albin Sebastian</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[RDP]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.binbert.com/blog/?p=1404</guid>
		<description><![CDATA[Error : The terminal server has exceeded the maximum number of allowed connections We have explained the command to reset the remote desktop connections from a windows 7 PC,  As you know windows RDP client will give an error if multiple users are connected through terminal service. Its including console access. In critical situations we [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;">Error : The terminal server has exceeded the maximum number of allowed connections</span></p>
<p>We have explained the command to <a href="http://www.binbert.com/blog/2010/11/two-ways-to-resolve-terminal-server-limitation-error/">reset the remote desktop connections from a windows 7 PC</a>,  As you know windows RDP client will give an error if multiple users are connected through terminal service. Its including console access. In critical situations we have to accrue the session. There are two ways to reset the remote desktop connection. The first method is using an GUI application called Terminal service manager ( Run tsadmin) <a href="http://www.binbert.com/blog/2010/11/two-ways-to-resolve-terminal-server-limitation-error/">Here</a> we explained the usage of tsadmin.</p>
<h3>How to disconnect remotely logged users of remote desktop</h3>
<p>First you have to get access to the target server, If you are in same domain you have access to the server. Or you can gain access by mapping a drive to local computer.</p>
<p>Eg : net use x: \\192.168.0.1\c$</p>
<p>Here i am using 192.168.0.1 as example IP, replace it with your IP</p>
<p>Open command prompt, and run</p>
<pre><strong>qwinsta /server:192.168.0.1</strong></pre>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><a href="http://www.binbert.com/blog/wp-content/uploads/2011/03/image.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.binbert.com/blog/wp-content/uploads/2011/03/image_thumb.png" border="0" alt="image" width="604" height="82" /></a></p>
<p>you can see the session IDs in the list, find the ID number which you want to reset</p>
<p>then run command</p>
<pre>rwinsta /server:192.168.0.1 4</pre>
<p>Here 4 is the session ID</p>
<p>Now the session will be cleared and you can access the server</p>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.binbert.com%2Fblog%2F2011%2F03%2Fcommand-line-tool-to-kill-remote-desktop-connections-from-xp%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.binbert.com/blog/2011/03/command-line-tool-to-kill-remote-desktop-connections-from-xp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download Windows 7 SP1</title>
		<link>http://www.binbert.com/blog/2011/02/download-windows-7-sp1/</link>
		<comments>http://www.binbert.com/blog/2011/02/download-windows-7-sp1/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 05:16:07 +0000</pubDate>
		<dc:creator>Albin Sebastian</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Service Pack]]></category>
		<category><![CDATA[Updates]]></category>

		<guid isPermaLink="false">http://www.binbert.com/blog/?p=1349</guid>
		<description><![CDATA[Microsoft has released the first service pack (Final release) for Windows 7. It is a collection of all previous updates. It is also includes client side support for RemoteFX and Dynamic Memory for Windows 7 VMs. Windows 7 and Windows Server 2008 R2 SP1 helps keep your PCs and servers on the latest support level. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.binbert.com/blog/wp-content/uploads/2011/02/windows7-Service-pack-1.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="windows7 Service pack 1" src="http://www.binbert.com/blog/wp-content/uploads/2011/02/windows7-Service-pack-1_thumb.jpg" border="0" alt="windows7 Service pack 1" width="404" height="138" /></a></p>
<p>Microsoft has released the first service pack (Final release) for Windows 7. It is a collection of all previous updates. It is also includes client side support for RemoteFX and Dynamic Memory for Windows 7 VMs. Windows 7 and Windows Server 2008 R2 SP1 helps keep your PCs and servers on the latest support level. Both 64 bit and 32 bit service pack size is about 1GB. If you are facing any problem after installing service pack, you can uninstall it completely. Find this article about <a href="http://www.nirmaltv.com/2010/07/14/how-to-uninstall-windows-7-service-pack-sp1/">How to Uninstall Windows 7 Service Pack 1</a></p>
<h3>Microsoft download page  : <a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c3202ce6-4056-4059-8a1b-3a9b77cdfdda">Link</a></h3>
<h3><span style="text-decoration: underline;">Direct download links : </span></h3>
<h3><a href="http://download.microsoft.com/download/0/A/F/0AFB5316-3062-494A-AB78-7FB0D4461357/windows6.1-KB976932-X64.exe">windows6.1-KB976932-X64.exe</a></h3>
<h3><a href="http://download.microsoft.com/download/0/A/F/0AFB5316-3062-494A-AB78-7FB0D4461357/windows6.1-KB976932-X86.exe">windows6.1-KB976932-X86.exe</a></h3>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.binbert.com%2Fblog%2F2011%2F02%2Fdownload-windows-7-sp1%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.binbert.com/blog/2011/02/download-windows-7-sp1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Applet Not Working (Blank) in IE9</title>
		<link>http://www.binbert.com/blog/2011/02/java-applet-not-working-blank-in-ie9/</link>
		<comments>http://www.binbert.com/blog/2011/02/java-applet-not-working-blank-in-ie9/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 05:26:30 +0000</pubDate>
		<dc:creator>Aneesh Unnikrishnan</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Ie9]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.binbert.com/blog/?p=1325</guid>
		<description><![CDATA[Hi all, Microsoft launched IE9 RC successfully, in IE9 when we try to play videos, musics or TV shows which is based on Adobe flash,Microsoft silverlight or Java the plugins are not loading and it seems blank. The Java is not running in IE9 problem happens the user has installed the latest version of Java [...]]]></description>
			<content:encoded><![CDATA[<p>Hi all, Microsoft launched IE9 RC successfully, in IE9 when we try to play videos, musics or TV shows which is based on Adobe flash,Microsoft silverlight or Java the plugins are not loading and it seems blank. The Java is not running in IE9 problem happens the user has installed the latest version of Java Runtime Environment (JRE) into his machine, and the Java Plug-in has been enabled as add-on for IE. The affected web pages with Java applets have been working properly in IE8 or earlier.<br />
The non-working of Java applet is affected in many websites, web services and web apps depend on Java, especially for login authentication to secure sites such as Internet banking or brokerage accounts, stream live results, scores, foreign exchange (forex) rates or stock prices, playback video or audio, and present other interactive information.</p>
<h3><span style="text-decoration: underline;">Reason</span></h3>
<p>The reason of Java not working in IE9 is because the Java applets has been blocked by ActiveX Filtering, it is a new feature in IE9.the solution is to temporarily turn off ActiveX Filtering.</p>
<p><strong>1) </strong> How to Enable Activex filtering -&gt; Go to Tools option in IE9 Click on Activex Filtering, the tick in front of the option will disappear. It means the option is disabled. If it is not there the option is already disabled.</p>
<p>If you enabled the java loading in IE9, you may encounter a problem that the java causes the web page to crash. We can stop this problem also, to enable the compatibility view option in IE9. If you enabled Compatibility option then add which address you need to option that contained java applet.</p>
<p><strong>2) </strong> How to Enable Compatibility view in IE9 -&gt; Go to Tools  and click on Compatibility view settings option, click add button and add the web site.<br />
To remove a website from Compatibility view, just go back to Compatibility View Settings, and remove the site from the Compatibility View list.</p>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.binbert.com%2Fblog%2F2011%2F02%2Fjava-applet-not-working-blank-in-ie9%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.binbert.com/blog/2011/02/java-applet-not-working-blank-in-ie9/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Redhat linux hardening tips &amp; bash script</title>
		<link>http://www.binbert.com/blog/2011/01/redhat-linux-hardening/</link>
		<comments>http://www.binbert.com/blog/2011/01/redhat-linux-hardening/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 05:23:34 +0000</pubDate>
		<dc:creator>Sandeep kalathil</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Hardening]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://www.binbert.com/blog/?p=1219</guid>
		<description><![CDATA[From the time a servers goes to live environment its prone to too many attacks from the hands of crackers (hackers) also as a system administrator you need to secure your Linux server to protect and save your data, intellectual property, and time here server hardening comes into effect. Securing a server is much different [...]]]></description>
			<content:encoded><![CDATA[<p><!-- pre.cjk { font-family: "DejaVu Sans",monospace; }p { margin-bottom: 0.21cm; }tt.cjk { font-family: "DejaVu Sans",monospace; } --><a href="http://www.binbert.com/blog/wp-content/uploads/2011/01/Redhat-linux.png"><img class="alignleft size-full wp-image-1253" title="Redhat linux" src="http://www.binbert.com/blog/wp-content/uploads/2011/01/Redhat-linux.png" alt="" width="155" height="267" /></a>From the time a servers goes to live environment its prone to too many attacks from the hands of crackers (hackers) also as a system administrator you need to secure your Linux server to protect and save your data, intellectual property, and time here server hardening comes into effect.   Securing a server is much different than securing a desktop computer for a variety of reasons. By default, a desktop operating system is installed to provide the user with an environment that can be run out of the box. Desktop operating systems are sold on the premise that they require minimal configuration and come loaded with as many applications as possible to get the user up and running. Conversely, a server&#8217;s operating system should abide by the Principle of Least Privilege, which states that it should have only the services, software, and permissions necessary to perform the tasks it&#8217;s responsible for.</p>
<p>We already covered some topics in earlier articles some of them are linked here.</p>
<p>Here are some tips for servers hardening ( Some already mentioned in my previous posts)</p>
<h2><strong>1) Removing Unnecessary Software Packages (RPMs)</strong></h2>
<p>An administrator should be crystal clear about the primary function or role of the Linux server also should know what is on the server.Therefore, it is very critical to look at the default list of software packages and remove unneeded packages.</p>
<p>To get a list of all installed RPMs you can use the following command:</p>
<pre><span style="color: #000000;">rpm -qa</span></pre>
<p>Remove the  unneeded packages from the list.</p>
<h2>2)<strong> <a title="Disabling runlevel system services on Linux Servers" href="http://www.binbert.com/blog/2010/12/disabling-runlevel-system-services-on-linux-servers/" target="_blank">Disabling Run level System Services</a></strong></h2>
<p>In  Linux servers, some services are enabled to start at boot up by default.<br />
it is safe to disable all services that are not needed as they are risks security and waste of hardware  resources. Read <a href="http://www.binbert.com/blog/2010/12/disabling-runlevel-system-services-on-linux-servers/">more</a>.</p>
<h2><strong>3) Reviewing Inittab and Boot Scripts</strong></h2>
<p>The inittab file <tt><span style="color: #0000ff;">/etc/inittab</span></tt> also describes which processes are started at bootup and during normal operation. For example, Oracle uses it to start cluster services at bootup. Therefore, it is recommended to ensure that all entries in <tt>/etc/inittab</tt> are legitimate in your environment.</p>
<p>I would at least remove the<a title="Prevent accidental reboots in Linux Servers" href="http://www.binbert.com/blog/2010/12/prevent-accidental-reboots-in-linux-servers/" target="_blank"> CTRL-ALT-DELETE</a> trap entry to prevent accidental reboots:</p>
<p>The default runlevel should be set to 3 since in my opinion X11 (X Windows System) should not be running on a production server. In fact, it shouldn&#8217;t even be installed.</p>
<pre># <span style="color: #0000ff;">grep ':initdefault' /etc/inittab</span>
id:3:initdefault:</pre>
<p>To have changes in <tt>/etc/inittab</tt> become effective immediately, you can run:</p>
<pre># <span style="color: #0000ff;">init q</span>
</pre>
<h2><strong>4) <a title="Securing SSH in Linux Servers" href="http://www.binbert.com/blog/2010/11/securing-ssh-in-linux-servers/" target="_blank">Securing SSH</a></strong></h2>
<p>Ssh is a great protocol and as it name  stands for Secure SHell its secure but its prone to attacks with basic configuration. There are ways to make ssh even more  secure than it is now.Read <a href="../2010/11/securing-ssh-in-linux-servers/">more</a></p>
<h2><strong>5) <a title="SSH login without password using RSA key authentication" href="http://www.binbert.com/blog/2010/08/ssh-login-without-password-using-rsa-key-authentication/" target="_blank">SSH login without passwords</a></strong></h2>
<p>Automated authentication onto server using RAS key authenticating mechanism . Read <a href="http://www.binbert.com/blog/2010/08/ssh-login-without-password-using-rsa-key-authentication/">more</a></p>
<h2><strong>6) Kernel Tuning<br />
</strong></h2>
<p>Following are some tunable kernel parameters you can use to secure your Linux server against attacks .We need to add these entries inside /etc/sysctl.conf configuration file to make the change permanent after reboots.To activate the configured kernel parameters immediately at runtime, use:</p>
<pre><span style="color: #0000ff;">#sysctl -p</span></pre>
<h3>Disable IP Source Routing</h3>
<pre>net.ipv4.conf.all.accept_source_route = 0</pre>
<h3>Disable ICMP Redirect Acceptance</h3>
<pre>net.ipv4.conf.all.accept_redirects = 0</pre>
<h3>Enable Ignoring Broadcasts Request</h3>
<pre>net.ipv4.icmp_echo_ignore_broadcasts = 1</pre>
<h3>Enable Bad Error Message Protection</h3>
<pre>net.ipv4.icmp_ignore_bogus_error_responses = 1</pre>
<h3>Enable Logging of Spoofed Packets, Source Routed Packets, Redirect Packets</h3>
<pre>net.ipv4.conf.all.log_martians = 1</pre>
<p>The above mentioned are only few steps for harding . There are many more steps like providing strong password , locking user accounts after too many login failures , restricting use of previous used passwords , setting banners etc.</p>
<p>Hardening  five or six servers can be done quite easily at a stretch but when the number of servers increases it just becomes tiresome and time consuming . So why don&#8217;t we think about a running a script that does all the hardening jobs and there wont be any waste of time. The script presented can be customized according to the requirement.</p>
<pre>#!/bin/bash
chkconfig autofs off
chkconfig avahi-daemon off
chkconfig avahi-dnsconfd off
chkconfig bluetooth off
chkconfig conman off
chkconfig cups off
chkconfig dhcdbd off
chkconfig firstboot off
chkconfig gpm off
chkconfig haldaemon off
chkconfig isdn off
chkconfig iptables off
chkconfig ip6tables off
chkconfig irda off
chkconfig irqbalance off
chkconfig kdump off
chkconfig kudzu off
chkconfig mcstrans off
chkconfig microcode_ctl off
chkconfig multipathd off
chkconfig netconsole off
chkconfig netfs off
chkconfig netplugd off
chkconfig nfs off
chkconfig nfslock off
chkconfig nscd off
chkconfig pcscd off
chkconfig portmap off
chkconfig rdisc off
chkconfig rhnsd off
chkconfig restorecond off
chkconfig rpcgssd off
chkconfig rpcidmapd off
chkconfig rpcsvcgssd off
chkconfig sendmail off
chkconfig smartd off
chkconfig winbind off
chkconfig wpa_supplicant off
chkconfig xfs off
chkconfig ypbind off
chkconfig yum-updatesd off
chkconfig acpid on
chkconfig anacron on
chkconfig atd on
chkconfig cpuspeed on
chkconfig lvm2-monitor on
chkconfig messagebus on
chkconfig ntpd on
chkconfig network on
chkconfig oracle on
chkconfig oracleasm on
chkconfig readahead_early on
chkconfig readahead_later on
chkconfig syslog on
chkconfig sshd on
cat &gt; /root/banner &lt;&lt; EOF
|-----------------------------------------------------------------|
| This system is for the use of authorized users only. |
| Individuals using this computer system without authority, or in |
| excess of their authority, are subject to having all of their |
| activities on this system monitored and recorded by system |
| personnel. |
| |
| In the course of monitoring individuals improperly using this |
| system, or in the course of system maintenance, the activities |
| of authorized users may also be monitored. |
| |
| Anyone using this system expressly consents to such monitoring |
| and is advised that if such monitoring reveals possible |
| evidence of criminal activity, system personnel may provide the |
| evidence of such monitoring to law enforcement officials. |
|-----------------------------------------------------------------|
EOF
cat /root/banner
sed -i 's/id:5:initdefault:/id:3:initdefault:/g' /etc/inittab
sed -i 's/ca::ctrlaltdel:/#ca::ctrlaltdel:/g' /etc/inittab
echo PermitRootLogin no &gt;&gt; /etc/ssh/sshd_config
echo Banner /root/banner &gt;&gt; /etc/ssh/sshd_config
sed -i 's/#AllowTcpForwarding yes/AllowTcpForwarding no/g' /etc/ssh/sshd_config
sed -i 's/#X11Forwarding no/X11Forwarding no/g' /etc/ssh/sshd_config
sed -i 's/X11Forwarding yes/#X11Forwarding yes/g' /etc/ssh/sshd_config
sed -i 's/#StrictModes yes/StrictModes yes/g' /etc/ssh/sshd_config
sed -i 's/#IgnoreRhosts yes/IgnoreRhosts yes/g' /etc/ssh/sshd_config
sed -i 's/#HostbasedAuthentication no/HostbasedAuthentication no/g' /etc/ssh/sshd_config
sed -i 's/#RhostsRSAAuthentication no/RhostsRSAAuthentication no/g' /etc/ssh/sshd_config
service sshd restart
echo net.ipv4.conf.all.accept_source_route = 0 &gt;&gt; /etc/sysctl.conf
echo net.ipv4.conf.all.accept_redirects = 0 &gt;&gt; /etc/sysctl.conf
echo net.ipv4.icmp_echo_ignore_broadcasts = 1 &gt;&gt; /etc/sysctl.conf
echo net.ipv4.icmp_ignore_bogus_error_responses = 1 &gt;&gt; /etc/sysctl.conf
echo net.ipv4.conf.all.log_martians = 1 &gt;&gt; /etc/sysctl.conf
sysctl -p
if [ $(id -u) -eq 0 ]; then
read -p "Enter username : " username
read -s -p "Enter password : " password
egrep "^$username" /etc/passwd &gt;/dev/null
if [ $? -eq 0 ]; then
echo "$username exists!"
exit 1
else
pass=$(perl -e 'print crypt($ARGV[0], "password")' $password)
useradd -m -p $pass $username
[ $? -eq 0 ] &amp;&amp; echo "User has been added to system!" || echo "Failed to add a user!"
fi
else
echo "Only root may add a user to the system"
exit 2
fi</pre>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.binbert.com%2Fblog%2F2011%2F01%2Fredhat-linux-hardening%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.binbert.com/blog/2011/01/redhat-linux-hardening/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

