- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- LP Wrapper Needed
Operating System - Linux
1752795
Members
6493
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО09-21-2005 12:02 PM
тАО09-21-2005 12:02 PM
LP Wrapper Needed
Has anyone come up with a lp wrapper for hpux 11.11 that will capture basic info like byte count, report names, and user? Any help is appreciated. Thanks.
- Tags:
- lp
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2005 01:22 PM
тАО09-21-2005 01:22 PM
Re: LP Wrapper Needed
While that is possible there is a big downside. Every lp job that uses stdin as a source (e.g. ls | lp; cat myfile | lp ) will actually have to read stdin and store the contents in a temp file and then direct that file to the lp command. Depending upon the lp demands, you could eat a huge chunk of disk up in addition to what the lp susbsystem already requires for temp files. The other thing is that translating raw byte counts into any sort of meaningful information is all but impossible with modern printers. For example, you might have a fairly small textfile that produces thousands of pages of output and a huge graphics-rich file than produces only a few pages of output. The only thing that can make sense of this data are the output devices themselves. Most modern printers have SNMP traps or web interfaces (that could be manipulated with a scraper) that could produce meaningful data. That is where you should concentrate your efforts.
You can also mine the lp log for information but that will tell you nothing of page counts.
You can also mine the lp log for information but that will tell you nothing of page counts.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2005 02:00 PM
тАО09-21-2005 02:00 PM
Re: LP Wrapper Needed
Juiceman, I agree w/ A.Clay.. too much to track you might be asking..
say, maybe you can start small, Keep it Simple.. by Monitoring the system..
Run the: lpstat -t or lpstat -o command and see what is going on.. every 15 minutes.. whey you see the big heavy users, then start by running a stat by user-login: see the: man lpstat
lpstat -u"juiceman,A.Clay, Tom"
then create your own script and put in the cron.. building your own collection of data for analysis purposes.. maybe even monitor the Spool Queue if there are many jobs waiting to print..
say, maybe you can start small, Keep it Simple.. by Monitoring the system..
Run the: lpstat -t or lpstat -o command and see what is going on.. every 15 minutes.. whey you see the big heavy users, then start by running a stat by user-login: see the: man lpstat
lpstat -u"juiceman,A.Clay, Tom"
then create your own script and put in the cron.. building your own collection of data for analysis purposes.. maybe even monitor the Spool Queue if there are many jobs waiting to print..
Golf is a Good Walk Spoiled, Mark Twain.
- Tags:
- lpstat
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP