Need a power shell command for Front End fail over?

We have a Lync 2013 infrastructure with 2 front ends and 2 edges. 
The environment was setup by a partner and the servers were configured for failover in case one goes down in the pool. 
However the last time windows updates were applied and the primary FE had to be restarted, the secondary FE did not automatically switch over as the active server and it caused a companywide outage. 
In speaking with the contractor, they said that well no it would not automatically do this, you need to run a Lync PowerShell to have it switch over. 
My BS radar went off, but I wanted to ask you if this sounds right or is possible. 
If it must be done, could you give me the power shell command.
Thanks

Hi,
Did you solve the issue with the help of the people above provided?
If you use a Lync server Enterprise edition, it is recommended to deploy at least three FE servers.
If you use two Lync server Standard edition for DR,
when one of the servers fails in the Pool Pair, the administrator need to manually failover the pool to the other member of the Pool Pair using the
command: Invoke-CsPoolFailover -PoolFQDN <Pool1 FQDN> -DisasterMode -Verbose
The Automatic failover and failback for
Voice option and the associated time intervals in Topology Builder apply only to the voice resiliency features that were introduced in Lync Server 2010. Selecting this option does not imply that the pool failover discussed in this document is automatic.
Pool failover and failback always require an administrator to manually invoke the failover and failback.
You can refer to the link below about how to failover a pool: 
http://technet.microsoft.com/en-gb/library/jj204678.aspx
Best Regards,
Eason Huang
Eason Huang
TechNet Community Support
Does it help, yes and no.  FYI, we are running Enterprise Edition front ends for our single pool.  The new environment was setup as a proof of concept and we installed the bare minimum # of servers at the time.
The articles suggested from above pretty much just say if one of your FE's goes down, bring it back up as soon as possible.  Both of our FE's need windows updates applied ASAP and it could an hour or more (likely).  Here is a quote from the article:
If for some reason you need to bring both servers down at the same time, do the following when the downtime for the pool is finished:
The best practice is to restart both Front End Servers at the same time.
If the two servers cannot be restarted at the same time, you should bring them back up in the reverse order of the order they went down.
If you cannot bring them back up in that order, then use the following cmdlet before bringing the pool back up:
Reset-CsPoolRegistrarState -ResetType QuorumLossRecovery -PoolFQDN <FQDN>
The last time the main FE went down for service, we left the secondary FE on but there was still an outage.  Then brought back the formerly active FE fist and service was restored.  Basically I need to know how to switch the passive to the active
node before/while the primary is offline.  And if required once both FE's are back up, to switch the service from the secondary that became active, back to the primary server as it was before.  Make sense?  Perhaps I'm still missing something
after reading the articles.  The powershell commands list just updating the topology after both servers come back online.

