Operating System - HP-UX
1834533 Members
2863 Online
110069 Solutions
New Discussion

what are messages and diaglog used for on HP-UX

 
SOLVED
Go to solution
Christian Mikhael
Occasional Contributor

what are messages and diaglog used for on HP-UX

Hello,

I need to turn off clean_adm in the config file /etc/rc.config.d/clean to keep the curent version of sulog in place when I reboot. The problem is that /sbin/init.d/clean_adm also rotates diaglog and messages to OLDlogname.

I can't find any occurences on my systems of /var/adm/messages or /var/adm/diaglog.

I want to know what they do before I can disable clean_adm.
6 REPLIES 6
Geoff Wild
Honored Contributor

Re: what are messages and diaglog used for on HP-UX

Why not just modify
/sbin/init.d/clean_adm

the line:

for LOG in sulog diaglog messages

to

for LOG in diaglog messages


The other two depend on how you configure syslog.conf

If you don't have them, then you don't need to worry - just go ahead and disable /etc/rc.config.d/clean

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Steven E. Protter
Exalted Contributor

Re: what are messages and diaglog used for on HP-UX

On my HP-9000 server running HP-UX 11.11(11i) those files are not used at all.

My guess now is that your /etc/syslog.conf file has been custom configured to put certain logging information in those files.

That means you need to look at the syslog.conf file or whatever conf file is pointing data at those files. Then you may be able to deduce the purpose.

I do not believe that those files are standard, at least not on the Base HP-UX OS.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Victor BERRIDGE
Honored Contributor

Re: what are messages and diaglog used for on HP-UX

Hi,
diaglogd is the support tool manager logging daemon cf man (1M) diaglogd.
It logs messages in /var/adm/syslog/syslog.log
They look like
DIAGNOSTIC SYSTEM WARNING:
The diagnostic logging facility is no longer receiving excessive
errors from the I/O subsystem. 39 I/O error entries were lost.
DIAGNOSTIC SYSTEM WARNING:
The diagnostic logging facility has started receiving excessive
errors from the I/O subsystem. I/O error entries will be lost
until the cause of the excessive I/O logging is corrected.
If the diaglogd daemon is not active, use the Daemon Startup command
in stm to start it.
If the diaglogd daemon is active, use the logtool utility in stm
to determine which I/O subsystem is logging excessive errors.
DIAGNOSTIC SYSTEM WARNING:
The diagnostic logging facility is no longer receiving excessive
errors from the I/O subsystem. 24 I/O error entries were lost.



All the best
Victor
Sridhar Bhaskarla
Honored Contributor
Solution

Re: what are messages and diaglog used for on HP-UX

Hi Christian,

/var/adm/messages is generally the place holder for the output of 'dmesg' command. Generally sysadmins enable a cronjob to periodically redirect the output of 'dmesg' into this file so that won't lose any messages.

I believe 'diaglog' was used in old days of HP-UX where the OnlineDiagnostics were were not there. It's outdated and not used anymore. All the diagnostic logs go into /var/stm directory now.

It's not a good idea to modify /sbin/init.d script as they may get replaced during patch installs. So, turn off the switch in /etc/rc.config.d/clean file.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Christian Mikhael
Occasional Contributor

Re: what are messages and diaglog used for on HP-UX

Thank you all for your quick replies. I want to clarify that I don't have those files (messages or diaglog) on any of my systems. I hust wanted to verify what they do before disabling their rotation. Also I cannot change the script /sbin/init.d/clean_adm. HP put the following at the beginning of the script:

# NOTE: This script is not configurable! Any changes made to this
# scipt will be overwritten when you upgrade to the next
# release of HP-UX.
#
# WARNING: Changing this script in any way may lead to a system that
# is unbootable. Do not modify this script.
#

#
# Move old log files out of the way.

I know that on other unix systems (old ones)they used to use messages instead of syslog. And your suspuscions on diaglog are the same as mine (its the old way they use to log diaglogd).

I just would have like to know for sure what they were used for.

Thank you all I will disable it know. I will also assign points :-).


Christian Mikhael
Occasional Contributor

Re: what are messages and diaglog used for on HP-UX

Thank you all again.