• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Variables. Save IP when Register.Change Host IP

Scheduled Pinned Locked Moved
General
2
5
1.3k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    joseska
    last edited by Jul 14, 2017, 1:31 PM

    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…

    1 Reply Last reply Reply Quote 0
    • G
      george1421 Moderator
      last edited by Jul 14, 2017, 1:44 PM

      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.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      1 Reply Last reply Reply Quote 0
      • J
        joseska
        last edited by Jul 14, 2017, 6:20 PM

        Hi. thanks for you reply.
        I thought that the ip could be saved through the FOG client

        another question is:

        Exist variables in FOG???
        For example. If I need to use “computer name” or “Tag1” in my script through snapin module…

        Thanks…

        G 2 Replies Last reply Jul 14, 2017, 6:23 PM Reply Quote 0
        • G
          george1421 Moderator @joseska
          last edited by Jul 14, 2017, 6:23 PM

          @joseska Tag1 is a bit harder, but computer name can be picked up with the windows environment variable called %computername%

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

          1 Reply Last reply Reply Quote 0
          • G
            george1421 Moderator @joseska
            last edited by george1421 Jul 14, 2017, 12:26 PM Jul 14, 2017, 6:24 PM

            @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

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              2/5
              Last post

            165

            Online

            12.1k

            Users

            17.3k

            Topics

            155.3k

            Posts
            Copyright © 2012-2024 FOG Project