HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Log Trim on 10.20
Operating System - HP-UX
1832804
Members
3166
Online
110045
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
Forums
Discussions
Discussions
Discussions
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
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
07-26-2001 11:11 AM
07-26-2001 11:11 AM
Log Trim on 10.20
I have the following bootp and info logs that I'd like to trim. There are active DHCP files. I've added these logs to other logs using SAM and have tried various ways of trimming but none have worked. Usually it will show 0 bytes or a trimmed amount but when I do the ll or check SAM, it is back to the same growing size. I guess the worse case is to bring DHCP down, trim with SAM or echo > to logs and restore DHCP.
/opt/CSCOcddm/log $ ll
total 1590
-rw-rw-r-- 1 root sys 169 Jul 20 16:15 .masterserver.log
-r-------- 1 root root 4 Jul 20 14:58 .netcntrl.pid
-rw-r--r-- 1 root root 180 Sep 28 1999 alan.log
-rw-rw-r-- 1 root sys 70890299 Jul 26 14:10 bootp.log
-rw-rw-r-- 1 root sys 16325 Jul 26 12:48 bootp.logSAMTRM
-rw-rw-r-- 1 root sys 62669 Jul 26 13:38 errors.log
-rw-rw-r-- 1 root sys 30419 Jul 23 08:27 errors.logSAMTRM
-rw-rw-r-- 1 root sys 70827726 Jul 26 14:10 info.log
-rw-rw-r-- 1 root sys 11577 Jul 26 12:49 info.logSAMTRM
-rw-rw-rw- 1 root sys 184320 Jul 20 13:11 logtar
/opt/CSCOcddm/log $ ll
total 1590
-rw-rw-r-- 1 root sys 169 Jul 20 16:15 .masterserver.log
-r-------- 1 root root 4 Jul 20 14:58 .netcntrl.pid
-rw-r--r-- 1 root root 180 Sep 28 1999 alan.log
-rw-rw-r-- 1 root sys 70890299 Jul 26 14:10 bootp.log
-rw-rw-r-- 1 root sys 16325 Jul 26 12:48 bootp.logSAMTRM
-rw-rw-r-- 1 root sys 62669 Jul 26 13:38 errors.log
-rw-rw-r-- 1 root sys 30419 Jul 23 08:27 errors.logSAMTRM
-rw-rw-r-- 1 root sys 70827726 Jul 26 14:10 info.log
-rw-rw-r-- 1 root sys 11577 Jul 26 12:49 info.logSAMTRM
-rw-rw-rw- 1 root sys 184320 Jul 20 13:11 logtar
so let it be wriiten so let it be done
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 11:27 AM
07-26-2001 11:27 AM
Re: Log Trim on 10.20
Hello,
Have you tried this?:
>bootp.log
That should zero out the file, even if a process is holding it open.
JP
Have you tried this?:
>bootp.log
That should zero out the file, even if a process is holding it open.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 11:27 AM
07-26-2001 11:27 AM
Re: Log Trim on 10.20
Could you not just save them off and zip them?
for x in `ls *log*`
do
cp $x $x.bak
/usr/contrib/bin/gzip $x.bak
cp /dev/null $x
done
...jcd...
for x in `ls *log*`
do
cp $x $x.bak
/usr/contrib/bin/gzip $x.bak
cp /dev/null $x
done
...jcd...
If I had only read the instructions first??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 11:31 AM
07-26-2001 11:31 AM
Re: Log Trim on 10.20
Here is another thread along the same lines:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa991e7e60861d511abcd0090277a778c,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa991e7e60861d511abcd0090277a778c,00.html
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP