Login to OpsMgr via SSH
Create a directory e.g.
mkdir 20160501_pcf_stop_start
Copy 01_download_deployment_manifest.sh
, 02_create_stop_commands.sh
and 03_create_start_commands.sh
into the previously created directory.
Important: The commands will only be generated for jobs ins running
state. Please make sure everything is running before executing using
bosh vms | grep -v running
Run the following commands on the OpsMgr console (being logged via SSH)
sh 01_download_deployment_manifest
sh 02_create_stop_commands.sh > stop_commands
sh 03_create_start_commands.sh > start_commands
Validate the content of the files stop_commands
and start_commands
. It is recommened that when executing you have two sessions open.
- Session 1: run the 'meta' commands in this session and keep
*_commands
open. - Session 2: run the actual bosh commands here.