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'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?