Closed Spanqz closed 7 months ago
Hello, Can you test the code in PR 86
Hello, Can you test the code in PR 86
I still get the same error message.
Hello @Spanqz, do you have a bit of time so we work on it ? I'd need you to realize some tests as I don't have hardware of thid generation
@tigerblue77 I think I found the problem. grep "Board Mfg"
returns both "Board Mfg" and "Board Mfg Date".
echo "$IPMI_FRU_content" | grep "Board Mfg"
Board Mfg Date : Sun Jan 3 06:18:00 2010 CET Board Mfg : DELL
echo "SERVER_MANUFACTURER: $SERVER_MANUFACTURER"
SERVER_MANUFACTURER: Sun Jan 3 06:18:00 2010 CET DELL
@Spanqz, I think you're right. I edited the PR, can you test again please ?
The actual output of
Board Mfg : DELL
Contains multiple spaces:
Board Mfg : DELL
Which was trimmed in my original issue description.
Perhaps something similair to this could work?
SERVER_MANUFACTURER=$(echo "$IPMI_FRU_content" | tr -s ' ' | grep "Board Mfg :" | awk -F ': ' '{print $2}')
By using | tr -s ' '
we trim any repeating space.
OMG this output is &*!qz" ! đŸ˜† Thanks for your suggestion. Can you test again please ?
Testet and confirmed working. Thank you.
No problem, thanks for your tests and help in resolving !
Accidentally closed the issue, re-open it if you want to close when changes are commited to master.
Recent update broke the tool on my PowerEdge R410 where IPMI does not return product info in LAN mode with command:
ipmitool -I lanplus -H <IP> -U <user> -P <pass> fru
Example output PowerEdge R410:
Example output PowerEdge R730:
The container exits with message:
As I understand the script uses "Product Manufacturer" and "Product Name" to verify correct hardware, without this the tool exits.
Updated description to correct formatting.