From 5c5ebf2c42fa5a9d13e3b8b34513e037f1bc0683 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 29 Nov 2012 22:01:42 +0000 Subject: [PATCH] Have bmcconfig.pm implement remoteimmsetup command git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14488 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/bmcconfig.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/bmcconfig.pm b/xCAT-server/lib/xcat/plugins/bmcconfig.pm index 1496931f2..577c998a6 100644 --- a/xCAT-server/lib/xcat/plugins/bmcconfig.pm +++ b/xCAT-server/lib/xcat/plugins/bmcconfig.pm @@ -5,6 +5,7 @@ use xCAT::Table; use xCAT::MsgUtils; use xCAT::Utils; use xCAT::PasswordUtils; +use xCAT::IMMUtils; use xCAT::TableUtils; use IO::Select; use Socket; @@ -130,6 +131,10 @@ sub process_request { $callback->({error=>["Invalid table configuration for bmcconfig"],errorcode=>[1]}); return 1; } + if ($request->{command}->[0] eq 'remoteimmsetup') { + xCAT::IMMUtils::setupIMM($node,cliusername=>$username,clipassword=>$password,callback=>$callback); + return; + } my $response={bmcip=>$ip,netmask=>$mask,gateway=>$gw,username=>$username,password=>$password}; if (defined $bmcport) { $response->{bmcport}=$bmcport;