system_profiler hangs and timeout after 180 seconds on macOS Big Sur 11.2.3

Hi,

I'm using the below command to get the processor name

system_profiler SPHardwareDataType | grep 'Processor Name:'

This command works fine on all machines. but in one of the machine, it never returns immediately and hangs for almost 180 seconds and returns.

Why it hangs for 180 seconds and timeout? Even if I specify -timeout: 20 into system_profiler command, it timeout without any results after 20 seconds.

The same command (with -timeout: 20 and without -timeout) works fine on other machines. The issue happens on a particular machine. Even when I run the command manually from terminal app, I see the same behaviour.

What should be the issue?
How do I figure out root cause of this issue?
Is there any other way to get the processor name from the system?

I have the same exact issue. Do you have Filevault enabled? I don't see the issue on a Big Sur machine (i'm on 11.4 now) with Filevault disabled, but on 3 others I have the issue. The latest Big Sur machine I built was working perfectly until I enabled Filevault, then the system_profiler timeout error started happening. Happens when you go to About This mac->System Report->Hardware as well.

I'd really love a solution for this!

system_profiler hangs and timeout after 180 seconds on macOS Big Sur 11.2.3
 
 
Q