Skip to content

Commit f0ea0d2

Browse files
Merge pull request cheat#213 from gkspranger/master
bosh: commonly used commands
2 parents 500e969 + 166b862 commit f0ea0d2

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

bosh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
tags: [ bosh ]
3+
---
4+
# To list all BOSH deployments by name:
5+
bosh deps --column=name
6+
7+
# To list a BOSH deployment's VMs, showing vital resource usage
8+
bosh -d <deployment> vms --vitals
9+
10+
# To SSH into a BOSH deployment VM:
11+
bosh -d <deployment> ssh <instance-group>/(<instance-guid>|<instance-index>)
12+
13+
# To run a shell command, via SSH, on all BOSH deployment VMs of an instance group:
14+
bosh -d <deployment> ssh <instance-group> -c '<shell-command>'
15+
16+
# To list a BOSH deployment's errands:
17+
bosh -d <deployment> errands
18+
19+
# To run a BOSH deployment errand
20+
# .. on all VMs that have colocated errand:
21+
bosh -d <deployment> run-errand <errand-name>
22+
# .. on a specific VM:
23+
bosh -d <deployment> run-errand <errand-name> --instance <instance-group>/(<instance-guid> | <instance-index>)
24+
25+
# To list a BOSH deployment's tasks:
26+
bosh -d <deployment> tasks
27+
bosh -d <deployment> tasks --recent
28+
29+
# To show a BOSH deployment's task status and start tracking its output:
30+
bosh -d <deployment> task <task-id>
31+
32+
# To recreate a BOSH deployment's VM
33+
# .. safely drained and to last successful deployment state:
34+
bosh -d <deployment> recreate <instance-group>/(<instance-guid>|<instance-index>)
35+
# .. aggressively removed, ignoring bad agents and to current deployment state:
36+
bosh -d <deployment> recreate --skip-drain --fix --no-converge <instance-group>/(<instance-guid> | <instance-index>)

0 commit comments

Comments
 (0)