kamagra how much to take

Free Server Name WebPart Which WFE Is Servicing a SharePoint Request

This is probably the most nominal WebPart I have ever seen / written but I really needed it this morning. As you can guess it just uses a ServerVariables object (off the current context request) to expose the relevant environment variables, in this case just the server name.

The reason this came about was in large SharePoint farms it is notably important when doing certain types of architecture troubleshooting to know which WFE you are hitting. And….well…that’s really it. At least you don’t have to put the WSP together I guess.

So this is what that WebPart does. Just install the WSP and deploy it in Central Admin (as noted in previous posts, I never automate the deployment step).

10-13-2009 10-07-51 AMThe WebPart is Feature activated. In the site collection features, locate the Server Name WebPart feature and activate it.

10-13-2009 10-10-07 AM

Once activated, you will find the WebPart under the ARB Security Solutions header in the WebPart gallery.

10-13-2009 10-13-01 AM

Add it to the page, and it will display the server name in the SharePoint farm responding.

10-13-2009 10-13-51 AM

EDIT:

Well I guess I should actually give a download link :)

DOWNLOAD THE SERVER NAME WEBPART INSTALL PACKAGE

Share

6 Comments

  1. Jonathan ROUSSEL says:

    Hi,

    I think you should be able to realize this without any dev using a DataViewWebPart to display the SERVER_NAME IIS variable (see http://blogs.msdn.com/joshuag/archive/2008/06/03/getting-the-current-user-name-or-id-in-sharepoint-using-sharepoint-designer-no-code.aspx and http://msdn.microsoft.com/en-us/library/ms524602.aspx).
    True, it wouldn’t be as portable.

    Joe

  2. adam says:

    Portability being important, however a DVWP approach will unghost the page as well, arguably more important.

  3. Jonathan ROUSSEL says:

    Well you can easily create a DVWP without unghosting the specific page it will sit on.
    Juste create a “test/dev” page, thn create your DVWP on this page. Then Export/Import the web part on another page. And, bing, you have got it, a DVWP on a ghosted page.

  4. adam says:

    Don’t you find that much more cumbersome than deploying a Feature controlled WebPart with no gallery hooks?

  5. Etienne says:

    It is not giving the WFE Name but the HostHeader, so this is useless.

  6. Mod Kahiel says:

    another no code simple solution is to add an image to layouts/images directory in each front end. Then change the image in each wfe to reflect name do WFE say WFE1 and WFE2

    Now in any pages, insert a link to _layouts/images/

    One issue, you need to refresh the page to get the latest image from server not from cash.

Trackbacks/Pingbacks

  1. Links (10/15/2009) « Steve Pietrek – Everything SharePoint - [...] Free Server Name WebPart – Which WFE Is Servicing a SharePoint Request [...]
  2. Czech Information Worker Community » Free Server Name WebPart - [...] more info & download: Free Server Name WebPart – Which WFE Is Servicing a SharePoint Request [...]

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>