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,
--
Marek Salwerowicz
_______________________________________________
ipxe-devel mailing list
[email protected]
https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel