Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

HP iLO2 - change password using telnet / SSH

Posted on 2007-08-01
13
Medium Priority
?
20,719 Views
Last Modified: 2010-08-05
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
0
Comment
Question by:Cyber-EE
12 Comments
 
LVL 26

Expert Comment

by:lnkevin
ID: 19608940
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
0
 
LVL 26

Expert Comment

by:lnkevin
ID: 19608953
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
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 19614787
> .. change .. password .. using telnet / SSH?

simply login with telnet or ssh, then issue following command:
  passwd username
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:Cyber-EE
ID: 19616508
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
0
 
LVL 26

Expert Comment

by:lnkevin
ID: 19616828
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

0
 
LVL 26

Expert Comment

by:lnkevin
ID: 19616883
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
0
 

Author Comment

by:Cyber-EE
ID: 19617472
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
0
 
LVL 26

Expert Comment

by:lnkevin
ID: 19617919
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

 
0
 

Author Comment

by:Cyber-EE
ID: 19651904
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
0
 

Author Comment

by:Cyber-EE
ID: 19770353
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
0
 
LVL 26

Expert Comment

by:lnkevin
ID: 20078907
I provided the solution in the other way. I should have my points.

K
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 20120026
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Usually shares are where we want them for our users and we tend to take them for granted. There are times, however, when those shares may disappear causing difficulty for your users. One of the first things to try is searching for files that shou…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question