Beispiel #1
0
def megaraid(global_params, systems, unique_id):
    sets = search_item(systems, unique_id, "megaraid", "(.*)",
                       ['SerialNo', 'SasAddress', 'ControllerTemperature',
                        'VendorSpecific', 'RocTemperature'])
    groups = compare_sets.compare(sets)
    compare_sets.print_groups(global_params, groups, "Megaraid Controller")
    return groups
Beispiel #2
0
def physical_megaraid_disks(global_params, systems, unique_id):
    sets = search_item(systems, unique_id, "pdisk", r"disk(\d+)",
                       ['Wwn', 'SasAddress', 'DriveTemperature'])
    groups = compare_sets.compare(sets)
    compare_sets.print_groups(global_params, groups,
                              "Physical Disks (Megaraid Controllers)")
    return groups
Beispiel #3
0
def cpu(global_params, systems, unique_id):
    sets = search_item(systems, unique_id, "cpu", "(.*)",
                       ['bogomips', 'loops_per_sec', 'bandwidth',
                        'cache_size', '/temperature'])
    groups = compare_sets.compare(sets)
    compare_sets.print_groups(global_params, groups, "Processors")
    return groups
Beispiel #4
0
def ipmi(global_params, systems, unique_id):
    sets = search_item(systems, unique_id, "ipmi",
                       "(?!(.*Temp$|.*RPM$)).*",
                       ['mac-address', 'ip-address'])
    groups = compare_sets.compare(sets)
    compare_sets.print_groups(global_params, groups, "IPMI SDR")
    return groups
Beispiel #5
0
def compare_type(type_, check_func, title, global_params, bench_values,
                 unique_id, systems_groups):
    systems = utils.find_sub_element(bench_values, unique_id, type_)
    groups = check_func(systems, unique_id)
    compare_sets.compute_similar_hosts_list(
        systems_groups, compare_sets.get_hosts_list_from_result(groups))
    compare_sets.print_groups(global_params, groups, title)
Beispiel #6
0
def logical_disks(global_params, systems, unique_id):
    sets = search_item(systems, unique_id, "disk", r"[a-z]d(\S+)",
                       ['simultaneous', 'standalone', 'id', 'serial_number',
                        'SMART/'], [],
                       ['when_failed', 'vendor', 'product', 'health'])
    groups = compare_sets.compare(sets)
    compare_sets.print_groups(global_params, groups, "Logical Disks")
    return groups
Beispiel #7
0
def compare_type(type_, check_func, title, global_params,
                 bench_values, unique_id, systems_groups):
    systems = utils.find_sub_element(bench_values, unique_id, type_)
    groups = check_func(systems, unique_id)
    compare_sets.compute_similar_hosts_list(
        systems_groups,
        compare_sets.get_hosts_list_from_result(groups))
    compare_sets.print_groups(global_params, groups, title)
Beispiel #8
0
def physical_hpa_disks(global_params, systems, unique_id):
    sets = search_item(systems, unique_id, "disk", r"(\d+)I:(\d+):(\d+)",
                       ['current_temperature_(c)',
                        'maximum_temperature_(c)',
                        'serial_number'])
    groups = compare_sets.compare(sets)
    compare_sets.print_groups(global_params, groups,
                              "Physical Disks (HP Controllers)")
    return groups
Beispiel #9
0
def ahci(global_params, systems, unique_id):
    sets = search_item(systems, unique_id, "ahci", r".*")
    groups = compare_sets.compare(sets)
    compare_sets.print_groups(global_params, groups, "AHCI Controller")
    return groups
Beispiel #10
0
def network_interfaces(global_params, systems, unique_id):
    sets = search_item(systems, unique_id, "network", "(.*)",
                       ['serial', 'ipv4'])
    groups = compare_sets.compare(sets)
    compare_sets.print_groups(global_params, groups, "Network Interfaces")
    return groups
Beispiel #11
0
def memory_banks(global_params, systems, unique_id):
    sets = search_item(systems, unique_id, "memory", "bank(.*)", ['serial'])
    groups = compare_sets.compare(sets)
    compare_sets.print_groups(global_params, groups, "Memory Banks(RAM)")
    return groups
Beispiel #12
0
def memory_timing(global_params, systems, unique_id):
    sets = search_item(systems, unique_id, "memory", "DDR(.*)")
    groups = compare_sets.compare(sets)
    compare_sets.print_groups(global_params, groups, "Memory Timing(RAM)")
    return groups
Beispiel #13
0
def firmware(global_params, systems, unique_id):
    sets = search_item(systems, unique_id, "firmware", "(.*)")
    groups = compare_sets.compare(sets)
    compare_sets.print_groups(global_params, groups, "Firmware")
    return groups
Beispiel #14
0
def systems(global_params, systems, unique_id):
    sets = search_item(systems, unique_id, "system", "(.*)",
                       ['serial', 'uuid'])
    groups = compare_sets.compare(sets)
    compare_sets.print_groups(global_params, groups, "System")
    return groups
Beispiel #15
0
def hpa(global_params, systems, unique_id):
    sets = search_item(systems, unique_id, "hpa", "(.*)",
                       ['cache_serial_number', 'serial_number'])
    groups = compare_sets.compare(sets)
    compare_sets.print_groups(global_params, groups, "HPA Controller")
    return groups