diff --git a/xCAT-server-2.0/lib/xcat/plugins/blade.pm b/xCAT-server-2.0/lib/xcat/plugins/blade.pm index 565a0ddb0..cea6a17b3 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/blade.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/blade.pm @@ -258,6 +258,9 @@ sub eventlog { #Tried various optimizations, but MM seems not to do bulk-request my $data; my @output; my $oid = $eventlogoid; + unless ($cmd) { + $cmd='all'; + } if ($cmd eq 'all') { $cmd=65535; #no MM has this many logs possible, should be a good number } diff --git a/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm b/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm index 2d0087405..0fcf10fa2 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm @@ -2349,6 +2349,9 @@ sub eventlog { ($rc,$text,$mfg_id,$prod_id,$device_id) = getdevid(); $rc=0; + unless (defined($subcommand)) { + $subcommand = 'all'; + } if($subcommand eq "all") { $num = 0x100 * 0x100; }