Remotely deploy AMD software updates
Note it is recommened you test the upgrade package manually on an AMD to ensure there's no changes to dependencies or issues on your AMD SOE before using the script to roll out automatically.
rtm_deploy.sh [-h] [-d] [-E|-e] [-m] [-R|-r] [-s hh:mm|+m|now] -a amdaddress|listfile -f deployfile [-u user] [-p password | -i identfile]
Help
-h Usage help.
-d Verbose debug logging for the script itself and SCP/SSH.
Required parameters
-a amdaddress|listfile IP/FQDN address of an individual AMD or if a file list one per line for AMDs to deploy to. Required.
-f deployfile Full path to upgrade.bin file to copy and execute on AMD. Required.
Authentication
These are all optional, if none are specified script will try your logged on users private keys automatically, then fallback to the script default user/password.
-u user with root or sudo rights to copy and execute upgrade file. Default root.
-p password for user. Default greenmouse.
-i identfile SSH private key identity file.
-p and -i are exclusive, -i takes precedence as it is more secure.
Note: this is all Linux OS credentials, not DCRUM/CSS credentials.
Post copy execution
-e Execute upgrade once copied. Default.
-E DO NOT Execute upgrade once copied. Use this if you're wanting to copy a non-upgrade package.
-m Use manual upgrade (12.4.13+ only deployment file version is checked) otherwise automatic upgrade. (No effect with -E)
Post upgrade reboot
These have no effect if exeuction is disabled with -E
-r Reboot after upgrade complete. Default.
-R DO NOT reboot after upgrade completes.
-s Reboot schedule 'hh:mm' 24hr clock, '+m' m minutes from now, or 'now'. Default 'now'. (No effect with -R)
e.g.
-s now will reboot as soon as the upgrade package is done, this is the default behaviour.
-s +15 will reboot 15 minutes after upgrade package is done.
-s 23:59 will postpone reboot until 23:59 (AMD time).
Returns
Return code 0 indicates success, 1 indicates failure, printed messages indicate failure.
- bash
- scp
- ssh
- sshpass (only if you want to use regular passwords for authentication).
No additional dependencies requried and nothing to install/configure on the AMD.
Running Script
- CentOS 7
- RHEL 7
Deploying to AMDs on
- RHEL 6.6+
- RHEL 7.2+