How to Install Chargeback Reports

 

Updated: May 13, 2016

Applies To: System Center 2012 SP1 - Service Manager, System Center 2012 R2 Service Manager

Chargeback reports in System Center 2012 – Service Manager consist of various files such as management pack files, Windows PowerShell scripts to import the management pack files, and a Microsoft Excel sample report. The first of the following procedures imports Service Manager management pack files and the second procedure imports management pack files on the Operations Manager management server.

All files that comprise chargeback reports are located in the Service Manager installation folder in the Chargeback subfolder. For example, if you installed Service Manager in C:\Program Files, then all chargeback report files will be located in C:\Program Files\Microsoft System Center 2012\Service Manager\Chargeback

You must have System Center 2012 – Service Manager SP1 or System Center 2012 R2 Service Manager installed and have administrative credentials on the server hosting the Service Manager and Operations Manager management servers in order to install chargeback report files. Additionally, System Center 2012 R2 Operations Manager must monitor System Center 2012 R2 Virtual Machine Manager servers.

For System Center 2012 R2 Service Manager only: The installation procedure below uses the ImportToSM.ps1 PowerShell script that uses parameters described in the following table. If you run the script without specifying any parameters, you are prompted for them.

Parameter Description
omServer Name of the Operations Manager server
omUsername User name of the account that has administrative access to the Operations Manager management server
omPassword Password of the account that has administrative access to the Operations Manager management server
smUsername User name of the account that has administrative access to the Service Manager management server
smPassword Password of the account that has administrative access to the Service Manager management server

Note


When you try to use chargeback after you have upgraded to System Center 2012 R2 Service Manager, your Operations Manager CI connector might stop synchronizing new System Center 2012 R2 Virtual Machine Manager objects, such as VMM clouds, if the VMM Server was upgraded to System Center 2012 R2 Virtual Machine Manager. This occurs because Service Manager does not have the correct version of the VMM management packs. Additionally, installing chargeback report files to the System Center 2012 R2 Operations Manager management server might fail after you upgrade System Center 2012 R2 Service Manager because the Dependencies folder does not contain the required management pack files. Use the following procedures to prepare for chargeback reports. If you have upgraded to Service Manager, see After Upgrading to System Center 2012 R2 - Service Manager for more information about preparing management pack files for Service Manager.

After you have installed chargeback report files on the Operations Manager and Service Manager management servers and configured the Operations Manager CI connector, you are ready to use chargeback report features.

To install chargeback report files on the Operations Manager management server

  1. Log on to the Operations Manager management server.

  2. In the Chargeback folder, copy the subfolder named Dependencies from the Service Manager management server to the Operations Manager management server.

  3. On the Operations Manager management server, start Windows PowerShell and then navigate to the Dependencies folder. For example, type cd Dependencies.

  4. If you have not already set execution policy to remotesigned, then type the following command, and then press ENTER:

    Set-ExecutionPolicy –force RemoteSigned  
    
  5. Type the following command, and then press ENTER to run the PowerShell script that imports chargeback management packs and that add chargeback functionality to Operations Mananger:

    .\ImportToOM.ps1  
    
  6. After the script has completed running, type exit, and then press ENTER to close the Administrator: Windows PowerShell window.

  7. Ensure that Operations Manager is connected to Virtual Machine Manager, as described at How to Connect VMM with Operations Manager.

  8. Ensure that Operations Manager has discovered information from virtual machine manager such as virtual network interface cards, virtual hard disks, clouds, and virtual machines.

To install chargeback reports on the Service Manager management server

  1. Log on to the System Center 2012 – Service Manager SP1 management server.

  2. On the computer where you want to run Windows PowerShell, click Start, click All Programs, click Microsoft System Center 2012, click Service Manager, and then click Service Manager Shell.

  3. If you have not already set execution policy to remotesigned, then type the following command, and then press ENTER:

    Set-ExecutionPolicy –force RemoteSigned  
    
  4. Navigate to the Chargeback folder. For example, type cd chargeback.

  5. Type the following command, and then press ENTER to run the PowerShell script that imports chargeback management packs and that add chargeback functionality to Service Manager:

    .\ImportToSM.ps1  
    
  6. After the script has completed running, type exit, and then press ENTER to close the Administrator: Windows PowerShell window.

  7. In the Service Manager console, click Data Warehouse, expand the Data Warehouse node, and then click Data Warehouse Jobs.

  8. In the list of data warehouse jobs, select MPSyncJob and then in the Task list, click Resume.

  9. Configure the Operations Manager CI connector and ensure that Service Manager has discovered the virtual machine information from Operations Manager. For more information about creating and synchronizing an Operations Manager CI connector, see How to Create a System Center Operations Manager Connector.

See Also

Installing and Configuring Chargeback Reports in System Center 2012 - Service Manager