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

    API for Managing Tasks?

    Scheduled Pinned Locked Moved
    General
    2
    2
    1.5k
    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.
    • M
      Mike Benza
      last edited by

      Hello,

      I’ve just found FOG and it appears to do almost everything that I need to control imaging on 70 machines now, growing to 115 in just a few weeks. We have these 115 machines spread out across different subnets with groups of 15 behind their own DHCP/NAT. I’ve been pleasantly surprised at how adaptable FOG seems to be.

      However, there is one sticking point: I would like to be able to programmatically add a task to reimage a machine when it reboots. Is there any API (or not-too-hard way) to add a task like that?

      • Mike
      1 Reply Last reply Reply Quote 0
      • C
        chad-bisd Moderator
        last edited by

        You need to look into the way fog does it now. I believe it calls one of the scripts under {webdir}/fog/service/, passing in as POST arguments the information needed to create the task in the database and file under /tftpboot/pxelinux.cfg/

        If you expand out the /tftpboot/fog/images/init.gz (instruction on wiki), and look into the /bin/fog folder, you’ll see the fog.man.reg file, which is what runs when you choose the Full Host registration and inventory from the PXE boot menu. If you can look through that file, you can see how the script is calling the page which creates the imaging task, and you can replicate that in whatever program you are wanting to interface with FOG.


        If you would like to make a donation to the Fog project, please do so [U][COLOR=#0000ff][URL='http://sourceforge.net/dona…

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

        165

        Online

        12.1k

        Users

        17.3k

        Topics

        155.3k

        Posts
        Copyright © 2012-2024 FOG Project