• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. cornycopia
    3. Topics
    C
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 2
    • Best 1
    • Controversial 0
    • Groups 0

    Topics created by cornycopia

    • C

      Is it possible to change FTP port for nodes?

      General Problems
      • • • cornycopia
      4
      0
      Votes
      4
      Posts
      405
      Views

      Tom ElliottT

      @cornycopia After thinking about it, there’s a “general” port that’s used.

      FOG Settings -> FOG_FTP_PORT

      Granted this isn’t per server, but it is a choosable thing.

    • C

      Unsolved Unable to create host through API

      FOG Problems
      • • • cornycopia
      2
      1
      Votes
      2
      Posts
      279
      Views

      JJ FullmerJ

      @cornycopia Hi!
      Are you familiar with powershell at all? If not, it’s too hard to learn,
      I have made a powershell module to help with managing these things (see my signature for more links)

      For example there’s a command to make a new fog host https://fogapi.readthedocs.io/en/latest/commands/New-FogHost/
      I would recommend giving that a go.

      That said, let’s take a look at why this isn’t working

      The first issue I see with your body is the macs need to be an array
      You might also have to have the modules param defined in the body.
      In my PowerShell function I have a function to get all the modules and I filter it to the default ones so that the behavior is the same as when you add a host in the gui instead of creating a host with nothing in it.
      https://fogapi.readthedocs.io/en/latest/commands/Get-FogModules/

      Here’s a simplified table of that output, I think the ids are always the same in all installs, but they could be unique to your install

      id name -- ---- 1 Directory Cleaner 2 User Cleanup 3 Display Manager 4 Auto Log Out 5 Green FOG 6 Snapins 7 Client Updater 8 Host Registration 9 Hostname Changer 10 Printer Manager 11 Task Reboot 12 User Tracker 13 Power Management

      Anyway, here’s an example of a json body for creating a host with the default service modules enabled (these are my defaults, you may have different ones configured)

      { "macs": [ "A4:BF:01:6E:E4:F2" ], "name": "demo", "modules": [ "7", "9", "13", "6", "11", "2", "12" ] }
    • 1 / 1