/** * Execute when the DOM is fully loaded */ $(document).ready(function() { // Load utility scripts (if any) }); /** * Constructor * * @return Nothing */ var ipmiPlugin = function() { }; /** * Steps for hardware discovery wizard * * @return Discovery steps */ ipmiPlugin.prototype.getStep = function(){ return ['Basic patterns', 'Switches', 'Network', 'Services', 'Power on hardware']; }; /** * return steps's init function for hardware discovery wizard * * @return Nothing */ ipmiPlugin.prototype.getInitFunction = function(){ return [idataplexInitBasic, idataplexInitSwitch, idataplexInitNetwork, idataplexInitService, idataplexInitPowerOn]; }; ipmiPlugin.prototype.getNextFunction = function(){ return [idataplexCheckBasic, undefined, idataplexCheckNetwork, undefined, undefined]; }; /** * Clone node (service page) * * @param node * Node to clone * @return Nothing */ ipmiPlugin.prototype.serviceClone = function(node) { }; /** * Load provision page (service page) * * @param tabId * Tab ID where page will reside * @return Nothing */ ipmiPlugin.prototype.loadServiceProvisionPage = function(tabId) { }; /** * Show node inventory (service page) * * @param data * Data from HTTP request * @return Nothing */ ipmiPlugin.prototype.loadServiceInventory = function(data) { }; /** * Load node inventory * * @param data * Data from HTTP request * @return Nothing */ ipmiPlugin.prototype.loadInventory = function(data) { var args = data.msg.split(','); var tabId = args[0].replace('out=', ''); var node = args[1].replace('node=', ''); // Get node inventory var inv = data.rsp; // Remove loader $('#' + tabId).find('img').remove(); // Create division to hold inventory var invDiv = $('
'); // Create a fieldset var fieldSet = $(''); var legend = $(''); fieldSet.append(legend); var oList = $('Select a group to view its nodes
It will take several minutes before the nodes are up and ready. Use nodestat to check the status of the install.'); } } } /** * step 2: init the idataplex basic pattern * * @param * * @return */ function idataplexInitBasic(){ var tempip = ''; $('#discoverContentDiv').empty(); $('.tooltip').remove(); var showString = '
Nodes: | |||
Name Range: | '; //nodes start ip if (getDiscoverEnv('idataplexnodeip')){ tempip = getDiscoverEnv('idataplexnodeip'); } else{ tempip = '172.30.20.1'; } showString += ' | Start IP: | |
Nodes number per Frame: | |||
BMCs: | |||
Name Range: | '; //bmc start ip if (getDiscoverEnv('idataplexbmcip')){ tempip = getDiscoverEnv('idataplexbmcip'); } else{ tempip = '172.30.120.1'; } showString += ' | Start IP: | |
Switches: | |||
Name Range: | '; //switches start ip if (getDiscoverEnv('idataplexswitchip')){ tempip = getDiscoverEnv('idataplexswitchip'); } else{ tempip = '172.30.10.1'; } showString += ' | Start IP: | |
Nodes number per Switch: |
You defined ' + switchArray.length +' switches in last step. Configure them manually please:
';
showString += '
DHCP Dynamic Range: | - |