Sha256: 9a7e6729fc18ef801d30daf9f1f17a18b3432858953b4bace8259ba6f752a8da
Contents?: true
Size: 958 Bytes
Versions: 2
Compression:
Stored size: 958 Bytes
Contents
# # Authors: Christopher M Wood (<woodc@us.ibm.com>) # John F Hutchinson (<jfhutchi@us.ibm.com) # © Copyright IBM Corporation 2015. # # LICENSE: MIT (http://opensource.org/licenses/MIT) # require_relative '../lib/rbvppc/hmc' require_relative '../lib/rbvppc/lpar' require_relative '../lib/rbvppc/vio' frame_name = "" lpar_name = "" vio1_name = "" vio2_name = "" hmc_fqdn = "" hmc_pass = "" #Create HMC Object hmc = Hmc.new(hmc_fqdn, "hscroot", {:password => hmc_pass}) #Connect to HMC hmc.connect #Populate options hash with lpar information lpar_hash = hmc.get_lpar_options(frame_name,lpar_name) #Create LPAR Object based on the hash lpar = Lpar.new(lpar_hash) #Create a VIO object for both vios vio1 = Vio.new(hmc,frame_name,vio1_name) vio2 = Vio.new(hmc,frame_name,vio2_name) #Unmapp all the disks from the lpar using VIO1 passing the method the 2nd vio and the lpar vio1.unmap_all_disks(vio2,lpar) #Disconnect from the hmc hmc.disconnect
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rbvppc-1.0.2 | examples/remove_disks_from_lpar.rb |
rbvppc-1.0.1 | examples/remove_disks_from_lpar.rb |