Server Management - Remote Server Management
1748282 Members
4065 Online
108761 Solutions
New Discussion юеВ

Re: Remotely changing passwords in multiple iLO servers

 
SOLVED
Go to solution
BradyC
New Member

Remotely changing passwords in multiple iLO servers

I was just wondering if there is a way to connect to multiple iLO servers remotely and change all their passwords at once. I've been reading about using XML scripts with the HP provided configuation utility but I'm not 100% sure if it will work. If someone could point me in the right direction it would be appreciated.
10 REPLIES 10
KarloChacon
Honored Contributor
Solution

Re: Remotely changing passwords in multiple iLO servers


yes there is way that I know

using CPQLOCFG.EXE
http://urlao.com/CPQLOCFG


and of course the XML scripts
http://urlao.com/xmlscript

and look in this manual for CPQLOCFG (search)
http://urlao.com/ilomanual2

basically

Commands like this could do the trick:
C:\>cpqlocfg -s 192.168.1.1 -f script_to_be_used.xml -u Admin -p pword
C:\>cpqlocfg -s 192.168.1.2 -f script_to_be_used.xml -u Admin -p pword
.....
.....

* you invoke the utility cpqlocfg

* parameter
-S is the switch that determines the iLO 2 that is to be updated. This switch is either the DNS name or IP address of the target server.

* well ip address

*parameter
-F is the switch that gives the full path location and name of the RIBCL file that contains the actions to
be performed on the board.

* script to be used (power off - change password - ...)

-u which is for the Administator user in that ilo

- p which is the password in that ilo

note the script must include the new password


this is the one you need












also there is way using HP SIM but I dont know about that

I added the txt file with this explanation I think much better look

regards
Didn't your momma teach you to say thanks!
KarloChacon
Honored Contributor

Re: Remotely changing passwords in multiple iLO servers

anything about that just let me know

in the previous command line you can also add -l filename.txt

that is to check the results when the script is applied

"C:\ilo_script>cpqlocfg -s 16.90.108.68 -l information.txt -f change_password.xml -u Administrator -p Password"


regards
Didn't your momma teach you to say thanks!
BradyC
New Member

Re: Remotely changing passwords in multiple iLO servers

Thanks Karlo for the easy to follow instructions. I will give it a try and let you know how it works out.
KarloChacon
Honored Contributor

Re: Remotely changing passwords in multiple iLO servers

ok

let me know the results

I've done several times using an XP computer that can see the server IPs.

if you need something else let me know

you as you can see ilo scripts let us work with different types of scripts

regards
Didn't your momma teach you to say thanks!
BradyC
New Member

Re: Remotely changing passwords in multiple iLO servers

Thanks Karlo, it worked perfectly. Can anybody tell me how to say for 50 servers execute the commands in a script? Just kinda let me know which type of script and I can do the research from there. Is there any way to do it in vbscript? Note: I've never done any scripting so I'd have to look up anything you recommend.
KarloChacon
Honored Contributor

Re: Remotely changing passwords in multiple iLO servers

hi BradyC

you mean something like these people are talking in this thread

http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1192234


??

regards
Didn't your momma teach you to say thanks!
BradyC
New Member

Re: Remotely changing passwords in multiple iLO servers

Well basically what I want to do is have a script read in a list of servers and apply the change_password script to all of them. I don't think using HP SIM is an option as I'm having problems with it.
Frederic Oriol
New Member

Re: Remotely changing passwords in multiple iLO servers

If you have a text file containing a list of server names or IP addresses, you can use a command line similar to:

for /f %i in (c:\srvlist.txt) do cpqlocfg -s %i -f script_to_be_used.xml -u Admin -p pword
Frederic Oriol
New Member

Re: Remotely changing passwords in multiple iLO servers

Correction: the server list should contain ILO devices IP addresses, not server IP addresses. Sorry for the potential confusion.