update
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10141 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
2234fd8eb0
commit
5d8855dd67
@ -53,7 +53,7 @@ check:rc==0
|
||||
check:output=~dhcpd
|
||||
end
|
||||
|
||||
start:makedhcp_a
|
||||
start:makedhcp_a_linux
|
||||
description:Define all nodes to the DHCP server. (Will only add nodes that can be reached, network-wise, by this DHCP server.) The dhcp daemon does not have to be restarted after this.
|
||||
os:Linux
|
||||
cmd:mkdef -t node -o testnode1 groups=compute mac=11:22:33:55:66:88 arch=ppc64
|
||||
@ -72,7 +72,7 @@ cmd:rmdef testnode1
|
||||
cmd:mv -f /etc/dhcp/dhcpd.conf.bak /etc/dhcp/dhcpd.conf
|
||||
end
|
||||
|
||||
start:makedhcp_a_d
|
||||
start:makedhcp_a_d_linux
|
||||
os:Linux
|
||||
cmd:lsdef -t node -l -z > /tmp/all.nodes
|
||||
cmd:mkdef -t node -o testnode1 groups=compute mac=11:22:33:55:66:88 arch=ppc64
|
||||
@ -95,7 +95,7 @@ cmd:rmdef testnode2
|
||||
#cmd:rm -f /tmp/1 /tmp/2
|
||||
end
|
||||
|
||||
start:makedhcp_d
|
||||
start:makedhcp_d_linux
|
||||
description:Delete all node entries, added by xCAT, in the noderange from the DHCP server configuration.
|
||||
os:Linux
|
||||
cmd:mkdef -t node -o testnode1 groups=compute mac=11:22:33:55:66:88 arch=ppc64
|
||||
@ -117,3 +117,35 @@ cmd:rmdef testnode1
|
||||
cmd:mv -f /etc/dhcp/dhcpd.conf.bak /etc/dhcp/dhcpd.conf
|
||||
cmd:rm -f /tmp/1 /tmp/2
|
||||
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:makedhcp -a -d
|
||||
check:rc==0
|
||||
cmd:cat /var/lib/dhcpd/dhcpd.leases | grep $$CN
|
||||
check:output!~$$CN
|
||||
cmd:makedhcp -a
|
||||
end
|
||||
|
||||
start:makedhcp_d
|
||||
os:Linux
|
||||
cmd:makedhcp -d $$CN
|
||||
check:rc==0
|
||||
cmd:cat /var/lib/dhcpd/dhcpd.leases | grep $$CN
|
||||
check:output!~$$CN
|
||||
cmd:makedhcp -a
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user