From 717a5c93286314211f178cf85cd175fb5f48c49a Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 1 Apr 2010 18:50:38 +0000 Subject: [PATCH] do not log getbladecons,getipmicons, getdestiny to audit or syslog git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5643 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index a5d3aa399..800843a52 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -1652,8 +1652,11 @@ sub validate { } } # If we are still in, that means this rule is the first match and dictates behavior. + # We are not going to log getdestiny,getbladecons,getipmicons commands, way + # too many of them #print Dumper($request); if ($rule->{rule}) { + if (($request->{command}->[0] ne "getdestiny") && ($request->{command}->[0] ne "getbladecons") && ($request->{command}->[0] ne "getipmicons")) { my $logst; my $rc; my $status; @@ -1727,11 +1730,12 @@ sub validate { $rsp->{status} -> [0] = $status; xCAT::MsgUtils->message("SA",$rsp); return $rc; + } # end getbladecons,etc check } else { #Shouldn't be possible.... xCAT::MsgUtils->message("S","Impossible line in xcatd reached"); return 0; } - } + } # end RULE #Reached end of policy table, reject by default. xCAT::MsgUtils->message("S","Request matched no policy rule: ".$request->{command}->[0]); return 0;