-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
This commit is contained in:
jbjohnso 2008-05-05 13:47:09 +00:00
parent e2b1e7ed0a
commit 638163ba59
2 changed files with 6 additions and 0 deletions

View File

@ -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
}

View File

@ -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;
}