Contact Info

Crumbtrail

ActiveXperts.com » Support » Network Monitor » KB Article

Knowledge Base FAQ Item #6980015

 

Q6980015: I have a Windows server with printers installed. The printers are IP printers on the network. The server is able to see the status, online/offline/etc. But Network Monitor always reports the printer as down. What could be the problem?

ActiveXperts uses WMI (Windows Management Instrumentation) to collect data about (remote) Windows machines. WMI is part of Windows operating systems and installed by default. First check out the following:

WMI can use WinRM (preferred), or DCOM (legacy). In ActiveXperts, the WMI operation mode can be set per server. By default, the global WMI operation mode is used; see Tools->Options->{Windows Machines} in the Manager application.

Ensure that Windows WMI services are running on the monitoring server and the monitored server, and that firewall settings do not prevent you from accessing the remote computer via WMI.

 

Troubelshoot Printer monitoring using WMI/WinRM

Run the following Powershell command to query Printer usage using WMI through WinRM:

Get-WSManInstance -ComputerName computername -Enumerate -ResourceURI wmicimv2/* -Filter "SELECT * FROM Win32_Printer" | Select-Object Name,PrinterStatus

or (with alternate credentials):

# Prompt to enter the username and password
$objCred = Get-Credential 
# Call Get-WSManInstance
Get-WSManInstance -ComputerName computername -Credential $objCred -Enumerate -ResourceURI wmicimv2/* -Filter "SELECT * FROM Win32_Printer" | Select-Object Name,PrinterStatus

To verify WMI access through WinRM, see FAQ #Q7260015

 

Troubelshoot Printer monitoring using WMI/DCOM

Run the following command to query Printer usage using WMI through DCOM:

WMIC /node:computername PATH Win32_Printer GET Name, PrinterStatus

or (with alternate credentials):

WMIC /node:computername /user:user /password:password PATH Win32_Printer GET Name, PrinterStatus 

To verify WMI access through DCOM, see FAQ #Q7250015

 

Possible PrinterStatus Values

  • 0 - Idle
  • 1 - Paused
  • 2 - Error
  • 3 - Pending Deletion
  • 4 - Paper Jam
  • 5 - Paper Out
  • 6 - Manual Feed
  • 7 - Paper Problem
  • 8 - Offline
  • 9 - I/O Active
  • 10 - Busy
  • 11 - Printing
  • 12 - Output Bin Full
  • 13 - Not Available
  • 14 - Waiting
  • 15 - Processing
  • 16 - Initialization
  • 17 - Warming Up
  • 18 - Toner Low
  • 19 - No Toner
  • 20 - Page Punt
  • 21 - User Intervention Required
  • 22 - Out of Memory
  • 23 - Door Open
  • 24 - Server_Unknown
  • 25 - Power Save
(viewed: 1675)