Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.10.0 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Can we know if a printer is not connected ?

Hi,

I am working for a company that want to install ocs inventory to keep tract of all the printers connected and not connected to the network. It's been a few days that I am on this project and, I am kind of blocked.

I have installed an ocs agent on my computer and when I plug in a printer, I see that it appared on the printers list but when I plug out the printer, it's still appeared on the printers list, even when I update the inventory.

Does somebody know what is the problem ? Is it maybe impossible to know if a printer is not connected to the network or to a specific computer with ocs inventory ?
in OCS Inventory NG agent for Windows by (520 points)
retagged by

4 Answers

0 votes
OCS Inventory NG is not a solution for supervision (like Nagios, Zabbix, ...).

The best is to use network connected printer : they have an ip address, so a simple ping give an answer (and if they support SNMP, it's possible to retrieve lot of informations like page count, ...). It's easy with Nagios or Zabbix to get informations.

For USB printer, they depend of the computer and they could appears in printers list even disconnected : maybe asking Windows with scripts ?
by (10.5k points)
0 votes

Hi, 

Thank you for you answer. 

I didn't specify but my problem happens when I use a USB printer. 

What did you mean by "For USB printer, they depend of the computer..." ? Can you be more specific about the part where I can ask Windows with scripts ?

by (520 points)
0 votes
On a Windows computer, you may have a USB printer and you can share it with colleagues.

About sharing, it's not very efficient because the computer need to be on !

About status, Windows scan each definition to verify availability of a printer (USB or connected). So I suppose it's possible to 'ask' Windows about status printer ... but I don't know how !

(Powershell : 'Get-Printer | Format-table' give the list but not the status ...)
by (10.5k points)
edited by
0 votes

Thank you for the solution.

Actually, I did some research and I found that it's possible to install a plugin on ocs inventory Agent Windows. it's name "listprinters.vbs" and it can make the inventory of all printers even for USB printer.

I tried this method but I have a problem, I can't seem to change the status of the plugin. It keeps saying "WAITING NOTIFICATION" Here is the screenshot :

I use this documentation to help me : https://wiki.ocsinventory-ng.org/05.Deployment/Deploying-packages-or-executing-commands-on-client-hosts/

Do you know something about it ? How can I change the status and active the plugin ?

by (520 points)
 
Powered by Question2Answer
...