Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generate random numbers on ipxe shell??
2014-01-11, 05:03
Post: #3
RE: Generate random numbers on ipxe shell??
(2014-01-10 23:34)mcb30 Wrote:  
(2014-01-09 16:26)oblivionv Wrote:  Is there a way to generate random numbers on the ipxe shell, like how we would using a bash/korn shell? Does it require re-compiling the source?
Something like the following is what am looking for:

echo "192.168.0.$((RANDOM%253+001))"

No, there's no support for doing that. Also, I would very strongly suggest that you use DHCP instead of randomly assigning IP addresses!

Michael

We have a situation where we have multiple DHCP's running at the same time every now and then. Hence, ipxe sometimes listens to the wrong DHCP server and hence fails to boot from the right source. Support of this in the future will be good.

Thanks!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Generate random numbers on ipxe shell?? - oblivionv - 2014-01-11 05:03



User(s) browsing this thread: 1 Guest(s)