reventlog supporting Firebird through CMM

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@14580 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2012-12-07 06:47:44 +00:00
parent b1634bdf06
commit 5baf467a50
2 changed files with 8 additions and 5 deletions

View File

@ -59,7 +59,7 @@ sub handled_commands {
rspreset => 'nodehm:mgt',
rspconfig => 'nodehm:mgt=blade|fsp', # Get into blade.pm for rspconfig if mgt equals blade or fsp
rbootseq => 'nodehm:mgt',
reventlog => 'nodehm:mgt',
reventlog => 'nodehm:mgt=blade|fsp',
switchblade => 'nodehm:mgt',
renergy => 'nodehm:mgt',
lsflexnode => 'blade',
@ -400,16 +400,19 @@ sub eventlog { #Tried various optimizations, but MM seems not to do bulk-request
my $text=$5;
my $matchstring;
if ($slot > 0) {
$matchstring=sprintf("BLADE_%02d",$slot);
#$matchstring=sprintf("BLADE_%02d",$slot);
$matchstring=sprintf("NODE_%02d",$slot);
} else {
$matchstring="^(?!BLADE).*";
#$matchstring="^(?!BLADE).*";
$matchstring="^(?!NODE).*";
}
if ($source =~ m/$matchstring$/i) { #MM guys changed their minds on capitalization
$numentries++;
unshift @output,"$sev:$date $time $text"; #unshift to get it in a sane order
} else {
foreach (@moreslots) {
$matchstring=sprintf("BLADE_%02d",$_);
#$matchstring=sprintf("BLADE_%02d",$_);
$matchstring=sprintf("NODE_%02d",$_);
if ($source =~ m/$matchstring$/i) { #MM guys changed their minds on capitalization
$numentries++;
unshift @output,"$sev:$date $time $text"; #unshift to get it in a sane order

View File

@ -12,7 +12,7 @@ use xCAT_plugin::hmc;
sub handled_commands {
return {
rpower => 'nodehm:power,mgt',
reventlog => 'nodehm:mgt',
#reventlog => 'nodehm:mgt',
rspconfig => 'nodehm:mgt',
mkhwconn => 'nodehm:mgt',
rmhwconn => 'nodehm:mgt',