From a188362ffa0206d0639126eaad8b20e1374952c9 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 1 Apr 2008 18:10:39 +0000 Subject: [PATCH] Fix code and add manpage git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@961 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client-2.0/pods/man8/mkrrnodes.8.pod | 69 ++++++++++++++++++++++ xCAT-server-2.0/share/xcat/tools/mkrrnodes | 3 +- 2 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 xCAT-client-2.0/pods/man8/mkrrnodes.8.pod diff --git a/xCAT-client-2.0/pods/man8/mkrrnodes.8.pod b/xCAT-client-2.0/pods/man8/mkrrnodes.8.pod new file mode 100644 index 000000000..d54dd5c5c --- /dev/null +++ b/xCAT-client-2.0/pods/man8/mkrrnodes.8.pod @@ -0,0 +1,69 @@ +=head1 NAME + +B - Adds or deletes nodes in the xCAT cluster database. + + +=head1 SYNOPSIS + +B [-d ]| [-C a|b|,...,r] -R [startrange,endrange] + + +B [B<-h> | B<--help>] + + +=head1 DESCRIPTION + +The mkrrnodes add or delete (-d) the nodes requested by inputting the CU name (-C) flag and the start and end range (-R) flag. It will also automatically define required nodegroups. + +=head1 OPTIONS + + +=over 10 + +=item B<-h|--help> + +Display usage message. + +=back + + +=head1 RETURN VALUE + +=over 3 + +=item 0 + +The command completed successfully. + +=item 1 + +An error has occurred. + +=back + + +=head1 EXAMPLES + +=over 2 + +=item * + +To build a nodelist entry like this "rrb048c","rrb048,qs22,cub,cell,cell-c,compute,tb,rack06",,,,: + +B -C b -R 048,048 + +To delete a nodelist entry like this "rrb048c","rrb048,qs22,cub,cell,cell-c,compute,tb,rack06",,,,: + +B -d -C b -R 048,048 + +=item * + + +=back + + +=head1 FILES + +/opt/xcat/share/xcat/tools/mkrrnodes + + diff --git a/xCAT-server-2.0/share/xcat/tools/mkrrnodes b/xCAT-server-2.0/share/xcat/tools/mkrrnodes index 201f357bb..ef742fade 100644 --- a/xCAT-server-2.0/share/xcat/tools/mkrrnodes +++ b/xCAT-server-2.0/share/xcat/tools/mkrrnodes @@ -16,7 +16,7 @@ use Getopt::Long; mkrrnodes -d -C -R (delete) Build an nodelist entry that looks like this - "rrb048c","rrb048,qs22,cub,cell,cell-c,compute,tb,rack06","blade,osi",,, + "rrb048c","rrb048,qs22,cub,cell,cell-c,compute,tb,rack06",,,, =cut @@ -58,7 +58,6 @@ foreach my $CU (@::CU) } else { $cmd .= ",rack06"; } - $cmd .=" nodelist.nodetype=blade,osi"; if ($::DELETE) { system("noderm $cmd"); } else {