Try running something like this from the command line:

logger -p local4.info -t xcat my msg on MN
echo $?
tail /var/log/xcat/cluster.log
grep "my msg on MN" /var/log/xcat/cluster.log

Mark Gurevich
Poughkeepsie Development Lab
HPC Software Development - xCAT

"If we knew what it was we were doing, it would not be called research,
would it?"
--Albert Einstein





From:   Huzefa Zakir via xCAT-user <xcat-user@lists.sourceforge.net>
To:     xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Cc:     Huzefa Zakir <hzu...@x-iss.com>
Date:   03/16/2021 10:29 PM
Subject:        [EXTERNAL] Re: [xcat-user] cluster.log is not working



Hello

Still doesn’t work… below is the /etc/rsyslog.d/xcat-cluster.conf file

#:/etc/rsyslog.d# cat xcat-cluster.conf
$template xCATTraditionalFormat0,"%timegenerated% %HOSTNAME% %syslogtag%
%syslogseverity-text:::uppercase% %msg:::drop-last-lf%\n"
:programname, isequal,
"xcat" /var/log/xcat/cluster.log;xCATTraditionalFormat0
:programname, startswith,
"xcat." /var/log/xcat/cluster.log;xCATTraditionalFormat0



Regards,
Huzefa Zakir
Systems Analyst
Direct 832.271.6965
eXcellence in IS Solutions, Inc. (X-ISS)
Making HPC Work for You

From: Mark Gurevich <gurev...@us.ibm.com>
Sent: Tuesday, March 16, 2021 8:11 AM
To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Subject: Re: [xcat-user] cluster.log is not working



The way xcatprobe tests logging into /var/log/xcat/cluster.log is to issue:
"logger -p local4.info -t xcat $log_msg on MN 2>&1"
and then "grep" for the $log_msg in /var/log/xcat/cluster.log
If "grep" can not find that string, the message you are seeing is issued.

Perhaps the "logger" on your system is not setup to log messages with "-t
xcat" into the /var/log/xcat/cluster.log

Check if there is /etc/rsyslog.d/xcat-cluster.conf file on your system. It
should contain something like:

$template xCATTraditionalFormat0,"%timegenerated% %HOSTNAME% %syslogtag%
%syslogseverity-text:::uppercase% %msg:::drop-last-lf%\n"
:programname, isequal,
"xcat" /var/log/xcat/cluster.log;xCATTraditionalFormat0
:programname, startswith,
"xcat." /var/log/xcat/cluster.log;xCATTraditionalFormat0

Mark Gurevich
Poughkeepsie Development Lab
HPC Software Development - xCAT

"If we knew what it was we were doing, it would not be called research,
would it?"
--Albert Einstein



Inactive hide details for Huzefa Zakir via xCAT-user ---03/16/2021 08:10:19
AM---Hello Mark Gurevich Yes, the log is accessibleHuzefa Zakir via
xCAT-user ---03/16/2021 08:10:19 AM---Hello Mark Gurevich Yes, the log is
accessible, I am running the “xcatprobe” as root…..and there is

From: Huzefa Zakir via xCAT-user <xcat-user@lists.sourceforge.net>
To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Cc: Huzefa Zakir <hzu...@x-iss.com>
Date: 03/16/2021 08:10 AM
Subject: [EXTERNAL] Re: [xcat-user] cluster.log is not working




Hello Mark Gurevich

Yes, the log is accessible, I am running the “xcatprobe” as root…..and
there is enough space.
The MN node is running Ubuntu 18.04, just an fyi.


~# ll /var/log/xcat/cluster.log*
-rw-r--r-- 1 root root 0 Mar 14 00:07 /var/log/xcat/cluster.log
-rw-r--r-- 1 root root 0 Mar 14 00:07 /var/log/xcat/cluster.log.1


