About Me

My photo
Muthupet, TamilNadu, India
SharePoint 2010

Thursday, January 30, 2014

SharePoint Server 2010 Service Pack 2 has been released (Updated July 31st, 2013)

Service Pack 2 for the SharePoint 2010 Product Family has been released today.
Below you can find the KB and download links:
SharePoint Server 2010 SP2KB268745364-bit
Office Server Language Pack SP2KB268746264-bit
SharePoint Foundation 2010 SP2KB268746464-bit
SharePoint Foundation 2010 Language Pack SP2KB268746664-bit
FAST Search Server 2010 for SharePoint SP2KB268744664-bit
Office Web Apps 2010 SP2KB268747064-bit
Project Server 2010 SP2KB268745264-bit
Search Server 2010 SP2KB268746164-bit
SharePoint 2010 Indexing Connector for Documentum SP2KB268745964-bit
SharePoint Designer 2010 SP2KB268746332-bit64-bit
SharePoint Foundation 2010 Client Object Model Redistributable SP2KB268746732-bit64-bit

Apply August 2010 Cumulative Update on SharePoint Server 2010

Time to patch up… 
Aug CU 2010 released, it is very simplified form this time than the June CU 2010. There are full packages available for each product.
Check our KB articles for getting more information about what are the fixes available and the modified files information.
  • KB 2352346 - SharePoint Foundation 2010
  • KB 2352342 - SharePoint Server 2010
  • KB 2352345 - SharePoint Server 2010 with Project Server
As you see there is a separate Full Server Package for SharePoint Server 2010 with Project Server which simplifies patching of this common installation.
The Full Server Packages for August 2010 CU can be downloaded here:
In this post, I am going to walkthrough how we can install August CU 2010 in our SharePoint Server 2010 farm. I have a very small farm (test environment)
1 WFE , 1 Application Server and another server with DC and SQL Server. (OS : Windows 2008 R2 Ent Edition)
RTM Version : 14.0.4763.1000
Once we apply August CU 2010 the new version would be: 14.0.5123.5000
I have installed 4 language packs (Hindi, Arabic, Spanish & Japanese) and Office Web Access in my SharePoint Server 2010 Farm.
As you can see SharePoint Server 2010 CU full package coming with patches for SharePoint Foundation 2010, so no need to install SharePoint Foundation 2010 August CU before applying SharePoint Server 2010 August CU.
If you are applying the patch in the production farm, plan it properly and backup the DBs before applying the patch.
Let’s start….
1.       Install the bits in all SharePoint servers by double clicking office-kb2352342-fullfile-x64-glb.exe , do not run the Post Setup Configuration immediately after the installation in a server farm. If installation of bits are not completed in all servers, once we try to run the PSConfig wizard it will detect that and it won’t continue. So make sure that all servers are installed with the Aug CU 2010 bits.
 image
2.       After installing the bits in each server, run the Post Setup Configuration Wizard in the Application server. In SPS 2010 you can even run the PSConfig wizard parallel in all SharePoint Servers. In behind it is not updating each server parallel, instead each server will wait for other servers to complete the update by making a lock in it, once other servers are done with the update the lock will release and it will continue with the upgrade.  
Eg: see the screen shot below: 
   clip_image001 
3.       After completing all tasks of PSConfig setup in all servers it will open the SharePoint central administration website. In my test environment the PSConfig failed at 10th step with an error says that it can’t get the resource information of one language pack. I was able to fix it by running the PSConfig in the command line. 
14\Bin>PSConfig.exe –cmd upgrade –inplace b2b –wait -force 
Whenever we use PSConfig wizard , it will issue a timer job to do the upgrade, notice that in the command line version there are two parameters –wait and –force, -wait means do not issue a timer job instead do the upgrade directly, -force will remove any timer jobs stuck while running PSConfig wizard previously.  
Below screenshot is how it will look like. 
   clip_image002 
If there are any issues you will get more information about the exact exception from the PSConfig Setup logs from the 14/logs/ folder.
4.       Next step is validating the installation. First check the version number of your SharePoint Server farm. 
a)       Open Central Administration à System Settings à Manage Servers in this farm (under servers ) 
Like the below screen shot, this page will list out all servers with the details of language packs, services and the configuration database version which will be: 14.0.5123.5000. Status column will inform you whether we need any further action or not in any of the servers (eg: if you haven’t run the PSConfig wizard) 
                        clip_image004 
b)       Next step is checking the upgrade status.
Central Administration à Upgrade and Migration à Check upgrade status.
We can see that my app server was failed once but succeeded later.  
clip_image006 
c)       Next step is review the database status  
Central Administration à Upgrade and Migration à Check upgrade status.  
Here we can double check and confirm whether any databases are need to be upgraded.  
clip_image008 
d)       Next step is check the product and patch installation status  
Central Administration à Upgrade and Migration à Check product and patch installation status. This is really new status page in 2010 and here we can see the old version and new version of each installed components.
                        clip_image010
e)       Run Stsadm –o localupgradestatus to get the complete information for successful upgraded site collections. You have to run it as an administrator in all SharePoint Servers in the farm.
                        clip_image011
f)        Once all tests are done then test SharePoint sites, service applications etc.  
For more information:  
Verify the upgrade status and do a smoke test : http://technet.microsoft.com/en-us/library/cc424972.aspx
strongly recommend to follow the link for planning and installing updates for SharePoint 2010 : http://technet.microsoft.com/en-us/sharepoint/ff800847.aspx 
Happy patching...

-Saravanan.J

Monday, January 6, 2014

Correlation ID using Powershell

Correlation ID, what’s that?
In SharePoint 2010, you get a Correlation ID (which is a GUID) attached to your logs/error messages when something happens. This ID can then be used to lookup that specific error from the logs.
This Correlation ID is used per request-session in SharePoint 2010, and if you are in the process of requesting some information from SharePoint and bump into some problems along the way – your Correlation ID will be the best starting point for searching for what went wrong along that request!
You might get an error message like this in SharePoint 2010 (don’t worry, if you haven’t seen one like this one yet – just hang in there, sooner or later you will.. )

image

Search for the log messages based on the Correlation ID token
So if you’ve gotten such an error message and want to find out more information about the actual error and don’t have the time to go around poking in the logs and searching – there’s a few methods you can do this rather easily, as described below.

Using PowerShell to lookup a log message based on Correlation ID token

One of the quick-n-awesome ways to do this is to simply hook up a PowerShell console (SharePoint 2010 Management Shell) and then just write the following command (replace the <GUID> with the Correlation Id):

    get-splogevent | ?{$_Correlation -eq "<GUID>" }

This will give you the details about your specific error like this in the console:
image
image
You might want to be more precise and get more specific details out of your query, then you can try something like this:

    get-splogevent | ?{$_.Correlation -eq "<GUID>"} | select Area, Category, Level, EventID, Message | Format-List

This will give you the details about your specific error like this with some juicy details:
image
image
Finally if you would want these messages to be put into a text or log file instead, you could just add the classic “> C:Awesome.log” after the command like this:

    get-splogevent | ?{$_.Correlation -eq "<GUID>"} | select Area, Category, Level, EventID, Message | Format-List > C:Awesome.log

image
image
On MSDN they have an overvoew of using SP-GetLogEvent which I would recommend!
- See more at: http://zimmergren.net/technical/sp-2010-find-error-messages-with-a-correlation-id-token-in-sharepoint-2010#sthash.gkazJbvv.dpuf