- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: In HP-UX 10.20 activities are not getting logg...
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
тАО10-20-2009 05:10 AM
тАО10-20-2009 05:10 AM
In my HPUX 10.20 nothing is getting logged to log files.
For Example.
root@lgprime:/var/adm/syslog > ll
total 159642
-rw-rw-rw- 1 root sys 0 May 27 2008 Jim
-rw-r--r-- 1 root root 0 Oct 10 09:04 OLDsyslog.log
-r--r--r-- 1 root sys 0 Sep 18 2001 auth.log
-r--r--r-- 1 root sys 0 Sep 18 2001 lpr.log
-r--r--r-- 1 root sys 0 Sep 18 2001 security.log
-rw-r--r-- 1 root root 0 Oct 10 10:07 syslog.log
-r--r--r-- 1 root sys 0 Sep 18 2001 user.log
In above output it is showing size 0 for all above log files.
How to solve this
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 05:22 AM
тАО10-20-2009 05:22 AM
Solution-Check if syslogd daemon is runing or not:
# ps -ef | grep -i syslog
- If not running, you can restart it using:
#cd /sbin/init.d
#./syslogd start
- Then check the syslog file,for any update.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 05:28 AM
тАО10-20-2009 05:28 AM
Re: In HP-UX 10.20 activities are not getting logged.
-Once syslogd started ,verify it with ps -ef .
- Send a test message to syslog file using:
# logger Test_Message
- Check /var/adm/syslog/syslog.log file content.
Hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 05:33 AM
тАО10-20-2009 05:33 AM
Re: In HP-UX 10.20 activities are not getting logged.
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 06:14 AM
тАО10-20-2009 06:14 AM
Re: In HP-UX 10.20 activities are not getting logged.
root@lgprime:/var/adm/syslog > ps -ef | grep -i syslog
root 738 1 0 Oct 10 ? 1:06 /usr/sbin/syslogd -D
root 10600 11071 1 23:38:45 pts/1 0:00 grep -i syslog
I think it is running.
How to send HUP signal?
Is HUP signal used to restart the syslog service?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 06:17 AM
тАО10-20-2009 06:17 AM
Re: In HP-UX 10.20 activities are not getting logged.
> How to send HUP signal?
You use 'kill' to send signals. In this case:
# kill -HUP 768
...since 768 is the process ID of 'syslogd'.
> Is HUP signal used to restart the syslog service?
Yes, a SIGHUP signal is commonly used to tell a daemon to re-read its configuration file and/or restart.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 06:19 AM
тАО10-20-2009 06:19 AM
Re: In HP-UX 10.20 activities are not getting logged.
kill -HUP 738
will send a HUP signal to syslogd (which is process 738 from your output). The HUP signall causes syslogd to re-read its config file and restart...
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 06:19 AM
тАО10-20-2009 06:19 AM
Re: In HP-UX 10.20 activities are not getting logged.
# kill -1 738
# Where 738 is the
Hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 06:43 AM
тАО10-20-2009 06:43 AM
Re: In HP-UX 10.20 activities are not getting logged.
# kill -1 738
# logger Test_Message
But now also there is no logs in /var/adm/syslog/syslog.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2009 06:49 AM
тАО10-20-2009 06:49 AM
Re: In HP-UX 10.20 activities are not getting logged.
It looks like something is not right with syslogd and you have to send SIGKILL(9) signal to syslogd , any way it is not updating anything at this moment,
Try:
###Verify the syslogd pid.
# kill -9 738 #where 738 is tehe syslogd pid.
# ps -ef | grep -i syslogd
# cd /sbin/init.d/ ; ./syslogd start
# ps -ef | grep syslogd
# logger Test_Message1
# cat /var/adm/syslog/syslog.log
Hth,
Raj.