Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved automatic pxe start
#3
(06-30-2023, 06:40 AM)phil2sat Wrote: Maybe you could send a start request with curl after starting from a batch or shell file:

Code:
curl 'http://tftpserver:26000/iventoy/json' \
  -H 'Accept: application/json, text/javascript, */*; q=0.01' \
  -H 'Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7' \
  -H 'Connection: keep-alive' \
  -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \
  -H 'DNT: 1' \
  -H 'Origin: http://tftpserver:26000' \
  -H 'Referer: http://tftpserver:26000/' \
  -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36' \
  -H 'X-Requested-With: XMLHttpRequest' \
  --data-raw '{"method":"start_server","ip":"192.168.1.69","mask":"255.255.255.0","gw":"192.168.1.1","pool_begin":"192.168.1.210","pool_end":"192.168.1.219"}' \
  --compressed \
  --insecure

Of course you have to set your values here like the DNS name IP's and the Subnets.
Just tested, works like a charm  Big Grin

EDIT: i got a iventoy.sh as attachment which does start automatically, but you have to edit DNS and IP's to your needs and of course CURL installed

It works perfect. Thank you so much for sharing it.

Regards
Reply


Messages In This Thread
automatic pxe start - by snickerweb@gmail.com - 06-26-2023, 06:55 PM
RE: automatic pxe start - by phil2sat - 06-30-2023, 06:40 AM
RE: automatic pxe start - by ayozeve - 07-10-2023, 02:23 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)