diff --git a/perl-xCAT/xCAT/FSPvitals.pm b/perl-xCAT/xCAT/FSPvitals.pm index 6915f26ae..360329c38 100644 --- a/perl-xCAT/xCAT/FSPvitals.pm +++ b/perl-xCAT/xCAT/FSPvitals.pm @@ -432,8 +432,10 @@ sub lcds { } } - if( $type =~ /lpar|blade/ ) { + if( $type eq "lpar" ) { $action = "query_lcds"; + } elsif ($type eq "blade") { + $action = "pblade_query_lcds"; } else { $action = "cec_query_lcds"; } diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 38704e0d1..a1e58f3d3 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -3464,7 +3464,7 @@ sub bladecmd { if (defined($vitals_info) and defined($vitals_info->{$currnode})) { my $attr = $vitals_info->{$currnode}; my $fsp_api = ($::XCATROOT) ? "$::XCATROOT/sbin/fsp-api" : "/opt/xcat/sbin/fsp-api"; - my $cmd = "$fsp_api -a query_lcds -T 0 -t 0:$$attr[3]:$$attr[0]:$currnode: 2>&1"; + my $cmd = "$fsp_api -a pblade_query_lcds -T 0 -t 0:$$attr[3]:$$attr[0]:$currnode: 2>&1"; my $res = xCAT::Utils->runcmd($cmd, -1); if ($res !~ /error/i) { my @array = split(/\n/, $res);