- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Stop logping
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-19-2001 06:07 AM
04-19-2001 06:07 AM
I got this file, /var/adm/lp/log in hp/ux.
Anybody know how to stop logging this file
Thank You
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2001 06:42 AM
04-19-2001 06:42 AM
Solutionfrom the lpsched man page:
"lpsched Schedules requests taken by lp(1) for printing on line printers.
lpsched is typically invoked in /sbin/rc. This creates a process which runs in the background until lpshut is executed. The activity of the process is recorded in /var/adm/lp/log."
So, if you have lpsched running, you have to let this log growing. Of course you can always shrink it for example with a script that checks the size of it.
Before this, check if you need lpsched running. Then check if the log contains important information.
good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2001 07:51 AM
04-19-2001 07:51 AM
Re: Stop logping
if you really want to stop logging (which I don't suggest) you can create a symbolic link to /dev/null.
ln -s /dev/null /var/adm/lp/log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2001 08:13 AM
04-19-2001 08:13 AM
Re: Stop logping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2001 11:12 AM
04-19-2001 11:12 AM
Re: Stop logping
But I remember a couple things...there's a command pddisable and you can use this to modify the log_severity and maximum log-size you want to let it grow. You may (note I said may..) be able to stop it using the command
pddisable -c log SERVERNAME:default_error
But .... I have never tried it...so I am not sure what it may or may not do..
There is also a file at /var/opt/pd called spl_error.cfg and I believe you can edit this file so that if you wanted logging to stop when the file hit a certain size you could set it here...as well as set the log-severity option.
Well that's all I could come up with...hope this gives you some ideas,
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2001 03:08 PM
04-20-2001 03:08 PM
Re: Stop logping
and then lpsched on a periodic basis.
lpsched will move the log file to
/var/adm/lp/oldlog.
Pick a frequency that keeps the log size
reasonable for you.