@devrick I found the first problem in that I gave you some bad intel. I need to update that old post about hinfo. For security the developers changed how that file can be called to prevent data leakage. As soon as I saw the output file from the wget command I knew what was wrong.
The way the FOS Linux calls it is in this line:
https://github.com/FOGProject/fos/blob/8d310f51d7d945c5dc1685eb6698d1aed8634dc7/Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog#L8
With real values:
curl -Lks -o /tmp/hinfo.txt --data “sysuuid=bob&mac=d6:29:3b:0e:fc:16” “http://192.168.112.116/fog/service/hostinfo.php” -A ‘’
With the variables
curl -Lks -o /tmp/hinfo.txt --data “sysuuid=${sysuuid}&mac=${mac}” “${web}/service/hostinfo.php” -A ‘’
It did return what was expected into hinfo.txt.
I had to spin up a new FOG server because the centos and ubuntu servers were reconfgured for nfsv4, So now I need to build a new windows VM and capture that image onto the new FOG server to test how well the deploy script runs. I’m confident we will be able to access the other tags too.
# cat hinfo.txt
[[ -z $mac ]] && export mac='d6:29:3b:0e:fc:16'
[[ -z $ftp ]] && export ftp='192.168.112.116'
[[ -z $osid ]] && export osid='9'
[[ -z $storage ]] && export storage='192.168.112.116:/images/'
[[ -z $storageip ]] && export storageip='192.168.112.116'
[[ -z $img ]] && export img='Baseimage1'
[[ -z $imgFormat ]] && export imgFormat='5'
[[ -z $imgType ]] && export imgType='n'
[[ -z $imgPartitionType ]] && export imgPartitionType='all'
[[ -z $imgid ]] && export imgid='1'
[[ -z $PIGZ_COMP ]] && export PIGZ_COMP='-6'
[[ -z $shutdown ]] && export shutdown='0'
[[ -z $hostearly ]] && export hostearly='1'
[[ -z $pct ]] && export pct='5'
[[ -z $ignorepg ]] && export ignorepg='1'
[[ -z $winuser ]] && export winuser=''
[[ -z $port ]] && export port=''
[[ -z $fdrive ]] && export fdrive=''
[[ -z $hostname ]] && export hostname='uefibooter'
[[ -z $hostdesc ]] && export hostdesc='Created by FOG Reg on January 9, 2021, 12:46 am'
[[ -z $hostip ]] && export hostip=''
[[ -z $hostimageid ]] && export hostimageid='1'
[[ -z $hostbuilding ]] && export hostbuilding='0'
[[ -z $hostusead ]] && export hostusead=''
[[ -z $hostaddomain ]] && export hostaddomain=''
[[ -z $hostaduser ]] && export hostaduser=''
[[ -z $hostadpass ]] && export hostadpass=''
[[ -z $hostadou ]] && export hostadou=''
[[ -z $hostproductkey ]] && export hostproductkey=''
[[ -z $imagename ]] && export imagename='Baseimage1'
[[ -z $imagedesc ]] && export imagedesc=''
[[ -z $imageosid ]] && export imageosid='9'
[[ -z $imagepath ]] && export imagepath='Baseimage1'
[[ -z $primaryuser ]] && export primaryuser='JonDoe'
[[ -z $othertag ]] && export othertag='MyTag1'
[[ -z $othertag1 ]] && export othertag1='MyTag2'
[[ -z $sysman ]] && export sysman='QEMU'
[[ -z $sysproduct ]] && export sysproduct='Standard PC (i440FX + PIIX, 1996)'
[[ -z $sysserial ]] && export sysserial='Not Specified'
[[ -z $mbman ]] && export mbman=''
[[ -z $mbserial ]] && export mbserial=''
[[ -z $mbasset ]] && export mbasset=''
[[ -z $mbproductname ]] && export mbproductname=''
[[ -z $caseman ]] && export caseman='QEMU'
[[ -z $caseserial ]] && export caseserial='Not Specified'
[[ -z $caseasset ]] && export caseasset='Not Specified'
[[ -z $type ]] && export type='down'