cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.