locked
WebFront End RRS feed

  • Question

  • Is there any way to find which WFE is down?

    I have a scenario, where only few users get a 'HResult exception' error when they try to access sharepoint sites. They get this error for all the sites in a farm. If i do a IIS reset on alll the WFEs this error vanishes. How do i find which WFE the users are hitting?

    Thanks in Advance

    Jos

    Monday, September 16, 2013 10:34 AM

Answers

  • You may find out the ip address of the WFE if it helps. Nothing else comes to mind. I am sorry if I was not of much help

    You may use the GetHostAddresses mehtod for this purpose.

    public static void DoGetHostAddresses(string hostname)
    {
        IPAddress[] ips;
        ips = Dns.GetHostAddresses(hostname);
        Console.WriteLine("GetHostAddresses({0}) returns:", hostname);
        foreach (IPAddress ip in ips)
        {
            Console.WriteLine("    {0}", ip);
        }
    }

    Get more details here:

    http://msdn.microsoft.com/en-us/library/system.net.dns.gethostaddresses.aspx
    Wednesday, September 18, 2013 8:03 AM

All replies

  • Try something like below:

    "First, I created three small graphic files, each was three pixels wide and one pixel high.  In the first one, I made one pixel black.  In the second one, I made two pixels black, and as you might expect, in the third file I made three pixels black.

    Second, I named each file the same (WFE.gif) and then copied one file to each WFE.  In our farm, we had a WFE1, WFE2, and WFE3, so I copied the file with one pixel to WFE1, and two to WFE2, and three to WFE3.  I placed these files in the SharePoint images directory.  (On my server, here: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\IMAGES , but yours may differ.)

    Lastly, I added the image to the footers I used on my sites.  With the images all named the same, the WFEs just look to their images directory for the WFE.gif file.  However, since the graphics are different on each WFE, you can now easily determine which WFE served up your page!  Just look for the one, two, or three dots in your footer"

    http://geekswithblogs.net/kjones/archive/2010/10/29/142510.aspx

    Or you may create something like below wherein the farm administrators will always see which WFE the user is accessing.

    http://dcsharepointchick.blogspot.in/2013/01/show-sharepoint-wfe-server-name-on-all.html

    Let me know if this works for you.

    Monday, September 16, 2013 11:00 AM
  • Hi VermaVishal,

    I am looking for some solution kind of changing the url like "wfeservername:portno"

    Portno - is the port number assigned to the webapp. Will this do any good?

    I am asking for this bcoz i only have read access in the WFEs. I cannot add any files to the server.

    Monday, September 16, 2013 1:41 PM
  • You may find out the ip address of the WFE if it helps. Nothing else comes to mind. I am sorry if I was not of much help

    You may use the GetHostAddresses mehtod for this purpose.

    public static void DoGetHostAddresses(string hostname)
    {
        IPAddress[] ips;
        ips = Dns.GetHostAddresses(hostname);
        Console.WriteLine("GetHostAddresses({0}) returns:", hostname);
        foreach (IPAddress ip in ips)
        {
            Console.WriteLine("    {0}", ip);
        }
    }

    Get more details here:

    http://msdn.microsoft.com/en-us/library/system.net.dns.gethostaddresses.aspx
    Wednesday, September 18, 2013 8:03 AM