def get_irmc_firmware_version(snmp_client):
    """Get irmc firmware version of the node.

    :param snmp_client: an SNMP client object.
    :raises: SNMPFailure if SNMP operation failed.
    :returns: a string of bmc name and irmc firmware version.
    """

    try:
        bmc_name = snmp_client.get(BMC_NAME_OID)
        irmc_firm_ver = snmp_client.get(IRMC_FW_VERSION_OID)
        return ('%(bmc)s%(sep)s%(firm_ver)s' %
                {'bmc': bmc_name if bmc_name else '',
                 'firm_ver': irmc_firm_ver if irmc_firm_ver else '',
                 'sep': '-' if bmc_name and irmc_firm_ver else ''})
    except SNMPFailure as e:
        raise SNMPIRMCFirmwareFailure(
            SNMP_FAILURE_MSG % ("GET IRMC FIRMWARE VERSION", e))
def get_irmc_firmware_version ( snmp_client ) : try : bmc_name = snmp_client . get ( BMC_NAME_OID ) irmc_firm_ver = snmp_client . get ( IRMC_FW_VERSION_OID ) return ( '%(bmc)s%(sep)s%(firm_ver)s' % { 'bmc' : bmc_name if bmc_name else '' , 'firm_ver' : irmc_firm_ver if irmc_firm_ver else '' , 'sep' : '-' if bmc_name and irmc_firm_ver else '' } ) except SNMPFailure as e : raise SNMPIRMCFirmwareFailure ( SNMP_FAILURE_MSG % ( "GET IRMC FIRMWARE VERSION" , e ) )
Get irmc firmware version of the node.

    :param snmp_client: an SNMP client object.
    :raises: SNMPFailure if SNMP operation failed.
    :returns: a string of bmc name and irmc firmware version.