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).
The WebPart is Feature activated. In the site collection features, locate the Server Name WebPart feature and activate it.
Once activated, you will find the WebPart under the ARB Security Solutions header in the WebPart gallery.
Add it to the page, and it will display the server name in the SharePoint farm responding.
EDIT:
Well I guess I should actually give a download link
DOWNLOAD THE SERVER NAME WEBPART INSTALL PACKAGE
6 Comments »
RSS feed for comments on this post. TrackBack URL





















Articles & Research
SharePoint Architecture
Personal/Off-Topic
Latest Free SharePoint Software
SecureCenter For SharePoint
SharePoint Security Assurance Program™
Free Online SharePoint Security Tools
Online SharePoint Security Health Assessment



Article Or Research Filed Under 
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
Comment by Jonathan ROUSSEL — October 14, 2009 @ 12:43 am
Portability being important, however a DVWP approach will unghost the page as well, arguably more important.
Comment by adam — October 14, 2009 @ 8:01 am
[...] Free Server Name WebPart – Which WFE Is Servicing a SharePoint Request [...]
Pingback by Links (10/15/2009) « Steve Pietrek – Everything SharePoint — October 15, 2009 @ 4:36 pm
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.
Comment by Jonathan ROUSSEL — October 16, 2009 @ 12:45 am
Don’t you find that much more cumbersome than deploying a Feature controlled WebPart with no gallery hooks?
Comment by adam — October 16, 2009 @ 6:26 am
[...] more info & download: Free Server Name WebPart – Which WFE Is Servicing a SharePoint Request [...]
Pingback by Czech Information Worker Community » Free Server Name WebPart — November 7, 2009 @ 1:11 pm