Use the variationsfixuptool operation This article describes how to use the Stsadm variationsfixuptool operation, which lets farm administrators control and perform operations against variations. Pre-upgrade scanning and reporting for future releases (Office SharePoint Server) This article describes how to use the Stsadm preupgradecheck operation to scan farm servers before starting an upgrade to ensure that some upgrade prerequisites are met and to detect known issues that can prevent the upgrade from completing successfully
See more here:
New STSADM commands with SharePoint SP2