REMOTE_ADDR is address of the client that is hitting the HTTP server. So
in this case, it is usually the net0 IP of iPXE.
Brandon
On 09/18/12 07:09, Marek Salwerowicz wrote:
Hi,
W dniu 2012-09-17 19:15, Thomas Glanzmann pisze:
Hello Marek,
BTW - can you provide me any links to materials how can I use the perl
in kickstart configs? Is it possible eg. to pass the MAC address or
hostname (from DHCP) of the ESXi host to kickstart script and generate
it dynamically?
my $hostname = gethostbyaddr(inet_aton($ENV{REMOTE_ADDR}), AF_INET)
or die "Can't resolve $ENV{REMOTE_ADDR}: $!";
As I understand, the REMOTE_ADDR is the IP assigned by the DHCP server
during the iPXE boot?
Regards,
_______________________________________________
ipxe-devel mailing list
[email protected]
https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel