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

    Posts made by TCS_Taylor

    • RE: Limit what images are shown on the "Deploy Image" FOG PXE menu

      Is there a way to do this with a new menu item? I added this code (just to see what it would look like) to my advanced menu text field, but it broke my menu setup. I had my menus setup so that only “perform full host registration” and “production imaging” menus showed up if the host was not registered. after I added this to my advanced menu text field all menu options were showing regardless of if the host was registered. worse, after I removed this from the advanced menu text field, fog is still ignoring the settings which say only show “perform full host registration” and “production imaging” if host is not registered…

      Thanks in advance for any help you can provide.

      Taylor

      posted in General Problems
      TCS_TaylorT
      TCS_Taylor
    • RE: Limit what images are shown on the "Deploy Image" FOG PXE menu

      Awesome, thanks so much for your assistance @Junkhacker ! I’m going to try this out right now!

      posted in General Problems
      TCS_TaylorT
      TCS_Taylor
    • RE: Limit what images are shown on the "Deploy Image" FOG PXE menu

      I love this idea! I’ve been googling a little this morning and trying to find more information about limiting what images are shown on a menu, but so far have come up dry. Can you please provide more information on how to accomplish this?

      Thanks!

      Taylor

      posted in General Problems
      TCS_TaylorT
      TCS_Taylor
    • Limit what images are shown on the "Deploy Image" FOG PXE menu

      The company that I work for uses FOG for two main purposes. The primary use is Imaging of desktop and laptop computers. Our manufacturing facility has also started using FOG to image some of the IoT components we build.

      Since the IoT devices don’t get registered with FOG, they are imaged using the “Deploy Image” menu of PXE.
      Our production manager has requested that I create a “production” user who only sees the IoT images when they go to the “Deploy Image” PXE menu.

      What would be the best way of getting this done?

      I have dug into the code a little bit, and it looks like bootmenu.class.php might be the best place to modify.

      I am by no means a PHP guru, but I have a little experience under my belt.

      Any assistance you can provide would be greatly appreciated!

      TCS_Taylor

      posted in General Problems bootmenu deploy pxe menu
      TCS_TaylorT
      TCS_Taylor
    • RE: Add Menu item/Limit hosts returned in Host Management

      @Wayne-Workman - I’m in the same boat as you, I have played with the plugin code, and can’t figure it out. I’m pretty green when it comes to PHP though. At this point, I have made a new table (inventoryexpanded) to store ALL inventory information (both the inventory information that FOG already manages, as well as the bits that I want to track that FOG doesn’t track). I have a python script that runs every 5 minutes and does a one way sync from the FOG tables to the inventoryexpanded table. Then the php pages that edit or create new records update the FOG tables upon execution.

      I will update this thread with more information on schemas and code once I have completed the project, in case someone wants to use my code, or expand on my ideas…

      At this point, the only thing I’m missing is an icon to link from the FOG menu to the inventory_expanded.php page.

      I can’t figure out for the life of me how to accomplish this. I was hoping it would be as easy as making a dummy plugin that just creates the icon and link, but I failed completely at attempting that.

      Any help/assistance/suggestions you all can provide would be greatly appreciated!

      Thanks much,

      Taylor

      posted in General
      TCS_TaylorT
      TCS_Taylor
    • RE: Add Menu item/Limit hosts returned in Host Management

      @Wayne-Workman Thanks much! I’ll take a look at that code today 🙂

      posted in General
      TCS_TaylorT
      TCS_Taylor
    • RE: Add Menu item/Limit hosts returned in Host Management

      Thanks @george1421 ! I had the same thought initially, but couldn’t find any information on making a plugin.

      The only page I came up with is this

      https://wiki.fogproject.org/wiki/index.php?title=Plugins

      Hopefully one of FOG’s super awesome developers will chime in and point me in the right direction 🙂

      Taylor

      posted in General
      TCS_TaylorT
      TCS_Taylor
    • Add Menu item/Limit hosts returned in Host Management

      Good afternoon!

      I am working on creating an inventory webpage for my company, for tracking all of our IT assets.

      I chose to do this using the fog database because 90% of the devices we need to track are laptops and PCs which already exist in fog.

      I have already added a couple of fields to the inventory table in fog, and created a page to view the inventory, add a new record (for items which fog doesn’t manage, like switches and servers) and edit existing records. It’s all working very nicely.

      There are two things I’m having an issue with.

      1. when I go to host management, ALL hosts are being showed (including the hosts not being managed by fog.) I would like to add a WHERE iSystype = Desktop or iSystype = Laptop or iSystype = VM clause in the SQL that the host node uses to only show laptops and desktops and VMs. Items that we enter manually have different iSystype’s set (like switch, phone, router, etc).

      2. I would like to add an icon to the menu which will either display the inventory page in space below the menu bar (like how the built in node icons work in FOG) or just redirect to the inventory page.

      I know that if/when we update our FOG, we’ll likely need to update the schema and any changes we make to the FOG proper files. I am creating very thorough documentation to make an upgrade easier.

      My FOG version is 1.3.4 running on Debian 8

      Any help you can provide would be greatly appreciated!

      Taylor

      posted in General menu sql
      TCS_TaylorT
      TCS_Taylor
    • RE: Image creation TFTP file

      Gold star goes to @Quazz! It was the Fast Startup that was hanging things up. Turned it off and the image is uploading just fine.

      I’m grabbing images at various stages of creating my golden image, so as to be able to roll back if need be, so I definitely want to be able to take an image in audit mode.

      Thanks again for your help folks!

      Taylor

      posted in General Problems
      TCS_TaylorT
      TCS_Taylor
    • RE: Image creation TFTP file

      First, thank you SO much for your uber prompt replies, much appreciated!
      Now is when I wish I knew more about PHP. 🙂

      @Junkhacker , can you point me to the php file that generates the boot information on demand?

      I’m trying to capture an image, and am getting the below error. I was hoping to modify the boot information to include the ‘ro’ mount option as a test. I’m guessing I’m getting this error because the PC is in audit mode while I’m trying to capture the image…

      0_1497540453557_f65c084e-1e05-4249-88a3-3091715a9abd-image.png

      posted in General Problems
      TCS_TaylorT
      TCS_Taylor
    • Image creation TFTP file

      A little quick background, I used to use FOG 0.3x many years ago at a school district I worked at. Back then we would occasionally have issues where the file created on the FOG server that made a PC perform a task thru TFTP (I believe it was named with the PCs MAC address) wouldn’t get cleared out after the task, and I would have to go into the server and manually delete the file.

      Fast forward to today, I am working at a new job and setting up a FOG server. The current version of FOG uses iPXE, which is different than what FOG 0.3x used.

      Does FOG still create a file with a name of the MAC address of the PC needing imaging, if so where? If not, how exactly does FOG let a PC know that it needs to be imaged when it PXE boots to the fog server?

      Thanks in advance for any help you can provide!

      Taylor

      posted in General Problems
      TCS_TaylorT
      TCS_Taylor
    • 1 / 1