diff --git a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/mtms/discovery_using_defined.rst b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/mtms/discovery_using_defined.rst index dbb5e4e92..2a71d8087 100644 --- a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/mtms/discovery_using_defined.rst +++ b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/mtms/discovery_using_defined.rst @@ -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: :: diff --git a/xCAT-server/lib/xcat/plugins/bmcdiscover.pm b/xCAT-server/lib/xcat/plugins/bmcdiscover.pm index 918423eac..80a5cf771 100644 --- a/xCAT-server/lib/xcat/plugins/bmcdiscover.pm +++ b/xCAT-server/lib/xcat/plugins/bmcdiscover.pm @@ -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; }