Looks like the screenlog.* is added by someone for screen tool.
 
I am curious whether the part of code you meantion in the dhclient-script has been executed. Looks like it depends on whether there is a log server is configured in the dhcpd.conf.
 
xCAT needs to take a look to make the syslog to be forwarded to MN.

Thanks
Best Regards
----------------------------------------------------------------------
Wang Xiaopeng (王晓朋)
IBM China System Technology Laboratory
Tel: 86-10-82453455
Email: [email protected]
Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian District Beijing P.R.China 100193
 
 
----- Original message -----
From: Jean-Baptiste Denis <[email protected]>
To: [email protected]
Cc:
Subject: Re: [xcat-user] rsyslog and genesis image
Date: Wed, Mar 9, 2016 7:43 PM
 
> First of all, I wonder where the screenlog.0 line comes from. I guess it is
> injected in the mknb stage, but I don't see how I can change that. Any idea ?
> I'd like to add a catchall line (*.* @192.168.132.2). It's working when I add it
> manually directory in the booted image after a reloading of the rsyslog
> configuration.

The screenlog line is added in the dhclient-script script of the genesis image :
(/opt/xcat/share/xcat/netboot/genesis/x86_64/fs/sbin/dhclient-script)

if [ ! -z "$new_log_servers" ]; then
     head -n -1 /etc/rsyslog.conf > /etc/rsyslog.conf.new
     cp /etc/rsyslog.conf.new /etc/rsyslog.conf
fi
for ls in $new_log_servers; do
     echo *.* @$ls >> /etc/rsyslog.conf
done

I really don't know why the file is managed this way.

> Maybe something like :
>
> $ModLoad imfile
> $InputFileName /screenlog.0
> $InputFileTag screenlog:
> $InputFileStateFile stat-screenlog
>
> instead of the screenlog line ? I didn't try it though.

My current rsyslog.conf file is :

$ModLoad imuxsock
$ModLoad immark
$MarkMessagePeriod 1200

$ModLoad imfile
$InputFileName /screenlog.0
$InputFileTag screenlog:
$InputFileStateFile stat-screenlog
$InputRunFileMonitor
$InputFilePollInterval 2

*.emerg             *
*.* @192.168.132.2

# keep the last comment line empty, because it is dynamically trimmed of
# at boot by dhclient-script
#

I'm not satisfied with hard-coding the ip address of the syslog server though...

The invalid line is still added by dhclient-script (where does the
new_syslog_servers variable comes from ? I didn't find anything), but I've got
everything I want : all syslog logs are forwarded and also the screenlog.0 file.

What do you think ?

Jean-Baptiste



------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

 

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to