コード例 #1
0
def discoverVirtIoSlots(shell, servers):
    """
    Lists and calls parser for all I/O Slots on the Managed Systems
    @param shell: either SSH or Telnet client
    @type shell: instance of the ShellUtills class
    @param managedSystemsDoList: all previously discovered Managed Systems
    @type managedSystemsDoList: list of the ManagedSystemDo class instances
    """
    if servers:
        for server in servers:
            try:
                #Discover Virtual IO Slot parameters
                output = ibm_hmc_lib.executeCommand(shell, 'lshwres -r virtualio --rsubtype slot --level  slot -m \'' + server.managedSystem.genericParameters.name + '\'')
                server.managedSystem.vIoSlotList = ibm_hmc_lib.getEntiesAsList(output, parseVirtIoSlots)
            except ValueError, ex:
                logger.warn(str(ex))
コード例 #2
0
def discoverIoSlots(shell, servers):
    """
    Lists and calls parser for all I/O Slots on the Managed Systems
    @param shell: either SSH or Telnet client
    @type shell: instance of the ShellUtills class
    @param managedSystemsDoList: all previously discovered Managed Systems
    @type managedSystemsDoList: list of the ManagedSystemDo class instances
    """
    if servers:
        for server in servers:
            try:
                #Discover IO Slot parameters
                output = ibm_hmc_lib.executeCommand(
                    shell, 'lshwres -r io --rsubtype slot -m \'' +
                    server.managedSystem.genericParameters.name + '\'')
                server.managedSystem.ioSlotList = ibm_hmc_lib.getEntiesAsList(
                    output, parseIoSlot)
            except ValueError, ex:
                logger.warn(str(ex))
コード例 #3
0
 def getScsiList(self, managedSystemName):
     #Discover vScsi adapters
     output = self.executeCommand(
         'lshwres -r virtualio --rsubtype scsi -m  \'' + managedSystemName +
         '\'')
     return ibm_hmc_lib.getEntiesAsList(output, self._parseScsi)
コード例 #4
0
 def getScsiList(self, managedSystemName):
     #Discover vScsi adapters
     output = self.executeCommand('lshwres -r virtualio --rsubtype scsi -m  \'' + managedSystemName + '\'')
     return ibm_hmc_lib.getEntiesAsList(output, self._parseScsi)