Some examples for printer accounting that I use with samba. lp-acct is