• 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

      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
      • george1421G
        george1421 Moderator
        last edited by

        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

          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…

          george1421G 2 Replies Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @joseska
            last edited by

            @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
            • george1421G
              george1421 Moderator @joseska
              last edited by george1421

              @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
              • First post
                Last post

              171

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project