subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.2;
on commit {
set clip = binary-to-ascii(10, 8, ".", leased-address);
set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
execute("/usr/local/sbin/commit.sh", "commit", clip, clhw, host-decl-name);
}
...
option routers 192.168.1.2;
on commit {
set clip = binary-to-ascii(10, 8, ".", leased-address);
set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
execute("/usr/local/sbin/commit.sh", "commit", clip, clhw, host-decl-name);
}
...
dhcpd.conf 외부 실행 명령 작성해서 clip (클라이언트아이피)를 받아오는데요..
clhw와 host-decl-name의 정보는 받아오질 못하네요..
아시는분 댓글좀 부탁드립니다.
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.