:xcatprobe xcatmn -i em1
[mn]: Checking all xCAT daemons are running... [ OK ]
[mn]: Checking xcatd can receive command request... [ OK ]
[mn]: Checking 'site' table is configured... [ OK ]
[mn]: Checking provision network is configured... [ OK ]
[mn]: Checking 'passwd' table is configured... [ OK ]
[mn]: Checking important directories(installdir,tftpdir) are configured...
[ OK ]
[mn]: Checking SELinux is disabled... [ OK ]
[mn]: Checking HTTP service is configured... [ OK ]
[mn]: Checking TFTP service is configured... [ OK ]
[mn]: Checking DNS service is configured... [ OK ]
[mn]: Checking DHCP service is configured... [ OK ]
[mn]: Checking NTP service is configured... [ OK ]
[mn]: Checking rsyslog service is configured... [ OK ]
[mn]: Checking firewall is disabled... [ OK ]
[mn]: Checking minimum disk space for xCAT ['/tmp' needs 1GB;'/install'
needs 10GB;'/var' needs 1GB]... [ OK ]
[mn]: Checking Linux ulimits configuration... [ OK ]
[mn]: Checking network kernel parameter configuration... [ OK ]
[mn]: Checking xCAT daemon attributes configuration... [ OK ]
[mn]: Checking xCAT log is stored in /var/log/xcat/cluster.log... [WARN]
[mn]: Failed to store MN logs to /var/log/xcat/cluster.log
[mn]: Checking xCAT management node IP: <172.16.0.1> is configured to
static... [WARN]
[mn]: The value '172.16.0.1' of 'master' in 'site' table isn't a static ip
[mn]: Checking dhcpd.leases file is less than 100M... [ OK ]
=================================== SUMMARY
====================================
[MN]: Checking on MN... [ OK ]
Checking xCAT log is stored in /var/log/xcat/cluster.log... [WARN]
Failed to store MN logs to /var/log/xcat/cluster.log
Checking xCAT management node IP: <172.16.0.1> is configured to static...
[WARN]
The value '172.16.0.1' of 'master' in 'site' table isn't a static ip


Regards,
Huzefa Zakir
Systems Analyst
Direct 832.271.6965
eXcellence in IS Solutions, Inc. (X-ISS)
Making HPC Work for You

From: Mark Gurevich <gurev...@us.ibm.com>
Sent: Monday, March 15, 2021 9:47 AM
To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Subject: Re: [xcat-user] cluster.log is not working


Check if the user running "xcatprobe" can access "/var/log/xcat/cluster.log
" file and if there is enough disk space.

Mark Gurevich
Poughkeepsie Development Lab
HPC Software Development - xCAT

"If we knew what it was we were doing, it would not be called research,
would it?"
--Albert Einstein



Inactive hide details for Huzefa Zakir via xCAT-user ---03/15/2021 10:34:56
AM---OS: Ububtu 18.04 xCAT Ver: 2.16.1Huzefa Zakir via xCAT-user
---03/15/2021 10:34:56 AM---OS: Ububtu 18.04 xCAT Ver: 2.16.1

From: Huzefa Zakir via xCAT-user <xcat-user@lists.sourceforge.net>
To: "xcat-user@lists.sourceforge.net" <xcat-user@lists.sourceforge.net>
Cc: Huzefa Zakir <hzu...@x-iss.com>
Date: 03/15/2021 10:34 AM
Subject: [EXTERNAL] [xcat-user] cluster.log is not working





OS: Ububtu 18.04
xCAT Ver: 2.16.1

When I ran “xcatprobe xcatmn" I get this WARNING, how do I fix this ?

Checking xCAT log is stored in /var/log/xcat/cluster.log... [WARN]
Failed to store MN logs to /var/log/xcat/cluster.log



Regards,
Huzefa
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_xcat-2Duser&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=cGs4a-jfx6Emudek2Wdi4FLq2XKm1pvrlbCQ-h7Qq7A&m=D8r85jA4OA9ief_qkKAKUoOkR5FMCYbnkquEd74PtKw&s=DHCdoTnehwpqccJLy5gGwgjCI0-4RT5g59BR5Kxkhzo&e=


_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_xcat-2Duser&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=cGs4a-jfx6Emudek2Wdi4FLq2XKm1pvrlbCQ-h7Qq7A&m=ENEK-vGEsWPpGzDQQ1Wn_GRlGOcJpnZE4eLn315yjhE&s=jZV8x7Yle7KuUYPgCWrAVJfCF0Qx9REFXfKQ4Rey90I&e=


_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_xcat-2Duser&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=cGs4a-jfx6Emudek2Wdi4FLq2XKm1pvrlbCQ-h7Qq7A&m=GwYgN10yEf7_PCCm-9LmDEPcVQ1NYK9zITt1t1PU6Qw&s=EK0TzpN2Bgudo0A5jc5KF3WrQ2jvX5Q-qvrO0G9wkN4&e=



_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to