How do I find the list of active User Clients?

KB Home   |   How do I find the list of active User Clients?

In Dashboard, we display the number of active clients, however we do not display the details of those active Clients. This information is sometimes helpful for Administrators to track down issues on their site. This can also provide information about who has it installed and who doesn’t. It provides them some visibility into their network.

There are two options available to retrieve this information:

Option 1

Netstat is about the best way to see who has a connection open. Most clients will use ports 9191 and 9192.

For example: ‘netstat -na | find “9191”’ The PaperCut server and client have a keep-alive every minute. More information about this is available here.

If the client does not respond, its connection is closed.

Option 2

Another way to check for the PaperCut client is using Advanced print scripting. A print script could be written for each printer. It could be added to one printer and then copied to other printers.

A script like this will write an entry to the Application log for every print job: (See screenshot below)

/*
* Check for PaperCut client
*/
function printJobHook(inputs, actions) {
  var clientRunning = "NO";
  if (inputs.client.isRunning) {
    clientRunning = "YES";
  }

actions.log.info('Client running '
      + clientRunning + ', '
      + inputs.job.username + ', ' 
      + inputs.job.clientIP + ', ' 
      + inputs.job.clientMachineOrIP);
}

​ ​

This option will provide information about the user client software when a print job is sent.


Categories: User Client Tool, Advanced Scripting (Print Scripting)


Keywords: Scripting

Comments

Share your findings and experience with other PaperCut users. Feel free to add comments and suggestions about this Knowledge Base article. Please don't use this for support requests.

Article last modified on January 09, 2019, at 11:52 PM
Printable View   |   Article History   |   Edit Article