Similar Messages

  • Any good Power Shell command or script to see connected users in real time for Lync 2013

    Are there any good Power Shell commands or scripts that can tell you how many users are connected to a pool in real time so you can evaluate the current load. I have 3 FE servers in a single pool. We just started deploying the lync client to the users and
    were curious as to how many are actually connected. I saw a number of home made scripts but really didn't care for any of them. I just want to find out how many users that are actually connected to the pool at a particular moment so we can see how many users
    are really using the product.

    Have you looked at Pat Richard's get-csconnections script?: http://www.ehloworld.com/269
    Please mark posts as answers/helpful if it answers your question.
    Blog
    Lync Validator - Used to assist in the validation and documentation of Lync Server 2013.

  • How to run 'Get-AssignedAccess' or 'Set-AssignedAccess' power shell commands in c# Application

    Hi,
    I have console application using which i am trying to run power shell command  like 'Get-AssignedAccess' or 'Set-AssignedAccess'.
    i am using below code for this it is throwing exception 'Get-AssignedAccess' doesn't exist in cmdlet which is correct because these commands belongs to function category.
    using (PowerShell pwInstance = PowerShell.Create())
                            pwInstance .AddScript("Get-AssignedAccess");
                            var result = pwInstance .Invoke();
    How can we execute this kind of command using c#?
    Thanks,

    Hi prakashlight,
    Thank you for comming back and tell us the result. For more information about how to run PowerShell script in C# language, you can refer to this blogpost here:
    Executing PowerShell scripts from C#
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Power Shell Command using CSOM

    Hi,
    We have prepared a Power Shell command using Client Side scripts as per client requirements. The client did not had access to the SharePoint Server. So, PS commands with
    server side scripts was out of scope. 
    The client requirement was to delete all the permissions on the list that was being inherited from site. Since the number of users were huge, so deleting all the users using ribbon was not possible.
    Please have a look at the scripts below and let me know your feedback. If you have better suggestion than this, please let me know.
    #location of client dlls on users' local system
    $loc = "C:\SharePoint\ClientDLL" 
    //SharePoint Site URL
    $siteUrl = "" 
    #Write your Login ID
    $loginname = "" 
    #Write the Name of the List
    $listname = "" 
    Set-Location $loc 
    Add-Type -Path (Resolve-Path "Microsoft.SharePoint.Client.dll")
    Add-Type -Path (Resolve-Path "Microsoft.SharePoint.Client.Runtime.dll") 
    Write-Host "Please enter password for $($siteUrl):"
    $pwd = Read-Host -AsSecureString
    $ctx = New-Object Microsoft.SharePoint.Client.ClientContext($siteUrl) 
    Try
    # Remove or replace line below to change authentication method
    $ctx.Credentials = New-Object System.Net.NetworkCredential($loginname, $pwd) 
    $web = $ctx.Web
    $ctx.Load($web)
    $ctx.ExecuteQuery() 
    #Write-Host "Current web title is '$($web.Title)', $($web.Url)"  
    $list = $Web.Lists.GetByTitle($listname); 
    $ctx.Load($list); 
    $ctx.ExecuteQuery(); 
    Write-Host "Deleting Permissions on List : $($list.Title)" 
    if($list.HasUniquePermissions)
                    #Write-Host "Has Unique Permissions"
                    $list.ResetRoleInheritance()
                    $list.BreakRoleInheritance($false, $true)
                    Write-Host "Permissions deleted" -foregroundcolor Green
    if(-not $list.HasUniquePermissions)
                    #Write-Host "Does not has Unique Permissions"
                    $list.ResetRoleInheritance()
                    $list.BreakRoleInheritance($false, $true)
                    Write-Host "Permissions deleted" -foregroundcolor Green
    Catch
                    Write-Host "Some Error, Please Contact Administrator" -foregroundcolor Red
                    return
    $list.Update() 
    $ctx.ExecuteQuery();​
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

    Hi Sudheer,
    In Client-Side, we can also use .NET Client Object Model to achieve your requirement.
    Remove permission in Sharepoint List using Client Object Model
    https://rambabualaparthi.wordpress.com/2013/12/30/remove-permission-in-sharepoint-list-using-client-object-model/
    In order to better manage SharePoint in Client side, I suggest develop a Winform or WPF application and use .Net Client Object Model to achieve some requirements.
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to Execute Power Shell Command From Windows Application.

    Hi All Experts,
    I want to execute power shell commands from my windows application.
    Is it possible ?
    Please let me know your comments..
    Thanks.

    I have not tried this, but apprently it is easy as in the sample pasted below. please see this article for more details
    http://geekswithblogs.net/Norgean/archive/2012/09/19/running-powershell-from-within-sharepoint.aspx.
    Let me know how it goes...
    public string RunPowershell(string powershellText, SPWeb web, string param1, string param2) {
    // Powershell ~= RunspaceFactory - i.e. Create a powershell context
    var runspace = RunspaceFactory.CreateRunspace();
    var resultString = new StringBuilder();
    try
    // load the SharePoint snapin - Note: you cannot do this in the script itself (i.e. add-pssnapin etc does not work)
    PSSnapInException snapInError;
    runspace.RunspaceConfiguration.AddPSSnapIn("Microsoft.SharePoint.PowerShell", out snapInError);
    runspace.Open();
    // set a web variable.
    runspace.SessionStateProxy.SetVariable("webContext", web);
    // and some user defined parameters
    runspace.SessionStateProxy.SetVariable("param1", param1);
    runspace.SessionStateProxy.SetVariable("param2", param2);
    var pipeline = runspace.CreatePipeline();
    pipeline.Commands.AddScript(powershellText);
    // add a "return" variable
    pipeline.Commands.Add("Out-String");
    // execute!
    var results = pipeline.Invoke();
    // convert the script result into a single string
    foreach (PSObject obj in results)
    resultString.AppendLine(obj.ToString());
    finally
    // close the runspace
    runspace.Close();
    // consider logging the result. Or something.
    return resultString.ToString();
    Ok. We've written some code. Let us test it.
    var runner = new PowershellRunner();
    runner.RunPowershellScript(@"
    $web = Get-SPWeb 'http://server/web' # or $webContext
    $web.Title = $param1
    $web.Update()
    $web.Dispose()
    ", null, "New title", "not used");
    -Sangeetha

  • Multiple Job openings for front-end engineers

    We have multiple openings for front-end engineers. If you are familiar with JSP, XSL, Custom tags, etc and have a desire to work in an engineering driven company that is growing very fast please send your resume to [email protected]

    so look at library to work with bip by java api
    as example of merging Merging pdf documents using the BI-Publisher API&lt;/title&gt; //&lt;title&gt;AMIS Technology Blog &amp;raquo; Mergin…
    may be some split method exists
    so you can seek for some java api for working with pdf and as your report contain X customers on X pages thus customer per page then you can try to split by page

  • Power shell script for get a content db for a particular web application

    Hi
    what  is the power shell script for get a content db for a particular web application
    Get-SPDatabase 
    adil

    try this one
    Get-SPContentDatabase -webapplication http://url
    this will return all the database for the web applications.
    Get-SPContentDatabase -site http://contoso.com
    this will return the database name in which the contose site collection is.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Power Shell Script for Check Remote machinces are live or not

    I have required a Power Shell Script for Check multiple Remote machines are live or not.Please guide me

    This will do it.
    http://gallery.technet.microsoft.com/Ping-IP-Adress-Range-d90ce82d
    &#175;\_(ツ)_/&#175;

  • Shell command for opening the PDF

    Is there any shell command for opening the PDF Directly from Webdynpro...
    thanks and regards
    Dhinakar

    Hi,
       This is not possible in WD. That is because you cannot trigger anything on the client side in WD.
    Regards,
    Satyajit.

  • 3 Must have features for front-end developers

    I'm a front-end developer, so these requests are more or less specific to my job.
    Selecting an entire layer
    Currently: If you do a "ctrl-click" on a layer, it selects the layer. However, if you have filters or effects applied to the layer, it does not select those.
    The Problem: Since I cannot select the filters/effects, I have to zoom in on say a button with a drop shadow. I've been using png's heavily in my sites these days, and I want the drop shadow to be on a transparent background. It's difficult to zoom in and find the end of the drop shadow. You can change the transparency grid colors to help out, but it's still difficult and more importantly tedious and time consuming.
    What I want: I would like the ability to select everything on a layer by doing a "shift-ctrl-click" or something. That way if I make a button with a drop shadow, I can select the button and the filters/effects that are applied to it. This would also give me the correct size of the layer as well, which is helpful information to me during html/css layout.
    Organizing Groups/Layers
    Currently: You can create groups from layers, or create a group then drag the layer into the group.
    The Problem: When a PSD starts to get alot of layer/groups, it gets difficult to organize. If I create a new layer, or duplicate a layer group, my next step is to drag that group or layer into the proper group. My PSDs get very long, especially on homepage comps. I have to scroll up and down in the layers window to hunt for my group. Once I find the group I have to drag my new layers into it. This is annoying and clumsy.
    What I want: I want to simply right-click on any layer, group, selected layers, or linked layers and in the right click menu, there should be a "send to" option. The send to should have a tree of the current groups. Then just choose the group you want and the layers/groups etc move there.
    This will save me alot of time especially since my designers are lazy and don't organize things properly.
    Copying layers/groups to other documents
    Currently: To copy a layer/group from one file to another you have to take your files out of tab mode, then select, click and drag the layers/groups from one document to another.
    The Problem: I really enjoy tab mode, and it seems pointless to have to drag the layers/groups from one file to another. There needs to be more ways to accomplish this.
    What I want: I want to stay in tab mode, select my layers/groups and drag them to the tab I want to copy them to. So if I select a button, I should be able to simply drag it to another open file tab and it should copy those layers/groups to that file. Or another option would be to right click on the selected layers/group and do a have a "copy to" option where you can select another open document to send the layers/groups to.

    You can "send" layers & groups to another document with duplicate to the target document. Simply right-click the source layers in the Layers panel, choose Duplicate Layer...
    and in Destination, select the target document. No un-docking and dragging.

  • Power shell command not working in Power shell ISE

    I was looking for guidance on a problem I was having and found a post from
    Bigteddy on TechNet that had this command
    Get-ADUser -Identity sam -Properties memberof | select -ExpandProperty memberof
    I kept trying it many ways and it always fails in power shell ISE. 
    I get the below output
    The term 'Get-ADUser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of
    the name, or if a path was included, verify that the path is c
    orrect and try again.
    At line:1 char:11
    + Get-ADUser <<<< 
    -Identity rwhite -Properties memberof | select -ExpandProperty memberof
    + CategoryInfo         
    : ObjectNotFound: (Get-ADUser:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    I put the same command in the power shell module window and it works perfectly
    Any idea how I can make this work for striping purposes in power shell ise
    ronald white

    Import-Module ActiveDirectory
    If that returns an error, chances are that you do not have the module on your computer.  You can verify that by running
    Get-Module -ListAvailable
    Rich Prescott | Infrastructure Architect, Windows Engineer and PowerShell blogger | MCITP, MCTS, MCP
    Engineering Efficiency
    @Rich_Prescott
    Windows System Administration tool 2.0
    AD User Creation tool

  • Wanted: shell command for disabling shutdowns

    Hi @ all,
    I'm administering a little workgroup. Unfortunately most of them shut down their machines before going home.
    I found a way diabling the shutdown possibility (click on shutdown button doesnt invoke anything) by using Onyx.
    But I would like to diable this functions for all users without the need of installing Onyx on each and every machine.
    I'm certain that there must be a shell command, but I just wasnt able to google it up.
    Thanks for any help in advance
    joh

    Consider this link: http://bit.ly/bPiNDF
    Granted, it's for 10.5, but it should remain viable. I shouldn't need to remind you to test this on a non-production system first =)
    Just remember that even if you DO manage to make it very difficult for users to shutdown the system, users are very persistent, and you may soon find machines that are shutdown via the cord being pulled from the wall.
    It may be better to issue a policy that states that shutting down their machine is "wrong" or something to that effect.
    /A\V/
    Message was edited by: Deviros Fixed typo

  • Output for front end

    Hi,
    I've attended an interview on SQL and PL/SQL yesterday. Being a fresher I prepared only basic concepts. But I was posted a question regarding output for the front end application. The question is
    "I'm having an exception in a function from a package. Now I can get that in backend using dbms_output.put_line. Tell me how the front end guy will come to know about the error/exception"
    Please answer me

    >
    "I'm having an exception in a function from a package. Now I can get that in backend using dbms_output.put_line. Tell me how the front end guy will come to know about the error/exception"
    >
    Your question isn't clear.
    You can't get the exception in the back end using dbms_output unless you have an exception handler in the function. Then you can use dbms_output to capture the error code and message and use put_line to write it to a buffer.
    It is up to the code calling the function to request the text from the buffer.
    If you asking how a tool like sql*plus can get the dbms_output text then use SET SERVEROUTPUT ON and when the package function completes all DBMS_OUTPUT text will display.

  • HP TS 618QI... in need of power cord and for some reason my TS doesnt exist to even HP

    I have the TS 618QI and need a new power cord and for some strange reason my TS doesnt even exist to HP can someone please help me in finding a new cord please?????

    you mean the power cord to your AIO pc ? 
    you can go to the store and get those to replace your power cord
    if the cord is not the same you can order those at hp  
    http://h20141.www2.hp.com/hpparts/default.aspx?mscssid=A052DBDC0B1142C9AEEFF775A33B94F6&cc=US&lang=E...
    also you can call parts department if you not sure about your pc model    1-800-227-8164
    Please provide Kudos to whom has provided answers or
    good points or advice..
    Aslo if the questions or issues solved please check it
    "Accepted"
    Thanks and you are welcome _____ Rick

  • Shell command for mailbox DB, and public folder DB

    Are there any exchange shell commands that will list all mailbox databases on a server, including name, path where it resides and size.
    Same for public folder database(s).

    There you GO...
    Get-MailboxDatabase –Status | format-table Name,Server,LogFolderPath,EdbFilePath,DatabaseSize
    Get-PublicFolderDatabase –Status | format-table Name,Server,LogFolderPath,EdbFilePath,DatabaseSize
    Cheers,
    Gulab Prasad
    Technology Consultant
    Blog:
    http://www.exchangeranger.com    Twitter:
      LinkedIn:
       Check out CodeTwo’s tools for Exchange admins
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Maybe you are looking for