- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sulog entries
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
06-25-2001 07:46 AM
06-25-2001 07:46 AM
sulog entries
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2001 07:50 AM
06-25-2001 07:50 AM
Re: sulog entries
Unless you trim logs like these, they will grow endlessly. To empty them, do this:
# cat /dev/null > /var/adm/wtmp
etc. or if you prefer shorthand:
# > /var/adm/wtmp
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2001 07:54 AM
06-25-2001 07:54 AM
Re: sulog entries
#!/usr/bin/sh
VAL=`/usr/bin/ll /var/adm/wtmp | awk '{print $5}'`
if [[ $VAL -gt 1000000 ]]
then
cat /dev/null > /var/adm/wtmp
fi
exit
Hope this helps.
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2001 08:20 AM
06-25-2001 08:20 AM
Re: sulog entries
Cheers,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2001 09:36 AM
06-25-2001 09:36 AM
Re: sulog entries
No those and most other log files are not flushed at reboot - they should still be there - unless someone wrote (or modified) a startup/shutdown script.
--Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 12:53 AM
06-26-2001 12:53 AM
Re: sulog entries
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 01:13 AM
06-26-2001 01:13 AM
Re: sulog entries
SAM has a log trimming facility:-
Sam
Routine tasks
System log files
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 02:44 AM
06-26-2001 02:44 AM
Re: sulog entries
Hi Nitin
Once U reboot ur sulog will be flushed off. But wtmp and btmp will remain same.
Shahul