2010-09-20 08:10:57 +00:00
|
|
|
start:makedhcp_n
|
|
|
|
os:Linux
|
2010-12-12 16:46:36 +00:00
|
|
|
cmd:mv -f /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.bak
|
2010-09-20 08:10:57 +00:00
|
|
|
cmd:makedhcp -n
|
|
|
|
check:rc==0
|
2010-12-12 16:46:36 +00:00
|
|
|
cmd:ls /etc/dhcp/dhcpd.conf
|
2010-09-20 08:10:57 +00:00
|
|
|
check:rc==0
|
|
|
|
cmd:ps -e | grep dhcpd
|
|
|
|
check:rc==0
|
|
|
|
check:output=~dhcpd
|
2010-12-12 16:46:36 +00:00
|
|
|
cmd:mv -f /etc/dhcp/dhcpd.conf.bak /etc/dhcp/dhcpd.conf
|
2010-09-20 08:10:57 +00:00
|
|
|
end
|
|
|
|
start:makedhcp_a
|
|
|
|
os:Linux
|
|
|
|
cmd:lsdef -l $$CN -z > /tmp/$$CN.stanza
|
|
|
|
cmd:chdef -t node -o $$CN mac=11:22:33:44:55:66
|
|
|
|
cmd:makedhcp -a
|
|
|
|
check:rc==0
|
|
|
|
cmd:cat /var/lib/dhcpd/dhcpd.leases
|
|
|
|
check:output=~$$CN
|
|
|
|
check:output=~11:22:33:44:55:66
|
|
|
|
cmd:chdef -t node -o $$CN mac=
|
|
|
|
cmd:cat /tmp/$$CN.stanza | chdef -z
|
|
|
|
end
|
|
|
|
start:makedhcp_a_d
|
|
|
|
os:Linux
|
|
|
|
cmd:lsdef -l $$CN -z > /tmp/$$CN.stanza
|
|
|
|
cmd:chdef -t node -o $$CN mac=11:22:33:44:55:66
|
2010-12-12 16:46:36 +00:00
|
|
|
cmd:mv -f /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.bak
|
2010-09-20 08:10:57 +00:00
|
|
|
cmd:makedhcp -a
|
|
|
|
cmd:makedhcp -a -d
|
|
|
|
check:rc==0
|
|
|
|
cmd:cat /var/lib/dhcpd/dhcpd.leases | grep deleted
|
|
|
|
check:output=~deleted
|
|
|
|
cmd:chdef -t node -o $$CN mac=
|
|
|
|
cmd:cat /tmp/$$CN.stanza | chdef -z
|
2010-12-12 16:46:36 +00:00
|
|
|
cmd:mv -f /etc/dhcp/dhcpd.conf.bak /etc/dhcp/dhcpd.conf
|
2010-09-20 08:10:57 +00:00
|
|
|
end
|
|
|
|
start:makedhcp_d
|
|
|
|
os:Linux
|
|
|
|
cmd:lsdef -l $$CN -z > /tmp/$$CN.stanza
|
|
|
|
cmd:chdef -t node -o $$CN mac=11:22:33:44:55:66
|
2010-12-12 16:46:36 +00:00
|
|
|
cmd:mv -f /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.bak
|
2010-09-20 08:10:57 +00:00
|
|
|
cmd:makedhcp -a
|
|
|
|
cmd:makedhcp -d $$CN
|
|
|
|
check:rc==0
|
|
|
|
cmd:cat /var/lib/dhcpd/dhcpd.leases | grep deleted
|
|
|
|
check:output=~deleted
|
|
|
|
cmd:chdef -t node -o $$CN mac=
|
|
|
|
cmd:cat /tmp/$$CN.stanza | chdef -z
|
2010-12-12 16:46:36 +00:00
|
|
|
cmd:mv -f /etc/dhcpd/dhcpd.conf.bak /etc/dhcpd/dhcpd.conf
|
2010-09-20 08:10:57 +00:00
|
|
|
end
|