Hello there I have printer shared over the samba. What I need is to set up a loging for printer events. (Who,When....) is it possible ? thankz Bloody
I am sure there are many ways to do this, but, for simple logging, the macros generated when a user logs into a share might suffice. Here is what I see when a user logs on as a guest (ftp) to the share public: client machine NetBios name = hammer7 (%m) Primary goup name of U = ftp (%G) IP address of client = 192.168.0.7 (%I) Netbios name of server = jhammer6 (%L) Internet DNS of client= hammer7.jhammer.org (%M) NIS home directory= jhammer6 (%N) Protocal level = NT1 (%R) Current time and date= 2002/04/19 04:05:32 (%T) Session user name (one the client wanted)= ftp (%U) Architecture of remote machine= Samba (%a) Process ID of current server= 5265 (%d) Internet DNS hostname of server= jhammer6 (%h) Path of services home directory from NIS= (%p) Samba version= 2.2.1a (%v) Home directory of user in u= /home/ftp (%H) Root directory of current service = / (%P) Name of current service = public (%S) Primary group name of u in share = ftp (%g) User name of current service = ftp (%u) You could make your samba print command save this stuff to a logging file. Of course, this doesn't tackle the tough questions like how much the user printed. Joel On Sat, Apr 20, 2002 at 06:13:22PM +0200, Pavol Eisenberg wrote:> Hello there > > I have printer shared over the samba. What I need is to set up a loging for > printer events. (Who,When....) > > is it possible ? > > thankz > > Bloody > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
Pavol Eisenberg wrote:> Hello there > > I have printer shared over the samba. What I need is to set up a loging for > printer events. (Who,When....) > > is it possible ?Do you also need to tackle the task of "How many pages"? Then you may want to look into CUPS (http://www.cups.org/). If you send PostScript to the CUPS server (and ask it to process this incoming format to fit the target printer), it will pass the CUPS-internal (ghostscript-based) "pstops" and "pstoraster" filters. pstops is doing a quite reliable logging of all the pages to the /var/log/cups/page_log file. From there you will later be able to retrieve everything you need (statistics, billing and accounting info...). Just don't use the vendor-supplied printer-drivers on the Win-client side, as this would generate the final data and necessitate CUPS to handle the printjob as a "raw", therefor by-passing the pstops filter. Use the Adobe PostScript driver on the client side, vamped up with one of the suitable CUPS-PPDs. How to obtain Free Software PPDs, see also http://www.linuxprinting.org/ppd-doc.html. If you don't mind, you can also use the commercial printer driver package from the CUPS developers themselves, named "ESP PrintPro" (http://www.easysw.com/printpro/)' Bye, Bye, Kurt
> Pavol Eisenberg wrote: > > Hello there > > > > I have printer shared over the samba. What I need is to set up a loging for > > printer events. (Who,When....) > > > > is it possible ?And here is my opinion: Use LPRNG as your Unix printing system. It has the feature to check the page counter of the printer bevor and after each print job: Relaiable accounting independend from the printer driver. Of course you need a supported printer, but this should be nearly every modern network printer. Christian _(_)_ wWWWw _ @@@@ (_)@(_) vVVVv _ @@@@ (___) _(_)_ @@()@@ wWWWw (_)\ (___) _(_)_ @@()@@ Y (_)@(_) @@@@ (___) `|/ Y (_)@(_) @@@@ \|/ (_)\ / Y \| \|/ /(_) \| |/ | \ | \ |/ | / \ | / \|/ |/ \| \|/ jgs|// \\|/// \\\|//\\\|/// \|/// \\\|// \\|// \\\|// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^