ProLiant Servers (ML,DL,SL)
1751969 Members
5093 Online
108783 Solutions
New Discussion юеВ

Re: ILO 4 Scripted Media URL

 
Torxb
Occasional Advisor

Re: ILO 4 Scripted Media URL

I am scripting the the URL.

 

I have a example on my blog http://www.apathis.com/2012/05/mounting-iso-to-hp-ilo-over-http-part-2.html

 

 

However I changed it to be a IP address in my example for security reasons.  And it looks like this was a sample from the iLO2.

 

Let me go back through all my scripts to verify a few things.

 

 

GILINUX
New Member

Re: ILO 4 Scripted Media URL

I tried the scripted media command from the iLO CLI and I also tried from the iLO GUI -> Virtual Media->Virtual CD/DVD-ROM Status->Image URL and had no luck...

 

This is what worked for me (See Below).

 

I have a new HP server that was installed for our company at our co-lo. I needed to install ESXi server on it remotely.

 

1. First I had to make an ISO copy of the ESXi install disk ( ESXI-5.5-1331820-ROLLUPISO-STAND.iso) and upload it to a web server (Apache).

 

2. To verify connectivity from the  web server hosting the iSO image and the new HP server I executed "tcpdump -n src host 192.168.1.244" on the web server,   then from the iLO CLI I pinged the remote web server (192.168.6.207).

 

*** This is what you should see from the iLO CLI ***

 

</>hpiLO-> oemhp_ping 192.168.6.207

32 bytes from 192.168.6.207: icmp_seq=1 errs=0 time=60 ms

status=0
status_tag=COMMAND COMPLETED
Wed Jul 29 14:39:15 2015

The ping was successful.

 

*** This is what you should see on the web server running tcpdump ***

 

listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
15:51:24.623012 IP 192.168.1.244 > 192.168.6.207: ICMP echo request, id 48, seq 256, length 40

 

Now that I have verified that the two hosts can communicate with each other we need to mount the ISO image on the HP server running iLO.

 

3. Log into the iLO GUI and go to "Remote Console" and launch the "JAVA IRC" console. This will launch a console session.

 

4. Now on the top of the screen you should see "Virtual Drives", click on it and then click on "URL CD/DVD-ROM" and enter "http://192.168.6.207/ESXI-5.5-1331820-ROLLUPISO-STAND.iso (See Attachment)

 

5. Once you have completed the step above click on "Virtual Drives" again and now you should see "URL CD/DVD-ROM" with a check-mark next to it (See Attachment)

 

6. Now log back into the iLO GUI and go to "Virtual Media" and you should see the "Virtual CD/DVD-ROM  Image URL" with the URL you entered " http://192.168.6.207/ESXI-5.5-1331820-ROLLUPISO-STAND.iso" and the  "Connected" box checked (See Attachment)

 

7. Now you just have to reboot and the server will read the "Image URL" and start your software installation.

 

 

Once the server reboots you will see traffic comming across and reading the ISO image on the remote server, you will need to keep the tcpdump command running to see this. You should see something like this.

 

12:05:52.127948 IP 192.168.1.244.53142 > 192.168.6.207.http: Flags [S], seq 2815205146, win 13032, options [mss 1380,nop,wscale 0,nop,nop,sackOK,nop,nop,TS val 1210023830 ecr 0], length 0
12:05:52.185450 IP 192.168.1.244.53142 > 192.168.6.207.http: Flags [.], ack 681587146, win 13680, options [nop,nop,TS val 1210023890 ecr 4102441771], length 0
12:05:52.187338 IP 192.168.1.244.53142 > 192.168.6.207.http: Flags [P.], seq 0:131, ack 1, win 13680, options [nop,nop,TS val 1210023890 ecr 4102441771], length 131
12:05:52.334379 IP 192.168.1.244.53142 > 192.168.6.207.http: Flags [.], ack 13681, win 12625, options [nop,nop,TS val 1210024030 ecr 4102441831], length 0
12:05:52.395064 IP 192.168.1.244.53142 > 192.168.6.207.http: Flags [.], ack 25993, win 4409, options [nop,nop,TS val 1210024100 ecr 4102441978], length 0
12:05:52.396878 IP 192.168.1.244.53142 > 192.168.6.207.http: Flags [.], ack 25993, win 8505, options [nop,nop,TS val 1210024100 ecr 4102441978], lengt

 

 

 

I hope this helps. 

 

 

 

 

 

 

 

Techie_003
New Member

Re: ILO 4 Scripted Media URL

Thank you.. I started reading the posts above and they're talking web servers etc... You my friend made it easy :)

jambon-hache
Frequent Visitor

Re: ILO 4 Scripted Media URL

link-ilocmdlets-mountiso

[Admin: The above link is no longer valid]

tillk
New Member

Re: ILO 4 Scripted Media URL

I came here because I had similar problems.

In the end, the solution came when I verified the network configuration of the ILO port. We had missed to put in DNS servers, which meant that the URL (or domain) for "URL CD/DVD-ROM" could not be resolved. I used a fqdn instead of an IP to connect the media.

Then the feature worked as advertised. Much faster than for example mounting my 3 GB iso from localhost.

It wouldn't hurt if the setup in the ILO would "enforce" complete network settings or ship with sensible defaults. Or produce output in the event log that it failed to look up the host or mount the media from the URL, etc..

uxbeginner22
Trusted Contributor

Re: ILO 4 Scripted Media URL

I have a question.

Mount a iso image via web is easy

cd /map1/oemhp_vm1/cddr1
set oemhp_image=http://mywebserver/images/isoimage.iso
set oemhp_boot=connect

 

My question is: is possible to insert a "local" url?

for example(in this example return error)

cd /map1/oemhp_vm1/cddr1
set oemhp_image=file://var/images/isoimage.iso
set oemhp_boot=connect

 

I know is possible via web interface of ilo4, but with ssh console?