Hello, We bought a new motherboard and I am not able to register it on fog server. Though fog web page give me an error which says “Unable to register host: reason Invalid mac address” and the computer already have network connection though domain controler. Also the same computer gave me error hdparm (bla bla [URL=‘http://forums.fedoraforum.org/showthread.php?t=277735’][COLOR=#660099][FONT=arial][SIZE=3][COLOR=#000000]inappropriate ioctl for device[/COLOR][/SIZE][/FONT][/COLOR][/URL][FONT=arial][SIZE=3][COLOR=#000000]) [/COLOR][/SIZE][/FONT]when I tryed to register it via tftpboot. Now I am not able to push snapins on that computer. This only have ethernet connection. There is a huge database with every mac address and this one is not loaded or something like? Thanks in advance
Posts made by Orphen
-
RE: Invalid mac address format
-
RE: Deploy a single snap in to a group
[quote=“Orphen, post: 12239, member: 2992”]Could you please post the code in order to add the option on my fog, since I have no knowledge at php. Thank you a lot![/quote]
please forget this message. I’ve figured out how to do that -
RE: Deploy a single snap in to a group
[quote=“Terry Bates, post: 5061, member: 594”]I have added something similar to my tasks.advanced.include.php file and it works like a charm, my code is near on the same.[/quote]
Could you please post the code in order to add the option on my fog, since I have no knowledge at php. Thank you a lot! -
Printserver in same hardware as fogserver
Hi all, My question today is if I can make the same hardware of Fog server running, also Printserver at the same time. The reason about my ask is to know if someone did try this before I try it myself and screw up the whole thing. haha. We wanna see if we can make both servers in the same computer. There is a chance of make it without mess up the fog server and configurations?
-
RE: Various Questions
I don’t know if I can help you with my experience, But instead of image all computers every day to have the same system I would prefer use Deep Freeze software and maintain windows intact on on reboot. It’s very nice software if you know how to use it.
-
RE: Password and time out to aply deploy image task
[COLOR=#000000][FONT=Calibri]Thank you so much i really appreciate this so much.[/FONT][/COLOR]
[COLOR=#000000][FONT=Calibri]I am using the php attached in the above this post, and also here is the fog file, what you can find at initmountdir/bin. Note: Is not .txt file, but without extension I am not able to upload it.[/FONT][/COLOR][COLOR=#000000][FONT=Calibri]Again thank you so much![/FONT][/COLOR]
[url=“/_imported_xf_attachments/0/225_fog.txt?:”]fog.txt[/url]
-
RE: Password and time out to aply deploy image task
I realy don’t know how to do that, still haven’t enough knowledge to do this… I almost lost my opportunity of use FOG in my workplace… here is a screenshot of my script. I realy don’t know how to do what you mentioned.
[ATTACH]221[/ATTACH][url=“/_imported_xf_attachments/0/221_Foggy.jpg?:”]Foggy.jpg[/url]
-
RE: Password and time out to aply deploy image task
Hello, I wish an excellent week for you. I’ve found a way to reach what I need, with my acknowledge until now. In the script I made that when ask for an input and no input has been done, the computer halt. But when an input has been done, ask for an username and password. Then the script ask for my php file. But does not authenticate anymore. Could you revise my php file for programming issues plz?
[url=“/_imported_xf_attachments/0/219_xauth.php?:”]xauth.php[/url]
-
RE: Fog Question about Queuing
Let me see if I understand the question. That you want to do is when a first image finishes, start another one without use fog web management, but you want to do it automatically.
First question:
Do you have Gigabit network card over the TFTP, FTP and Client computers?
Second question:
How long it takes to implement an image only one computer at a time? -
RE: Password and time out to aply deploy image task
Hello, thanks to your post I figured out how to authenticate with the server. Now i have another problem, the script modified is this:
[CODE]displayBanner;
ret=“”;
retry=“3”;
echo “Please enter a key to continue the task”
read -t 5 input
if [[ $? -ne 0 ]]
then
echo “User did not enter any input”
[B]>>>>Here should do something<<<<[/B]
else
echo “User did input as $input”
firetry=$(( $retry - 1 ));
ret=“”;
retry=“3”;
while [ “$ret” == “” ] && [ “$retry” != “0” ]; do
echo “”;
echo " Enter a valid FOG username and password.";
echo “”;
echo -n " Username: ";
read username;
echo “”;
echo -n " Password: ";
stty -echo
read password;
stty echo;
echo “”;
echo “”;user64=`echo -e $username | tr -d '\012' | base64`; pass64=`echo -e $password | tr -d '\012' | base64`; tmp=`wget -O - --post-data="&username=$user64&password=$pass64" "http://${web}service/xauth.php 2>/dev/null`
tmp=
wget -O - --post-data="mac=${mac}&username=$user64&password=$pass64" "http://${web}service/hostlookupbymac.php" 2>/dev/null
if [ "$tmp" == "#!ok" ]; then ret="1"; echo " * Image will continue. ";
elif [ “$tmp” == “#!ip” ]; then
ret=“”;
echo " * Error: problem with image package!";
elif [ “$tmp” == “#!ih” ]; then
ret=“”;
echo " * Error: Invalid host id!";
elif [ "$tmp" == "#!il" ]; then ret=""; echo " * Error: Invalid Login! ($retry remaining)"; else [B]>>>>Here should do something, same action that before<<<<[/B]; fi retry=$(( $retry - 1 ));
done[/CODE]
With this new script, fog file script into /tftpboot/fog/images/initmountdir/bin/ ask for an input, here I have 2 ways. first if there are no input then the script [U]should[/U] [B]stop this script, ask for reboot[/B] or [B]boot from hard disk, but this does nothing.[/B] Then the second option ask for an username and password. If your input is correct, the script continue his work, but if is not, again [U]should[/U] [B]stop this script, ask for reboot[/B] or [B]boot from hard disk, and again does nothing, [/B]and keep with the script course.
Is there a way to make this happen? I passed all night in google trying to find a way to call a boot from hard disk, stop the script course, reboot computer or jump to pxe menu. All of your help is much appreciated. Thank you
-
RE: Password and time out to aply deploy image task
Hello, I’ve found a way to stop the script and introduce some imputs. If you follow the steps in this link: [url]http://www.fogproject.org/wiki/index.php?title=Modifying_the_Init_Image[/url]
Then I’ve found that the first script is called fog. into [COLOR=#000000]initmountdir/bin/fog[/COLOR]
[COLOR=#000000]then in the script I added the next script part copied from fog.quickinfo and modifyed[/COLOR][CODE]displayBanner;
read -p “press any key to continue” -n1 -s
ret=“”;
retry=“3”;
while [ “$ret” == “” ] && [ “$retry” != “0” ]; do
echo “”;
echo " Enter a valid FOG username and password.";
echo “”;
echo -n " Username: ";
read username;
echo “”;
echo -n " Password: ";
stty -echo
read password;
stty echo;
echo “”;
echo “”;user64=`echo -e $username | tr -d '\012' | base64`; pass64=`echo -e $password | tr -d '\012' | base64`; tmp=`wget -O - --post-data="&username=$user64&password=$pass64" "http://${web}service/xauth.php 2>/dev/null`
tmp=
wget -O - --post-data="mac=${mac}&username=$user64&password=$pass64" "http://${web}service/hostlookupbymac.php" 2>/dev/null
if [ "$tmp" == "#!ok" ]; then ret="1"; echo " * Image will continue. ";
elif [ “$tmp” == “#!ip” ]; then
ret=“”;
echo " * Error: problem with image package!";
elif [ “$tmp” == “#!ih” ]; then
ret=“”;
echo " * Error: Invalid host id!";
elif [ "$tmp" == "#!il" ]; then ret=""; echo " * Error: Invalid Login! ($retry remaining)"; else echo $tmp; fi
retry=$(( $retry - 1 ));
done
setupDNS ${dns}[/CODE]
[COLOR=#000000][/COLOR]
Also I’ve created a xauth.php to download like
[CODE]http://${web}service/hostlookupbymac.php[/CODE]
With this code
[CODE]<?php
@error_reporting(0);
require_once( “…/commons/config.php” );
require_once( “…/commons/functions.include.php” );
require_once( “…/management/lib/ImageMember.class.php” );$conn = @mysql_connect( MYSQL_HOST, MYSQL_USERNAME, MYSQL_PASSWORD);
if ( $conn )
{
$u = mysql_real_escape_string(base64_decode(trim($_POST[“username”])));
$p = mysql_real_escape_string(base64_decode(trim($_POST[“password”])));
}
?>[/CODE]I arrive to the part when the boot img, If an image is in queue, the script stop and wait for an input. then ask for a username and password. After that, shows a wget line with the file downloaded but ask again for a username and password. My question is: How can I do for link my input username and password to validate with an existing FOG username and password?
When I finish this, will upload the procedure to our wiki. Thank you[url=“/_imported_xf_attachments/0/218_sample.jpg?:”]sample.jpg[/url]
-
RE: Requests for Wiki Access <--- ASK HERE
I am implementing this server in my work environment, for testing purposes I’ve installed fog server into a Vm with debian 6, and integrated with active directory. I only need to add 1 secure setting more to the boot up image and my project will be approved. I’ve documented all the process from install Debian in vm to sysprep windows 7 and xp to deploy. I would like to add part of the documentation to the wiki for common aknowledge. Also I have some solutions for issues and customizations tweaks for share.
-
Password and time out to aply deploy image task
Hi All. I would like to ask you if there is a way to add password feature and time out feature when you make a deploy of an image to a host, just to avoid the automatic image process when reboot the computer. I am working to implement this awesome tool into my enterprise but I need to satisfy my IT manager with this option. Just in case that by error, deploy an accidentally image to a server with PXE boot selected.
Thanks in advance and I need to wait for this answer to implement this tool and make my work flawless.
Regards.
Leandro@5ca