- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Amount prints in KB in a period
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
Discussions
Discussions
Discussions
Forums
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
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
тАО01-28-2009 09:38 AM
тАО01-28-2009 09:38 AM
Amount prints in KB in a period
on my hp-ux 11i server there're configured a lot of printers (about 230). There's the need to know the amount of prints (size in KB or MB) for every printer in a certain period (for example weekly or monthly).
I noticed that size is shown in "lpstat -t" command or directly under the path /var/spool/lp/request/
The spool log (/var/adm/lp/log) doesn't show sizes.
Any idea?
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 12:45 PM
тАО01-28-2009 12:45 PM
Re: Amount prints in KB in a period
Most shops are similar, the big jobs go to big printers that are only used by servers. But those 230 (like this shop) can be accessed by printjobs from your servers, or printjob from the command line, or print job from any PC or Window server that decides to print something there.
So you really might only be able to gather stats from the printer itself, if it actually keeps them.
Sorry, there's alot of smart folks out there, so maybe one of them has an idea or knows of some third party software that will give you what you need.
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 12:48 PM
тАО01-28-2009 12:48 PM
Re: Amount prints in KB in a period
Put in "x" number of reams of paper and keep track how much paper your going through.
Bean counters like that kind of stuff....
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 07:44 PM
тАО01-28-2009 07:44 PM
Re: Amount prints in KB in a period
HOWEVER: this space is totally, completely useless unless you are using green bar paper with impact printers (from 20 years ago). Modern printers require enormous amounts of non-printing data and a print job may contain downloaded fonts, bit-mapped pictures, macros, page layout directives, and some text. In other words, a sheet of paper may require 4 MB of data or perhaps 17 bytes for a one-liner. And of course, these printers are on the network so anyone can likely print to them without going through your HP-UX server.
So the question is: do the bean-counters want to monitor network traffic (in which case, the above script will work, but just for HP-UX printing), or printer usage (refer to Rita's 2nd answer above (count the reams of paper)?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 08:18 PM
тАО01-28-2009 08:18 PM
Re: Amount prints in KB in a period
Right, besides the reams of paper, there are toner and other consumables that are more important than bytes.
Perhaps the bean-counters should look into HP Managed Print Services:
http://www.hp.com/go/mps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 02:30 AM
тАО01-29-2009 02:30 AM
Re: Amount prints in KB in a period
Actually I give you more infos in order to understand better my request.
- All prints are generated by an application on ux server, so every print pass through unix machine.
- Printers are spread in european sites
Since there is a migration plan for change both unix server site and tool, there's the need to know the amount of data printer for every printer is to have an order of magnitude for network traffic. I thought that unix server had these information, instead of having recourse to networking filters.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2009 03:30 AM
тАО01-30-2009 03:30 AM
Re: Amount prints in KB in a period
This is good only for the short term, since the next time the lp subsystem is patched it will likely break.
Remember to document what you have done, and just as important, how to undo it. So that in months time when you (or the other system admin, assuming you have a backup) try to remember why the lp command is now a script, you can remember why.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2009 07:22 AM
тАО02-03-2009 07:22 AM
Re: Amount prints in KB in a period
At the moment I would avoid to create a new process on this production server.
I'll continue to search for a solution.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2009 10:58 AM
тАО02-03-2009 10:58 AM
Re: Amount prints in KB in a period
1. Write a shell script like:
#! /bin/sh
#
# Shell script to gather printer usage information
ll $* >> /var/tmp/printer_log_file
/usr/bin/lp.orig $*
2. Move the /usr/bin/lp command to /usr/bin/lp.orig.
3. Move your shell script to /usr/bin/lp. Modify ownership and permissions to match /usr/bin/lp.orig.
4. Document in your system logbook what you just did, or you'll regret it some day in the future.
The above script is to demonstrate the principal, and is not complete. It will not handle lp command lines that provide options to the lp system (-
The file to log to can be named anything, and does not have to be in/var/tmp.
The ll line can be expanded to capture only the information you really want, also.
This solution should not cause harm to the system, and can be easily backed out of my simply changing lp.orig back to lp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2009 06:37 PM
тАО02-03-2009 06:37 PM
Re: Amount prints in KB in a period
Typically for a wrapper where you don't have to do anything after the call, you should use exec. And also use "$@":
exec /usr/bin/lp.orig "$@"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2009 03:31 AM
тАО02-04-2009 03:31 AM
Re: Amount prints in KB in a period
No points for this, please.