- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to trim the 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
тАО12-23-2008 03:53 AM
тАО12-23-2008 03:53 AM
How to trim the file.
if /var file system is full and i checked the /var/adm/wtmp is more capacity.
so i thought i will trim this file,/var is going to less.
So pls anyone guide me
How to trim that file?
and
What are the steps to be followed to that problem.
Thanks in Advance.
Regards,
Unixguy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2008 04:00 AM
тАО12-23-2008 04:00 AM
Re: How to trim the file.
# > /var/adm/wtmp
or
# cp /dev/null /var/adm/wtmp
--
What are the steps to be followed to that problem.
--
SAM > Routine Taks > System Logs > select your log file > Action > trim > Trim to ...
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2008 04:16 AM
тАО12-23-2008 04:16 AM
Re: How to trim the file.
# cat /dev/null > /var/adm/wtmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2008 05:00 AM
тАО12-23-2008 05:00 AM
Re: How to trim the file.
Do you care about keeping any recent login stats?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2008 05:39 AM
тАО12-23-2008 05:39 AM
Re: How to trim the file.
There might be other directories like /var/adm/sw, /var/adm/crash which may consume more space than /var/adm/wtmp. You can clear those directories instead of wtmp.
Use this command to check which dir consumed more space
#du -xk /var |sort -nr |head -25
Then you can decide which dir should be cleared off..
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2008 05:41 AM
тАО12-23-2008 05:41 AM
Re: How to trim the file.
Do NOT manually munge with anything in '/var/adm/sw' no matter how large it is. To do so will probably render your server un-patchable. Instead, to regain space, do:
# cleanup -c 1
...which removes the rollback copies of patches commited at least once. Usually this returns significant space if you have been routinely patching.
Regardsa!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2008 10:50 PM
тАО12-23-2008 10:50 PM
Re: How to trim the file.
1, backup current log
#tar -cvf /tmp/oldlog.tar /var/adm/wtmp
2, then trim
#>/var/adm/wtmp
That all
tienna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2008 10:59 PM
тАО12-23-2008 10:59 PM
Re: How to trim the file.
The best way is
>/var/adm/wtmp
Maximum SA are using this way to trim any file.
Suraj