If Cisco has a enable username and enable password what is the equivalent term use by HP?
Since i do not know what type of HP switch you have, the general command to use, as you describe is:
Switch(config)# password manager user-name admin
When pressing enter, you will be prompted to enter password:
New password: ******** Please retype new password: ******* Switch(config)# write mem
That should be it. The command might change on newer equipment, but i'm not sure.