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 7049af972..a310c908e 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,11 +27,11 @@ 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: :: - bmcdiscover --range 172.30.0.1 -t -z -w + bmcdiscover --range 172.30.0.1 -z -w The discovered nodes will be written to xCAT database: :: @@ -47,6 +47,7 @@ The BMC IP address is obtained by the open range dhcp server and the plan in thi postbootscripts=otherpkgs postscripts=syslog,remoteshell,syncfiles serial=10112CA + nodetype=mp #. **Pre-define** the compute nodes: @@ -68,6 +69,8 @@ The BMC IP address is obtained by the open range dhcp server and the plan in thi mgt=ipmi mtm=8247-22L serial=10112CA + nodetype=mp + hwtype=bmc #. Edit the ``predefined.stanzas`` file and change the discovered nodes to the intended ``hostname`` and ``IP address``. @@ -84,6 +87,8 @@ The BMC IP address is obtained by the open range dhcp server and the plan in thi ip=10.1.2.1 + #. Remove ``nodetype`` and ``hwtype`` from ``predefined.stanza`` file based on the MTMS mapping. + #. Repeat for additional nodes in the ``predefined.stanza`` file based on the MTMS mapping. diff --git a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/pbmc_discovery_with_bmcdiscover.rst b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/pbmc_discovery_with_bmcdiscover.rst index d81c0cd5b..f3388c855 100644 --- a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/pbmc_discovery_with_bmcdiscover.rst +++ b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/pbmc_discovery_with_bmcdiscover.rst @@ -5,7 +5,7 @@ After environment is ready, and the server is powered, we can start server disco The following command can be used to discovery BMC within an IP range and write the discovered node definition into xCAT database:: - bmcdiscover -s nmap --range 50.0.100.1-100 -t -z -w + bmcdiscover -s nmap --range 50.0.100.1-100 -z -w The discovered BMC node will be like this:: @@ -27,7 +27,7 @@ The discovered BMC node will be like this:: 2. bmcdiscover will use username/password pair set in ``passwd`` table with **key** equal **ipmi**. If you'd like to use other username/password pair, you can use :: - bmcdiscover -s nmap --range 50.0.100.1-100 -t -z -w -u -p + bmcdiscover -s nmap --range 50.0.100.1-100 -z -w -u -p Start discovery process ----------------------- diff --git a/docs/source/guides/admin-guides/references/man1/bmcdiscover.1.rst b/docs/source/guides/admin-guides/references/man1/bmcdiscover.1.rst index 00a06fb0c..efe3bde5b 100644 --- a/docs/source/guides/admin-guides/references/man1/bmcdiscover.1.rst +++ b/docs/source/guides/admin-guides/references/man1/bmcdiscover.1.rst @@ -23,7 +23,7 @@ SYNOPSIS \ **bmcdiscover**\ [\ **-v | -**\ **-version**\ ] -\ **bmcdiscover**\ [\ **-s**\ \ *scan_method*\ ] [\ **-u**\ \ *bmc_user*\ ] [\ **-p**\ \ *bmc_passwd*\ ] [\ **-z**\ ] [\ **-w**\ ] [\ **-t**\ ] \ **-**\ **-range**\ \ *ip_ranges*\ +\ **bmcdiscover**\ [\ **-s**\ \ *scan_method*\ ] [\ **-u**\ \ *bmc_user*\ ] [\ **-p**\ \ *bmc_passwd*\ ] [\ **-z**\ ] [\ **-w**\ ] \ **-**\ **-range**\ \ *ip_ranges*\ \ **bmcdiscover**\ \ **-u**\ \ *bmc_user*\ \ **-p**\ \ *bmc_passwd*\ \ **-i**\ \ *bmc_ip*\ \ **-**\ **-check**\ @@ -74,12 +74,6 @@ OPTIONS -\ **-t**\ - - Generate a BMC type node object - - - \ **-i|-**\ **-bmcip**\ BMC IP address. diff --git a/xCAT-client/pods/man1/bmcdiscover.1.pod b/xCAT-client/pods/man1/bmcdiscover.1.pod index 09abbe40c..3d4058f51 100644 --- a/xCAT-client/pods/man1/bmcdiscover.1.pod +++ b/xCAT-client/pods/man1/bmcdiscover.1.pod @@ -8,7 +8,7 @@ B [B<-?>|B<-h>|B<--help>] B [B<-v>|B<--version>] -B [B<-s> I] [B<-u> I] [B<-p> I] [B<-z>] [B<-w>] [B<-t>] B<--range> I +B [B<-s> I] [B<-u> I] [B<-p> I] [B<-z>] [B<-w>] B<--range> I B B<-u> I B<-p> I B<-i> I B<--check> @@ -45,10 +45,6 @@ List the data returned in xCAT stanza format Write to the xCAT database. -=item B<-t> - -Generate a BMC type node object - =item B<-i|--bmcip> BMC IP address. diff --git a/xCAT-server/lib/xcat/plugins/bmcdiscover.pm b/xCAT-server/lib/xcat/plugins/bmcdiscover.pm index 350294aff..ecf5449f4 100644 --- a/xCAT-server/lib/xcat/plugins/bmcdiscover.pm +++ b/xCAT-server/lib/xcat/plugins/bmcdiscover.pm @@ -115,7 +115,7 @@ sub bmcdiscovery_usage { push @{ $rsp->{data} }, "Usage:"; push @{ $rsp->{data} }, "\tbmcdiscover [-?|-h|--help]"; push @{ $rsp->{data} }, "\tbmcdiscover [-v|--version]"; - push @{ $rsp->{data} }, "\tbmcdiscover [-s scan_method] [-u bmc_user] [-p bmc_passwd] [-z] [-w] [-t] --range ip_range\n"; + push @{ $rsp->{data} }, "\tbmcdiscover [-s scan_method] [-u bmc_user] [-p bmc_passwd] [-z] [-w] --range ip_range\n"; push @{ $rsp->{data} }, "\tCheck BMC administrator User/Password:\n"; push @{ $rsp->{data} }, "\t\tbmcdiscover -u bmc_user -p bmc_password -i bmc_ip --check\n"; @@ -255,6 +255,13 @@ sub bmcdiscovery_processargs { return 1; } + if ($::opt_T) { + my $msg = "The -t option is deprecated and will be ignored"; + my $rsp = {}; + push @{ $rsp->{data} }, "$msg"; + xCAT::MsgUtils->message("W", $rsp, $::CALLBACK); + } + scan_process($::opt_M, $::opt_R, $::opt_Z, $::opt_W, $request_command); return 0; } @@ -935,9 +942,7 @@ sub bmcdiscovery_ipmi { } else { $ip .= ",,"; } - if ($::opt_T) { - $ip .= ",mp,bmc"; - } + $ip .= ",mp,bmc"; if ($mtm and $serial) { $node = "node-$mtm-$serial"; $node =~ s/(.*)/\L$1/g;