img

Automate Balance Updates in PaperCut


A few days ago one of our resellers came to us with an interesting problem. They have a customer who is using the multiple personal accounts feature in PaperCut and they wanted to automate balance updates if the balance went under a certain amount. Updating the balance after so many days have passed works for lots of users, however, this wasn’t the case for our customer.

PaperCut has a very handy quota scheduling feature but it works on days rather than the amount. This, in most cases, would be fine. It can also be done manually by using the bulk user actions but you can’t automate it.

PaperCut has a handy quota scheduling feature for automating balances. It works by updating the balance on a set date, rather than updating the balance after it has reached a certain balance – updating the balance after so many days has passed works for lots of users, however, this wasn’t the case for our customer. This can also be done manually by using the bulk user actions, but… you can’t automate it.


As per usual, we took the request and had a think about it, then broke it down into smaller parts that we could work with:

  1. Get the user’s current balance for an account
  2. Compare it to a threshold
  3. Top the account up to a certain amount

The server command application has a useful option to get a user’s account balance and also has an argument for an account name if you are using multiple personal accounts.


We can also top up an account by using the server command and leave a comment so that the admin can see where the balance increase came from… which looks something like:


So, we have the balance for the account and we know how to adjust an account balance… Now, all that is left is to compare the account balance with a threshold and put everything together. This gives us the scripts below which can be scheduled using whatever options your OS of choice has.


Powershell

Bash


If you need a hand implementing this command, get in touch with the team!


You can check out some of our other tips on PaperCut scripts below – if you would like to discuss a custom script that you’d like to implement, we’d love to hear from you.

Pepermint integrations

Granting temporary access to printers

Mobility print from Ubuntu client

Latest News from Jonathan Bennetts
img

How do you bulk delete printers in PaperCut?

We get asked fairly often if it's possible to quickly delete printers from Pap...

Written by: Jonathan Bennetts

More
img

Automate Balance Updates in PaperCut

A few days ago one of our resellers came to us with an interesting problem. T...

Written by: Jonathan Bennetts

More

img

Having dealt with Selectec for the past 8 years the service and support we get for PaperCut MF has been exceptional, support requests are met in a short timescale and dealing with the friendly and knowledgeable staff is always a pleasure

Phil Kelly Midshire Business Systems
This website works best using cookies which are currently disabled. We use cookies to help with our site analytics to improve our services.
Back to Top ↑