Variables. Save IP when Register.Change Host IP
-
Hi. My idea is next.
It´s posible to save the IP of the host when host register and use this information to change IP when deploy again a new image in this host???
thanks…
-
The short answer is no. FOG doesn’t manage target computer IP addresses.
A bit longer answer is still No. I assume when you image a computer that target computer is assigned an IP address via DHCP. That dhcp address is managed by your dhcp server. It wouldn’t be proper for target computer to be assigned a static IP address for one that was issued via dhcp.
-
Hi. thanks for you reply.
I thought that the ip could be saved through the FOG clientanother question is:
Exist variables in FOG???
For example. If I need to use “computer name” or “Tag1” in my script through snapin module…Thanks…
-
@joseska Tag1 is a bit harder, but computer name can be picked up with the windows environment variable called %computername%
-
@joseska For other fog variables you can make http call to the fog server for the other settings from inside your snapin script.
Here is some info: https://forums.fogproject.org/topic/9613/invoke-hostinfo-php-from-powershell