<?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>Tips and Tux &#187; software</title>
	<atom:link href="http://www.tipsandtux.org/wordpress/tag/software/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tipsandtux.org/wordpress</link>
	<description>di Linux, Foto, Piante Carnivore e non solo... il informatipapàliticarnivoro</description>
	<lastBuildDate>Fri, 13 Jan 2012 10:15:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Postfix: LDAP query offline</title>
		<link>http://www.tipsandtux.org/wordpress/postfix-ldap-query-offline.html</link>
		<comments>http://www.tipsandtux.org/wordpress/postfix-ldap-query-offline.html#comments</comments>
		<pubDate>Wed, 11 Jan 2012 14:44:40 +0000</pubDate>
		<dc:creator>superpaia</dc:creator>
				<category><![CDATA[Sistemi]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[winzoz]]></category>

		<guid isPermaLink="false">http://www.tipsandtux.org/wordpress/?p=25</guid>
		<description><![CDATA[The following directions are meant for people using Microsoft Exchange 2000 or Microsoft Exchange 2003. This page describes how to configure your mail gateway to periodically get a list of valid recipient email addresses from your Exchange system. By doing this, you can configure your server to automatically reject any email addressed to invalid addresses. This will reduce the load [...]]]></description>
			<content:encoded><![CDATA[<p>The following directions are meant for people using Microsoft Exchange 2000 or Microsoft Exchange 2003.</p>
<p>This page describes how to configure your mail gateway to periodically get a list of valid recipient email addresses from your Exchange system. By doing this, you can configure your server to automatically reject any email addressed to invalid addresses. This will reduce the load on your exchange server, since it no longer has to process non-delivery reports, and it will reduce the load on your postfix server since it won&#8217;t have to perform spam and virus scanning on the message.</p>
<p>BTW, the directions and script are courtesy Chris Covington &#8211; malth@umich.edu.</p>
<p>Install the perl module Net::LDAP:</p>
<p>perl -MCPAN -e shell</p>
<p>install Net::LDAP</p>
<p>You do not need to install the SSL optional module (I had issues installing it, but I went ahead and installed all the other optional modules when asked).</p>
<p>Next you will want to create and edit the script:</p>
<p>vi /usr/local/sbin/getadsmtp.pl</p>
<p>Copy and paste the code below into this new file.</p>
<p><em>#!/usr/bin/perl -T -w</em></p>
<p><em># This script will pull all users&#8217; SMTP addresses from your Active Directory<br />
# (including primary and secondary email addresses) and list them in the<br />
# format &#8220;user@example.com OK&#8221; which Postfix uses with relay_recipient_maps.<br />
# Be sure to double-check the path to perl above.</em></p>
<p><em># This requires Net::LDAP to be installed.  To install Net::LDAP, at a shell<br />
# type &#8220;perl -MCPAN -e shell&#8221; and then &#8220;install Net::LDAP&#8221;</em></p>
<p><em>use Net::LDAP;<br />
use Net::LDAP::Control::Paged;<br />
use Net::LDAP::Constant ( &#8220;LDAP_CONTROL_PAGED&#8221; );</em></p>
<p><em># Enter the path/file for the output<br />
$VALID = &#8220;/etc/postfix/relay_recipients&#8221;;<br />
open VALID, &#8220;&gt;$VALID&#8221; or die &#8220;CANNOT OPEN $VALID $!&#8221;;</em></p>
<p><em># Enter the FQDN of your Active Directory domain controllers below<br />
$dc1=&#8221;domaincontroller1.example.com&#8221;;<br />
$dc2=&#8221;domaincontroller2.example.com&#8221;;</em></p>
<p><em># Enter the LDAP container for your userbase.<br />
# The syntax is CN=Users,dc=example,dc=com<br />
# This can be found by installing the Windows 2000 Support Tools<br />
# then running ADSI Edit.<br />
# In ADSI Edit, expand the &#8220;Domain NC [domaincontroller1.example.com]&#8221; &amp;<br />
# you will see, for example, DC=example,DC=com (this is your base).<br />
# The Users Container will be specified in the right pane as<br />
# CN=Users depending on your schema (this is your container).<br />
# You can double-check this by clicking &#8220;Properties&#8221; of your user<br />
# folder in ADSI Edit and examining the &#8220;Path&#8221; value, such as:<br />
# LDAP://domaincontroller1.example.com/CN=Users,DC=example,DC=com<br />
# which would be $hqbase=&#8221;cn=Users,dc=example,dc=com&#8221;<br />
# Note:  You can also use just $hqbase=&#8221;dc=example,dc=com&#8221;<br />
$hqbase=&#8221;cn=Users,dc=example,dc=com&#8221;;</em></p>
<p><em># Enter the username &amp; password for a valid user in your Active Directory<br />
# with username in the form cn=username,cn=Users,dc=example,dc=com<br />
# Make sure the user&#8217;s password does not expire.  Note that this user<br />
# does not require any special privileges.<br />
# You can double-check this by clicking &#8220;Properties&#8221; of your user in<br />
# ADSI Edit and examining the &#8220;Path&#8221; value, such as:<br />
# LDAP://domaincontroller1.example.com/CN=user,CN=Users,DC=example,DC=com<br />
# which would be $user=&#8221;cn=user,cn=Users,dc=example,dc=com&#8221;<br />
# Note: You can also use the UPN login: &#8220;user@example.com&#8221;<br />
$user=&#8221;cn=user,cn=Users,dc=example,dc=com&#8221;;<br />
$passwd=&#8221;password&#8221;;</em></p>
<p><em># Connecting to Active Directory domain controllers<br />
$noldapserver=0;<br />
$ldap = Net::LDAP-&gt;new($dc1) or<br />
$noldapserver=1;<br />
if ($noldapserver == 1)  {<br />
$ldap = Net::LDAP-&gt;new($dc2) or<br />
die &#8220;Error connecting to specified domain controllers $@ n&#8221;;<br />
}</em></p>
<p><em>$mesg = $ldap-&gt;bind ( dn =&gt; $user,<br />
password =&gt;$passwd);<br />
if ( $mesg-&gt;code()) {<br />
die (&#8220;error:&#8221;, $mesg-&gt;error_text((),&#8221;n&#8221;));<br />
}</em></p>
<p><em># How many LDAP query results to grab for each paged round<br />
# Set to under 1000 for Active Directory<br />
$page = Net::LDAP::Control::Paged-&gt;new( size =&gt; 990 );</em></p>
<p><em>@args = ( base     =&gt; $hqbase,<br />
# Play around with this to grab objects such as Contacts, Public Folders, etc.<br />
# A minimal filter for just users with email would be:<br />
# filter =&gt; &#8220;(&amp;(sAMAccountName=*)(mail=*))&#8221;<br />
filter =&gt; &#8220;(&amp; (mailnickname=*) (| (&amp;(objectCategory=person)<br />
(objectClass=user)(!(homeMDB=*))(!(msExchHomeServerName=*)))<br />
(&amp;(objectCategory=person)(objectClass=user)(|(homeMDB=*)<br />
(msExchHomeServerName=*)))(&amp;(objectCategory=person)(objectClass=contact))<br />
(objectCategory=group)(objectCategory=publicFolder) ))&#8221;,<br />
control  =&gt; [ $page ],<br />
attrs  =&gt; &#8220;proxyAddresses&#8221;,<br />
);</em></p>
<p><em>my $cookie;<br />
while(1) {<br />
# Perform search<br />
my $mesg = $ldap-&gt;search( @args );</em></p>
<p><em># Filtering results for proxyAddresses attributes<br />
foreach my $entry ( $mesg-&gt;entries ) {<br />
my $name = $entry-&gt;get_value( &#8220;cn&#8221; );<br />
# LDAP Attributes are multi-valued, so we have to print each one.<br />
foreach my $mail ( $entry-&gt;get_value( &#8220;proxyAddresses&#8221; ) ) {<br />
# Test if the Line starts with one of the following lines:<br />
# proxyAddresses: [smtp|SMTP]:<br />
# and also discard this starting string, so that $mail is only the<br />
# address without any other characters&#8230;<br />
if ( $mail =~ s/^(smtp|SMTP)://gs ) {<br />
print VALID $mail.&#8221; OKn&#8221;;<br />
}<br />
}<br />
}</em></p>
<p><em># Only continue on LDAP_SUCCESS<br />
$mesg-&gt;code and last;</em></p>
<p><em># Get cookie from paged control<br />
my($resp)  = $mesg-&gt;control( LDAP_CONTROL_PAGED ) or last;<br />
$cookie    = $resp-&gt;cookie or last;</em></p>
<p><em># Set cookie in paged control<br />
$page-&gt;cookie($cookie);<br />
}</em></p>
<p><em>if ($cookie) {<br />
# We had an abnormal exit, so let the server know we do not want any more<br />
$page-&gt;cookie($cookie);<br />
$page-&gt;size(0);<br />
$ldap-&gt;search( @args );<br />
# Also would be a good idea to die unhappily and inform OP at this point<br />
die(&#8220;LDAP query unsuccessful&#8221;);<br />
}<br />
# Add additional restrictions, users, etc. to the output file below.<br />
#print VALID &#8220;user@domain1.com OKn&#8221;;<br />
#print VALID &#8220;user@domain2.com 550 User unknown.n&#8221;;<br />
#print VALID &#8220;domain3.com 550 User does not exist.n&#8221;;</em></p>
<p><em>close VALID;<br />
</em><br />
Next set the permissions on the file to allow it to be executed:</p>
<p><em>chmod 500 /usr/local/sbin/getadsmtp.pl </em></p>
<p>Edit the file to customize it for your specific domain. Since the file is read only, you will need to use :w! to save the file in vi.</p>
<p>1. Set $dc1 and $dc2 to the fully qualified domain names or IP addresses of 2 of your domain controllers.<br />
2. Set $hqbase equal to the LDAP path to the container or organizational unit which holds the email accounts for which you wish to get the email addresses.<br />
3. Set $user and $passwd to indicate which user account should be used to access this information. This account only needs to be a member of the domain, so it would be a good idea to setup an account specifically for this.</p>
<p>Try running the script. If it works correctly, it will create <em>/etc/postfix/relay_recipients</em> Note that if your postfix server is separated from your active directory controllers by a firewall, you will need to open TCP port 389 from the postfix server to the ADCs. At this point, you can update your<em> /etc/postfix/main.cf</em> to <em>relay_recipient_maps</em> and uncomment show_user_unknown_table_name (See Installing and Configuring Postfix).</p>
<p>Finally, you will want to setup a cron job to periodically update and build the <em>/etc/postfix/relay_recipients.db</em> file. In my case, I setup a script called <em>/usr/local/sbin/update-relay-recipients.sh: </em></p>
<p><em>#!/bin/sh</em></p>
<p><em>/usr/local/sbin/getadsmtp.pl<br />
cd /etc/postfix<br />
postmap relay_recipients </em></p>
<p>Run crontab to add this script to the scheduled jobs:</p>
<p><em>crontab -e </em></p>
<p>Now add the following lines to the bottom of the file. Note that this cron job will run every day at 2:30 AM to update the database file. You may want to run yours more frequently depending on how often you add new email users to your system.</p>
<p><em># syncronize relay_recipients with Active Directory addresses </em></p>
<p><em>30 2 * * * /usr/local/sbin/update-relay-recipients.sh</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandtux.org/wordpress/postfix-ldap-query-offline.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<enclosure url='http://www.tipsandtux.org/wordpress/wp-content/uploads/2012/01/images.jpeg' length ='2838'  type='image/jpg' />	</item>
		<item>
		<title>Sanbolic MelioFS in a (dobule) VMware Enviroment</title>
		<link>http://www.tipsandtux.org/wordpress/sanbolic-meliofs-in-a-dobule-vmware-enviroment.html</link>
		<comments>http://www.tipsandtux.org/wordpress/sanbolic-meliofs-in-a-dobule-vmware-enviroment.html#comments</comments>
		<pubDate>Tue, 10 Jan 2012 21:48:58 +0000</pubDate>
		<dc:creator>superpaia</dc:creator>
				<category><![CDATA[Sistemi]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[winzoz]]></category>

		<guid isPermaLink="false">http://www.tipsandtux.org/wordpress/?p=362</guid>
		<description><![CDATA[Objectives: on reduntant UNC in Active Directory domain redundant volume redundant computer virtual enviroment data continuity Solution: two virtual machines two datastore two san two sites mirror data volume Schema: &#160; “hardware” configuration: VMs settings: Add VMware RDM Lun Volumes to Vms, as images before Melio installation: prerequisites (from MelioFs 4 User Guide) Installation Checklist: * Using an account with [...]]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;">Objectives:</span><br />
on reduntant UNC in Active Directory domain<br />
redundant volume<br />
redundant computer<br />
virtual enviroment<br />
data continuity</p>
<p><span style="text-decoration: underline;">Solution:</span><br />
two virtual machines<br />
two datastore<br />
two san<br />
two sites<br />
mirror data volume</p>
<p><span style="text-decoration: underline;">Schema:</span></p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">“hardware” configuration:</span></p>
<p><span style="text-decoration: underline;">VMs settings:</span><br />
Add VMware RDM Lun Volumes to Vms, as images before<br />
Melio installation:<br />
prerequisites (from MelioFs 4 User Guide)<br />
Installation Checklist:</p>
<p>* Using an account with local administrator privileges, log on to the system in which Melio is going to be installed. → create a Domain Users in Active Directory, then it will be a local machine Administrator<br />
* Verify that the Windows Management Instrumentation (WMI) service is running.<br />
* Verify that the system has IP connectivity to the network that will be used for Melio<br />
communications. → VM has two nic VMXNET3, one in LAN, one is a separated not routed LAN, where multicast can “run”; remember to set, in Windows, preference in advanced option for nic LAN before the “MelioLan”<br />
* Using the instructions provided by the manufacturer of your storage hardware, install and<br />
connect your storage hardware to the servers that will be running Melio. Once you’ve<br />
confirmed the storage hardware is operating correctly, create one or more LUNs and map<br />
them to the servers. Check the event logs on the servers for any storage connection-related<br />
error messages and resolve all reported errors prior to installing Melio.<br />
* Verify that the LUN(s) to be formatted with Melio FS is seen by Windows. To accomplish this, open a DOS prompt and enter the following commands: → do not disable autmount; then verify they are not offline<br />
o diskpart &lt;enter&gt;<br />
o list disk &lt;enter&gt;<br />
You should see the LUN(s) in the list of disks. If not, check the connection(s) between the<br />
server(s) and the storage and confirm that the LUN(s) has been mapped to the server(s) from<br />
the storage.<br />
Verify that the LUN(s) to be formatted with Melio FS is not configured for “Read-only” mode.<br />
To accomplish this, enter the following commands in diskpart:<br />
o select disk # &lt;enter&gt; (# equals the number assigned to the LUN)<br />
o attributes disk &lt;enter&gt;<br />
If the LUN(s) is set to “Read-only” mode, enter the following commands:<br />
o attributes disk clear readonly &lt;enter&gt;<br />
o attributes disk &lt;enter&gt;<br />
The LUN(s) should now appear with “Read-only” set to “No”.</p>
<p>Installation<br />
From pag.8 MelioFS 4 User Guide pdf<br />
Make a custom installation with only Melio and MelioFs volume Manager</p>
<p>Advanced Setting (tuning MelioFS)<br />
See pag. 21 MelioFS 4 User Guide<br />
Additional parameters can be configured within the Melio Configuration utility (Start &gt; All Programs &gt; Sanbolic &gt; Melio Configuration).<br />
Important note: The default parameters and values for Melio are designed to work under the majority of configurations. Modifications made to any of the parameters described below should not be made without first conferring with Sanbolic Technical Support.<br />
Configuring TCP/IP settings for Melio<br />
Melio uses both TCP and UDP protocols for communications between Melio instances running on all machines participating in a Melio cluster.<br />
The subnets that appear under the Network settings (“View &gt; Driver Settings &gt; Network”) in the Melio Volume Manger console are used to select the subnet ranges (network interfaces) on which Melio will listen. This ensures that Melio is compatible with DHCP servers that may assign a computer different IP addresses.<br />
If a machine has more than one IP address (active network interface), a subnet range address should be selected. Selecting a subnet range for Melio is done on a per machine basis by opening the Melio Volume Manager, selecting a computer on the left-hand side of the console and selecting “View &gt; Driver Settings &gt; Network” from the toolbar at the top of the console. If a machine has only one IP address, you can leave the default subnet range setting “0.0.0.0/0”.<br />
Melio uses the specified multicast address to find other cluster members. Each Melio instance listens on the multicast address at the port specified under the Network settings. In order for Melio to form a cluster with machines located on different subnets, all intermediate routers must be configured to forward multicast packets between subnets.<br />
MelioFS Volume Configuration<br />
See pag. 14 MelioFS 4 User Guide<br />
Note: Prior to managing a disk with Melio Volume Manager, at least one partition (LUN) on your SAN storage must be provisioned and presented (mapped) to every computer running the Melio software.<br />
Launch the Melio Volume Manager (Start &gt; All Programs &gt; Sanbolic &gt; Melio Volume Manager).<br />
By default, the local computer running Melio will be displayed on the left-hand side of the Melio Volume Manager console.<br />
Right-click on the disk label (where it says “Empty”) in the center window pane and select “Manage” to manage a single disk or “Manage Multiple” to manage multiple disks.<br />
A pop-up window will appear asking you to select the disk(s) that you want Melio Volume Manager to manage.<br />
Note: Unless advised by Sanbolic Technical Support, you should NOT make any changes to the values of the parameters listed under the “Timings” section. The default values are designed to work under the majority of use cases. (Descriptions for these parameters are provided later in this manual.)<br />
Select the disk(s) to manage and click “OK.”<br />
Note: If you are going to use the entire capacity of the disk(s) to create your Melio shared volume, you can select the option “Automatically create full-size basic partition on each disk”. Additionally, if you are going to create a stripe set using the selected disks, you can select the option “And stripe them”.<br />
If you are going to use only a portion of the disk(s) or plan to use the disk(s) to create a volume set or mirror set, simply click “OK”.<br />
Note: After clicking “OK” to manage the selected disk(s), a message will appear informing the user that the process of managing the disk(s) will take approximately five minutes.<br />
It is important to note that the process of managing a disk can take as long as 10 minutes due to the number of tasks involved, regardless of the number of disks selected or the size of the disk(s).<br />
Please do not attempt to cancel this process until it has completed successfully.<br />
After the process of managing the disk(s) has completed, the following screen is displayed.<br />
To create a partition on a managed disk, right-click on the disk (where it shows “Empty”) and select “New.”<br />
Leave the size as it appears to create a partition using the entire available disk space or specify the desired partition size by entering numbers in the “Size” field or using the red slider bar.<br />
Enter a label for the partition. (Optional)<br />
When you are ready to create the partition, click “OK”.<br />
Once this step is completed, the new partition will appear in blue in the upper center window pane. A blue partition indicates that the partition is ready to be created. (See illustration on following page.)<br />
To create the partition, select “Action &gt; Apply Changes” from the toolbar or press F3.<br />
A pop-up window will be displayed asking for confirmation. Click “Yes”.<br />
Once the changes are committed to the disk, the color of the partition will change to black, indicating that the partition has been created.<br />
Now the partition can be converted to a logical drive (volume) that can be mounted and accessed by multiple computers simultaneously.<br />
Right-click on the partition in the upper center window pane and select “Create Logical Drive&#8230;”<br />
A dialog window will appear asking you to assign a drive letter to the new volume. The setting &#8220;Try to set this letter, if available, on each machine that has access to the volume&#8221; means the Melio Volume Manager will attempt to supply Windows with the same drive letter for this volume on all machines that will be sharing access to the volume. If the drive letter is already in use by a machine, Melio Volume Manager will assign the volume the next available drive letter on that particular machine. It is also possible to mount a Melio volume on an empty Melio FS or NTFS folder using mount points. To mount a volume on an empty folder, check the radio button labeled “Mount to an empty folder” and enter the path to the folder.<br />
Under “Initial Security,” leave the option “Give everyone full control” (default).<br />
Under “File System,” leave the option to format the volume with “Melio FS” (default).<br />
Enter a label for the volume in the “Volume Label:” field. (Optional)<br />
Click “OK” to create the volume. A window containing messages about the volume creation process will appear.<br />
Note: During the volume creation process, if Windows prompts you to format the volume, click “Cancel” as the volume is already being formatted with Melio FS.<br />
Note: If Windows prompts you to restart the machine, click “Cancel”. Restarting the machine is not necessary.<br />
If you receive a warning message about a non-signed driver being installed, click “Continue Anyway” to proceed with the driver installation.<br />
Once the volume has been created, a message will appear in the window stating that all steps have completed successfully. Click “OK” to close the window and return to the Melio Volume Manager.<br />
Notice: A disk that cannot be managed by the Melio Volume Manager is displayed as “Unknown” or “Foreign”. This indicates that another volume manager is actively managing the disk. To manage the disk with the Melio Volume Manager, it must first be unmanaged by the other volume manager. To accomplish this, you need to delete all partitions on the disk. If the disk is “dynamic,” you must convert it to a “basic” disk using Windows Disk Manager. Note that deleting partitions on a disk or converting a disk from dynamic to basic will delete all data stored on the associated volume. Make sure that any data you need is backed up to another volume PRIOR to deleting partitions or converting disks.<br />
MelioFS Mirrod Raid1 Configuration<br />
See pag. 21 MelioFS 4 User Guide<br />
Follow the instructions provided earlier to create at least two partitions managed by the Melio Volume Manager.<br />
Note: The partitions making up a mirror set must be exactly the same size.<br />
Right-click on one of the partitions and choose “Mirror” &gt; “Create&#8230;”<br />
In the “Make Mirror” window, select the other partition that will be used for the mirror and click “OK”.<br />
The mirror will appear in blue.<br />
From the toolbar, select “Action” &gt; “Apply Changes” to create the mirror set.<br />
The mirror will appear in orange, indicating that it is synchronizing.<br />
Once synchronization has completed, the mirror will appear in green.<br />
You can now create a logical drive (volume) on the mirror set.<br />
To make the mirror set visible to Windows as a logical drive (volume), follow the steps described previously to create a logical drive.<br />
Once the logical drive has been created, the mirror will resynchronize.<br />
After synchronization has completed, the logical drive (and its partitions) will appear in green, indicating it is ready for use<br />
Results:</p>
<p><span style="text-decoration: underline;">Windows DFS Configuration:</span><br />
Done MelioFS configuration, it&#8217;s time to make a share (or more) using Microsoft features:</p>
<p>http://technet.microsoft.com/en-us/library/bb727150.aspx</p>
<p>http://technet.microsoft.com/en-us/library/cc732863%28WS.10%29.aspx</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandtux.org/wordpress/sanbolic-meliofs-in-a-dobule-vmware-enviroment.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<enclosure url='http://www.tipsandtux.org/wordpress/wp-content/uploads/2012/01/melio-volume.jpg' length ='66757'  type='image/jpg' />	</item>
		<item>
		<title>XenServer: Unable to read data from the transport connection : An existing connection was forcibly closed by the remote host</title>
		<link>http://www.tipsandtux.org/wordpress/xenserver-unable-to-read-data-from-the-transport-connection-an-existing-connection-was-forcibly-closed-by-the-remote-host.html</link>
		<comments>http://www.tipsandtux.org/wordpress/xenserver-unable-to-read-data-from-the-transport-connection-an-existing-connection-was-forcibly-closed-by-the-remote-host.html#comments</comments>
		<pubDate>Tue, 06 Dec 2011 15:28:08 +0000</pubDate>
		<dc:creator>superpaia</dc:creator>
				<category><![CDATA[Sistemi]]></category>
		<category><![CDATA[Citrix]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Xenserver]]></category>

		<guid isPermaLink="false">http://www.tipsandtux.org/wordpress/?p=332</guid>
		<description><![CDATA[If try to collect logs for support (or other) and get : Unable to read data from the transport connection : An existing connection was forcibly closed by the remote host Disable proxy use (or settings) in Tools&#8211;&#62;Options!]]></description>
			<content:encoded><![CDATA[<p>If try to collect logs for support (or other) and get : <em>Unable to read data from the transport connection </em><wbr><em>: An existing connection</em><wbr><em> was forcibly closed by the remote host</em></wbr></wbr></p>
<p>Disable proxy use (or settings) in Tools&#8211;&gt;Options!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandtux.org/wordpress/xenserver-unable-to-read-data-from-the-transport-connection-an-existing-connection-was-forcibly-closed-by-the-remote-host.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<enclosure url='http://www.tipsandtux.org/wordpress/wp-content/uploads/2011/12/Picture1.jpg' length ='19790'  type='image/jpg' />	</item>
		<item>
		<title>Citrix Receiver 12.0 for Linux: SSL Error 61</title>
		<link>http://www.tipsandtux.org/wordpress/citrix-receiver-12-0-for-linux-ssl-error-61.html</link>
		<comments>http://www.tipsandtux.org/wordpress/citrix-receiver-12-0-for-linux-ssl-error-61.html#comments</comments>
		<pubDate>Tue, 11 Oct 2011 09:59:34 +0000</pubDate>
		<dc:creator>superpaia</dc:creator>
				<category><![CDATA[Sistemi]]></category>
		<category><![CDATA[AGEE]]></category>
		<category><![CDATA[Citrix]]></category>
		<category><![CDATA[Social networks]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.tipsandtux.org/wordpress/?p=329</guid>
		<description><![CDATA[After upgrading from Citrix Receiver 11.1 for Linux to version 12.0 a new/old error (re)appears: SSL Error 61 &#8220;you have not chosen to trust&#8221;! Why ? In ver 11.1 I  have i already nstalled all necessary Ca Root certificates (do you remember ?  /keystore/cacerts&#8230; a well known problem!) and all was ok! So I hoped an upgrade should have kept [...]]]></description>
			<content:encoded><![CDATA[<p>After upgrading from Citrix Receiver 11.1 for Linux to version 12.0 a new/old error (re)appears: SSL Error 61 &#8220;you have not chosen to trust&#8221;!</p>
<p>Why ? In ver 11.1 I  have i already nstalled all necessary Ca Root certificates (do you remember ?  <em>/keystore/cacerts</em>&#8230; a well known problem!) and all was ok! So I hoped an upgrade should have kept all ok&#8230;mmm no!</p>
<p><span id="more-329"></span>After some trying I found that the new Receiver default directory is<em>/opt/Citrix/ICAClient/</em> (see <a href="http://support.citrix.com/proddocs/topic/receiver-linux-12-0/linux-install.html" target="_blank">http://support.citrix.com/proddocs/topic/receiver-linux-12-0/linux-install.html</a> ) and not anymore /usr/lib/ICACliet (see <a href="http://support.citrix.com/proddocs/topic/receiver-linux-blackfoot/linux-deploy-install-from-cd.html" target="_blank">http://support.citrix.com/proddocs/topic/receiver-linux-blackfoot/linux-deploy-install-from-cd.html</a> ) <img src='http://www.tipsandtux.org/wordpress/wp-includes/images/smilies/icon_twisted.gif' alt=':twisted:' class='wp-smiley' /> </p>
<p>So I have (re)copied Ca Root in <em>/opt/Citrix/ICAClient/keystore/<em>cacerts/</em></em> and all have gone OK again! WOW!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandtux.org/wordpress/citrix-receiver-12-0-for-linux-ssl-error-61.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<enclosure url='http://www.tipsandtux.org/wordpress/wp-content/uploads/2011/10/Screen-shot-2010-03-03-at-12.38.39-PM.png' length ='42560'  type='image/jpg' />	</item>
		<item>
		<title>Citrix Netscaler Datastream&#8230; first experience!</title>
		<link>http://www.tipsandtux.org/wordpress/citrix-netscaler-datastream-first-experience.html</link>
		<comments>http://www.tipsandtux.org/wordpress/citrix-netscaler-datastream-first-experience.html#comments</comments>
		<pubDate>Mon, 26 Sep 2011 20:16:23 +0000</pubDate>
		<dc:creator>superpaia</dc:creator>
				<category><![CDATA[Sistemi]]></category>
		<category><![CDATA[Citrix]]></category>
		<category><![CDATA[Netscaler]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.tipsandtux.org/wordpress/?p=322</guid>
		<description><![CDATA[Citrix Netscaler Datastream&#8230; first experience!  Citrix Datastream is a new Citrix technology to obtain advatanges about MySQL and MSSQL, it is used by the best (for me) Citrix appliance, Netscaler! Rif: http://www.citrix.com/English/NE/news/news.asp?newsID=2309691 Some docs are available at Citrix site: http://support.citrix.com/proddocs/topic/netscaler/ns-dbproxy-wrapper-con.html, but you can also see some info at CitrixTV, they are very interesting: http://www.citrix.com/tv/#search/netscaler Docs could be better, more complete [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;" align="CENTER">Citrix Netscaler Datastream&#8230; first experience!</p>
<p style="text-align: left;" align="JUSTIFY"> Citrix Datastream is a new Citrix technology to obtain advatanges about MySQL and MSSQL, it is used by the best (for me) Citrix appliance, Netscaler!</p>
<p style="text-align: left;" align="JUSTIFY">Rif: <a href="http://www.citrix.com/English/NE/news/news.asp?newsID=2309691">http://www.citrix.com/English/NE/news/news.asp?newsID=2309691</a></p>
<p style="text-align: left;" align="JUSTIFY">Some docs are available at Citrix site: <a href="http://support.citrix.com/proddocs/topic/netscaler/ns-dbproxy-wrapper-con.html">http://support.citrix.com/proddocs/topic/netscaler/ns-dbproxy-wrapper-con.html</a>, but you can also see some info at CitrixTV, they are very interesting: <a href="http://www.citrix.com/tv/#search/netscaler">http://www.citrix.com/tv/#search/netscaler</a></p>
<p style="text-align: left;" align="JUSTIFY">Docs could be better, more complete and seems based only on MySQL; it&#8217;s too early also for forum and users, very very little I have found about Datastream.</p>
<p style="text-align: left;" align="JUSTIFY"> So, I tried to test Datastream in a test enviroment, with two MSSQL with database servers.</p>
<p style="text-align: left;" align="JUSTIFY"><span id="more-322"></span></p>
<p style="text-align: left;" align="JUSTIFY">Goal was to verify how Citrix Datastream works and what are the benefits, combined also with a XenApp farm and pubblished applications.</p>
<p style="text-align: left;" align="JUSTIFY">Some steps we did for this:</p>
<p style="text-align: left;" align="JUSTIFY">First of all, we had to understand what MSSQL database scenario was useful for us: replica, mirror, cluster&#8230; In eDocs Citrix always is written about two dbs to read from and two db to write from, balanced and with content switching to redirect read or write to the correct group of servers.</p>
<p style="text-align: left;" align="JUSTIFY">We had only two db servers, in our scenario they were read and also write!</p>
<p style="text-align: left;" align="JUSTIFY"> Then the problem was to understand how MSSQL works to write data in db. Using MSSQL in clusterd mode was not useful for us, it&#8217;s not our dedicated scenario; MSSQL in mirror mode could have been useful, but it works in active-passive, so it&#8217;s very distance from the scenario presented in eDocs (with two write dbs balanced, etc); MSSQL in replica mode seemed very near at our goal, but, reading from web, could have taken to conflict problems. To resolve this problem we decided not to balance 50-50 the servers, but to define (load balacing on Netscaler) balancing to a server with the other in backup mode. So we have redundancy and monitor would correct some crash from the online db.</p>
<p style="text-align: left;" align="JUSTIFY">Then we had analyzed how read requests works with MSSQL, also here replica was the best solution: we can read from the first db or the second, they are replicated in synchronous mode, we get the sames and up to date data, no problem with conflicts.</p>
<p style="text-align: left;" align="JUSTIFY">NetScaler configuration and steps:</p>
<ul style="text-align: left;">
<li>
<p align="JUSTIFY">configure two NetScalers in HA, better! So configure also MIP, ntp, license, and so on</p>
</li>
<li>
<p align="JUSTIFY">then configure in “Load Balancing” menu ip and name of db servers, then monitor (preferibly MSSQL-ECV);</p>
<p align="JUSTIFY">
</li>
</ul>
<ul style="text-align: left;">
<li>
<p align="JUSTIFY">in virtual server, as said, we configure a vserver, in not addressable-mode, to balance 50-50 on two db servers;</p>
</li>
<li>
<p align="JUSTIFY">and also a vserver, always in not addressable-mode, for db dedicated for writing and a sql-write only for backup if the first fails;</p>
</li>
</ul>
<p style="text-align: left;" align="JUSTIFY"><a href="http://www.tipsandtux.org/wordpress/wp-content/uploads/2011/09/2.png"><img class="size-medium wp-image-324 aligncenter" title="Virtual Servers" src="http://www.tipsandtux.org/wordpress/wp-content/uploads/2011/09/2-300x55.png" alt="" width="300" height="55" /></a></p>
<ul style="text-align: left;">
<li>
<p align="JUSTIFY">Now we configure content switch, to distinguish between read (MSSQL “select”) and all SQL other commands</p>
<p align="JUSTIFY"> <a href="http://www.tipsandtux.org/wordpress/wp-content/uploads/2011/09/1.png"><img class="size-medium wp-image-323 aligncenter" title="Content Switching" src="http://www.tipsandtux.org/wordpress/wp-content/uploads/2011/09/1-300x93.png" alt="" width="300" height="93" /></a></p>
</li>
</ul>
<p style="text-align: left;" align="JUSTIFY">That&#8217;s all <img src='http://www.tipsandtux.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p style="text-align: left;" align="JUSTIFY">Try some test, and also you can see some report, to clarify how application works, so how much is the rate for read and write.</p>
<p style="text-align: left;" align="JUSTIFY"><em>Some other references:</em></p>
<p style="text-align: left;" align="JUSTIFY"> Mirror mirror on the wall who’s the best SQL Server of all ?</p>
<p style="text-align: left;" align="JUSTIFY"><a href="http://blogs.citrix.com/2011/07/24/mirror-mirror-on-the-wall-whos-the-best-sql-server-of-all/">http://blogs.citrix.com/2011/07/24/mirror-mirror-on-the-wall-whos-the-best-sql-server-of-all/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandtux.org/wordpress/citrix-netscaler-datastream-first-experience.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<enclosure url='http://www.tipsandtux.org/wordpress/wp-content/uploads/2011/09/1.png' length ='74070'  type='image/jpg' />	</item>
		<item>
		<title>Single ESX in mantainance mode and power on VM</title>
		<link>http://www.tipsandtux.org/wordpress/single-esx-in-mantainance-mode-and-power-on-vm.html</link>
		<comments>http://www.tipsandtux.org/wordpress/single-esx-in-mantainance-mode-and-power-on-vm.html#comments</comments>
		<pubDate>Thu, 28 Jul 2011 10:22:41 +0000</pubDate>
		<dc:creator>superpaia</dc:creator>
				<category><![CDATA[Sistemi]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.tipsandtux.org/wordpress/?p=307</guid>
		<description><![CDATA[Come far uscire dalla modalità manutenzione un host ESX 4.x ed accendervi poi una determinata VM&#8230; nel &#8220;fortunato&#8221; caso, come il mio, in cui il vostro pc di fiducia è Ubuntu, su cui notoriamente non esiste il client VMware da poter installare, ed avete appena messo in manutenzione per qualche motivo l&#8217;host ESX (l&#8217;unico, per via di potergli installare i [...]]]></description>
			<content:encoded><![CDATA[<p>Come far uscire dalla modalità manutenzione un host ESX 4.x ed accendervi poi una determinata VM&#8230;</p>
<p>nel &#8220;fortunato&#8221; caso, come il mio, in cui il vostro pc di fiducia è Ubuntu, su cui notoriamente non esiste il client VMware da poter installare, ed avete appena messo in manutenzione per qualche motivo l&#8217;host ESX (l&#8217;unico, per via di potergli installare i driver delle NIC aggiuntive) e la VM con lo stesso client VMware è locale ad esso&#8230;. ma che essendo in manutenzione non si può accendere automaticamente all&#8217;avvio si può procedere in questo modo:</p>
<p><span id="more-307"></span></p>
<p>1- far uscire l&#8217;host dalla modalità di manutenzione:</p>
<ul>
<li><span style="font-family: Arial;">For ESX: </span><code><em>vimsh -n -e /hostsvc/hostsummary | grep inMaintenanceMode</em> &lt;-- per verificarne lo stato, l'output sarà simile a questo: <em>inMaintenanceMode = true,</em><br />
</code></li>
<li><span style="font-family: Arial;">For ESX: </span><em><code>vimsh -n -e /hostsvc/maintenance_mode_exit</code></em><span style="font-family: Arial;"> &lt;&#8211; per far uscire l&#8217;host dalla modalità<br />
</span></li>
<li>For ESX: <code><em>vimsh -n -e /hostsvc/hostsummary | grep inMaintenanceMode</em> &lt;-- per verificarne lo stato post comando</code>,  ed il nuovo stato sarà: <em>inMaintenanceMode = false,</em></li>
</ul>
<p>2- a questo punto &#8220;trovare&#8221; il vmid della VM in questione ed avviarla:</p>
<p>- accedere alla console (o tramite vMA CLI) e dare il seguente comando per &#8220;scovare&#8221;  il vmid: <em>vim-cmd vmsvc/getallvms</em></p>
<p>- a questo punto avviare la vm: <em>vim-cmd vmsvc/power.o</em>n XX</p>
<p>Riferimenti:</p>
<p>Exiting hung maintenance mode on an ESX/ESXi host<br />
<a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=9639912" target="_blank">http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=9639912</a></p>
<p>Power ON/OFF VMware VM from CLI<br />
h<a href="ttp://www.petri.co.il/forums/showthread.php?t=39926" target="_blank">ttp://www.petri.co.il/forums/showthread.php?t=39926</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandtux.org/wordpress/single-esx-in-mantainance-mode-and-power-on-vm.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ssh prompt delay</title>
		<link>http://www.tipsandtux.org/wordpress/ssh-prompt-delay.html</link>
		<comments>http://www.tipsandtux.org/wordpress/ssh-prompt-delay.html#comments</comments>
		<pubDate>Fri, 13 May 2011 12:34:07 +0000</pubDate>
		<dc:creator>superpaia</dc:creator>
				<category><![CDATA[Sistemi]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.tipsandtux.org/wordpress/?p=288</guid>
		<description><![CDATA[to resolve ssh prompt delay set /etc/ssh/sshd_conf with UseDNS no restard ssh server!]]></description>
			<content:encoded><![CDATA[<p>to resolve ssh prompt delay set</p>
<p><em>/etc/ssh/sshd_conf</em></p>
<p>with</p>
<p><em>UseDNS no</em></p>
<p>restard ssh server!<em><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandtux.org/wordpress/ssh-prompt-delay.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MailScanner and Kaspersky 5.5</title>
		<link>http://www.tipsandtux.org/wordpress/mailscanner-and-kaspersky-5-5.html</link>
		<comments>http://www.tipsandtux.org/wordpress/mailscanner-and-kaspersky-5-5.html#comments</comments>
		<pubDate>Thu, 12 May 2011 12:01:18 +0000</pubDate>
		<dc:creator>superpaia</dc:creator>
				<category><![CDATA[Sistemi]]></category>
		<category><![CDATA[antispam]]></category>
		<category><![CDATA[mailscanner]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.tipsandtux.org/wordpress/?p=282</guid>
		<description><![CDATA[Making MailScanner and Kaspersky friends! Download Kaspersky, I use Ks Workstation, on your linux box (I use SuSE SLES10, so I have to download .rpm file). Then configure MailScanner wrapper for Kaspersky : /etc/MailScanner/virus.scanners.conf with this option: kaspersky-4.5    /usr/lib/MailScanner/kaspersky-wrapper    /opt/kaspersky/kav4ws and set correct link for wrapper: cd /opt/kaspersky/kav4ws/bin ln -s kav4ws-kavscanner kavscanner ln -s kav4ws-keepup2date keepup2date In /etc/MailScanner/MailScanner.conf set Virus [...]]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;"><em>Making MailScanner and Kaspersky friends!</em></span></p>
<p>Download Kaspersky, I use Ks Workstation, on your linux box (I use SuSE SLES10, so I have to download .rpm file).</p>
<p>Then configure MailScanner wrapper for Kaspersky :<br />
<em>/etc/MailScanner/virus.scanners.conf</em><br />
with this option:<br />
<em>kaspersky-4.5    /usr/lib/MailScanner/kaspersky-wrapper    /opt/kaspersky/kav4ws</em></p>
<p>and set correct link for wrapper:<br />
<em>cd /opt/kaspersky/kav4ws/bin</em><br />
<em>ln -s kav4ws-kavscanner kavscanner</em><br />
<em>ln -s kav4ws-keepup2date keepup2date</em></p>
<p>In <em>/etc/MailScanner/MailScanner.conf</em><br />
set<br />
<em>Virus Scanners = kaspersky-4.5</em></p>
<p>And, to verify all is ok try:<br />
<em># MailScanner  &#8211;lint</em><br />
output should be<br />
[...]<br />
<em>MailScanner.conf says &#8220;Virus Scanners = clamav antivir kaspersky-4.5&#8243;</em><br />
[&#8230;[</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandtux.org/wordpress/mailscanner-and-kaspersky-5-5.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vRanger 5.0 DPP (replicator) : VZMutex lock</title>
		<link>http://www.tipsandtux.org/wordpress/vzmutex-lock.html</link>
		<comments>http://www.tipsandtux.org/wordpress/vzmutex-lock.html#comments</comments>
		<pubDate>Fri, 22 Apr 2011 08:24:42 +0000</pubDate>
		<dc:creator>superpaia</dc:creator>
				<category><![CDATA[Sistemi]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[winzoz]]></category>

		<guid isPermaLink="false">http://www.tipsandtux.org/wordpress/?p=279</guid>
		<description><![CDATA[The task has failed for the following reason: VZMutex lock failed. (Failed to acquire vm lock /vmfs/volumes/UUID/ServerName/.vzmutex due to an SSH connection issue.). Resolution : 1. Close the vRanger application 2. Stop all of the vRanger services. 3. Connect to the ESX host on which the backup is failing via SSH. 4. Delete the vRanger binary files by issuing the [...]]]></description>
			<content:encoded><![CDATA[<p>The task has failed for the following reason: VZMutex lock failed. (Failed to acquire vm lock /vmfs/volumes/UUID/ServerName/.vzmutex due to an SSH connection issue.).<br />
<span id="more-279"></span>Resolution :</p>
<p><em>1. Close the vRanger application</em><br />
<em> 2. Stop all of the vRanger services.</em><br />
<em> 3. Connect to the ESX host on which the backup is failing via SSH.</em><br />
<em> 4. Delete the vRanger binary files by issuing the following command: rm -rf /tmp/.vzbin</em><br />
<em> 5. Check the directory has been removed by issuing the following command (Note: the .vzbin directory is hidden): ls -lah</em><br />
<em> 6. Restart the vRanger services.</em><br />
<em> 7. Try the backup again through vRanger. The .vzbin directory should be re-created once the job starts running.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandtux.org/wordpress/vzmutex-lock.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vSphere SSH access&#8230;</title>
		<link>http://www.tipsandtux.org/wordpress/vsphere-ssh-access.html</link>
		<comments>http://www.tipsandtux.org/wordpress/vsphere-ssh-access.html#comments</comments>
		<pubDate>Fri, 01 Apr 2011 10:35:03 +0000</pubDate>
		<dc:creator>superpaia</dc:creator>
				<category><![CDATA[Sistemi]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.tipsandtux.org/wordpress/?p=265</guid>
		<description><![CDATA[NB , dalla documentazione di VMware. To allow a user to access the ESX host through a command shell, select Grant shell access to this user. NOTE To be granted shell access, users must also have an Administrator role for an inventory object on the host. enjoy.]]></description>
			<content:encoded><![CDATA[<p><strong>NB</strong> , dalla documentazione di VMware.</p>
<p><em>To allow a user to access the ESX host through a command shell, select <span style="text-decoration: underline;">Grant shell access to this user</span>. </em></p>
<p><em>NOTE To be granted shell access, <span style="text-decoration: underline;">users must also have an Administrator role </span>for an inventory object on the host.</em></p>
<p>enjoy.<em><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandtux.org/wordpress/vsphere-ssh-access.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

