NAME

bmcdiscover - Discover bmc using scan method, now scan_method can be nmap.

SYNOPSIS

bmcdiscover [-h|--help] [-v|--version]

bmcdiscover [-m|--method] scan_method [-r|--range] ip_range

bmcdiscover [-i|--bmcip] bmc_ip [-u|--bmcuser] bmcusername [-p|--bmcpwd] bmcpassword [-c|--check]

DESCRIPTION

The bmcdiscover command will discover bmc using scan method.

This command will use nmap scan active nodes, ip range format should be the same format with that is used by nmap.

Note: scan method can only be nmap now.

This command can check if bmc username or password is correct or not

OPTIONS

-h|--help

Display usage message.

-v|--version

Command version.

-m|--method scan_method

Scan method, now it is nmap.

-r|--range ip_range

Ip range should be a string, can pass hostnames, IP addresses, networks, etc.

-i|--bmcip bmc_ip

BMC ip.

-u|--bmcuser bmcusername

BMC user name.

-p|--bmcpwd bmcpassword

BMC user password.

-c|--check

Check.

RETURN VALUE

0 The command completed successfully.

1 An error has occurred.

EXAMPLES

1. To get all bmc from ip range

bmcdiscover -m nmap -r "10.4.23.100-254 50.3.15.1-2"

Output is similar to:

10.4.23.254 50.3.15.1

Note: input for ip range can also be like scanme.nmap.org, microsoft.com/24, 192.168.0.1; 10.0.0-255.1-254.

2. To check if user name or password is correct or not for bmc

bmcdiscover -i 10.4.23.254 -u USERID -p PASSW0RD -c

Output is similar to:

Correct ADMINISTRATOR

bmcdiscover -i 10.4.23.254 -u USERID -p PASSW0RD1 -c

Output is similar to:

Error: Wrong bmc password

bmcdiscover -i 10.4.23.254 -u USERID1 -p PASSW0RD1 -c

Output is similar to:

Error: Wrong bmc user

bmcdiscover -i 10.4.23.2541234 -u USERID -p PASSW0RD -c

Output is similar to:

Error: Not bmc

SEE ALSO

lsslp(1)