Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| hardware:guides:reset_ilo4_pw [2026/07/20 13:57] – created fabricio | hardware:guides:reset_ilo4_pw [2026/07/20 14:23] (current) – avoid bash expansion in setting pw fabricio | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| sudo dnf install epel-release && sudo dnf install ipmitool | sudo dnf install epel-release && sudo dnf install ipmitool | ||
| </ | </ | ||
| + | |||
| + | ===== ⚠️ CRITICAL: Password Rules & Bash Pitfalls ⚠️ ===== | ||
| + | |||
| + | Before injecting a password via the host command line, you must adhere to two strict rules to avoid silent corruption and Web UI lockouts: | ||
| + | |||
| + | * **1. The Bash History Expansion Trap (Special Characters): | ||
| + | * **2. The Length Rule:** Passwords must be **between 8 and 20 characters** long, containing a mix of uppercase, lowercase, and numbers. The underlying IPMI protocol has a maximum hard limit of 20 characters. Passwords longer than 20 characters are **silently truncated** by '' | ||
| + | |||
| + | > **Pro Tip:** If you want a password with complex special characters or a length exceeding 20 characters, use a simple alphanumeric password via '' | ||
| ===== Step-by-Step Recovery ===== | ===== Step-by-Step Recovery ===== | ||
| Line 55: | Line 64: | ||
| **1. Reset the Default HPE Administrator Account (ID 1)**\\ | **1. Reset the Default HPE Administrator Account (ID 1)**\\ | ||
| - | Overwrite the unknown password for the official HPE account name. Ensure your new password | + | Overwrite the unknown password for the official HPE account name. Ensure your new password |
| <code bash> | <code bash> | ||
| - | sudo ipmitool user set password 1 " | + | sudo ipmitool user set password 1 ' |
| </ | </ | ||
| Line 76: | Line 85: | ||
| </ | </ | ||
| - | **2. Set the Password** | + | **2. Set the Password**\\ |
| + | Ensure your new password adheres to the single-quote and 8-20 character rules. | ||
| <code bash> | <code bash> | ||
| - | sudo ipmitool user set password 3 " | + | sudo ipmitool user set password 3 ' |
| </ | </ | ||
| Line 95: | Line 105: | ||
| ^ Action ^ Target ID ^ Command ^ | ^ Action ^ Target ID ^ Command ^ | ||
| - | | Option A: Reset Default | ID 1 | '' | + | | Option A: Reset Default | ID 1 | '' |
| | Option A: Disable Legacy | ID 2 | '' | | Option A: Disable Legacy | ID 2 | '' | ||
| - | | Option B: Full New User Setup | ID 3 | '' | + | | Option B: Full New User Setup | ID 3 | '' |
| - | > **Note:** Changes take effect instantly with zero server reboots or downtime required. | + | > **Note:** Changes take effect instantly with zero server reboots or downtime required. |