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: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
end
