Link to home
Start Free TrialLog in
Avatar of Cyber-EE
Cyber-EE

asked on

HP iLO2 - change password using telnet / SSH

Is it possible and if it is then how do I change the administrator's (or any other user's) password on HP-ILO2; ProLiant DL320 G5 using telnet / SSH?

Thanks,
Yariv
Avatar of lnkevin
lnkevin
Flag of United States of America image

On your browser, type the ilo server name and login at the prompt
On Administration tab, choose user administration. From there you can select the user with the option to modify (password or username)
You can change your network setting, SSH authorization, directory setting and much more from this Administration Tab.

K
If you don't have iLo server name set up, you can type iLo ip address with secure login. For example:
https://10.xx.xx.xx

K
> .. change .. password .. using telnet / SSH?

simply login with telnet or ssh, then issue following command:
  passwd username
Avatar of Cyber-EE
Cyber-EE

ASKER

Hello lnkevin and ahoffmann,
Thank you both for your comments but they didn't answer my question. I am able to logon to the iLO device using SSH but once I'm in I don't know how to change the password within the SSH session. When trying: "passwd <username> I get the following message:
---------------------------------------------------------------------------------------------
login as: yariv
yariv@10.10.79.254's password:
User:yariv logged-in to ILOGB87076657.Lab.Cyber-Ark.co.il(10.10.79.254)
iLO Advanced 1.26 at 10:01:40 Nov 17 2006
Server Name: HP-ILO2
Server Power: On

</>hpiLO-> passwd yariv
status=2
status_tag=COMMAND PROCESSING FAILED
error_tag=COMMAND NOT RECOGNIZED
--------------------------------------------------------------------------------------

It seems that the available commands are the following:
--------------------------------------------------------------------------------------------------
</>hpiLO-> help
status=0
status_tag=COMMAND COMPLETED

DMTF SMASH CLP Commands:
help    : Used to get context sensitive help.
show    : Used to show values of a property or contents of a collection target.
create  : Used to create new instances in the name space of the MAP.
delete  : Used to destroy instances in the name space of the MAP.
load    : Used to move a binary image from an URL to the MAP
Example : load -source http://188.188.188.55/images/fw/iLO170.bin
reset   : Used to cause a target to cycle from enabled to disabled and back to
      enabled.
set     : Used to set a property or set of properties to a specific value.
start   : Used to cause a target to change state to a higher run level.
stop    : Used to cause a target to change state to a lower run level.
cd      : Used to set the current default target.
exit    : Used to terminate the CLP session.
version : Used to query the version of the CLP implementation or other CLP
          elements.

HP CLI Commands:
POWER  : Control server power.
UID    : Control Unit-ID light.
NMI    : Generate an NMI.
VM     : Virtual media commands.
VSP    : Invoke virtual serial port.
--------------------------------------------------------------------------------------------------
But I can't seem to find out how to use them
Any help would be appreciated
Thanks,
Yariv
I know you can be able to login iLo, but if you want to change anyone password, the easiest way is going in the web browser interface and start it from there as my first posted instruction.

Here is the another instruction to change admin password (I dont know if you can use it for other account)

http://blog.netnerds.net/2006/04/ribcl-reset-administrator-password-on-ilo/


K

Is there a reason why you have to use SSH to change password instead of web browser? Do you just want to learn how to do it via SSH or you want to solve your problem? I need to be on your same page so I can move on.

K
The reason I posted this question is because I need to develop a plug-in that changes the password on the device automatically. This plug-in is based on an engine which is "terminal based" and uses commands in "expect" programming language so it requires CLI commands. There's no way for this engine to change the password using the web interface.
BTW - I saw that blog entry you mentioned while searching for an answer on the web but it seems like an overhead to me. I would like to know if there's a simpler way to change the password using the CLI commands that exist.

Thanks again and sorry if I wasn't clear enough before.
Yariv
OK, it's better now.

In this situation, you need to download HP utility program that allow you to overwrite the XML file in iLo2. You need to run the following command to change password of it
 CPQLOCFG --u -p  

Download and read the following instruction from HP (scroll down close to the end):

http://h18000.www1.hp.com/support/files/server/us/download/24181.html

K

 
Hi K,
Thanks for this helpful information. I was able to change a password using the CPQLOCFG utility.
Do you know, however,  whether it is possible to change the iLO2 user's  password by logging onto the device via SSH and then running a CLI command from within that SSH session?

Thanks,
Yariv
Hi,
Here's how to change the password on an iLO system via CLI after logging on through SSH / telnet:
>set /map1/accounts/<user_name> pssword=<new_password>.

Thank you for your comments,
Yariv
I provided the solution in the other way. I should have my points.

K
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial