• [API] How get host id (or name) with mac address

    4
    0 Votes
    4 Posts
    2k Views
    ShiigehiroS

    @tom-elliott How can i request to /fog/host/search/xx:xx:xx:xx:xx:xx ?
    I will have an error with this for illegal url chars can i send it with data ?

    And

    http://domain.com/fog/host/search/randomhostname

    return a white page (403 Forbidden error to get the search route)

  • Apache access logs - Debian 9

    2
    0 Votes
    2 Posts
    806 Views
    Wayne WorkmanW

    Solved. Because Fog’s apache settings are configured in a vhost, the logs are going here on Debian 9:
    /var/log/apache2/other_vhosts_access.log

  • Plugin hook deploy problem

    2
    0 Votes
    2 Posts
    722 Views
    S

    @andyb2000 said in Plugin hook deploy problem:

    function groupDeployPost($arguments)

    I guess you need to give us more context. Hooks are usually

    getClass is defined in class FOGBase (ref) which is inherited by EventManager, which is inherited by Event, which is inherited by Hook. So if you do class myOwnDeployPostHook extends Hook you should be able to use self::getClass(...

  • Change languages reports and pop up maintenance windows.

    Moved Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    J

    @DarkStorm007 what specifically do you want to change about the form? Is it that its showing in english and not the system language? We do have Spanish-Spain (es-Es) translations, but not for Mexico (es-mx). If you’d like to add a translation, see this thread: https://forums.fogproject.org/topic/9068/help-wanted-client-internationalization and I can include it in the next build/release.

  • Plugin for switch vlan changes

    11
    0 Votes
    11 Posts
    2k Views
    andyb2000A

    Thats excellent, thank you Sebastian for taking the time to reply, I’ll get onto that code now, that’s what I’m after.

    And yes, the find/awk trick was also what I was looking for, who needs docs, like you say, it’s in the code 🙂

  • Working branch is working good!

    2
    3 Votes
    2 Posts
    748 Views
    x23piracyX

    Bild Text

  • FOG API - get host list

    2
  • Error in SetupComplete.cmd

    7
    1 Votes
    7 Posts
    2k Views
    x23piracyX

    by history: i always use it with - (minus) 😄

    Syntax: shutdown [/i | /l | /s | /sg | /r | /g | /a | /p | /h | /e | /o] [/hybrid] [/soft] [/fw] [/f] [/m \\Computer][/t xxx][/d [p:]xx:yy [/c "Kommentar"]]

    I call it good development 😉

  • API

    Solved
    19
    1 Votes
    19 Posts
    9k Views
    A

    @wayne-workman
    Thx. I figured out where was the issue. Maybe this info will help somebody.
    I use curl under Windows, but command line doesn’t support single quotes '.
    I used " and had to escape inner ones
    –data “{\“hostID\”:13}”

  • SVN vs GIT redux

    5
    0 Votes
    5 Posts
    2k Views
    Wayne WorkmanW

    @joseph-hales That article needs overhauled I suppose. Probably re-titled too. I’ll see what I can do.

  • Latest FOG 0.33b

    Locked
    2k
    0 Votes
    2k Posts
    9m Views
    Wayne WorkmanW

    Latest stable release as of November 21st, 2017 is FOG 1.4.4. Official announcement here: https://news.fogproject.org/fog-1-4-4-officially-released/

  • Disk drive geometry and partition layouts for well know OS

    12
    1 Votes
    12 Posts
    4k Views
    F

    As @wayne-workman said me, I post the output of my dual system: W10 LTSB 2016 and Ubuntu 16.04

    root@U032668:~# gdisk -l /dev/sda GPT fdisk (gdisk) version 1.0.1 Partition table scan: MBR: protective BSD: not present APM: not present GPT: present Found valid GPT with protective MBR; using GPT. Disk /dev/sda: 500118192 sectors, 238.5 GiB Logical sector size: 512 bytes Disk identifier (GUID): 611A1A7F-D5E7-4EB5-87EF-D447B71A8595 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 500118158 Partitions will be aligned on 2048-sector boundaries Total free space is 924269 sectors (451.3 MiB) Number Start (sector) End (sector) Size Code Name 1 923648 1128447 100.0 MiB EF00 EFI system partition 2 1128448 1161215 16.0 MiB 0C01 Microsoft reserved ... 3 1161216 205961215 97.7 GiB 0700 Basic data partition 4 205961216 483586047 132.4 GiB 8300 5 483586048 500117503 7.9 GiB 8200 root@U032668:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 238,5G 0 disk ├─sda1 8:1 0 100M 0 part /boot/efi ├─sda2 8:2 0 16M 0 part ├─sda3 8:3 0 97,7G 0 part ├─sda4 8:4 0 132,4G 0 part / └─sda5 8:5 0 7,9G 0 part [SWAP] sr0 11:0 1 1024M 0 rom root@U032668:~# blkid /dev/sda1: UUID="A47A-9C4F" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="90659379-55aa-43cc-a916-7909278e69d2" /dev/sda2: PARTLABEL="Microsoft reserved partition" PARTUUID="ff774eb9-c85f-4dae-aac5-9a8efd46e7b4" /dev/sda3: UUID="385A3AFA5A3AB48A" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="54366076-6bce-46ae-9046-8528edf1876f" /dev/sda4: UUID="e3fa93df-c9a8-4b1c-bcaf-7886256709cb" TYPE="ext4" PARTUUID="c1db2263-cf34-4d82-9954-2484e2c8bdde" /dev/sda5: UUID="c2fec154-bb2c-454c-ad54-8ca7ab1af203" TYPE="swap" PARTUUID="530e6d65-e5d7-4f4c-bb3b-44ccc6305467" root@U032668:~# pvdisplay El programa «pvdisplay» no está instalado. Puede instalarlo escribiendo: apt install lvm2 root@U032668:~# lgdisplay No se ha encontrado la orden «lgdisplay», quizás quiso decir: La orden «lvdisplay» del paquete «lvm2» (main) La orden «vgdisplay» del paquete «lvm2» (main) lgdisplay: no se encontró la orden root@U032668:~# lvdisplay El programa «lvdisplay» no está instalado. Puede instalarlo escribiendo: apt install lvm2
  • Detect Windows Boot/Recovery/Reserved/System partitions reliably

    7
    0 Votes
    7 Posts
    2k Views
    S

    @george1421 said in Detect Windows Boot/Recovery/Reserved/System partitions reliably:

    These files would need to be named uniquely global (i.e. not having natural language variants).

    Good point George! Though I am fairly sure this is the case for some files that are used for booting the OS like bootmgr and such files.

  • This topic is deleted!

    2
    0 Votes
    2 Posts
    9 Views
  • What can we do when we don't trust UUID?

    28
    2 Votes
    28 Posts
    12k Views
    PsycholiquidP

    Guys I should also have some new HP tablets coming in soon probably using the same kind of hardware so I will update those as soon as I get my hands on them.

    http://store.hp.com/us/en/mdp/laptops/hp-elite-x2-1012#tab=features

  • Clone only one partiotion from disk

    3
    0 Votes
    3 Posts
    1k Views
    S

    @pecata As George said it can only be done of source and destination disk are identical in size (sector count!). To achieve what you requested you’d have to capture and deploy an image fully at least once. Then I’d advice you create another image definition in the web UI where you set it to capture only c:\ (take a look at windows disk management tool to see if it is partition number two - likely). Capture this from the same source PC as you did initially capture the full image. Now you are able to deploy this single partition image to other PCs.

  • Convert fog management address

    2
    0 Votes
    2 Posts
    1k Views
    S

    @msi Well, this has nothing to do with FOG in general. Tell your DNS admins to add entries for the IP to name resolution within your local network and you will be able to use the name instead of IP for the web management. Though the clients will still use the IP but that doesn’t matter to you I reckon.

  • Plugins Tutorial

    4
    1 Votes
    4 Posts
    2k Views
    george1421G

    @zorderelda The info you are looking for, unfortunately doesn’t exist outside of the brains of the developers. And I agree we really need to get some documentation on this to grow the list of available plugins.

    I’ve done some tweaking of a few plugins and I can say they are not difficult but also a pita at the same time.

    I worked on / with 2 plugins the LDAP and the Persistent Groups.

    The persistent groups was created by the developers to aid in installing a sql trigger that simulates persistent groups in FOG. It is the most simple one with no menus or outward appearance that it has been installed.

    The ldap plugin is a bit more complex, but it also shows you how to create tables, hook into a process. It also has a display/editor page. I can tell you the graphics at the top are fonts based on the font awesome library http://fontawesome.io/

    The fog application has and calls out hooks at certain functions and as a plugin programmer you can tie into those hooks to add function to fog.

    That is about it from what limited knowledge I have.

  • Deploying to Hyper-V UEFI VMs w/v1.5.0 RC-6 Working Branch

    Solved
    13
    0 Votes
    13 Posts
    4k Views
    J

    Sebastian,

    Here’s d1.partitions:

    label: gpt label-id: 6561AEE9-3184-4274-B8E2-359A32B76FD5 device: /dev/sda unit: sectors first-lba: 34 last-lba: 104857566 /dev/sda1 : start= 2048, size= 921600, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=3E77A64A-2E46-40EC-93D0-03CFD0BDDDC9, name="Basic data partition", attrs="RequiredPartition GUID:63" /dev/sda2 : start= 923648, size= 202752, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=2CF8BFD9-3B61-4FAD-A4DC-6FC2A1E6E134, name="EFI system partition", attrs="GUID:63" /dev/sda3 : start= 1126400, size= 32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=1222537C-11F5-4B9F-9FB2-68AE743C5D79, name="Microsoft reserved partition", attrs="GUID:63" /dev/sda4 : start= 1159168, size= 103696384, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=0C2EDC77-DB4B-45A1-BF2B-2BE3B844CF47, name="Basic data partition"

    Here’s d1.fixed_size_partitions:

    :2:3:1

    Jim

  • Error when restoring image

    5
    0 Votes
    5 Posts
    2k Views
    C

    @tom-elliott Thanks for the reply. This is from our main server. I just built that one and put it in place to test it. That FOG version is 1.4.4, running on the latest CentOS 7. We have a much older one running Ubuntu that I would like to replace.

138

Online

12.3k

Users

17.4k

Topics

155.8k

Posts