From 77a82387d21a3a3a050bad27de0ead491d5130be Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 1 May 2012 15:53:19 +0000 Subject: [PATCH] start code for xdsh on MN, interface defined git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12420 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/xdsh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/xCAT-client/bin/xdsh b/xCAT-client/bin/xdsh index bfeec3e06..9abd06c19 100644 --- a/xCAT-client/bin/xdsh +++ b/xCAT-client/bin/xdsh @@ -69,8 +69,8 @@ if ($arg =~ /^-/) # no noderange { # xdcp &parse_args_xdcp; } - if ($::ROOTIMG != 1) - { # if not running against rootimg then noderange required + if (($::ROOTIMG != 1) && ($::MGMTNODE != 1)) + { # if not running against rootimg or on the MN then noderange required xCAT::MsgUtils->message("I", "Node range not specified, see $bname man page for syntax.\n"); exit 1; @@ -217,6 +217,7 @@ sub parse_args_xdsh 'f|fanout=i' => \$options{'fanout'}, 'h|help' => \$options{'help'}, 'l|user=s' => \$options{'user'}, + 'M|mgmtnode' => \$options{'mgmtnode'}, 'm|monitor' => \$options{'monitor'}, 'o|node-options=s' => \$options{'node-options'}, 'q|show-config' => \$options{'show-config'}, @@ -451,6 +452,10 @@ sub parse_args_xdsh { $::ROOTIMG = 1; } + if ($options{'mgmtnode'}) + { + $::MGMTNODE = 1; + } if ($options{'node-rsh'}) # if set on command line, use it { $::NODE_RSH = 1; @@ -501,6 +506,7 @@ sub parse_args_xdcp 'h|help' => \$options{'help'}, 'i|rootimg=s' => \$options{'rootimg'}, 'l|user=s' => \$options{'user'}, + 'M|mgmtnode' => \$options{'mgmtnode'}, 'n|nodes=s' => \$options{'nodes'}, 'o|node-options=s' => \$options{'node-options'}, 'q|show-config' => \$options{'show-config'}, @@ -576,6 +582,10 @@ sub parse_args_xdcp { $::ROOTIMG = 1; } + if ($options{'mgmtnode'}) + { + $::MGMTNODE = 1; + } if (($options{'rootimg'}) && (!($options{'File'}))) { xCAT::MsgUtils->message("E",