Appendix: Scripts for the Print Server Management Pack
Applies To: Operations Manager 2007
The Print Server Management Pack includes Print Server 2003–specific scripts and Print Server 2008–specific scripts.
The following script applies to Print Server 2008:
Printer—Object Discovery
This script discovers all printers and attributes on a computer running the Print Server 2008 Server Role.
The following scripts apply to Print Server 2003:
Print Server—Delete All Print Jobs
This script deletes all scheduled print jobs on a Print Server. It is initiated by the Delete All Print Jobs task. There are no associated rules or script parameters.
Print Server—Resume All Paused Printers
This script resumes all Print Servers that are paused. It is initiated by the Resume All Paused Printers task. There are no associated rules or script parameters.
Print Server—Service Discovery
This script discovers all shared printers on a computer and populates attributes for a Print Server. There are no associated script parameters. The following table lists the associated event rules for this script.
Location Event Rule Default Value Windows 2000 Print Server
Run Service Discovery
Enabled
Windows 2003 Print Server
Print Server — State Monitoring
The Print Server Management Pack provides state monitoring for Print Servers. Operations Manager 2007 queries each printer and then consolidates the status returned from all Print Servers. The final state is determined by the printer with the worst state. When querying Print Servers, Operations Manager 2007 uses the parameter values of the “Print Server — State Monitoring” script, which are configurable.
The following table describes the Print Server Management Pack state monitoring definitions, using the default values of the “Print Server — State Monitoring” script parameters.
Item Green Yellow Red Printers
By default, none of the printers has a “Service Requested” status.
By default, at least one printer has a “Service Requested” status.
Service
Spooler Service is running properly.
Spooler Service is stopped.
This script reports state for computers running Print Services. The following table lists the associated event rules for this script.
Location Event Rule Default Value Windows 2000 Print Server
Run Service Discovery
Enabled
Windows 2003 Print Server
Script Parameter Description Default Value AlertSeverityonUnknownStatus
The severity of the alert to be raised if a printer returns a status of “Unknown”
None
AlertSeverityonOtherStatus
The severity of the alert to be raised if a printer returns a status of “Other”
None
AlertSeverityonNoErrorStatus
The severity of the alert to be raised if a printer returns a status of “No Error”
None
AlertSeverityonLowPaperStatus
The severity of the alert to be raised if a printer returns a status of “Low Paper”
None
AlertSeverityonNoPaperStatus
The severity of the alert to be raised if a printer returns a status of “No Paper”
None
AlertSeverityonLowTonerStatus
The severity of the alert to be raised if a printer returns a status of “Low Toner”
None
AlertSeverityonNoTonerStatus
The severity of the alert to be raised if a printer returns a status of “No Toner”
None
AlertSeverityonDoorOpenStatus
The severity of the alert to be raised if a printer returns a status of “Door Open”
None
AlertSeverityonJammedStatus
The severity of the alert to be raised if a printer returns a status of “Jammed”
None
AlertSeverityonOfflineStatus
The severity of the alert to be raised if a printer returns a status of “Offline”
None
AlertSeverityonServiceRequestedStatus
The severity of the alert to be raised if a printer returns a status of “Service Requested”
Warning
AlertSeverityonOutputBinFullStatus
The severity of the alert to be raised if a printer returns a status of “Output Bin Full
None
Value State Color None
Green
Success
Information
Warning
Yellow
Error
Critical Error
Red
Security Breach
Service Unavailable
Microsoft Windows Print Server Detection
This script discovers Print Servers, while differentiating between servers that contain shared printers and servers that do not. The script then adds the discovered servers to the appropriate computer group. There are no associated script parameters. The following table lists the associated event rules for this script.
Location Event Rule Default Value Windows (All Versions)
Print Server Detection and Group Membership
Enabled