mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
start:makeknownhosts_h
|
|
cmd:makeknownhosts -h
|
|
check:output=~Usage
|
|
cmd:makeknownhosts --help
|
|
check:output=~Usage
|
|
end
|
|
|
|
start:makeknownhosts_node
|
|
description:Make a known_hosts file under $ROOTHOME/.ssh for input noderange
|
|
cmd:makeknownhosts $$CN -r
|
|
cmd:makeknownhosts $$CN
|
|
check:rc==0
|
|
cmd:cat ~/.ssh/known_hosts|grep $$CN
|
|
check:rc==0
|
|
check:output=~$$CN
|
|
cmd:makeknownhosts $$CN -r
|
|
end
|
|
|
|
start:makeknownhosts_node_r
|
|
description:remove known node in $ROOTHOME/.ssh
|
|
cmd:makeknownhosts $$CN
|
|
cmd:cat ~/.ssh/known_hosts|grep $$CN
|
|
check:output=~$$CN
|
|
cmd:makeknownhosts $$CN -r
|
|
check:rc==0
|
|
cmd:cat ~/.ssh/known_hosts|grep $$CN
|
|
check:rc!=0
|
|
check:output!~$$CN
|
|
end
|
|
|
|
start:makeknownhosts_node_d
|
|
description:delete known node entry from $ROOTHOME/.ssh
|
|
cmd:makeknownhosts $$CN
|
|
cmd:cat ~/.ssh/known_hosts|grep $$CN
|
|
check:output=~$$CN
|
|
cmd:cat ~/.ssh/known_hosts|grep __GETNODEATTR($$CN,ip)__
|
|
check:rc==0
|
|
cmd:makeknownhosts $$CN -d
|
|
check:rc==0
|
|
cmd:cat ~/.ssh/known_hosts|grep __GETNODEATTR($$CN,ip)__
|
|
check:rc!=0
|
|
check:output!~__GETNODEATTR($$CN,ip)__
|
|
end
|
|
|
|
start:makeknownhosts_node_v
|
|
description:verbose
|
|
cmd:makeknownhosts $$CN -V
|
|
check:rc==0
|
|
check:output=~$$CN
|
|
end
|
|
|