diff --git a/xCAT-client-2.0/bin/rinstall b/xCAT-client-2.0/bin/rinstall new file mode 100755 index 000000000..0e2f09d10 --- /dev/null +++ b/xCAT-client-2.0/bin/rinstall @@ -0,0 +1,50 @@ +#!/usr/bin/env perl +use strict; +use Getopt::Long; +use File::Basename; +sub usage { + print basename($0)." usage:\n"; + print " ".basename($0)." [-o|--osver [-p|--profile] [-a|--arch] [-c|--console] \n" +} + +my $OSVER; +my $PROFILE; +my $ARCH; +my $CONSOLE; +unless (GetOptions( + 'o|osver=s' => \$OSVER, + 'p|profile=s' => \$PROFILE, + 'a|arch=s' => \$ARCH, + 'c|console' => \$CONSOLE + )) { + usage; + exit 1; +} +my $noderange=join(',',@ARGV); +my $nodechline = ""; +if ($OSVER) { + $nodechline = "nodetype.os=$OSVER"; +} +if ($PROFILE) { + $nodechline .= " nodetype.profile=$PROFILE"; +} +if ($ARCH) { + $nodechline .= " nodetype.arch=$ARCH"; +} + +my $rc; +if ($nodechline) { + $rc=system("nodech $noderange $nodechline"); +} +if ($rc) { die "nodech failure" }; +$rc=system("nodeset $noderange install"); +if ($rc) { die "nodeset failure" }; +$rc=system("rpower $noderange boot"); +if ($rc) { die "rpower failure" }; +if (basename($0) =~ /rinstall/) { + if ($CONSOLE) { + exec("rcons $noderange"); + } +} elsif (basename($0) =~ /winstall/) { + exec("wcons $noderange"); +} diff --git a/xCAT-client-2.0/bin/winstall b/xCAT-client-2.0/bin/winstall new file mode 120000 index 000000000..0bae78d7c --- /dev/null +++ b/xCAT-client-2.0/bin/winstall @@ -0,0 +1 @@ +rinstall \ No newline at end of file diff --git a/xCAT-client-2.0/pods/man8/rinstall.8.pod b/xCAT-client-2.0/pods/man8/rinstall.8.pod new file mode 100644 index 000000000..2fd89d4fe --- /dev/null +++ b/xCAT-client-2.0/pods/man8/rinstall.8.pod @@ -0,0 +1,59 @@ +=head1 Name + +B - Begin installation on a noderange + +=head1 B + +B [I<-o>|I<--osver>] [I<-p>|I<--profile>] [I<-a>|I<--arch>] [I<-c>|I<--console>] [I] + +=head1 B + +B is a convience command that will change tables as requested for operating system version, profile, and architecture, call nodeset to modify the network boot configuration, and rpower to begin a boot cycle. If -c is specified, it will then become the +text console of the node. If wanting consoles on multiple nodes with a similar command, see L. + +=head1 B + +=over 7 + +=item B<-o>|B<--osver> + +Specifies which os version to install. If unspecified, the current table values are used. + +=item B<-p>|B<--profile> + +Specifies what profile should be used of the operating system. If not specified the tables are used as is. + + +=item B<-a>|B<--arch> + +Specifies what architecture of the OS to install. Typically this is unneeded, but if provisioning betweer x86_64 and x86 frequently, this may be a useful flag. + +=item B<-c>|B<--console> + + +Requests that rinstall become rcons once the install commences. This will only work if there is only one node in the noderange. See L for consoles on multiple systems. +=back + + +=head1 B + +B I + +Install nodes 1 through 20, using configuration as is from tables. + +B -o rhels5.1 -p compute I + +Install nodes 1 through 20, forcing rhels5.1 and compute profile. + +B -c I + +Install node1 and start a console to monitor the process + + +=head1 B + +Jarrod B Johnson + +=head1 B B + +L, L, L diff --git a/xCAT-client-2.0/pods/man8/winstall.8.pod b/xCAT-client-2.0/pods/man8/winstall.8.pod new file mode 100644 index 000000000..e2598da88 --- /dev/null +++ b/xCAT-client-2.0/pods/man8/winstall.8.pod @@ -0,0 +1,48 @@ +=head1 Name + +B - Begin installation on a noderange + +=head1 B + +B [I<-o>|I<--osver>] [I<-p>|I<--profile>] [I<-a>|I<--arch>] [I] + +=head1 B + +B is a convience command that will change tables as requested for operating system version, profile, and architecture, call nodeset to modify the network boot configuration, and rpower to begin a boot cycle. It will then commence a wcons command to the +noderange for monitoring. + +=head1 B + +=over 7 + +=item B<-o>|B<--osver> + +Specifies which os version to install. If unspecified, the current table values are used. + +=item B<-p>|B<--profile> + +Specifies what profile should be used of the operating system. If not specified the tables are used as is. + + +=item B<-a>|B<--arch> + +Specifies what architecture of the OS to install. Typically this is unneeded, but if provisioning betweer x86_64 and x86 frequently, this may be a useful flag. + +=head1 B + +B I + +Install nodes 1 through 20, using configuration as is from tables. + +B -o rhels5.1 -p compute I + +Install nodes 1 through 20, forcing rhels5.1 and compute profile. + + +=head1 B + +Jarrod B Johnson + +=head1 B B + +L, L, L