<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="Catalog" type="Vizioncore.CatalogManager.Consumable.Configuration.CatalogConfigSection, Vizioncore.CatalogManager.Consumable"/> 
  </configSections>
  <runtime>
    <legacyUnhandledExceptionPolicy enabled="true" />
  </runtime>
  <system.runtime.remoting>
    <application>
      <service>
        <wellknown type="Vizioncore.vRanger.Jobs.ReplicatorFacade, Vizioncore.vRanger.Jobs" mode="Singleton" objectUri="/IReplicator.rem" />
        <wellknown type="Vizioncore.vRanger.Jobs.ReplicatorFacade, Vizioncore.vRanger.Jobs" mode="Singleton" objectUri="/IReplicatorConfiguration.rem" />
      </service>
      <channels>
        <channel ref="tcp" port="8080" />
        <channel ref="ipc" portName="vRanger.Service.IPC" authorizedGroup="Everyone" />
      </channels>
    </application>
  </system.runtime.remoting>
  <Catalog/>
  <appSettings>
    <!-- vRanger Settings -->
    <!--The protocol can either be tcp or ipc.  ipc is preferred for single clinet running on the 
        same machine as the service.-->
    <add key="Protocol" value="ipc" />
    <!--TCP port number to listen for requests.  Only used if Protocol is TCP-->
    <add key="TCP_Port" value="8090" />

    <!-- ConnectionRepositoryFilePath should either contain a fully qualified file path OR
      you can use the $AppPath$ token to specify the application path, folder and 
      a file following.  Example: "$AppPath$\connections.dat" -->
    <add key="ReplicationsAllowedAtOnce" value="10" />
    <add key="ReplicationsAllowedAtOncePerHost" value="4" />
    <add key="ReplicationsAllowedAtOncePerLUN" value="2" />
    <add key="ConnectionRepositoryFilePath" value="$AppPath$\connections.dat" />
    <add key="JobRepositoryDirectory" value="$AppPath$" />
    <add key="ReplicatorURI" value="/IReplicator.rem" />
    <add key="ConfigurationURI" value="/IReplicatorConfiguration.rem" />
    <add key="SmtpServer" value="" />    <!-- SMTP server name. -->
    <add key="SmtpPort" value="25" />    <!-- Default SMTP port of the mail server. -->
    <add key="FromEmailAddress" value="" />    <!-- The From address emails will be sent from. -->
    <add key="DefaultRecipientEmailAddress" value="" />    <!-- The default email address that will be used with everything. -->
    <add key="NotificationRecipients" value="" />    <!-- A list of email addresses in the address book. -->  
    <add key="VzBoostEnabledHosts" value="" />    
    <add key="DatastoreSpaceThresholdType" value="Percent" />     <!-- Have vReplicator check datastore space based on Percent or Gigabyte. -->
    <add key="DatastoreSpaceInformOnNewAlerts" value="true" />    <!-- Only informs the user on new datastore messages. -->
    <add key="DatastoreSpaceDefaultEmail" value="" />    <!-- The default email address to send datastore messages to. -->
    <add key="VmDisplayNameTemplate" value="{0}_Replica" />    <!-- This is the templated name used for the replica virtual machine. -->
    <add key="EnableCompressionDuringFileCopy" value="true" />  <!-- Enables/disables compression during file copy. -->
    <add key="VssEnabledVirtualMachines" value="" />    <!-- Keeps track of which VM's have VSS enabled.  DO NOT TOUCH! -->
    <!-- LogDirectory should either contain a fully qualified file path OR
      you can use the $AppPath$ token to specify the application path and 
      a folder following.  Example: "$AppPath$\Logs" -->
    <add key="LogDirectory" value="$AppPath$\Logs" />
    <!--StartDatabaseConnectRetryAttempts is the number of times that service will attempt to connect to the Database.-->
    <add key="StartDatabaseConnectRetryAttempts" value="3" />
    <!--StartDatabaseConnectRetryTime is the number of seconds that application will wait before timing out to connect to the database.-->
    <!--The maximum attempt time is the timeout value * the retries value (e.g. 45 * 3attempts = 135 seconds)-->
    <add key="StartDatabaseConnectRetryTime" value="45" />
    <!--The wait time for certain command to execute in seconds-->
    <add key="SSHChannelWaitTime" value="120" />
    <!--The sql connection timeout in seconds-->
    <add key="SqlConnectionTimeout" value="45" />
    <add key="ClientSettingsProvider.ServiceUri" value="" />
    <!--The Virtual Machine lock utilizes ageable lock to secure exclusive acces to the VM for backup and restore. -->
    <!--AgeableLockRetries is the number of times that ageable lock will attempt to secure a lock.-->
    <add key="AgeableLockRetries" value="3" />
    <!--AgeableLockTimeout is the number of seconds that ageable lock will wait before timing out a lock attempt.-->    
    <!--The maximum lock attempt time is the timeout value * the reties value (e.g. 20 * 3attempts = 60 seconds)-->    
    <add key="AgeableLockTimeout" value="20" />
    <!--TaskQueueWaitTime is the wait period (in milliseconds) between processing queued tasks. Example value 1500 is 1.5 seconds.-->
    <add key="TaskQueueWaitTime" value="30000" />
    <!--The maximum amount of time (in seconds, Default 300) the Inventory will wait for an VirtualCenter Inventory Item to load-->
    <!--The minimun value is 10 seconds-->
    <add key="InventoryLoadTimeout" value="300"/>
    <!--The Virt properties control the traffic to/from the virtaul center and hosts that are under management. -->
    <!--VirtApiQueryRequestTimeout (Default 120000) is the amount of time (ms) that the system will wait 
        for a response to a query request message.  Notes that setting the VirtApiQueryRequestTimeout 
        to -1 means infinite or do not timeout on the client side. -->
    <add key="VirtApiQueryRequestTimeout" value="300000" />
    <!--VirtSessionEstablishmentRetries (Default 5) is the number of times the system will try to establish a session. -->
    <add key="VirtSessionEstablishmentRetries" value="10" />
    <!--VirtSessionEstablishmentWaitTime (Default 1000) is the amount of time (ms) 
        that the system will wait before retrying session establishment. -->
    <add key="VirtSessionEstablishmentWaitTime" value="1000" />
    <!--VirtLoginRetries (Default 3) is the number of times the system will try to login to the vc/host. -->
    <add key="VirtLoginRetries" value="3" />
    <!--VirtLoginWaitTime (Default 500) is the amount of time (ms) that the system will wait before retrying login. -->        
    <add key="VirtLoginWaitTime" value="500" />
    <!--StatusPortMaxRetry (Default 10) is the number of times the system will try to retry a status-port connection during backup. -->
    <!--<add key="StatusPortMaxRetry" value="10" />-->
    <!--The length of time to wait (in ms) between StatusPort retries  Default == 2500 -->
    <!--<add key="StatusPortMaxRetryDelay" value="2500" />--> 
    <add key="StatusPortMinimumPortNumber" value="51000" />
    <add key="StatusPortMaximumPortNumber" value="52000" />
    <!--APICallRetries (Default 5) is the number of times the system will try to retry a failed API call. -->
    <add key="APICallRetries" value="5" />
    <add key="SupportLogging" value="false"/>
    <add key="SupportLogMaxSize" value="10"/> <!--In mb-->
    <add key="SupportLogMaxParts" value="20"/>
    <!--DisableInventoryEventMonitoring should be set to true to prevent vRanger subscribing to and listening to ManagedObjectEvents.  Default value: true -->
    <add key="DisableInventoryEventMonitoring" value="true"/>
    <!--<add key="TrackMarshalledObjects" value="true" /> -->   <!--Write any marshalled objects into the log-->
    <!-- Number of times to try a backup or restore backend tools execution attempt.  Must be equal to or greater than 1.  Default value: 3 -->
    <add key="BackupRestoreMaxTries" value="3"/>
    <!-- Number of times to retry backup backup command as a result of VMotion failures.  Must be equal to or greater than 1.  Default value: 3 -->
    <add key="BackupMaxTriesOnVMotion" value="3"/>
    <!-- Delay (in ms) used by StreamUploader between upload packets.  Default == 150 (ms) -->
    <add key="StreamUploaderDelay" value="150"/>
    <!-- Number of times to attempt to upload a binary with StreamUploader.  Default == 10 -->
    <add key="StreamUploaderRetry" value="15"/>
    <!-- Size (in KB) of StreamUploader write buffer.  Default == 32 (KB) -->
    <add key="StreamUploaderBufferSize" value="32"/>
    <!-- -1 Incrementals Forever
         0 Fulls Forever
         #  ==>10 Max savepiints  #-Savepoints before full
         Only set at job creation time.  Must create new job for changes to take effect.
         -->
    <add key="DedupIncrementalCount" value="-1"/>
    <!-- Timeout value for dedup repository lookup requests.  Default value: 30 (seconds) -->
    <add key="DedupLookupTimeout" value="30"/>
    <!-- Forces vRanger to attempt usage of VDDK SAN and VDDK Hot-add on all backup and restore tasks regardless if vRanger is ran on a physical or virtual machine. ** Requires Service Restart **-->
    <add key="ForceSanAndHotAdd" value="false"/>
    <!-- Backend tools samba library timeout (in seconds). Implemented in BET r19. If this key is empty or missing, BET defaults to 300 seconds. -->
    <add key="CifsTimeout" value="300"/>
    <!--Disables the VzMutex lock. Safe to do if there are no external Vizioncore products attempting access to the virtual machine. -->
    <add key="DisableVzMutexLock" value ="true"/>
    <!-- Timeout for vznlinuxio to attach to savepoint (in seconds).  Default value: 30 seconds.  Slower connections may need a larger value.-->
    <add key="LFLRTimeout" value="30"/>
    <!-- Timeout for Ranger to wait for the Catalog Manager Service responce on a queued save request.  Default value: 10 minutes.  Slower connections may need a larger value.-->
    <add key="CatalogTimeout" value="10"/>
    <!-- Timeout for the Backup process to wait for cataloging to finish.  Default value: 10 minutes.-->
    <add key="CatalogBackupWaitTimeout" value="10"/>
    <!-- Timeout to wait for VDDK to finish up their clean up process.  Some environments require more time if their environments are large and many jobs are running.  We recommend 3600 seconds (1 hour). -->
    <add key="VddkCleanupTimeoutInSeconds" value="3600"/>
    <!-- How often we write empty bytes to the FTP repository in order to keep our connection alive in seconds; 0 = off. -->
    <add key="FtpHeartBeatRateInSeconds" value="0"/>
    <!-- How often we write empty bytes to the NFS repository in order to keep our connection alive in seconds; 0 = off. -->
    <add key="NfsHeartBeatRateInSeconds" value="0"/>
    <!-- How often we write empty bytes to the CIFS repository in order to keep our connection alive in seconds; 0 = off. -->
    <add key="CifsHeartBeatRateInSeconds" value="0"/>
    <!-- How often we write empty bytes to the NVSD repository in order to keep our connection alive in seconds; 0 = off. -->
    <add key="NvsdHeartBeatRateInSeconds" value="0"/>
    <!-- How often we write empty bytes to the S3 repository in order to keep our connection alive in seconds; 0 = off. -->
    <add key="S3HeartBeatRateInSeconds" value="0"/>
    <!-- How often we write empty bytes to the SFTP repository in order to keep our connection alive in seconds; 0 = off. -->
    <add key="SftpHeartBeatRateInSeconds" value="0"/>    
    <!-- How often we ping a task to check that it is still using a mounted disk (HotAdd).  Default value: 1 minute. -->
    <add key="DiskMountKeepAliveInterval" value="60000"/>
    <!-- How often we check for stale mounted disks (disks that did not reply to the keepalive). Default value: 5 minutes.  Should *ALWAYS* be longer than the DiskMountKeepAliveInterval. -->
    <add key="DiskMountAuditInterval" value="300000"/>
    <!-- Level of BET debug logging. Default value: 'NONE'. Other values: 'INFO','DEBUG' ('DEBUG' is NOT recommended for routine production use.) -->
    <add key="BetDebugLogging" value="INFO"/>
    <!-- The length of time to allow a command to wait for its required response. Default value: 60 seconds.  This should only need modification if the proxy machine is under large loads. -->
    <add key="CommitTimeout" value="60"/>
    <!-- The timeout in minutes when performing a shutdown via the guest operating system. (not a power off). -->
    <add key="GuestOSShutdownTimeoutInMinutes" value="2"/>
    <!--Timeout in minutes to wait for the vmWare tools to start and report the ip address-->
    <add key="vmWareToolsStartTime" value="5"/>
    <!--Remove the va if vmWareTools do not install and report ip address in required time-->
    <add key="RemoveVAOnToolTimeout" value="false"/>
    <!--Address to download the OVA file from-->
    <add key="OVADownloadAddress" value="http://usdownloads.quest.com.edgesuite.net/Repository/www.quest.com/latest_versions/Quest_vRanger-Virtual-Appliance_150.ova" />
    <!-- Forces replication to use VDDK against the ESX Hosts instead of the Virtual Center -->
    <add key="ForceVddkToUseHosts" value="false"/>
    <!-- Turns on or off replication failure logging to windows event log. Default Value: false -->
    <add key="ReplicationFailureWriteEventLog" value="true"/>
    <!-- Turns on or off Virtual Appliance Monitoring. Default Value: false -->
    <add key="VirtualApplianceMonitoringEnabled" value="true"/>
    <!-- The maximum number of times a particular virtual appliance monitor failure will be logged to the windows event log before
         waiting for a success to proceed again. This is for limiting possible spamming of messages into the windows event log. Default Value: 7 -->
    <add key="VirtualApplianceMonitoringEventLogFailureLogMax" value="7"/>
    <!-- The interval in minutes that vRanger will verify the connection to Virtual Appliances that have been setup. Default value: 5 minutes -->
    <add key="VirtualAppliancesConnectionCheckIntervalInMinutes" value="5"/>
    <!-- How often we log an event for a VA check that has failed in hours AFTER the FailureLogMax has been reached. This allows
         for a larger interval in writing to the event log while still being notified to reduce spam.  Default value: 6 hours. -->
    <add key="VirtualApplianceMonitorSecondaryIntervalInHours" value="6"/>
    <!--Timeout in minutes for the disk upload to complete-->
    <add key="VADiskDeploymentTimeout" value="10"/>
    <!-- Turns on or off Datastore Monitoring. Default Value: false -->
    <add key="DatastoreMonitoringEnabled" value="false"/>
    <!-- The lowest threshold value for a datastore space before a warning is sent. Default 10 (this is 10% with type being percent) -->
    <add key="DatastoreMonitoringSpaceThresholdValue" value="10"/>
    <!-- Have vReplicator check datastore space based on 0 -> Percent or 1 -> Gigabyte. -->
    <add key="DatastoreMonitoringSpaceThresholdType" value="0"/>
    <!-- How often we check the datastores for low space in minutes.  Default value: 30 minutes. -->
    <add key="DatastoreMonitorCheckIntervalInMinutes" value="30"/>
    <!-- The maximum number of times a particular datastore monitor failure will be logged to the windows event log before
         waiting for a success to proceed again. This is for limiting possible spamming of messages into the windows event log. Default Value: 7 -->
    <add key="DatastoreMonitoringEventLogFailureLogMax" value="7"/>
    <!-- How often we log an event for a datastore that is low on space in hours AFTER the FailureLogMax has been reached. This allows
         for a larger interval in writing to the event log while still being notified to reduce spam.  Default value: 6 hours. -->
    <add key="DatastoreMonitorSecondaryIntervalInHours" value="6"/>
    <!--Turns on or off vMotion locking while running Backup, Restore and Replication. Default value: false-->
    <add key="AllowvMotionLock" value="false"/>
    <add key="RetryvMotionLock" value="3"/>
    <add key="UseCustomTransport" value="true"/>
    <add key="UseInventoryFilter" value="true"/>
  </appSettings>
  <system.web>
    <membership defaultProvider="ClientAuthenticationMembershipProvider">
      <providers>
        <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
      </providers>
    </membership>
    <roleManager defaultProvider="ClientRoleProvider" enabled="true">
      <providers>
        <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
      </providers>
    </roleManager>
  </system.web>
</configuration>