Operating System - HP-UX
1748089 Members
4648 Online
108758 Solutions
New Discussion юеВ

Writing messages to system log

 
Subramanian_2
Occasional Advisor

Writing messages to system log

Hi,
Can someone guide me on how to write messages on to the system log? I understand that cmcld might need to be invoked. But I could not find the usage syntax anywhere.

Regards,
Subramanian S
5 REPLIES 5
Naveej.K.A
Honored Contributor

Re: Writing messages to system log

hi,

syslogd is the deamon which is responsible for writing logs into the system log file i.e. /var/adm/syslog/syslog.log

and /etc/syslog.conf is the configuration file for the same.

man syslogd for more details

with best wishes
naveej
practice makes a man perfect!!!
Shaikh Imran
Honored Contributor

Re: Writing messages to system log

Hi,
Since you are talking about Service Guard:
There are nine daemon processes associated with ServiceGuard. They are:
1)/usr/lbin/cmclconfd├в ServiceGuard Configuration Daemon
2)/usr/lbin/cmcld├в ServiceGuard Cluster Daemon
3)/usr/lbin/cmlogd├в ServiceGuard Syslog Log Daemon
4)/usr/lbin/cmlvmd├в Cluster Logical Volume Manager Daemon
5)/opt/cmom/lbin/cmomd├в Cluster Object Manager Daemon
6)/usr/lbin/cmsnmpd├в Cluster SNMP subagent (optionally running)
7)/usr/lbin/cmsrvassistd├в ServiceGuard Service Assistant Daemon
8)/usr/lbin/cmtaped├в ServiceGuard Shared Tape Daemon
9)/usr/lbin/qs├в ServiceGuard Quorum Server Daemon
Each of these daemons logs to the /var/adm/syslog/syslog.log file
except for the quorum server, which logs to the standard output (it is suggested you redirect output to a file named /var/adm/qs/qs.log) and
/usr/lbin/cmomd, which logs to /var/opt/c
I'll sleep when i am dead.
Shaikh Imran
Honored Contributor

Re: Writing messages to system log

Hi, i think this is the complete post as i m facing some probs with my net.

There are nine daemon processes associated with ServiceGuard. They
are:
1)/usr/lbin/cmclconfd (ServiceGuard Configuration Daemon)
2)/usr/lbin/cmcld (ServiceGuard Cluster Daemon)
3)/usr/lbin/cmlogd (ServiceGuard Syslog Log Daemon)
4)/usr/lbin/cmlvmd (Cluster Logical Volume Manager Daemon)
5)/opt/cmom/lbin/cmomd (Cluster Object Manager Daemon)
6)/usr/lbin/cmsnmpd (Cluster SNMP subagent (optionally running)
7)/usr/lbin/cmsrvassistd (ServiceGuard Service Assistant Daemon)
8)/usr/lbin/cmtaped (ServiceGuard Shared Tape Daemon)
9)/usr/lbin/qs (ServiceGuard Quorum Server Daemon)
Each of these daemons logs to the /var/adm/syslog/syslog.log file
except for the quorum server, which logs to the standard output
(it is suggested you redirect output to a file named /var/adm/qs/qs.log) and
/usr/lbin/cmomd, which logs to /var/opt/cmom/cmomd.log.

Regards



I'll sleep when i am dead.
Manish Srivastava
Trusted Contributor

Re: Writing messages to system log

Hi,

use logger command to write to system log. see the manpage of syslog and syslogd for more details.

regards,
Manish.
V.Tamilvanan
Honored Contributor

Re: Writing messages to system log

Hi,


#logger -p user.emerg "System going down immediately!!!"

See man logger.