- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Trim system log file
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
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
тАО04-18-2001 06:59 AM
тАО04-18-2001 06:59 AM
Trim system log file
I use HP/UX 9000 and I ran to file system problem. I think the size is getting too big.
Please suggest how to trim system log file
or anyway to free up some disk space
Thank You,
Wantit
- Tags:
- trim logfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 07:03 AM
тАО04-18-2001 07:03 AM
Re: Trim system log file
#!/usr/bin/sh
##
###
syslog=/var/adm/syslog/syslog.log
cp -p$syslog /var/adm/syslog/syslog.log.$(date +%m%d%y)
> $syslog
Then what I usually do is gzip the backed up syslog file and this saves a lot of space. Hope this helps.
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 07:10 AM
тАО04-18-2001 07:10 AM
Re: Trim system log file
Wantit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 07:12 AM
тАО04-18-2001 07:12 AM
Re: Trim system log file
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 07:17 AM
тАО04-18-2001 07:17 AM
Re: Trim system log file
cat /dev/null > /var/adm/syslog/syslog.log
cat /dev/null > /var/adm/wtmp
cat /dev/null > /var/adm/wtmp
Remove the files in /var/adm/preserve (Ex*)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 07:19 AM
тАО04-18-2001 07:19 AM
Re: Trim system log file
cat /dev/null > /var/adm/syslog/syslog.log
cat /dev/null > /var/adm/wtmp
cat /dev/null > /var/adm/wtmp
Remove the files in /var/adm/preserve (Ex*)
Also you can use the cleanup command to remove old patches. (cleanup -F)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 07:22 AM
тАО04-18-2001 07:22 AM
Re: Trim system log file
Thanks for your reply
You said "use SAM to trim the file"
Did you talk about freedisk in Find and Remove Unused Filesets or you mean something else?
How can you trim the file in SAM?
Wantit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 07:25 AM
тАО04-18-2001 07:25 AM
Re: Trim system log file
You can trim to zero or a selected KB size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 07:29 AM
тАО04-18-2001 07:29 AM
Re: Trim system log file
Is it safe to set those files to empty?
Is cleanup command available in hp/ux 10.2?
Wantit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 07:34 AM
тАО04-18-2001 07:34 AM