From 148e24429cf2fe615849188269dbc9fff86203a7 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 19 May 2010 15:42:55 +0000 Subject: [PATCH] -Fix rspconfig alert on IPMI devices git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6173 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ipmi.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 15f46413e..546172481 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -622,7 +622,7 @@ sub setnetinfo { ($subcommand,$argument) = split(/=/,$subcommand); my @input = @_; - my $netfun = 0x30; + my $netfun = 0x0c; my @cmd; my @returnd = (); my $error; @@ -644,10 +644,10 @@ sub setnetinfo { return idpxthermprofile($argument); } if ($subcommand eq "alert" and $argument eq "on" or $argument =~ /^en/ or $argument =~ /^enable/) { - $netfun = 0x10; + $netfun = 0x4; @cmd = (0x12,0x9,0x1,0x18,0x11,0x00); } elsif ($subcommand eq "alert" and $argument eq "off" or $argument =~ /^dis/ or $argument =~ /^disable/) { - $netfun = 0x10; + $netfun = 0x4; @cmd = (0x12,0x9,0x1,0x10,0x11,0x00); } elsif($subcommand eq "garp") { @@ -695,7 +695,7 @@ sub setnetinfo { return(1,"configuration of $subcommand is not implemented currently"); } my $command = shift @cmd; - $sessdata->{ipmisession}->subcmd(netfn=>0x0c,command=>$command,data=>\@cmd,callback=>\&netinfo_set,callback_args=>$sessdata); + $sessdata->{ipmisession}->subcmd(netfn=>$netfun,command=>$command,data=>\@cmd,callback=>\&netinfo_set,callback_args=>$sessdata); } sub netinfo_set { my $rsp = shift; @@ -756,7 +756,7 @@ sub getnetinfo { my $netfun = 0x0c; if ($subcommand eq "alert") { - $netfun = 0x10; + $netfun = 0x4; @cmd = (0x13,9,1,0); } elsif($subcommand eq "garp") {