'Discover Hardware',
'patterns' => 'Cluster Patterns',
'patterns2' => 'More Cluster Patterns',
'preparemn' => 'Prepare Management Node',
'prediscover' => 'Power On Hardware',
'discover' => 'Discover HW Control Points',
'updatedefs' => 'Update Definitions',
'configurehcps' => 'Configure HW Control Points',
'createnodes' => 'Create Nodes',
'testhcps' => 'Test HW Control',
'done' => 'Complete',
);
if (isset($_REQUEST['page'])) { displayWizard($pages); }
else { // initial display of the wizard, show the whole page
insertHeader('Discover New Nodes', array('discover.css',"$TOPDIR/lib/wizard.css"), NULL, array('machines','discover'));
echo "
\n";
displayWizard($pages);
echo "
\n"; // end the content div
insertFooter();
}
//-----------------------------------------------------------------------------
function intro() {
echo "This wizard will guide you through the process of defining the naming conventions within your cluster, discovering the hardware on your network, and automatically defining it in the xCAT database.";
echo " Choose which type of hardware you want to discover, and then click Next.
\n";
// The least hacky way to get this list left justified, but have the block in the center, is to use a table. CSS snobs, just deal with it.
echo "\n";
}
//-----------------------------------------------------------------------------
function patterns() {
echo "\n";
//todo: get HCP userids/pws from the user
}
//-----------------------------------------------------------------------------
function patterns2() {
echo "\n";
// do we need to get any info about the resources that should be in each lpar, or do we just divide them evenly?
}
//-----------------------------------------------------------------------------
function preparemn() {
global $TOPDIR;
echo "\n";
echo "- Write Cluster Topology Configuration File.
\n";
echo "- Define networks.
\n"; // run makenetworks and update the dynamic range for the service LAN
echo "- Configure DHCP.
\n"; // run makedhcp and show progress
echo "
\n";
}
//-----------------------------------------------------------------------------
function prediscover() {
echo "\n";
echo " Do the following manual steps now: \n";
echo "- Power on all of the HMCs.
\n";
echo "- Then power on all of frames.
\n";
echo "- Then click Next to discover the hardware on the service network.
\n";
echo "
|
\n";
}
//-----------------------------------------------------------------------------
function discover() {
global $TOPDIR;
//todo: run lsslp and show progress
echo "\n";
echo "- Discovering HMCs, BPAs, and FSPs...
\n";
echo "
\n";
echo "(This will show the list of hw discovered & located, including nodenames and IP addresses assigned, and then save all info to the DB.)
\n";
}
//-----------------------------------------------------------------------------
function updatedefs() {
global $TOPDIR;
echo "\n";
echo "- Determine which CECs each HMC should manage.
\n";
echo "- Assign frame numbers, supernode numbers, and building block numbers.
\n";
echo "- Assign building block subnets.
\n";
echo "- Update name resolution.
\n"; // run makedhosts and makedns
echo "
\n";
}
//-----------------------------------------------------------------------------
function configurehcps() {
global $TOPDIR;
echo "\n";
echo "- Assign CECs to their HMC.
\n";
echo "- Set frame numbers in BPAs.
\n";
echo "- Power on CECs to Standby.
\n";
echo "
\n";
//todo: set HCP userids/pws
}
//-----------------------------------------------------------------------------
function createnodes() {
global $TOPDIR;
echo "\n";
echo "- Create LPARs in each CEC.
\n";
echo "- Save node definitions in xCAT database.
\n";
echo "
\n";
}
//-----------------------------------------------------------------------------
function testhcps() {
global $TOPDIR;
echo "\n";
echo "- (Output for rpower stat for sample nodes)
\n";
echo "- (Output for rinv for sample nodes)
\n";
echo "- (Output for rvitals for sample nodes)
\n";
echo "
\n";
}
//-----------------------------------------------------------------------------
function done() {
global $TOPDIR;
echo "Cluster set up successfully completed!
\n";
echo "You can now view your node definitions and start to deploy nodes.
\n";
}
?>