- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to know what data was printed ?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2001 07:20 AM
08-30-2001 07:20 AM
i'm searching to know the data an printer as receive and printed. Not only the date and the user, but all the data.
It seems that the /var/spool/lp/outputq containts this information, but because his binary format, i can't read it !
Is it readable, or is there an other file that containts this information.
Thank's. Olivier.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2001 07:37 AM
08-30-2001 07:37 AM
Re: How to know what data was printed ?
You have two sources of data:
1) the lpstat command - man lpstat for details
2) the interface files
Each print queue (e.g. myprinter) has an interface script associated with /var/spool/lp/interface/myprinter
The lp commands feeds this script like this:
/var/spool/lp/interface/P id user title copies options file1 file2 ...
P - the name of the printer (e.g. myprinter)
id - lp request id
user - logname of user who made the request
title - optional report title
copies - number of copies requested by the user
options - the -o options passed to the lp command
file1 file2 - files to be printed
You could modify each of the interface files to
capture and log any of this data.
This should get you started, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2001 09:10 AM
08-30-2001 09:10 AM
Re: How to know what data was printed ?
lpstat -o
You will be tell all the jobs in the queue, and see the printing percentage at the same time, however, if it is a serial printer, I have no idea since you only can get the total size of those jobs. Mabye you can calculate the estimate time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2001 12:09 AM
09-03-2001 12:09 AM
Re: How to know what data was printed ?
1) it seems that the /var/spool/lp/output file almost containts this information, whitout including it in the filter file (is it a output file used by system ?) : so how is it possible to read/decode it ?
2) the lpstat prints what the lp will print, not what the lp has printed !!
thank's in advance for your response.
Olivier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2001 12:15 AM
09-03-2001 12:15 AM
Re: How to know what data was printed ?
i've made a hack of outputq.
Put you a binary file at attachment, i called it lplast.
Try it !
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2001 12:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2001 12:30 AM
09-03-2001 12:30 AM
Re: How to know what data was printed ?
Thanks for lplast, really usefull stuff !!!
Should be worth 10 points.
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2001 01:28 AM
09-03-2001 01:28 AM
Re: How to know what data was printed ?
Your're right Rainer : should be worth 10 points !!
A last question, Andreas : you prints the size information : does the output file contains the data that were printed and is it possible to display it !?
Thank's in advance, Olivier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2002 04:41 PM
08-27-2002 04:41 PM
Re: How to know what data was printed ?
Your script is awesome.
We were looking this type of output.
Thanks a lot.
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 09:47 PM
08-28-2002 09:47 PM
Re: How to know what data was printed ?
We don't know what is the printer status blocked means? Any idea?
Thanks
Raj