diff --git a/docs/source/guides/admin-guides/references/man8/makeconservercf.8.rst b/docs/source/guides/admin-guides/references/man8/makeconservercf.8.rst index 28221da31..19ae43ea6 100644 --- a/docs/source/guides/admin-guides/references/man8/makeconservercf.8.rst +++ b/docs/source/guides/admin-guides/references/man8/makeconservercf.8.rst @@ -19,7 +19,7 @@ SYNOPSIS ******** -\ **makeconservercf**\ [\ **-V|-**\ **-verbose**\ ] [\ **-d|-**\ **-delete**\ ] \ *noderange*\ +\ **makeconservercf**\ [\ **-V|-**\ **-verbose**\ ] [\ **-d|-**\ **-delete**\ ] [\ *noderange*\ ] \ **makeconservercf**\ [\ **-V|-**\ **-verbose**\ ] [\ **-l|-**\ **-local**\ ] [\ *noderange*\ ] @@ -36,14 +36,16 @@ DESCRIPTION The \ **makeconservercf**\ command will write out the /etc/conserver.cf, using information from the nodehm table -and related tables (e.g. mp, ipmi, ppc). Normally, \ **makeconservercf**\ will write all nodes to the conserver.cf -file. If a noderange is specified, it will write on those nodes to the file. In either case, if a node +and related tables (e.g. mp, ipmi, ppc). Normally, \ **makeconservercf**\ will write all nodes to the /etc/conserver.cf +file. If a \ *noderange*\ is specified, it will write only those nodes to the file. In either case, if a node does not have nodehm.cons set, it will not be written to the file. +If \ **-d**\ is specified, \ **makeconservercf**\ will remove specified nodes from /etc/conserver.cf file. If \ *noderange*\ is not specified, all xCAT nodes will be removed from /etc/conserver.cf file. + In the case of a hierarchical cluster (i.e. one with service nodes) \ **makeconservercf**\ will determine which nodes will have their consoles accessed from the management node and which from a service node (based on the nodehm.conserver attribute). The /etc/conserver.cf file will be created accordingly on -all relevant management/service nodes. If -l is specified, it will only create the local file. +all relevant management/service nodes. If \ **-l**\ is specified, it will only create the local file. ******* diff --git a/xCAT-client/pods/man8/makeconservercf.8.pod b/xCAT-client/pods/man8/makeconservercf.8.pod index 06ea193c6..5b4dad03d 100644 --- a/xCAT-client/pods/man8/makeconservercf.8.pod +++ b/xCAT-client/pods/man8/makeconservercf.8.pod @@ -4,7 +4,7 @@ B - creates the conserver configuration file from info in the x =head1 SYNOPSIS -B [B<-V|--verbose>] [B<-d|--delete>] I +B [B<-V|--verbose>] [B<-d|--delete>] [I] B [B<-V|--verbose>] [B<-l|--local>] [I] @@ -18,14 +18,16 @@ B [B<-h|--help|-v|--version>] =head1 DESCRIPTION The B command will write out the /etc/conserver.cf, using information from the nodehm table -and related tables (e.g. mp, ipmi, ppc). Normally, B will write all nodes to the conserver.cf -file. If a noderange is specified, it will write on those nodes to the file. In either case, if a node +and related tables (e.g. mp, ipmi, ppc). Normally, B will write all nodes to the /etc/conserver.cf +file. If a I is specified, it will write only those nodes to the file. In either case, if a node does not have nodehm.cons set, it will not be written to the file. +If B<-d> is specified, B will remove specified nodes from /etc/conserver.cf file. If I is not specified, all xCAT nodes will be removed from /etc/conserver.cf file. + In the case of a hierarchical cluster (i.e. one with service nodes) B will determine which nodes will have their consoles accessed from the management node and which from a service node (based on the nodehm.conserver attribute). The /etc/conserver.cf file will be created accordingly on -all relevant management/service nodes. If -l is specified, it will only create the local file. +all relevant management/service nodes. If B<-l> is specified, it will only create the local file. =head1 OPTIONS diff --git a/xCAT-server/lib/xcat/plugins/conserver.pm b/xCAT-server/lib/xcat/plugins/conserver.pm index 8fdc5dfec..24336d186 100644 --- a/xCAT-server/lib/xcat/plugins/conserver.pm +++ b/xCAT-server/lib/xcat/plugins/conserver.pm @@ -428,7 +428,7 @@ sub makeconservercf { # Now add into the file all the node entries that we kept my $node; - if ($node = donodeent(\%cfgenthash, \@filecontent)) { + if ($node = donodeent(\%cfgenthash, \@filecontent, $delmode)) { # donodeent will return the 1st node in error #$cb->({node=>[{name=>$node,error=>"Bad configuration, check attributes under the nodehm category",errorcode=>1}]});