| 55 | * [備忘] 在 Linux 底下查 BIOS 裡面的 UUID 可以用 [http://packages.debian.org/etch/dmidecode dmidecode] 套件的 dmidecode 指令,這個 UUID 就可以給 /tftpboot/nbi_img/pxelinux.cfg/ 指定特定機器的 pxelinux 設定用 |
| 56 | {{{ |
| 57 | root@drbl-xen-srv:~# dmidecode | grep UUID |
| 58 | UUID: 564DA03C-37F5-D7DE-386D-CEF0191D96DC |
| 59 | }}} |
| 60 | * [小技巧] 要查 TFTP Server 的互動要求,可以把 |
| 61 | * [小技巧] 把 /etc/dhcp3/dhcpd.conf 裡的 log 設定前的 mark 拿掉 |
| 62 | {{{ |
| 63 | #!diff |
| 64 | --- /etc/dhcp3/dhcpd.conf |
| 65 | +++ /etc/dhcp3/dhcpd.conf |
| 66 | @@ -37,9 +37,9 @@ |
| 67 | - #log(info, concat("Client ", |
| 68 | - # binary-to-ascii(16, 8, ":", substring(hardware, 1, 6)), |
| 69 | - # " requests ", |
| 70 | - # binary-to-ascii(16, 8, ":", option dhcp-parameter-request-list), |
| 71 | - # " - ", |
| 72 | - # pick-first-value(option vendor-class-identifier, "no vendor-id"), |
| 73 | - # " - ", |
| 74 | - # pick-first-value(option dhcp-client-identifier, "no dhcp-client-id")) |
| 75 | - # ); |
| 76 | + log(info, concat("Client ", |
| 77 | + binary-to-ascii(16, 8, ":", substring(hardware, 1, 6)), |
| 78 | + " requests ", |
| 79 | + binary-to-ascii(16, 8, ":", option dhcp-parameter-request-list), |
| 80 | + " - ", |
| 81 | + pick-first-value(option vendor-class-identifier, "no vendor-id"), |
| 82 | + " - ", |
| 83 | + pick-first-value(option dhcp-client-identifier, "no dhcp-client-id")) |
| 84 | + ); |
| 85 | }}} |