4.26 PrinterQueue

Use this Knowledge Script to monitor a printer’s queue length. This script checks the number of queued print jobs for a specified printer. You need to specify the name of the computer that serves the printer and the printer’s share name. This script raises an event if the number of queued jobs exceeds the threshold you specify. In addition, this script generates datastreams for queue length.

NOTE:

  • Before running this script, ensure the AppManager agent service, NetIQmc, is set to run as a domain user account user in the same domain as, or a domain trusted by, the target computer. Use the Services Control Panel to identify an account for the service to run as.

  • To run this Knowledge Script successfully, avoid using special characters such as /, -, and # when defining the printer name on the monitored computers.

    Also, if you run the Discovery_NT Knowledge Script and then delete a local or network printer, run Discovery_NT again.

4.26.1 Resource Objects

Windows 2003 Server or later

NOTE:This script is not supported on 64-bit systems.

4.26.2 Default Schedule

The default schedule for this script is Every hour.

4.26.3 Setting Parameter Values

Set the following parameters as needed:

Description

How to Set It

Raise event?

Set to y to raise an event if the number of queued jobs exceeds the threshold. The default is y.

Collect data?

Set to y to collect data for charts and reports. If enabled, data collection returns the number of queued print jobs at each interval. The default is n.

Printer server’s hostname

Provide the name of the computer that serves the printer you want to monitor.

Server's share name for printer

Provide the name of the share used by the printer server for the printer you want to monitor.

Maximum print queue threshold

Specify the maximum number of print jobs that can be waiting in the queue before an event is raised. The default is 10.

Event severity level

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the number of queued jobs exceeds the threshold. The default is 8 (red event indicator).