mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-12 00:00:12 +00:00
Add WARN message if it has '-t' options
This commit is contained in:
@ -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: ::
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user