Remote Lights-Out Mgmt (iLO 2, iLO, RILOE II) Forum
cancel

Scripting Tools for Windows PowerShell

Highlighted
AndyMcM
New Member.

Scripting Tools for Windows PowerShell

Is anyone else out there using Scripting Tools for Windows PowerShell?

Trying to use the Mount-HPiLOVirtualMedia cmdlet and it works ish. Can connect an ISO image over an HTTP connection but I can't get it to boot. I use the command:

Mount-HPiLOVirtualMedia -server <IP> -Device CDROM -DisableCertificateAuthentication -ImageURL <URL>

On the Virtual Media screen in the iLO managment, the Connected box is greyed out so looks like its mounted but not connected, anyone know how to Connect?

Cheers

Andy.

4 REPLIES

Re: Scripting Tools for Windows PowerShell

Andy,

I can see that you are using HPiLOCmdlets 1.3.  Could you tell me what version of iLO firmware you are using, what OS and PS versions?  I think from your email that you are getting no errors when executing the script to test this.  Are you also setting the boot order to boot the CDROM using either Set-HPiLOOneTimeBootOrder or Set-HPiLOPersistentBootOrder?

HPE PowerShell Team

jlg

 

AndyMcM
New Member.

Re: Scripting Tools for Windows PowerShell

Hi jlg,

Thanks for getting back to me. Here is the info below:

HPiLOCmdlets: 1.3

iLO Firmware Version: iLO3 on 1.85 (May 13 2015, latest with SPP)

OS Version: Windows 7 64bit

PowerShell Version: 

Major Minor Build Revision
----- ----- ----- --------
5 0 10586 117

 

 

I have tried using Set-HPiLOOneTimeBootOrder and Set-HPiLOPersistentBootOrder but neither worked. Attached a screenshot of the interface, as well as changing the order in the web interface, but it just does not want to boot from ISO.

Exact command being used:

Mount-HPiLOVirtualMedia -server XXX.XXX.XXX.XXX -Credential $crObj -Device CDROM -DisableCertificateAuthentication -ImageURL http://XXX.XXX.XXX.XXX:8080/843216_001_spp_2015.10.0-SPP2015100.2015_0921.6.iso

Have attached a screenshot of what iLO web interface looks like after running the above command.

Thanks for any help!!

GokulKS
Valued Contributor.

Re: Scripting Tools for Windows PowerShell

Hi,

I think the problem here is Mount-HPiLOVirtualMedia cmdlet just mounts the virtual media to target server but does not connect the same. To connect the virtual media user need to invoke Set-HPiLOVMStatus cmdlet to make it connected to the remote server.

Set-HPiLOVMStatus -Server $Server -Credential $cred -VMBootOption CONNECT -Device CDROM   #connect CDROM

So the flow of cmdlets to attach a media to the remote server are,

Mount-HPiLOVirtualMedia -Server $server -Credential $cred -Device CDROM -ImageURL $URLImage #mount

Set-HPiLOVMStatus -Server $server -Credential $cred -VMBootOption CONNECT -Device CDROM   #connect CDROM

Set-HPiLOOneTimeBootOrder -Server $server  -Credential $cred -Device CDROM  #Set Boot order

Set-HPiLOVirtualPowerButton -Server $server -Credential $cred -PressType Press #restart server

Thanks,

HPE PowerShell Team

Gokul

virgored
New Member.

Re: Scripting Tools for Windows PowerShell

Gokul
This does not work I have found
Mount-HPiLOVirtualMedia -Server $Server -Username $UserName -Password $Password -Device CDROM   -ImageURL $ImageURL

Set-HPiLOVMStatus -Server $server -Username $UserName -Password $Password  -VMBootOption CONNECT -Device CDROM   #connect CDROM

Set-HPiLOOneTimeBootOrder -Server $server  -Username $UserName -Password $Password -Device CDROM  #Set Boot order
All run fine
when I run :

Get-HPiLOVMStatus -Server $server -Username $UserName -Password $Password


IP : 10.xxx.xxx.xxx
HOSTNAME :
STATUS_TYPE : OK
STATUS_MESSAGE : OK
VM_APPLET : DISCONNECTED - Should be Connected
DEVICE : FLOPPY - Should be CD-ROM
BOOT_OPTION : NO_BOOT - should be Boot Once
WRITE_PROTECT : YES
IMAGE_INSERTED : NO
IMAGE_URL :Http//Server-Name/folder1/864794_001_spp-2016.04.0-SPP2016040.2016_0317.20.iso