Hi
I am looking for some help. I need to produce a data destruction certificate or report of some kind stating the device has been reloaded , when using fog.
Any ideas. I know about dban etc… just nothing seems to work
Hi
I am looking for some help. I need to produce a data destruction certificate or report of some kind stating the device has been reloaded , when using fog.
Any ideas. I know about dban etc… just nothing seems to work
@wayne-workman said in Resetting the Image numbers r4602:
SELECT imageID FROM images ORDER BY imageID LIMIT 1;
Can I just say thank you for this.
@george1421 Just thinking out of the box here, and I understand I might be barking up the wrong tree, but could something like this work ?
https://linux.die.net/man/1/hivexsh
Would it then be possible to install this in fog and use this a function ?
As from there I should be able to pull the Windows version out from the registry, in theory.
As I have said before I am still learning .
@Sebastian-Roth You would be correct in the approach . Its an image once then forget. I am not using any tool to extract just a command which assigns the value to a variable and prints it out.
I then manually input the product key into a third party tool.
Do you know of any tools that could do the trick ?
Yes I do a full registration of the host then deploy .
Good day
I am looking to automate the deployment based on the license key extracted.
I currently extract the Windows license key from the BIOS, then use 3rd party tools such as ShowKeyPlus or PID checker to determine the OS version needed for the install. I then assign the OS version to the host and deploy.
What I wanted to know is it possible to extract the license key and determine the image to be assigned to the host automatically without the manual process of using 3rd party software applications?
@Tom-Elliott Thank you for your input. I realize that i have made a mistake in the code. I am new to bash and fog in general.
The idea is to have a while loop running until an image has been assigned. Or a sort of pause before it continues. The reason being that this is being done remotely and I would be assigning the correct image to the host. I am not psychically in front of the computer. The hosts users would only select that they want an image to be deployed and not select an image to deploy.
Hope that makes sense.
So what I guess I was looking for and I do realize that this is n the wrong thread is a way inside a while loop to see if an image has been assigned before continuing on with the deployment. BTW I have modified the fog.man.reg to go straight to the fog.download and the end of the registration.
@george1421 Looking at the code, say if I wanted to extract the hostimageid and assign it to $imageid in a while loop, would the following be correct :
while [[ $imageid -le 10 ]]; do
if [[ -z "imageid"]]; then
if [[ ! -z $mac ]]; then
curl -A "" -Lkso /tmp/hinfo.sh ${web}/fog/service/hinfo.php -d "mac=$mac&hostimageid=$imageid"
if [[ -f /tmp/hinfo.sh ]]; then
. /tmp/hinfo.sh
fi
echo "Please wait"
sleep 60
fi
done
This should in theory run the while loop until a value is given to the $imageid
By any chance do you know where the determineOS function is located ?
@zaboxmaster said in Need to create a While loop on deployment for when an image has not been assigned:
@Quazz Okay so I have tried using Imageid but in the fog.man.reg, I will try this in the fog.checkin file. As osid in the fog.checkin did not work either. It just skipped through
One thing I am not sure of is how the following works,
[[ -z $deployed ]] && determineOS “$osid”
I would think that hold the key
So I tried the following
while [[ $imageid -le 10 ]]; do
if [[ -z “$imageid” ]]
then
echo “Please Wait”
sleep 60
fi
done
Sorry i really do not have the greatest bash skills. But it works but the problem is I need a way to check the variable. In the loop. This is where i get really stuck. Would a curl command to the server to check the variable work ? If so what would that command be ?
@Quazz Okay so I have tried using Imageid but in the fog.man.reg, I will try this in the fog.checkin file. As osid in the fog.checkin did not work either. It just skipped through
One thing I am not sure of is how the following works,
[[ -z $deployed ]] && determineOS “$osid”
I would think that hold the key
@Quazz Sorry it skips right past and continues. Its does not pause or wait.
Sorry I have taken so long to respond.
Okay so to start I am editing the fog.man.reg file. I have do this with help from George.
I have taken away the option to select which image to deploy this was done because, non technical people are using the system and I will decide which image to install for them. I have modified my fog.man.reg file to go straight into the deployment with out rebooting by call on the fog.download. This works fine but what I am looking for is a way of not proceeding to the fog.download file until I have remotely assign an image to be deployed.
So regarding the while loop
I have tried the following commands in the fog.man.reg file:
while [[ -z “$OSID”]]; do
echo “Please wait”
sleep 60
done
(this failed as the syntax is incorrect)
while $OSID==“0” ; do
I have also looked through the fog.checkin file and found a command that i put into the fog.checkin file
while [[-z $osid]]; do
echo “Please Wait”
[[ -z $deployed ]] && determineOS “$osid”
sleep 60
done
Does this help ?
HI guys
After the host has been registered and is ready for deployment I need to create a While loop to “pause” the deployment until and image has been assigned.
I have tried to create a while loop using " while the $OSID = null then sleep 200 " but this does not seem to work.
What is the correct way of doing this?
Hi guys
I need to image various Macs covering every Mac OS from Snow Leopard to Mojave. Is there a correct way of doing this ?
I can only get it working with a non sizeable disk setting, is there a way of doing it with a sizeable partition?
Okay so I have tried 2 methods. One sending from the fog.man.reg and the other sending from fog.inventory.
At this point I am trying everything. I am only sending a couple variables as a test , once it works i will send as many as possible.
My fog.man.reg
fog.man.reg.txt
My fogmailer.php
fogmailer.txt
My fog.inventory
fog.inventory.txt
@george1421 Hi George
I have tried the above mentioned method, but I am still stuck.
I have changed the fog.man.reg also to ask a couple of questions and deleted questions I did not need. I have assigned two questions to the variables other1 and other2.
When I send the information to my own PHP page in the root directory the information is blank.
When I try view the variables by editing the fog.inventory file is also displays as blank.
My PHP page does send the information via email, the problem is that it is blank or comes across “encrypted?” .
I know the question seems very vague.
@george1421 Thank you so much for this. I will dig further into this.
I wanted to ask is there a way to edit the host registration process ? As in when you register the host to run the following line of code : sudo cat /sys/firmware/acpi/tables/MSDM to get the license key and send this along with the machine specs to an email address ?
Hi Guys,
I have been using Fog now for about 2 months, still learning every day
I wanted to ask I have a master node with remote storage nodes, I am using the my fog setup for people to bring in old machines to be re-imaged remotely. The idea is the end user plugs in his computer PXE boots, then his license key and current OS information along with his computer specs is extracted after inputting, the following: their name and generated code and this will set-off a process which install the correct OS that the have installed with their license key activated.
So my question is this, Is this possible to do ? Is it possible to run a powershell script at the PXE menu level ? How can i remotely deploy an image to there machine? Without registration onto the system?
Currently I have a WinPE environment that they boot into and from there I remote in and run the install from there. Is there a way to remotely force a machine into a PXE boot selecting a certain image ?
Kind regards
Hi Guys,
Has anyone tried a Squid proxy integration into fog ? Ie. the Squid proxy caching into a fog server environment ?
The reason behind it , is that Apple says the new T2 chip will not support pxe deployment or even USB. So thinking out the box as it requires an internet connection to re-install , is to setup a Squid proxy cache the files from Apple and then in the future deploy from Fog .
Let me know what you think
@george1421 Okay so I figured it out … The problem was the ISO, to a degree.
The ISO was made through WINPE10 builder and used G4D.
I then found a couple examples online with iPXE and followed the instructions. I downloaded wimboot , copied the BCD and BOOT.SDI file to the root http: directory.
I then ran the following and it works:
kernel http://192.168.100.160/windows/10Pro-x64/wimboot/wimboot
initrd http://192.168.100.160/windows/10Pro-x64/Boot/bcd BCD
initrd http://192.168.100.160/windows/10Pro-x64/Boot/boot.sdi boot.sdi
initrd http://192.168.100.160/windows/10Pro-x64/sources/boot.wim boot.wim
initrd http://192.168.100.160/windows/10Pro-x64/bootmgr.exe bootmgr.exe
imgstat
boot
Thank you again for your help