From dc41af4e617320c820b791a36cafab88f05f7e43 Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Wed, 18 Dec 2019 10:30:20 -0500 Subject: [PATCH] Update BMC_change_password.sh usage --- .../share/xcat/scripts/BMC_change_password.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/xCAT-server/share/xcat/scripts/BMC_change_password.sh b/xCAT-server/share/xcat/scripts/BMC_change_password.sh index d010cb46a..cedd35204 100755 --- a/xCAT-server/share/xcat/scripts/BMC_change_password.sh +++ b/xCAT-server/share/xcat/scripts/BMC_change_password.sh @@ -11,12 +11,25 @@ # - report error is password does not meet PAM validation rules # # Usage: $0 -r -n +# Note: If this script is being used in the process of discovering new BMCs, +# the new BMC password should be passed to bmcdiscover command +# using the [-p|--bmcpasswd] option. ########################################################################## if [ $# -le 3 ]; then + echo " +Change the default root or ADMIN password of the BMC to the one +specified by '-n' flag. Use the same password when discovering new +BMCs, by passing it with '[-p|--bmcpasswd]' option to 'bmcdiscover' command. +" echo "Usage:" echo " $0 -r -n " + echo "Examples:" + echo " Target one node:" + echo " $0 -r 172.11.139.1 -n 0penBmc123:" + echo " Target a range of nodes:" + echo " $0 -r 172.11.139.1-12 -n 0penBmc123:" exit fi