2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-12 17:30:19 +00:00

Add WARN message if it has '-t' options

This commit is contained in:
Casandra Qiu
2016-10-11 22:15:29 -04:00
parent 6e26da06b4
commit f69ced6932
2 changed files with 9 additions and 1 deletions

View File

@ -27,7 +27,7 @@ The BMC IP address is obtained by the open range dhcp server and the plan in thi
#. Detect the BMCs and add the node definitions into xCAT.
Use the ``bmcdiscover`` command to discover the BMCs responding over an IP range and automatically write the output into the xCAT database. You **must** use the ``-t`` option to indicate node type is bmc and the ``-w`` option to automatically write the output into the xCAT database.
Use the ``bmcdiscover`` command to discover the BMCs responding over an IP range and automatically write the output into the xCAT database. You **must** use the ``-w`` option to automatically write the output into the xCAT database.
To discover the BMC with an IP address of 172.30.0.1, use the command: ::

View File

@ -168,6 +168,7 @@ sub bmcdiscovery_processargs {
'bmcpasswd|p=s' => \$::opt_P,
'ipsource' => \$::opt_S,
'version|v' => \$::opt_v,
't' => \$::opt_T,
);
if (!$getopt_success) {
@ -254,6 +255,13 @@ sub bmcdiscovery_processargs {
return 1;
}
if ($::opt_T) {
my $msg = "WARN: The -t option is deprecated and will be ignored";
my $rsp = {};
push @{ $rsp->{data} }, "$msg";
xCAT::MsgUtils->message("I", $rsp, $::CALLBACK);
}
scan_process($::opt_M, $::opt_R, $::opt_Z, $::opt_W, $request_command);
return 0;
}