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

    How to get Group-Name in postdownload

    Scheduled Pinned Locked Moved
    General Problems
    2
    3
    265
    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.
    • F
      Floppyrub
      last edited by

      Hi,
      I have a question, how can I get to the group-name assigned to a host during the runtime of a postdownload script. I saw that the group is stored in group64. However, I cannot read this variable. Is there a way to get the group name in a postdownload script or do I have to create an extra script that makes a query in the database?

      Best,
      floppyrub

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @Floppyrub What you are referring to with group64 is just a variable used when doing a (full/manual) registration of a machine (code ref). This is not available in the postdownload script.

        I don’t think the group information is available as of now. But that doesn’t mean it cannot be done. If you are keen to add the feature you are welcome to.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • F
          Floppyrub
          last edited by Floppyrub

          Hi, thanks for the reply and information. I was able to solve my problem, by using the fog-api in the postdownloadskript. Now i am able to read the hosts group-name and create automatic dessiscions for manipulating the unattend.xml in windows based on that.

          Best,
          Floppyrub

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post

          247

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project