Author: Sathish Veerapandian

  • Migration status of mailboxes movement in Exchange 2016

    Mailbox replication service is the service responsible for moving the mailboxes,mailbox imports,mailbox exports  and restore requests.

    This article focuses on the migration status of the migration batch in Exchange 2016.

    The move request statistics can be viewed by running the below command

    Get-MoveRequestStatistics | Select DisplayName,StatusDetail,PercentComplete

    Below were the status reasons of the migration notified for delayed migration batches:

    Stalledduetotarget_dataguaranteewait:
    From Exchange 2010 there is an Data Guarantee API that is used by Mailbox Replication service (MRS) to check the health of the database copy architecture based on a defined setting of the database.
    This API is called by the MRS to see the following information:
    Check Replication Health – Confirm that the prerequisite number of database copies is available.
    Check Replication Flush – Confirm that the required log files have been replayed against the prerequisite number of database copies.
    After this message If a Satisfied response is returned within the 15 minute stalling period, MRS will automatically resume the move request.

    This is usually triggered during the move request to determine the health of the target database copies to which the mailboxes are moving from the legacy servers.
    If the Data Guarantee API returns a NotSatisfied or a Retry response, MRS will queue the move request and retry the query every 30 seconds.

    The parameters controlling these values can be seen in “MSExchangeMailboxReplication.exe.config” file located at “C:\Program Files\Microsoft\Exchange Server\V15\Bin”

    Parameter Name                                        Default         Min        Max
    DataGuaranteeCheckPeriod                     00:00:05      00:00:01   02:00:00
    DataGuaranteeTimeOut                         00:10:00      00:00:00   12:00:00
    DataGuaranteeLogRollDelay                   00:1:00       00:00:00   12:00:00
    DataGuaranteeRetryInterval                   00:15:00      00:00:00   12:00:00
    DataGuaranteeMaxwait                         1.00:00:00    00:00:00   7:00:00
    EnableDataGuaranteeCheck                 True                    False       True

    Stalledduetotarget_mdbreplication:
    This value is also returned from Data Guarantee API on checking the replication health of the target database copies if they are member of DAG and have database copies.
    We might get this message if the MRS service is waiting to get this information from the target server about the replication status of the database copies.

    So in this case the passive copy must be:
    1)Healthy.
    2)Must have a replay queue with 10 mins of replay lag time.
    3)Have a copy queue length less than 10 logs.
    4)Have an average copy queue length less than 10 logs.

    Below are the parameters controlling in the msexchangemailboxreplication config file:
    mdb latency health threshold
    mdbfairunhealthylatencythreshold
    mdbhealthyfairlatencythreshold
    mdblatencymaxdelay

    So at the end all the database copies must be healthy if we are randomly distributing mailboxes to the target destination.

    Stalledduetohigherpriorityjobs:

    We might get this status if the Exchange server Workload management introduced from Exchange 2013 is making  the exchange system resources busy on other exchange operations and hence the move requests are affected.

    First preferred option is we can submit the new move requests by modifying the Priority to emergency or highest by running the below command.
    New-MoveRequest -Identity Mailbox -TargetDatabase “DB Name” -BatchName Test -Priority Highest

    StalledduetoCI:
    This is caused due to Content Indexing on the database copies, so to solve this by turning it off on the Mailbox Database till the migration is complete for that DB where the mailbox resides.

    To turn it off run the below command :
    Set-MailboxDatabase “your mailbox database” -IndexEnabled:$False

    Note: This should be re-enabled once the migration has completed
    This error might not happen in Exchange 2016 environments since the indexing process has been completely changed from Exchange 2016.

    Stalledtotarget_disklatency:

    This might happen if there are any issues in the disk performance ,causes the disk latency ,the response time from the source is getting high and the migration batches are getting timed out. This delays the movement of the mailboxes.Should start checking the target exchange 2016 disk performance IOPS etc. If we get this then there is some serious problems in the exchange 2016 performance .And this depends on the designed storage architecture, how the database copies are distributed with how many mailboxes in each copies.

    Relinquishedwlmstall:

    We might get this because of large delays due to unfavorable server health or budget limitations.
    In most practical cases we can notice this status when moving a large mailboxes batch of size more than 5GB.

    These are the parameters controlling this:
    WlmThrottlingJobTimeOut
    WlmThrottlingJobRetryInterval

    The best solution for this is to move the large mailboxes on batches so that the system resources are sufficient to handle the migration.

    Below are the major parameters that is controlling the migration on the Exchange 2016 servers:

    “MSExchangeMailboxReplication.exe.config” file located at “C:\Program Files\Microsoft\Exchange Server\V15\Bin”

    MaxRetries – 60, 0, 1000
    MaxCleanupRetries – 480, 0, 600
    RetryDelay – 00:00:30, 00:00:10, 00:30:00
    MaxMoveHistoryLength – 5, 0, 100
    MaxActiveMovesPerSourceMDB – 20, 0, 100
    MaxActiveMovesPerTargetMDB – 20, 0, 100
    MaxActiveMovesPerSourceServer – 100, 0, 1000
    MaxActiveMovesPerTargetServer – 100, 0, 1000
    MaxActiveJobsPerSourceMailbox – 5, 0, 100
    MaxActiveJobsPerTargetMailbox – 2, 0, 100
    MaxTotalRequestsPerMRS – 100, 0, 1024

    Important tips to note down before migration:
    1)Ensure there is no file level antivirus running on the migrating target servers.
    2)Copy a 1GB file from the source server to the target server and verify the copy speed to ensure there is no network issues.
    3)Make sure there is no backup jobs running during the migration batch period.
    4)Better to initiate a small migration batch first of say 500 users and then open the perfmon during this period and monitor the memory,cpu,storage to make sure the resources are sufficient.

    Note: Do not modify any values in the MSExchangeMailboxReplication.exe.config for any reasons. Better to open a call with Microsoft if any issues is identified in the maibox migration batches.

    Thanks & Regards
    Sathish Veerapandian
    MVP- Office servers and Services

  • Read MAC EMLX apple email from Windows and MAC devices

    What is EMLX File?

    Mac Operating System come configured with Apple Mail or the Mail.app since version 10.0. Like many OSs, Mac OSX includes Apple Mail as its default-messaging platform for desktop communication. The set of qualitative attributes in Apple Mac has already made it a standard messaging platform amongst users of Apple Mac system. The improvement adopted by Mac OS version has resulted in it gaining a great number of users, thus, making Apple Mail to become the most clear communication medium by Mac users, owing to its uncomplicated reachability. All these aspects have bring out Apple Mail in notice of investigators due to the fact that Mac supported applications confront complications during the procedure of investigation due to lack of a dedicated available.

    Location of EMLX File

    A file with the EMLX extension is an Apple Mail Email file created with Apple’s Mail program for Mac OSX.  EMLX files are plain text files which store just a single email message. They are normally found on a Mac in ~user/Library/Mail/ folder, available below the /Mailboxes/ [mailbox]/Messages/ subfolder or sometimes within the subfolder /[account]/INBOX.mbox/Messages/.

    Why need arise to view EMLX file?

    Many reasons are available, making it obligation for the users to search for an EMLX Viewer as per their requirements mentioned below:

    • EMLX file corruption or failed to open. And users have the urgency to view the crucial email messages, without waiting for the installation of the particular email client.
    • View EMLX email messages received as an attachment, which are damaged in between transit.
    • Need to open Apple Mail EMLX file in Windows OS, saved in any external storage device.

    Free EMLX Viewer – Open EMLX Files from Apple Mail to read Messages

    EMLX Viewer Windows is an easy to use program which provide the possibility to open and view EMLX files from Apple Mail on Windows. However, it also works with the regular EML file format. This is a portable and freeware solution which comes in a handy if you do not have the Apple Mail client installed to view EML messages, especially since it does not require you to set up the mail account. You only need to point to the file and open it.

    1.png

    Although EMLX File Reader does not require installation, you must know that it creates cache files in the same directory as itself when opening EMLX files. As far as Interface is concerned, the mail tool adopts clean window with a native structure, where you can get started by opening an EMLX file or the entire folder which contain multiple emails. The emails are neatly organized in a tree view structure on the left and can be accessed from the right. In addition to the message, you can view graphical content, attachments, and header information such as sender, receiver, subject and date.

    If you need to deal with large amounts of text, you can make use of built-in search function to look up information across the whole raw messages or only in the shown headers. Search results can be restricted by specifying the start and the end date. Moreover, you can change the date format and refresh all the displayed messages if any modification were made in the meantime. EMLX files are automatically converted to EML format, so simply double click an entry present in the list to open the location in Windows Explorer and view the messages and attachments in EMLX.

    There are no compatibility issues involved in the software as the utility can easily run on all the version of Windows operating system ranging from Windows NT to Windows 10.

    Source URL – http://www.bitrecover.com/free/emlx-viewer/

    Thanks & Regards
    Rollins Duke
    Technical Analyst

  • Skype for Business Unable to present Desktop – Call failed to establish due to a media connectivity Failure

    All Skype for Business Clients from remote locations were unable to present the screen sharing through meet now ,peer to peer and conference.
    This a new deployment and users were unable to present desktop.

    Below were the test scenarios:

    1st test – from remote users n/w to my home n/w – received error (we couldn’t connect to the presentation because of n/w issues. Please try again later)
    2nd test – from remote users n/w to my office n/w – received error (we couldn’t connect to the presentation because of n/w issues. Please try again later)

    Below troubleshooting were done :

    1)Did a telnet to lyncdiscover.domain.com on port 80 and 443 – ( This was done just to make sure the clients when logging in gets all the updated info of the pool,SFB config etc..,)
    2)Did a telnet to meet.domain.com on port  443 – successful
    3)Did a telnet to join.domain.com on port  443 – successful
    4)Did a telnet to av.domain.com on 443 successful

    Assume the below scenario deployment:
    1)The edges were in DNSLB and were in scaled consolidated topology using NAT.
    2)UDP 3478 for AV service external IP.
    3)TCP 443 for external IP’s.
    4)Port 50k was blocked in my case since no legacy OCS clients.
    5)No edge hair pin traffic is allowed for Audio and Video Public Ips.

    DMZsc1.png

    Did a Snooper trace from the affected remote client and got the following info on the snooper logs

    Getting  error as call failed due to media connectivity failure when both the end points are remote.

    snoop

    Now this is the time for me to dig into the analysis of in which protocol fashion the SFB clients establishes the connection.So started to explore on STUN,TURN & ICE since ever i was having a glossy look on these topics.

    So what kind of protocols they use:

    SFB/Lync uses all these 3 protocols to establish a media connectivity:

    ICE:
    The stands for Interactive Connectivity Establishment protocol for communications. All Lync/SFB clients are ICE clients and use ICE to try and establish connectivity between itself and another ICE client.Remember this is the main protocol which functions as the core and wraps the other 2 to establish a path.

    STUN:
    The new name for this acronym is Session Traversal Utilities for NAT.
    This will allow the SFB client to discover the available public IP for the SFB media path inorder to establish the connectivity.

    TURN:
    Traversal Using Relay around NAT.
    This will establish a chain of connection between the external client and the client inside the network.By using this edge servers will create a chain and will offer ports on UDP and TCP for the media path. Once this chain is established it promises the remote client to send its media connection to the internal network client.

    So now we can understand clearly that the External Corporate firewall requires a Hairpin traffic to be allowed for the A/V edge Public Ips for the STUN and TURN to work in the required  UDP  TCP path.

    Since these are the most commonly used RFC standard protocols SFB clients also uses them. These all are IETF standards protocols and hence Microsoft also uses them.
    Now the SFB clients will use the below process to establish a media connectivity with the remote client:

    Candidate Discovery:
    Where the clients discover their available public IP addresses for media connectivity. These include both STUN and TURN addresses of the Edge server.

    Candidate Exchange:
    This is the place where both the SFB clients sends each other list of addresses on which they can be communicated for this media path.
    Remember this will happen bidirectional.

    Connectivity Checks:
    This is where both the candidates(clients) try to establish a connection on all these addresses simultaneously (not one by one).
    Finally the result would be the SFB client will pick any one of the available route and establish a connection with the client whoever is responding first.

    Candidate Promotion:
    This is the Final stage of the SFB client and happens after the call is established and its running.
    Here the clients if identify any path which is more optimum and quick they decide to change that route which gives the better experience to the user.

    These candidate information can be seen in snooper logs

    We can see 3 types of candidate information

    The first one below is for port 50k and can be ignored if you are not having this option

    DMZsc1.png

    The second one is for audio and last one will be for video. We will have the same like one for audio with label main mentioned as audio.

    DMZsc1.png

    Lets say if we have only port 50k opened and not 443 for UDP then we can see only those  50k candidate lists.

    TCP-ACT indicates that with this candidate pair the client is able to send RTP and RTCP traffic

    DMZsc.png

    By having a look at it we can confirm that the candidate is a STUN pair. TCP-ACT and typ srfx raddr is the thing that indicates they are STUN pair.

    In this case if the candidate discovery fails in all the cases we can find  BYE sip in the snooper logs and which mentions opaque=epid followed by guid

    There are 2 solutions for this problem to work:

    Allow Port 50k inbound:

    We can  allow the media communications on this edge Audio/Video Ip only on port 50 K. But at real times when users connecting from different network for the media path they need to cross firewalls where they might have only the standard 80 & 443 allowed and these ports might be blocked.

    Allow the hair pin edge traffic:

    Allow the traffic on the edge server external firewall  to traverse the traffic between the two AV Edge servers public IP addresses. This will give the appropriate candidate lists for the clients connecting via different edge servers on UDP port 3478 through this hair pin traffic.

    Note:

    1)If we have only one edge server installed we do not need to follow this steps since all the clients will connect only to one edge server node and no issues will be identified. Just make sure the UDP 3478 is opened for this communication.

    2)SFB  clients will always try to establish media path  via UDP as preffered if its available. If UDP isn’t available it tries to switch to TCP and establishes the connectivity.

    Thanks & Regards
    Sathish Veerapandian
    MVP- Office Servers & Services.

  • Configure SCOM to monitor servers in the DMZ

    SCOM requires Mutual Authentication to Trust and Communicate with the agents for Monitoring and reporting.Initially SCOM tries to establish kerberos authentication with the agents. This happens for all internal agents which is joined in the domain.
    For the workgroup machines which are in the DMZ network SCOM use the certificate based authentication for secure communication and then it monitors them.

    Below are the high level steps:

    1)Configure your firewall to pass traffic from DMZ agents(DMZ servers) to SCOM management server’s port 5723 & 5724.
    2)Request certificate from all DMZ machines(certificate type must be server authentication & Client Authentication)
    3)Request certificate from SCOM machine (certificate type must be server authentication & Client Authentication)
    4)Import the server authentication & Client Authentication certificates on the DMZ machines
    5)Import the server authentication & Client Authentication certificates on the SCOM 2012
    6)Run the MOMCERTIMPORT on all Machines and assign the certificate
    7)Approve the DMZ agents in the SCOM Server.

    For Publish Certificate request for SCOM  there are 2 types based on the CA we have.

    1. Enterprise CA.
    2. StandAlone CA.

    1) Enterprise CA

    If we are going to request certificate from Enterprise CA then we need to use Publish a Certificate Template for SCOM through your enterprise CA.

    To perform the task  through enterprise CA do the below :
    Open Certificate Authority – Navigate to Certificate Templates – And Select Manage

    sc1

    Right click the Computer Certificate and Click Duplicate

    dmzsc

    Make sure the option allow private keys to be exported is chosen.

    dmzsc

    The most important thing that we need to note is that in the extensions it need to have both server and client authentication enabled. This is applicable for both the SCOM and the DMZ hosts throughout the configuration no matter we are requesting them either from Enterprise CA or Stand Alone CA.

    dmzsc

    Once the above is completed we can import this duplicate certificate to the SCOM.

    2) StandAlone CA:

    Below are the steps that needs to be carried over for Stand Alone CA SCOM Certificate Request:

    Go to the SCOM 2012 Server

    Connect to the computer hosting certificate services

    https://ca.exchangequery.com/certsrv

    dmzsc

    Click request a certificate and submit advance certificate request

    dmzsc

    Click create and submit request to this CA

    After that we will get confirmation on web access information as below and click yes

    dmzsc

    Below are the information that needs to be filled

    Name – name of the server requesting the cert.

    Type of Certificate – Choose Other

    In OID  enter – 1.3.6.1.5.5.7.3.1,1.3.6.1.5.5.7.3.2 (This plays a major role in enhanced key usage)

    dmzsc

    Keyoptions – Select Create new key set

    CSP – Select Microsoft Enhanced Cryptographic Provider v1.0

    Key Usage – Select Both

    Key Size – 1024

    Select – Mark Keys as exportable.

    Request Format – CMC

    Hash Algorithm – SHA1 and give friendly name and submit.

    DMZsc.png

    Once the CA request is completed from the CA we can go ahead and import them on the SCOM server.

    Request certificate for DMZ Servers to be Monitored:

    First and the foremost thing is that wecan request the Certificate from internal domain server since most of the times the DMZ servers will not have access to certificate web enrollment services on port 443 to the internal certificate authority server.

    So what we can do is generate cert request from one machine in the domain nw and then import them to the DMZ servers.

    Perform the same process of submitting the certificate request for all the DMZ servers

    Below are the information that needs to be filled

    Name – name of the  DMZ server that requires the certificate.

    Type of Certificate – Choose Other

    In OID  enter – 1.3.6.1.5.5.7.3.1,1.3.6.1.5.5.7.3.2 (This plays a major role in enhanced key usage)

    Keyoptions – Select Create new key set

    CSP – Select Microsoft Enhanced Cryptographic Provider v1.0

    Key Usage – Select Both

    Key Size – 1024

    Select – Mark Keys as exportable.

    Request Format – CMC

    Hash Algorithm – SHA1 and give friendly name and submit.

    Once the above is done we need to approve the request from the CA and then import them on the server from where we requested the certificate for those DMZ machines.

    Now we need to export this certificate from this requested machine and them import them on all DMZ servers which needs to be monitored.

    There are multiple ways of doing this. I prefer doing this via Digicert Windows Utility Tool.

    Download  the DigiCert Windows utility tool from the below url on the certificate requested machine

    https://www.digicert.com/util/

    On opening we  can see all the issued SSL certificate which owns the private key on that machine.

    Select the DMZ  servers requested certificate and click on export

    dmzsc

    Select the option export the private key and export them with password.

    dmzsc

    Once the above steps are completed we need to import these certificates on the DMZ servers computer personal store.

    We can use the same certificate import wizard like below and import the above certificate on DMZ servers

    dmzsc

    Now the final step is to run the MOMCERTIMPORT on all Machines and select this certificate and we are done.

    This tool MOMCERTIMPORT GUI can be found on SCOM 2012 Installation Media path in below directory

    E:\supporttools\AMD64\MOMCERTIMPORT

    Make sure the same version of the tool from the setup is copied to all machines

    Just run this tool on all machines and we will get a pop up window to confirm the certificate. Please confirm  by choosing our relevant requested certificate on all servers.

    After the above is completed wait for some time and these DMZ servers will appear on the Administration – pending in the SCOM server and just we need to approve them and we are done.

    Thanks & Regards
    Sathish Veerapandian
    MVP – Office Servers & Services

  • Skype for Business Persistent Chat Migration to new Pool

    We might come across a scenario where we need to migrate the SFB servers to new pool.
    There are few cases where we need to upgrade the hardware from old servers to New High performance servers on which they are running or there might be case where they need to be virtualized from hardware to VM.
    This article focuses only on migrating the persistent chat pool from old server to the new server.

    Below are the readiness to be completed before starting the Persistent Chat Migration:

    1) The new Persistent Chat Pool should be already published in the Topology.
    2) The new Persistent Chat nodes should be already added in the new pool and SFB setup Wizard should be completed.
    3) Certificates should be already assigned to the new Persistent Chat Pool.
    4) Connectivity from the OLD PC pool to the new SQL DB is already established.
    5) Connectivity from the new PC pool to the old SQL DB is already Established.
    6) Establish a connectivity from the old PC hosts to the new PC hosts

    To Start the Migration:

    Check your current persistent category,Addin,Policy and configuration.
    This can be verified by checking through control panel persistent chat tab or through Shell.

    To Check Persistent Chat Category:

    Get-CsPersistentChatCategory -PersistentChatPoolFqdn “Pchat.exchangequery.com”
    Make a note of the current number persistent chat rooms

    To Check the rooms:

    Get-CsPersistentChatRoom | select Name

    To Check the Disabled rooms:

    Get-CsPersistentChatRoom -Disabled:$True

    After confirming that these disabled rooms will not be in use we can remove them before we migrate since there is no use of moving these obsolete ones to the new pool.

    Get-Cspersistentchatroom -Disabled:$True | Remove-CsPersistentChatRoom

    Export the Old Pool Persistent Chat Configuration by Running the below command:

    Export-CsPersistentChatData -DBInstance “SQLCL01.Exchangequery.com\SFBDB” -FileName “c:\temp\PChatBckup.zip”

    The exported Configuration data will look in XML as below

    untitled2

    Import Persistent Chat data that we exported to new Skype for Business Pool:

    Import-CsPersistentChatData -DBInstance “SQLCL02.Exchangequery.com\SkypeDB” -FileName “c:\temp\PChatBckup.zip”

    We will get a confirmation as below before the import and  the progress bar

    untitled3

    untitled4

    Once the above command is done we can see the old PC config data imported in the MGC DB in the SQL.

    After the above command is run we can see the chat rooms are duplicated since it created the new instance in the new pool.

    Later we can delete them by running the below command:

    Get-CsPersistentChatRoom -PersistentChatPoolFqdn “Pchat.exchangequery.com” |Remove-CsPersistentChatRoom

    Then remove the persistent chat category:

    Get-CsPersistentChatCategory -PersistentChatPoolFqdn “Pchat.exchangequery.com”| remove-cspersistentchatcategory
    After this is done go ahead and try logging into the Persistent Chat Enabled User and see the results.

    In my case what happened was the connections were still going to the old Persistent Chat Pool

    Guess it was because the Old Persistent Chat Pool was First in the Persistent Chat Pools in the list on Topology Builder.
    So Went ahead and removed the old persistent chat pool from the Topology , Publised the Topology , rerun the setup on new PCHAT nodes.

    After this the new connections were going to the new Persistent Chat pool.
    All my Persistent Chat rooms that i was member of was present AS IS and only thing is that the rooms that i was following disappeared from my list.
    That was a small thing only and i was able to search those rooms and follow them again.

    Thanks & Regards
    Sathish Veerapandian
    MVP – Office Servers & Services

  • Active Manager operation failed attempt to copy the last logs from the sourceserver failed

    During a fail over DR cases when the Main site is completely not available we need to carry over few steps to activate Exchange Services according to the type of DR setup we have.

    Sequential steps needs to be carried over in terms of  restoring the DAG,activating the DB’s on the DR site pointing the exchange DNS records to the DR site ip’s.

    Failover scenarios varies according to the namespaces, no of sites in Exchange :

    UnBound Name Space- Single name space for all Exchange URL’s for both the main and DR sites which is best recommended.
    Bound Name Space – Very complicated and not recommended since we need to use seperate URL’s for Main and DR site.

    If we have a three site setup with FSW in third site or if the FSW is placed in the Azure directory in the 3rd site then no manual activation of the database copies on the DR site is required. Only exchange DNS job on the DR site is required.

    For detailed information on DAG DR setup i have written a previous blog which can be referred:

    https://exchangequery.com/2016/05/04/dag-in-exchange-2016-and-windows-server-2012-r2/

    From Exchange 2013 the Dynamic Quorum in the failover cluster adjusts automatically and recalculates the active nodes if its on a sequential shutdown for a two site setup.

    During a DR activation in the DR site when the main site is completely not available after rebuilding the DAG cluster on the DR site we might come across the below error for some databases

    In my test case it was the below:

    Stop-DatabaseAvailablityGroup – for the Main site completed successfully with no errors
    Restore-DatabaseAvailabilityGroup – completed successfully except some warnings for one mailbox node on the DR site.

    On the server with warning noticed that all the DB’s were in failed state.Tried to mount them and got the below error

    An Active Manager operation failed. Error The database action failed. Error: The database was not mounted because its experienced data loss as a result of a switchover or failover, and the attempt to copy the last logs from the sourcserver failed. Please check the event log for more detailed information. Specific error message: Attempt to copy remaing log files failed for database DBNAME. Error: Microsoft.Exchange.Cluster.Replay.AcllUnboundedDatalossDetectedEeption:

    By looking into the above message its very interesting to see that the DR site DB’s are trying to reach the Main site copies to the get the information though the DAG cluster is activated on the DR site and the PAM is on the DR.

    The below command can be used just in case if the DR copies are not mounted after activating the DR site DAG.

    Move-ActiveMailboxDatabase “DBNAME” -ActivateOnServer DRMailboxServer -SkipHealthChecks -SkipActiveCopyChecks -SkipClientExperienceChecks -SkipLagChecks -MountDialOverride:besteffort

    So we need to be very clear that this error will not occur normally until and unless there is some data loss for any DB’s during the DAG DR activation.

    Usually when we do a Restore-DatabaseAvailabilitygroup on the DR site all the DB’s should be mounted on the DR site.

    The above command can be run only if the database copies are in a failed state after DR site activation and if they are not getting  mounted.

    Thanks & Regards
    Sathish Veerapandian
    MVP – Office Servers & Services

  • Troubleshooting endpoint URL’s for Exchange & Skype for Business

    This article outlines the client troubleshooting end points that can be used for Exchange and Skype for Business services.

    For Exchange

    To verify Exchange autodiscover Service endpoints:
    https://yourdomain.com/autodiscover/autodiscover.xml

    Usage:Main purpose of autodiscover is to establish,discover and make initial connections to their mailboxes.
    Also it keeps updated on the outlook on frequent changes of mailboxes and updates the offline address book.

    To verify Exchange Exchange Web Service endpoints:
    https://yourdomain.com/ews/exchange.asmx

    Usage: EWS applications to communicate with the Exchange server mainly for developers to connect their clients and get the email connectivity for their applications via SOAP.

    To verify Offinle Address Book Service endpoints:
    https://yourdomain.com/oab/oab.xml

    Usage: An offline address book provides local copy of address list to Microsoft Outlook which can be accessed when the outlook is in disconnected state.

    To verify ActiveSync Service endpoints:
    https://yourdomain.com/Microsoft-Server-ActiveSync

    Usage:By using Activesync protocol users can configure and sync their emails on their mobile devices.

    To verify Webmail Service endpoints:
    https://yourdomain.com/owa/owa.xml

    Usage:Outlook Web App is a browser based email client used for accessing emails via browser.

    To verify exchange control panel Service endpoints:
    https://yourdomain.comecp/ecp.xml

    Usage:The Exchange Control Panel is a Web application that runs on a Client Access service providing services for the Exchange organization

    To verify MAPI service end points:
    https://yourdomain.com/mapi/mapi.xml

    Usage:New protocol outlook connections introduced from Exchange 2013 SP1 which enhances faster connections only through TCP and eliminating the legacy RPC

    To verify the RPC service end points:
    https://yourdomain.com/rpc/rpc.xml

    Usage:Not used on new versions of exchange and almost retiring type for client connections.

    All the above URL’s will be listening on Exchange 2016 Mailbox Server Virtual Directories.

    pastedimage

    For Skype for Business:

    Mostly for the chat services provided through Skype for business the main URL end points are Chat,Meet,Conference,Audio/Video and lyncdiscover.
    We usually check these URL’s during any troubleshooting scenarios.

    Below are the additional end points which can be seen and kept for additional references.

    To test conferencing URL:
    https://meet.domain.com/meet/

    Usage: Meet is the base URL for all conferences in the organization.

    To Verify  Dial in URL :
    https://dialin.domain.com/dialin/
    Usage:Dial-in enables access to the Dial-in Conferencing Settings webpage

    To Verify Lync control panel:
    https://sip.internaldomain.com/cscp

    Usage:Must be only added and accessed from intranet site and no need to publish on the internet.

    To verify the autodiscover web site and retrieve the redirection information for Client:

    https://poolexternaluri/autodiscover/autodiscover.svc/root
    https://poolexternaluri/reach/sip.svc

    Usage: They are the service entry points for the Autodiscover service and they are required.They are the Lync Server Web Service Autodiscover Response which was sent from the clients.They are the URL for the Authentication Broker (Reach) web service

    To Verify Mobile Client Connectivity:
    https://poolexternaluri/webticket/webticketservice.svc

    Usage:Specifies the default authentication method used for mobile client connectivity.
    This is a SOAP web service that authenticates a user via NTLM or Kerberos (if configured) and returns a SAML Assertion (Ticket) as part of the SOAP Message response.

    To check that the mobility service is working use the following url.
    https://poolexternaluri/mcx/mcxservice.svc
    This is the URL required for the Skype Mobility Services

    https://poolexternaluri/supportconferenceconsole

    Usage:Listening port for the Support Conferencing Console. The default value is 6007
    Port used by the Office 365 Support Conference Console. This console is used by support personnel to troubleshoot problems with conferences and online meetings.
    To verify the persistent chat:

    https://PCpoolexternaluri/persistentchat/rm/

    Usage:There are actually a Virtual directory for Persistent Chat, both on External and Internal web site So for external testing access the url from the published persistent chat FQDN

    Verify hybridconfig service:
    https://poolexternaluri/shybridconfig/hybridconfigservice.svc

    Usage:Not sure this might be used for hybrid connectivity beween Skype for Business Server and Skype for Business Online

    To check the address book issues:
    https://poolexternaluri/abs/handler

    Usage:GAL files are downloded from the FE server IIS

    Check the below URL for distribution group expansion:
    https://poolexternaluri/groupexpansion/service.svc

    Usage:They are configured for via windows authentication by default.

    https://poolexternaluri/certprov/certprovisioningservice.svc

    Usage:This parameter can be used instead of the WebServer parameter in order to specify the full URL of the Certificate Provisioning Web service. This can be useful when the calculation used in WebServer will not yield the correct URL.This parameter is optional, and is used only when SipServer is provided.

    This is needed when the Lync Server web server is not collocated with either the main Director or within the Front End pool in a site.
    This might be due to a load balancer configuration where web traffic is load balanced differently to SIP traffic resulting in different FQDNs for the SIP and web servers.

    All the above SFB URL’s will be listening on front end server

    sgf

    On accessing these URL’s if we are not prompted with username and password then troubleshooting steps needs to be performed accordingly to the message we received  to identify the issue. In most cases the URL’s might not be published correctly to be accessed from the remote end points or there might be the issue with the authentication or the virtual directory/server/services itself.

    Thanks & Regards
    Sathish Veerapandian
    MVP – Office Servers & Services 

  • Event Viewer Warning 1040- Active Sync Direct Push technology

    We Might notice this error on the Event Viewer on Exchange Servers for the source MsExchangeActiveSync

    Untitled.png

    Event Type: Warning
    Event Source: MSExchange ActiveSync
    Event Category: Requests
    Event ID: 1040
    Date: 3/10/2016
    Time: 12:54:22 PM
    The average of the most recent [513] heartbeat intervals used by clients is less than or equal to [540].
    Make sure that your firewall configuration is set to work correctly with Exchange ActiveSync and Direct Push technology. Specifically, make sure that your firewall is configured so that requests to Exchange ActiveSync do not expire before they have the opportunity to be processed.

    This warning is not an issue on the Exchange Servers.This is something mismatch value configured on the Network Load Balancer which serves the Client is not configured correctly.

    Active Sync Uses Direct push Technology to retrieve the emails from the server. Inorder to initiate a direct push communication between the ActiveSync Client and the Exchange Server it uses the heart beat interval values.

    In order for the Direct Push Technology to Work it involves 2 process one request from the ActiveSync Mobile(Client) and the response from the Exchange Server.When the Client notifies any changes on the users mailbox the changes are transmitted over persistent http or https connection through direct push.

    Below is the process of ActiveSync Request to the server:

    1)The Client issues a http request to Exchange Server asking for any changes occurred in the user mailbox in the specified time.Basically it queries inbox,contacts,calendar etc…

    2) After Exchange Receives this request it looks for the specific mailbox and sees the changes in the folders until the specified time limit expires.After the time out period exceeds it issues an http 200 OK response to the clients. It then gives a response request to the client with all the update about the folders.

    3)The Client then receives the response from Exchange and can be any of the below :

    HTTP 200 OK – No Change on Folders . If this is the case the client will reissue the ping request on next heartbeatinterval value.
    HTTP 200 OK – Change in folders – And will get the updates on each folders that was changed. After the sync is done it will reissue the request in next interval.
    NO Response – It lowers the time interval in the ping request and then re-issues the request again in the minimum heartbeatinterval value to get the update.

    So basically these HearBeatInterval values should match between the values set on Network Load Balancers and the Exchange .Servers.

    Lets have a look at the values of HearBeatInterval on Exchange Servers.

    Where are these Values Stored in Exchange 2016 ?

    These Values can be seen in the web.config file in the below location in the installation directory

    C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\Sync

    There are 4 values as below

    untitled1
    MinHeartBeatInterval – The minimum number of seconds that the client waits between issuing heartbeat commands to the server.The default value in Exchange 2016 is 60 seconds. If this value is too small the client will send the http request very often and will consume the power of the device.

    MaxHeartBeatInterval –The maximum number of seconds that a client waits between issuing heartbeat commands.The Default value is 59 Minutes on Exchange 2016 Server.

    HeartBeatSampleSize- This is a bucket where the server collects all the recent heart beat intervals that the server received from the Active Sync Clients.It keeps this value to see how the clients are sending the activesync http request to the server and ensures they are matching with the specified values. The default value is it waits for 200 heart beat intervals.

    HeartBeatAlertThreshold- If the collected HBsamplesize  value is more than or not meeting the configured value heartbeat maximum or minimum value in this specified time interval then it logs an event in the application log. The default value configured is 9 minutes.

    Lets say if the HTTP(S) connections time out value is not configured as longer than 59 minutes on the firewall and if its value is lesser than the value on Exchange Servers, Once a ActiveSync http request is timeout on the F/W, ActiveSync Mobile client will sent another Http request which may cause connection overload.
    In-order to avoid this the Exchange server will trigger an alert and mark an event in the event log.

    A short living time-out value will initiate new http requests from the mobile device more frequently.This will also drain the battery of the device very quickly considering more http requests are initiated from the device.

    The best practice is to increase the firewall Time Out Values for http requests to Exchange Servers Active Sync Virtual Directory to give a better experience to the users. The time out value on the firewall can be equal to or greater than the values specified on the Exchange 2016 servers.

    Thanks & Regards
    Sathish Veerapandian
    MVP – Office Servers & Services.

  • Load Balancing Edge services over internet for Skype for Business

    In-order for the users to connect externally from the organization’s network we need to publish the Skype for business services.In this article we will have a look at best ways to publish the Skype for Business Edge servers over the internet.
    By doing this the users can participate from external N\W in IM,AV ,web conferencing sessions.

    There is lot of confusion in the architectural part of load balancing the Skype for Business Edge servers and cannot be taken as easy deployment. If the SFB deployment is extended to communicate with federated partners, remote connected users and Public Instant Messaging users then a real proper planning of the edge servers deployment needs to be carried over.

    If we have 2 or more edge servers deployed in the DMZ they need to be load balanced to equally distribute the load in all the edge interfaces.
    In general Microsoft recommends to use a DNS Load Balancer for Edge High Availability.

    Load balancing distributes the traffic among the servers in a pool so that the services are provided without any delay.

    Below are 3 types of load balancing solution that we can use based on our requirement:

    DNS Load Balancer Using NAT :

    This is the best recommended approach.
    We are actually load balancing each edge services namespace over the internet with multiple A records NATTING them via firewall and then to Edge servers.
    These Ip addresses are bound to each services seperately routed to internal individual Ip’s assigned to the external NIC.
    Three private IP addresses are assigned to this network adapter, for example 131.107.155.10 for Access Edge service, 131.107.155.20 for Web Conferencing Edge service, 131.107.155.30 for A/V Edge service. These private Ip’s listen individual public IPs Natted from the f/w.
    These Ips are not participated in the load balancer and used only for NATing.
    They are basically behind a port forwarding firewall which is good.

    Advantages of doing this:

    1) We are assigning a separate public IP’s for each service and using standard ports. So the remote users will not have any issues on connecting behind their firewall since all are standard ports.
    2) Its very good to troubleshoot in analyzing a particular service traffic statistics, Logging and easy to identify the issues with the logs packet capture etc..,

    Disadvantages of doing this:

    1) The edge services rely on multiple A records with the same name but different IP addresses. So its not service aware configuration and failure detection rate and routing to the available server is not possible.

    But still i would go with this option considering the failure detection rate is very minimal in a well planned deployment and strong n/w considering very helpful and easy during any troubleshooting scenarios.

    Below is the example of DNS load balancing using NAT

    Lets assume i need to load balance 2 edge servers using DNS Load-balancing NAT as per below environment.

    sfb

    Below is the DNS configuration

    sfb3

    sfb2
    DNS Load balancer using Public Ip Addresses:

    By doing this we are using one public IP for all 3 services on each server and differentiate them by TCP/UDP port value.
    We are directly assigning the public IP’s on the edge servers one of the 2 NIC’s which should be external NIC.
    Three private IP addresses are assigned to this network adapter, for example 131.107.155.10 for Access Edge service, 131.107.155.20 for Web Conferencing Edge service, 131.107.155.30 for A/V Edge service.
    The Access Edge service public IP address is primary in the NIC with default gateway set to the external Firewall.
    Web Conferencing Edge service and A/V Edge service private IP addresses are additional IP addresses in the Advanced section of the properties of Internet Protocol Version 4 (TCP/IPv4)

    Disadvantages of doing this:
    It is not recommended, to use a single public IP address for all three Edge service interfaces.
    Though this does save IP addresses, it requires different port numbers for each service.

    Access Edge – 5061/TCP
    Web Conferencing – 444/TCP
    A/V Edge – 443/TCP

    These might cause issues for remote users connecting externally from a n/w where their firewall doesn’t allow the traffic over TCP 5061 port.
    Having three unique IP addresses will help us in easily doing a packet filtering to identify and resolve the issues.

    Hardware load balancing using public Ip Address:

    Load balancing is only need for old OCS clients and xmpp, but works fine if both edge server are up. From Lync 2010 Microsoft does not recommends to load balance the Edge services from internet.

    We are creating a virtual Ip address for each services that edge serves (Access, WebConferencing, A/V) on the load balancer like F5, KEMP etc..,
    Behind this Virtual Ip’s we need to add the edge servers associated for the services.
    The main benefit of this is failure detection rate is very quicker since it detects the failure from the server side.

    Disadvantages:

    1) The A/V services will not see the client’s true IP ( for example in a peer to peer audio call for a user connected from external to internal)
    2)Few challenges in configuring the outbound client connections going from the edge to internet (Routing & SNAT)

    Thanks & Regards
    Sathish Veerapandian
    MVP – Office Servers & Services

  • Recertify expired Notes ID

    Recently few of the lotus notes users were getting the below message on logging to their notes account.

    One or more certificate in your notes ID have expired.
    Contact your domino administrator.

    notes

    By looking into this error we really think that this is something to do with the certificate.
    This occurs because user ID’s expiration dates are mentioned for each account on the domino server and after expiration these messages appear.
    Usually the values are mentioned as 10 years period or values accordingly set by domino developer during the deployment.
    This helps the administrators not to recertify the ID’s frequently.

    So basically what we need to do is to extend the expiration dates for these users on their notes ID when we come across this issue.
    Inorder to extend the expiration time we need to recertify those ID’s.

    The below steps can be performed to recertify the notes ID

    Launch the Domino Administrator :

    Navigate to People and Groups

    domino

    Navigate to tools – Select people – and select recertify

    notes1

    The next step will be prompted for a certifier process.

    Here we have 2 options:

    1)Supply certifier ID and password
    2)Use the CA process

    Its better to use the CA process which will allow us to specify a certifier of our own without access to the certifier ID file or the password.

    After choosing the above option we will get the below screen of the new certificate expiration date. There is an option to inspect each entry before submitting a request which is good to enable.

    notes2

    After a successful processing we get the below message which says the request statistics.

    notes3

    After this dialog box click ok and continue. After the replication interval the user can login and he will not get the certificate expiration message anymore.

    Thanks & Regards 
    Sathish Veerapandian
    MVP- Office Servers & Services