Post-installation and Configuration for FIM 2010 R2 Reporting
Post-Installation and Configuration for FIM 2010 R2 Reporting
Once the installation has completed, the following additional steps must be performed. The Data Warehouse Support Scripts must be run on the Data Warehouse. After this a series of PowerShell scripts need to be run. The following tasks need to be completed after FIM Reporting is installed
Verify Initial MPSynch Job has completed for Reporting
Deploy the FIM Data Warehouse Support Scripts
Verify SQL Agent Jobs have been installed
Run Start-FIMReportingInitialSync PowerShell Cmdlet
Run Start-FIMReportingIncrementalSync PowerShell Cmdlet
Run ETLScript PowerShell Script
Verify Initial MPSynch Job has completed for Reporting
Prior to deploying the FIM Data Warehouse Support Scripts we must ensure that the initial MPSynch job has completed and that the reports are visible within SCSM.
Warning
This initial process can take some time put is required before continuing on to the next section.
To Verify Initial MPSyncJob has completed for Reporting
Log on to the SCSM Management Server with the appropriate credentials.
Click Start, select All Programs, select Microsoft System Center and select Service Manager Console. This will launch the Service Manager Console. This may take a moment.
In the Service Manager Console, at the bottom on the left, click Data Warehouse.
At the top, on the left, double-click Data Warehouse Jobs. This will populate the center with the Data Warehouse Jobs.
Double-click MPSyncJob. This will bring up a window with the job details.
At the top of this window, click Management Pack to sort the jobs by Management Pack.
Scroll down to the jobs that have a Management Pack name that begins with Microsoft.FIM_ and Microsoft.Forefront. Verify the status of these jobs as either Associated or Imported. If any of these jobs have a status of Pending Association you must wait until the status becomes Associated or Imported.
Close the job details.
Back in the System Center Service Manager Console, on the left, at the bottom, click Reporting.
Verify that at the top, on the left, Forefront Identity Manager Reporting is visible.
Click on Forefront Identity Manager Reporting and verify that 8 reports are present in the center pane.
Close the System Center Service Manager Console.
Deploy the FIM Data Warehouse Support Scripts
Once the installation has completed the Data Warehouse Support Scripts must be run on the Data Warehouse. Use the following procedure to run the Data Warehouse Support script. These scripts are included on the Forefront Identity 2010 R2 installation media.
Warning
You need to ensure that you have administrative permissions on the following databases prior to running this script:
- DWDataMart
- DWStagingAndConfig
- DWRepository
To Deploy FIM Data Warehouse Support Scripts
Log on to the Data Warehouse server as a user with the appropriate credentials.
Copy the entire Data Warehouse Support Scripts folder to a location on the local disk of the Data Warehouse machine.
Warning
You must ensure that your Data Warehouse machine has PowerShell v2 installed. If it does not, please install PowerShell v2 by downloading and installing the Windows Update package found here: https://support.microsoft.com/kb/968930
On the Data Warehouse server, open a PowerShell v2 prompt and navigate to the Data Warehouse Support Scripts directory you just copied. In this directory, you will notice a PowerShell script called FIMPostInstallScriptsForDataWarehouse.ps1. Run this script.
Important
This script must be run with an account that has DBOwner privileges on the following Data Warehouse Databases: DWStagingAndConfig, DWDataMart, and DWRepository.
Note
Depending on your environment’s settings, you may need to run the PowerShell command Set-ExecutionPolicy Unrestricted before being able to execute these scripts.
You will be prompted for the name of your Data Warehouse server, the Data Warehouse SQL instance, and the FIM Service Account name. If you are running the scripts locally on to the DW, enter localhost for the DataWarehouseServerInstance.
For the DataWarehouseDatabaseServerInstance enter localhost.
For the FIM Service account, enter the FIM Service account. Hit enter. You will be prompted to backup the database prior to continuing. Enter Y.
Warning
The account executing this script must be a different account than the FIM Service account. If you receive an error when executing, please ensure that you not logged in with the FIM Service account and that you are logged on with account with administrative privileges to the databases specified above.
For a complete step-by-step installation see Test Lab Guide: Installing Forefront Identity Manager 2010 R2.
Verify SQL Agent Jobs have been installed
When FIM 2010 R2 Reporting is installed an several SQL Agent jobs are created on the FIMService instance. In instances where there is more than one FIM Service installed, the FIM services which have reporting installed will periodically check for a reporting object that is not yet running. The first service that finds the job will pick up the token for that job and process till the job is complete or a failure occurs. While the job is being processed no new jobs can be created nor can the job be taken over by another FIM Service.
The following table provides a list of the SQL Agent jobs that are installed:
SQL Agent Job | Description |
---|---|
FIM_CheckAndUpdateReportingJobStatusJob |
Periodically checks reporting jobs (incremental or initial) and determines and writes their status. |
FIM_TerminateStuckRequestsJob |
Fails a reporting job if the check and update determines that the reporting job is stuck and markes the reporting job object. |
FIM_ScheduleReportingIncrementalSynchronizationJob |
Creates runnable reporting job object that FIMSerivce instance will poll for periodically and when it finds this object it spins up the job process to perform the reporting job. Runs every 8 hours. Will fail with an error until initial synchronization has been completed. This is by design. |
FIM_TruncateExportLogJob |
This periodically will determine the portion of the export log available for deletion and will delete accordingly. |
Use the following procedure to verify the SQL Agent jobs have been installed
To Verify the SQL Agent Jobs using SQL Server Management Studio
Log on to the server that has the FIMService database with the appropriate credentials.
Click Start, click All Programs, click Microsoft SQL Server 2008 R2, and then click SQL Server Management Studio. This will launch SQL Server Management Studio.
On the Connect to Server dialog box, under Server Type select Database Engine.
On the Connect to Server dialog box, under Server name select <nameofserver>.
On the Connect to Server dialog box, under Authentication select Windows Authentication.
Click Connect. This should be successful and the database information will be displayed on the left. The SQL Server Agent should have a green arrow.
On the left, at the bottom, expand SQL Server Agent.
Expand, Jobs and verify that the SQL Agent jobs are there.
Close Microsoft SQL Server Management Studio.
Run Start-FIMReportingInitialSync PowerShell Cmdlet
Now we will run the Start-FIMReportingInitialSync PowerShell Cmdlet. This will synchronize all of the data in the FIM Portal with our Data Warehouse.
To Run Start-FIMReportingInitialSync PowerShell Cmdlet
Click Start, select All Programs, select Accessories, Select Windows PowerShell and click on Windows PowerShell. This will open Windows PowerShell
On the command line type the following and hit return Set-ExecutionPolicy unrestricted. This will bring up a message about the execution policy. Click Y.
On the command line type the following and hit return Start-FIMReportingInitialSync. It will briefly flash an Importing change 1 message.
Important
If the script is not in the users PATH, you can access it by navigating to C:\Program Files\Microsoft Forefront Identity Manager\2010\Reporting\PowerShell
To check the status of our job, go back into the FIM Portal.
On the left, at the bottom click Administration.
On the Administration page click All Resources.
On the All Resources page, scroll down and double-click Reporting Job. On the Reporting Job screen you will see our job with a Reporting Job Type of Initial.
Double-click on Reporting Job under Display Name. This will bring up the attributes of this job. At the top click the Extended Attributes tab.
On the Extended Attributes, note the Reporting Job Status. If this says Running then wait. Otherwise, if it says Completed close the Reporting Job attributes.
Minimize Internet Explorer.
Run Start-FIMReportingIncrementalSync PowerShell Cmdlet
Now we will run the Start-FIMReportingIncrementalSync PowerShell Cmdlet. This will synchronize all deltas from the FIM Portal with our Data Warehouse on APP3.
To Run Start-FIMReportingIncrementalSync PowerShell Cmdlet
Back in Windows PowerShell, on the command line type the following and hit return Start-FIMReportingIncrementalSync. . It will briefly flash an Importing change 1 message.
To check the status of our job, go back into the FIM Portal.
On the left, at the bottom click Administration.
On the Administration page click All Resources.
On the All Resources page, scroll down and double-click Reporting Job. On the Reporting Job screen you will see our job with a Reporting Job Type of Incremental.
Double-click on Reporting Job under Display Name. This will bring up the attributes of this job. At the top click the Extended Attributes tab.
On the Extended Attributes, note the Reporting Job Status. If this says Running then wait. Otherwise, if it says Completed close the Reporting Job attributes. You will have to close and re-open the job in the FIM Portal to see the status change. It will not change automatically.
Minimize Internet Explorer.
Run ETLScript PowerShell Script
Now we will create and run the ETLScript PowerShell Script. This step is an optional step but it allows us to see the data immediately in the reporting store. For additional information about managing the data warehouse see Managing the Data Warehouse in Service Manager (https://technet.microsoft.com/en-us/library/ff460931.aspx).
For this procedure, use the script that is in the FIM 2010 R2 Reporting ETL Process section below.
Note
You can speed up your initial reporting load process by running this script in a loop while FIM Initial ETL is running.
Run ETLScript PowerShell Script
Click Start, select All Programs, select Accessories, select Windows PowerShell and click on Windows PowerShell. This will open Windows PowerShell.
On the command line type the following and hit return Add-PSSnapin SMCmdletSnapIn.
On the command line type the following and hit return [environment]::SetEnvironmentVariable(“IMT.DataWarehouse”, “APP3”).
Note
For your environment, change APP3 to the name of your Data Warehouse server.
On the command line type the following and hit return C:\ETL\ETLScript.ps1.
Warning
This will take a while to run. It will take about 30-35 minutes and information will populate the PowerShell window.