- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Trimming system log files..etc - 11.31
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
11-04-2009 10:32 AM
11-04-2009 10:32 AM
Trimming system log files..etc - 11.31
I have a majority of 11.23 hosts and use SAM (routine tasks). What is available via SMH????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2009 10:49 AM
11-04-2009 10:49 AM
Re: Trimming system log files..etc - 11.31
The easist way is to do:
# cp -p logfile logfile.old
# cat /dev/null > logfile
This insures that any process currently writing to 'logfile' continues to write to it after it is truncated.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2009 11:24 AM
11-04-2009 11:24 AM
Re: Trimming system log files..etc - 11.31
Max SA are used to do ">log file name"
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2009 11:58 AM
11-04-2009 11:58 AM
Re: Trimming system log files..etc - 11.31
Last year I wrote a presentation on "Comparison of Unix log file management tools".
I discussed AIX, HP-UX, Linux, and Solaris.
There are many log files iN HP-UX. Some of them
can be tripped automatically (various configs
exist, take a look in my presentation). Some
of them you have to manage yourself...
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2009 12:02 PM
11-04-2009 12:02 PM
Re: Trimming system log files..etc - 11.31
The sam piece that trimmed logs is still buried in smh, which defaults to sam componenents for stuff not yet re-done in smh.
I don't like it though.
I prefer to port logroate into HP-UX systems or go with a periodic > logfilename
script in cron
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2009 06:51 AM
12-17-2009 06:51 AM