Guest User

http://10.6.23.8/fog/service/ipxe/boot.php?mac=b8:ae:ed:85:3

a guest
Aug 14th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. #!ipxe
  2. set fog-ip 10.6.23.8
  3. set fog-webroot fog
  4. set boot-url http://${fog-ip}/${fog-webroot}
  5. cpuid --ext 29 && set arch x86_64 || set arch i386
  6. goto get_console
  7. :console_set
  8. colour --rgb 0x00567a 1 ||
  9. colour --rgb 0x00567a 2 ||
  10. colour --rgb 0x00567a 4 ||
  11. cpair --foreground 7 --background 2 2 ||
  12. goto MENU
  13. :alt_console
  14. cpair --background 0 1 ||
  15. cpair --background 1 2 ||
  16. goto MENU
  17. :get_console
  18. console --picture http://10.6.23.8/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console
  19. :MENU
  20. menu
  21. colour --rgb 0x00567a 0 ||
  22. cpair --foreground 1 1 ||
  23. cpair --foreground 0 3 ||
  24. cpair --foreground 4 4 ||
  25. item --gap Host is registered as ZPR001W1000042!
  26. item --gap -- -------------------------------------
  27. item fog.local Boot from hard disk
  28. item fog.memtest Run Memtest86+
  29. item fog.keyreg Update Product Key
  30. item fog.deployimage Restaurar Imagem
  31. item fog.multijoin Join Multicast Session
  32. item fog.quickdel Quick Host Deletion
  33. item fog.sysinfo Client System Information (Compatibility)
  34. item fog.advancedlogin Advanced Login
  35. choose --default fog.local --timeout 3000 target && goto ${target}
  36. :fog.local
  37. sanboot --no-describe --drive 0x80 || goto MENU
  38. :fog.memtest
  39. kernel http://10.6.23.8/fog/service/ipxe/memdisk initrd=http://10.6.23.8/fog/service/ipxe/memtest.bin iso raw
  40. initrd http://10.6.23.8/fog/service/ipxe/memtest.bin
  41. boot || goto MENU
  42. :fog.keyreg
  43. login
  44. params
  45. param mac0 ${net0/mac}
  46. param arch ${arch}
  47. param username ${username}
  48. param password ${password}
  49. param keyreg 1
  50. isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
  51. isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
  52. param sysuuid ${uuid}
  53. :fog.deployimage
  54. login
  55. params
  56. param mac0 ${net0/mac}
  57. param arch ${arch}
  58. param username ${username}
  59. param password ${password}
  60. param qihost 1
  61. isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
  62. isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
  63. param sysuuid ${uuid}
  64. :fog.multijoin
  65. login
  66. params
  67. param mac0 ${net0/mac}
  68. param arch ${arch}
  69. param username ${username}
  70. param password ${password}
  71. param sessionJoin 1
  72. isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
  73. isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
  74. param sysuuid ${uuid}
  75. :fog.quickdel
  76. login
  77. params
  78. param mac0 ${net0/mac}
  79. param arch ${arch}
  80. param username ${username}
  81. param password ${password}
  82. param delhost 1
  83. isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
  84. isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
  85. param sysuuid ${uuid}
  86. :fog.sysinfo
  87. kernel http://10.6.23.8/fog/service/ipxe/bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=http://10.6.23.8/fog/ consoleblank=0 rootfstype=ext4 storage=10.6.23.8:/images/ storageip=10.6.23.8 loglevel=4 mode=sysinfo
  88. imgfetch http://10.6.23.8/fog/service/ipxe/init_32.xz
  89. boot || goto MENU
  90. :fog.advancedlogin
  91. login
  92. params
  93. param mac0 ${net0/mac}
  94. param arch ${arch}
  95. param username ${username}
  96. param password ${password}
  97. param advLog 1
  98. isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
  99. isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
  100. param sysuuid ${uuid}
  101. :bootme
  102. chain -ar http://10.6.23.8/fog/service/ipxe/boot.php##params ||
  103. goto MENU
  104. autoboot
Add Comment
Please, Sign In to add comment