mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-03 03:50:08 +00:00
88 lines
2.0 KiB
Plaintext
88 lines
2.0 KiB
Plaintext
start:bmcdiscover_q
|
|
label:others,discovery
|
|
os:linux
|
|
decription:query usage for bmcdiscover
|
|
cmd:bmcdiscover ?
|
|
check:rc==0
|
|
check:output=~bmcdiscover - Discover BMC
|
|
check:output=~Usage
|
|
check:output=~bmcdiscover \[-?|-h|--help\]
|
|
check:output=~bmcdiscover \[-v|--version\]
|
|
end
|
|
|
|
start:bmcdiscover_help
|
|
label:others,discovery
|
|
os:linux
|
|
decription:show bmcdiscover help information
|
|
cmd:bmcdiscover help
|
|
check:rc==0
|
|
check:output=~bmcdiscover \- Discover BMC \(Baseboard Management Controller\) using the specified scan method
|
|
check:output=~Usage:
|
|
check:output=~bmcdiscover \[-?|-h|--help\]
|
|
check:output=~bmcdiscover \[-v|--version\]
|
|
end
|
|
|
|
start:bmcdiscover_version
|
|
label:others,discovery
|
|
os:linux
|
|
description:show bmcdiscover version
|
|
cmd:bmcdiscover --version
|
|
check:rc==0
|
|
check:output=~bmcdiscover - xCAT Version
|
|
end
|
|
|
|
start:bmcdiscover_h
|
|
label:others,discovery
|
|
os:Linux
|
|
decription:help
|
|
cmd:bmcdiscover -h
|
|
check:rc==0
|
|
check:output=~Usage
|
|
end
|
|
|
|
start:bmcdiscover_nmap_range
|
|
label:others,discovery
|
|
cmd:nic=`ip -4 -brief addr | grep -v "127.0.0" | cut -d" " -f1`; ip route replace 10.30.0.0/16 via 10.10.1.1 dev $nic
|
|
cmd:bmcdiscover -s nmap --range $$bmcrange -u $$bmcusername -p $$bmcpasswd
|
|
check:rc==0
|
|
check:output=~$$bmcrange
|
|
end
|
|
|
|
start:bmcdiscover_v
|
|
label:others,discovery
|
|
cmd:bmcdiscover -v
|
|
check:rc==0
|
|
checkout:output=~xCAT Version
|
|
end
|
|
|
|
start:bmcdiscover_check_paswd
|
|
label:others,discovery
|
|
cmd:bmcdiscover -i $$bmcrange -u $$bmcusername -p $$bmcpasswd --check
|
|
check:rc==1
|
|
check:output=~is not supported
|
|
end
|
|
|
|
start:bmcdiscover_get_ipsource
|
|
label:others,discovery
|
|
cmd:bmcdiscover -i $$bmcrange -u $$bmcusername -p $$bmcpasswd --ipsource
|
|
check:rc==1
|
|
check:output=~is not supported
|
|
end
|
|
|
|
start:bmcdiscover_range_w
|
|
label:others,discovery
|
|
cmd:bmcdiscover --range $$bmcrange -u $$bmcusername -p $$bmcpasswd -w
|
|
check:rc==0
|
|
check:output=~Writing node
|
|
check:output=~$$bmcrange
|
|
end
|
|
|
|
|
|
start:bmcdiscover_range_z
|
|
label:others,discovery
|
|
cmd:bmcdiscover --range $$bmcrange -u $$bmcusername -p $$bmcpasswd -z
|
|
check:rc==0
|
|
check:output=~bmc=$$bmcrange
|
|
cmd:ip route del 10.30.0.0/16
|
|
end
|