- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX logging print information
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
04-23-2007 12:41 AM
04-23-2007 12:41 AM
HP-UX logging print information
Can anyone advise if there is a utility or a known script that I can use to log all print activity on our unix box. We are running HP-UX version B.11.00.
The type of thing I would want to record is: user, printer, pages, time
Any help you may offer will be gratefully received.
Cheers
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2007 01:08 AM
04-23-2007 01:08 AM
Re: HP-UX logging print information
/usr/sbin/lpsched [-v] [-a]
-v Write a verbose record of the lpsched process on /var/adm/lp/log.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2007 01:22 AM
04-23-2007 01:22 AM
Re: HP-UX logging print information
/var/adm/lp/log will things like:
OK38-3082 ipradm OK38 Apr 23 07:20
Start: OK38-3082 Mon Apr 23 07:20:21 MDT 2007
End: OK38-3082 Mon Apr 23 07:20:22 MDT 2007
/etc/lp/interface/model.orig/OK38 nb
/opt/hpnpl/bin/hpnpf -j OK38-3082+ipradm -a1 -x OK38.mydomain.net
CHILD: Apr 23 07:20 OK38 3082 0000
FIFO: Apr 23 07:20 m OK38 20537
FIFO: Apr 23 07:21 r MA33 3083 ipradm svr004 0
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2007 02:44 AM
04-23-2007 02:44 AM
Re: HP-UX logging print information
Thanks for the response's...
I've entered the lpsched command and have got the following from the log file:
Start: finance5-4822 Mon Apr 23 15:22:18 BST 2007
End: finance5-4822 Mon Apr 23 15:22:19 BST 2007
/etc/lp/interface/model.orig/finance5 nb
/opt/hpnpl/bin/hpnpf -j finance5-4822+bgraham -x finance5
Is there any way that I cen get the number of pages printed?.
Many Thanks,
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2007 02:55 AM
04-23-2007 02:55 AM
Re: HP-UX logging print information
No. HP-UX does not have a true driver that interacts with the massively large list of incompatible printers that can be hooked to your HP-UX box. A page count can only be obtained from the printer since one page might have just one character on it, or it might have pictures or graphics or sideways text, etc. To query the printer, you will need to read about the PJL language which interacts with the printer hardware and then write a program to query the printer at the end of each job. NOTE: PJL is HP-only. Non-HP printers may have a way to do this but it will likely be quite different.
Bill Hassell, sysadmin