Description of problem: - Not all facts are listed depending on the hammer command used Version-Release number of selected component (if applicable): - Satellite 6.12.x - Satellite 6.13.x How reproducible: Depending on the hammer command used the list of facts for a host is different. Using "hammer --csv fact list --search "host=hostname.example.com" | grep dmi" shows all facts related to "dmi", the command "hammer --csv fact list | grep hostname.example.com | grep dmi" however does not show the same list of facts. Steps to Reproduce: 1. Run "hammer --csv fact list --search "host=hostname.example.com" | grep dmi" and save results 2. Run "hammer --csv fact list | grep hostname.example.com | grep dmi" and save the results 3. Compare the results Actual results: The command "hammer --csv fact list | grep hostname.example.com | grep dmi" shows a lot less facts. Expected results: Both commands should list the same facts Additional info: Example output -------------- [root@satellite6:/root]# hammer --csv fact list | grep hostname.example.com | grep dmi hostname.example.com,dmi::baseboard, hostname.example.com,dmi::system, hostname.example.com,dmi::baseboard::contained_object_handles,0 hostname.example.com,dmi::chassis::contained_elements,0 hostname.example.com,dmi::bios::bios_revision,0.0 hostname.example.com,dmi::bios::release_date,04/01/2014 hostname.example.com,dmi::chassis::oem_information,0x00000000 hostname.example.com,dmi::baseboard::chassis_handle,0x0300 hostname.example.com,dmi::memory::array_handle,0x1000 [root@satellite6:/root]# hammer --csv fact list --search "host=hostname.example.com"|grep dmi hostname.example.com,dmi::meta, hostname.example.com,dmi::memory, hostname.example.com,dmi::system, hostname.example.com,dmi::chassis, hostname.example.com,dmi::baseboard, hostname.example.com,dmi::processor, hostname.example.com,dmi, hostname.example.com,dmi::bios, hostname.example.com,dmi::chassis::contained_elements,0 hostname.example.com,dmi::baseboard::contained_object_handles,0 hostname.example.com,dmi::bios::bios_revision,0.0 hostname.example.com,dmi::bios::release_date,04/01/2014 hostname.example.com,dmi::chassis::oem_information,0x00000000 hostname.example.com,dmi::baseboard::chassis_handle,0x0300 hostname.example.com,dmi::memory::array_handle,0x1000 hostname.example.com,dmi::bios::address,0xe8000 hostname.example.com,dmi::meta::cpu_socket_count,1 hostname.example.com,dmi::memory::number_of_devices,1 hostname.example.com,dmi::processor::thread_count,1 hostname.example.com,dmi::bios::version,1.15.0-2.module+el8.6.0+14757+c25ee005 hostname.example.com,dmi::processor::id,12 0F 80 00 FF FB 8B 07 hostname.example.com,dmi::processor::core_enabled,2 hostname.example.com,dmi::processor::core_count,2 hostname.example.com,dmi::processor::current_speed,2000 MHz hostname.example.com,dmi::processor::max_speed,2000 MHz hostname.example.com,dmi::memory::maximum_capacity,3078 MB hostname.example.com,dmi::memory::size,3078 MB hostname.example.com,dmi::bios::rom_size,64 kB hostname.example.com,dmi::system::uuid,6D1D6DE2-C430-4C70-9831-D268C04F1738 hostname.example.com,dmi::system::sku_number,8.6.0 hostname.example.com,dmi::system::version,8.6-0.1.el8 hostname.example.com,dmi::bios::runtime_size,96 kB hostname.example.com,dmi::baseboard::features,Board is a hosting board hostname.example.com,dmi::processor::type,Central Processor hostname.example.com,dmi::processor::socket_designation,CPU 0 hostname.example.com,dmi::memory::form_factor,DIMM hostname.example.com,dmi::memory::locator,DIMM 0 hostname.example.com,dmi::system::serial_number,e18c8687-a6e8-9512-ab7c-2cf05d8c16c9 hostname.example.com,dmi::baseboard::type,Motherboard hostname.example.com,dmi::memory::error_correction_type,Multi-bit ECC hostname.example.com,dmi::memory::set,None hostname.example.com,dmi::processor::characteristics,None hostname.example.com,dmi::chassis::lock,Not Present hostname.example.com,dmi::processor::l2_cache_handle,Not Provided hostname.example.com,dmi::processor::l3_cache_handle,Not Provided hostname.example.com,dmi::memory::error_information_handle,Not Provided hostname.example.com,dmi::processor::l1_cache_handle,Not Provided hostname.example.com,dmi::memory::type_detail,Other hostname.example.com,dmi::processor::family,Other hostname.example.com,dmi::chassis::type,Other hostname.example.com,dmi::memory::location,Other hostname.example.com,dmi::processor::upgrade,Other hostname.example.com,dmi::processor::status,"Populated, Enabled" hostname.example.com,dmi::system::wake-up_type,Power Switch hostname.example.com,dmi::memory::type,RAM hostname.example.com,dmi::memory::manufacturer,Red Hat hostname.example.com,dmi::processor::manufacturer,Red Hat hostname.example.com,dmi::baseboard::manufacturer,Red Hat hostname.example.com,dmi::system::manufacturer,Red Hat hostname.example.com,dmi::chassis::manufacturer,Red Hat hostname.example.com,dmi::system::product_name,RHEL hostname.example.com,dmi::baseboard::version,"RHEL-8.6.0 PC (Q35 + ICH9, 2009)" hostname.example.com,dmi::chassis::version,"RHEL-8.6.0 PC (Q35 + ICH9, 2009)" hostname.example.com,dmi::processor::version,"RHEL-8.6.0 PC (Q35 + ICH9, 2009)" hostname.example.com,dmi::baseboard::product_name,RHEL-AV hostname.example.com,dmi::system::family,RHV hostname.example.com,dmi::chassis::power_supply_state,Safe hostname.example.com,dmi::chassis::boot-up_state,Safe hostname.example.com,dmi::chassis::thermal_state,Safe hostname.example.com,dmi::bios::vendor,SeaBIOS hostname.example.com,dmi::memory::use,System Memory
I'm not observing this on 6.13.1. # hammer --csv fact list | grep ultimate-bat | grep dmi | wc -l 51 # hammer --csv fact list --search 'host=ultimate-bat.example.com' | grep dmi | wc -l 51 # hammer --csv fact list | grep ultimate-bat | wc -l 153 # hammer --csv fact list --search 'host=ultimate-bat.example.com' | wc -l 154 When listing all facts, the grep variant filters out the header so it has one less line. As far as I know hammer just shows whatever the api gives it so I'll pass this on to fact component for further investigation.