FOG PXE inventory issuess
-
Hi Tom,
below output:
#!ipxe
set fog-ip 172.21.100.2
set fog-webroot fog
set boot-url [url]http://${fog-ip}/${fog-webroot}[/url]
cpuid --ext 29 && set arch x86_64 || set arch i386
goto get_console
:console_set
colour --rgb 0xff6600 2
cpair --foreground 7 --background 2 2
goto MENU
:alt_console
cpair --background 0 1 && cpair --background 1 2
goto MENU
:get_console
console --picture [url]http://172.21.100.2/fog/service/ipxe/bg.png[/url] --left 100 --right 80 && goto console_set || goto alt_console
:MENU
menu
colour --rgb 0x00ff00 0
cpair --foreground 0 3
item --gap Host is registered as knur-41
item --gap – -------------------------------------
item fog.local Boot from hard disk
item fog.memtest Run Memtest86+
item fog.keyreg Update Product Key
item fog.quickimage Quick Image
item fog.multijoin Join Multicast Session
item fog.quickdel Quick Host Deletion
item fog.sysinfo Client System Information (Compatibility)
item fog.advancedlogin Advanced Menu
choose --default fog.local --timeout 2000 target && goto ${target}
:fog.local
chain -ar [url]http://172.21.100.2/fog/service/ipxe/grub.exe[/url] --config-file=“rootnoverify (hd0);chainloader +1” || goto MENU
:fog.memtest
kernel memdisk iso raw
initrd memtest.bin
boot || goto MENU
:fog.keyreg
login
params
param mac0 ${net0/mac}
param arch ${arch}
param username ${username}
param password ${password}
param keyreg 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
:fog.quickimage
login
params
param mac0 ${net0/mac}
param arch ${arch}
param username ${username}
param password ${password}
param qihost 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
:fog.multijoin
login
params
param mac0 ${net0/mac}
param arch ${arch}
param username ${username}
param password ${password}
param sessionJoin 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
:fog.quickdel
login
params
param mac0 ${net0/mac}
param arch ${arch}
param username ${username}
param password ${password}
param delhost 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
:fog.sysinfo
kernel bzImage32 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=172.21.100.2/fog/ consoleblank=0 loglevel=4 mode=sysinfo
imgfetch init_32.xz
boot || goto MENU
:fog.advancedlogin
login
params
param mac0 ${net0/mac}
param arch ${arch}
param username ${username}
param password ${password}
param advLog 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
:bootme
chain -ar [url]http://172.21.100.2/fog/service/ipxe/boot.php##params[/url] ||
goto MENU
autoboot
Regards
-
Is this with the inventory task scheduled?
-
no, there was without inventory task.
When I set inventory task and tryied get output I just received blank site on web browser.
Regards -
Okay,
When you have the white page what do you have in your apache error log?
Ubuntu: /var/log/apache2/error.log
RHBased: /var/log/httpd/error_log -
Hi Tom,
here is error log from my apache:
[Wed Jan 21 14:22:52.570971 2015] [:error] [pid 16440] [client 172.21.2.8:60076] PHP Fatal error: Call to a member function getOptimalStorageNode() on a non-object in /var/www/fog/lib/fog/BootMenu.class.php on line 774
Regards -
Can you try 2920?
-
svn updated do version 2920, but still same error when trying do inventory as in first post.
When I tryied this
[url]http://v1fog.intranet/fog/service/ipxe/boot.php?mac=d8:50:e6:bf:9b:ff[/url]
I get blank page.
Log from error.log from apache
[Wed Jan 21 15:07:48.056186 2015] [:error] [pid 20873] [client 172.21.2.8:39190] PHP Fatal error: Call to a member function get() on a non-object in /var/www/fog/lib/fog/BootMenu.class.php on line 796Regards
-
2922?
I’m sorry about requesting all this, but I’m trying! My guess, this host doesn’t have an image assigned to it right now, which is why you’re seeing the problem.
-
My fog version:
Version: 2920
[SIZE=4][FONT=arial][COLOR=red][B]You are not running the most current version of FOG![/B][/COLOR][/FONT][/SIZE]
You are currently running version: 2920
Latest stable version is 1.2.0
Latest svn version is 2922But I’m unable to upgrade this to 2922, I don’t know why.
Regards -
How were you upgrading before?
-
as usually
svn checkout [url]https://svn.code.sf.net/p/freeghost/code/trunk[/url]
cd /svn/trunk/bin
./installfog.sh
update database scheme -
This post is deleted! -
Try: [url]http://fogproject.org/wiki/index.php/Upgrade_to_trunk#SVN[/url]
[CODE]cd /some/local/folder/
svn up
cd bin
./installfog.sh[/CODE]
[LIST]
[*][I]NOTE:[/I] You must run [B]svn up[/B] in the “/some/local/folder/” and not in “…/fog/bin” or in “…/fog”
[/LIST] -
Done,
thanks
Version: 2922
[B] Your verson of FOG is up to date.[/B]
And inventory works like a charm
Thanks Tom and [URL=‘http://fogproject.org/forum/members/wolfbane8653.3362/’]Wolfbane8653[/URL]
Regards -
No problem, sorry it took so long.
-
No go with undionly.kpxe on HP Desk Pro 400 G1 - Core i5; part number J6D33UT#ABA. PXE boot get’s stuck at “configuring …” and after about 20 seconds the PC reboots.
[url=“/_imported_xf_attachments/1/1618_2015-01-21 12.19.13.jpg?:”]2015-01-21 12.19.13.jpg[/url]
-
hmm, something is not wright,
client sent inventory to server but see the picture. And it can last forever. Hard reset help.
[ATTACH]1620[/ATTACH]
Regards[url=“/_imported_xf_attachments/1/1620_IMG_20150122_070938.jpg?:”]IMG_20150122_070938.jpg[/url]
-
I’m having the same issue with a scheduled donation task. Tom will fix it soon.
-
2923 should fix this issue.
Sorry I’m an idiot sometimes.
-
Fixed my donation tasks. Thanks again Tom!