I need to remove all existing user accounts and configuration from iLO2 on many old HP blade servers. As far as can do config/log clearance with
hponcfg <bay number> << EOF and pasting my script, I cannot remove all user accounts. I tried with
<USER_INFO MODE="write"> <DELETE_USER USER_LOGIN=*> </USER_INFO>
but I get syntax error because of
*, seems like it only accepts a single username. I found a
GET_ALL_USERS command that returns all usernames, but I don't know how to parse it in a loop. How can I do it?
Edit: Even though there already is an accepted answer, if someone bumps on this thread and knows how to just remove users without factory reset, I'd appreciate the hint. Sometimes removing all users except for admin one might be useful.