From 638163ba59c14f9bfc759cc0ecae76af20052581 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 5 May 2008 13:47:09 +0000 Subject: [PATCH] -Assume 'all' for eventlog for ipmi and blade if no value given git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1272 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/blade.pm | 3 +++ xCAT-server-2.0/lib/xcat/plugins/ipmi.pm | 3 +++ 2 files changed, 6 insertions(+) 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; }