11.24 SendReportToPrinter

Use this Knowledge Script to send a report to the printer that acts as the default printer for the managed client computer where the Report agent is running.

When running this script, consider the following:

  • Install the Report agent and the Windows Management Server on the same computer.

  • On the computer where the Report agent is installed, configure the managed client to run as user. Ensure that this user account has a default printer configured.

  • Configure the URLMapping registry key to change the default output path of the Report agent to <hostname>\AMReports\report. Use the AMAdmin_SetReportPaths Knowledge Script to change the output path.

    NOTE:You can also manually configure the output path of the Report agent. At a command prompt, enter regedit. In the Registry Editor window, navigate to NetIQ\Common\AMREPORTS. In the right panel, right-click on URLMapping and select Modify. In the Edit String dialog box, enter <hostname>\AMReports\report in the Value data field, then click OK.

  • To use this Action when you are configuring report properties, click the Action tab, click New, select SendReportToPrinter, and then change the Location to MC.

11.24.1 Configuring the Managed Client to Run As User

Before you can use SendReportToPrinter, you must create a user for the NetIQ Client Resource Monitor (NetIQmc, also called the managed client) service on the computer where the Report agent is installed. The log-on type for this service is probably LocalSystem — but you cannot enable the printer function from a LocalSystem logon account.

To create a user for the managed client:

  1. From the Windows Control Panel of the computer you want to configure, double-click Administrative Tools, and then double-click Services.

  2. Right-click NetIQ AppManager Client Resource Monitor, and select Properties.

  3. Click the Logon tab. If Local System account is selected, select This account and enter your user ID and password in the appropriate fields.

  4. Ensure the user ID and password have permission to access the AppManager repository.

  5. Click OK. In the Services window, notice that the Logon As information for NetIQ AppManager Client Resource Monitor has changed from LocalSystem to your username.

  6. In the Services window, right-click NetIQ AppManager Client Resource Monitor and select Restart. Once the service stops and restarts, it is ready to accept printer requests.

11.24.2 Using SendReportToPrinter to Print a PDF

You can use the SendReportToPrinter Action to print your report as a PDF (Portable Document Format) file. You must have PDF conversion software installed on the Report agent computer.

To print a report as a PDF:

  1. Install your PDF conversion software on the Report agent computer. Refer to your PDF software documentation for details about installation and preferences.

  2. On the Report agent computer, set the PDF computer as the default printer.

  3. Configure your report properties.

  4. On the Action tab, click New, select SendReportToPrinter, and then change Location to MC.

  5. Generate your report. Look for the PDF in the default location specified by your conversion software.

11.24.3 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Raise event if job succeeds?

Set to y to raise an event if the process is successful. The default is n.

Event severity when...

Set the event severity level, from 1 to 40, to indicate the importance of the event when:

  • ... job succeeds. The default is 25 (blue event indicator).

  • ... job fails. The default is 5 (red event indicator).