Hostid

Hostid is generated based on the ip address

192(0xc0).168(0xa8).100(0x64).101(0x65) = a8c06564
192(0xc0).168(0xa8).1(0x1).101(0x65)    = a8c0651
id="12345678"
pa=${id:6:2}
pb=${id:4:2}
pc=${id:2:2}
pd=${id:0:2}
echo -ne \\x$pa\\x$pb\\x$pc\\x$pd > /etc/hostid
echo -ne \\x$pa\\x$pb\\x$pc\\x$pd | sudo tee /etc/hostid

Daiphys is a professional-service company for research and development of leading-edge technologies in science and engineering.
Get started accelerating your business through our deep expertise in R&D with AI, quantum computing, and space development; please get in touch with Daiphys today!

Name*


Email*


Message*




* Indicates required field

Daiphys Technologies LLC - https://www.daiphys.com/

  • Last modified: 2022/12/15 02:52
  • by Daiphys