- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: In 10.20 server syslog is not being written
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
тАО01-12-2005 02:36 AM
тАО01-12-2005 02:36 AM
In 10.20 server syslog is not being written
root 606 1 0 09:45:36 ? 0:00 /usr/sbin/syslogd -D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2005 02:37 AM
тАО01-12-2005 02:37 AM
Re: In 10.20 server syslog is not being written
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2005 02:52 AM
тАО01-12-2005 02:52 AM
Re: In 10.20 server syslog is not being written
Check this threads below:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=186882
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=741077
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2005 04:38 AM
тАО01-12-2005 04:38 AM
Re: In 10.20 server syslog is not being written
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2005 05:46 AM
тАО01-12-2005 05:46 AM
Re: In 10.20 server syslog is not being written
# check if syslogd is really really listening anymore
netstat -na |grep "*.514"
# should return
#tcp 0 0 *.514 *.* LISTEN
#udp 0 0 *.514 *.*
/sbin/init.d/syslogd stop
cd /var/adm/syslog/syslog.log
mv syslog.log syslog.broken
touch syslog.log
/sbin/init.d/syslogd start
sleep 4
logger test
# check if it's listening again, like in the above
if You don't see 'test' in Your syslog after this think about a fsck of /var
I hope this resolves the issue...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2005 10:27 AM
тАО01-12-2005 10:27 AM
Re: In 10.20 server syslog is not being written
L8tr,
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2005 10:34 PM
тАО01-12-2005 10:34 PM
Re: In 10.20 server syslog is not being written
I think the best method for rotating syslog files would be something like:
cd /var/adm/syslog
# move the old file(s)
# NOTE: syslog will keep logging to the old
# file: don't move it off the filesystem yet
mv syslog.log syslog.old.log
# re-create the logfile(s)
> syslog.log
chmod
# switch logging to the new file
# NOTE: this is as close to an atomic
# operation as possible with syslogd
kill -HUP `cat /var/run/syslog.pid`
If you have to rotate the logfiles for some other program which does not provide any internal log rotation facility nor any means to signal "re-open logfile NOW", then the copy-and-truncate may be the best general solution available:
cp otherprogram.log otherprogram.log.old && > otherprogram.log