Skip to content

Instantly share code, notes, and snippets.

@timani
Created March 13, 2017 02:02
Show Gist options
  • Save timani/9cab9cf284995d165a5045e84d99abae to your computer and use it in GitHub Desktop.
Save timani/9cab9cf284995d165a5045e84d99abae to your computer and use it in GitHub Desktop.
$ bosh vms
Acting as user 'admin' on 'Bosh Lite Director'
Deployment 'bui-warden'

Director task 12

Task 12 done

+----------------------------------------------+---------+-----+----------+--------------+
| VM                                           | State   | AZ  | VM Type  | IPs          |
+----------------------------------------------+---------+-----+----------+--------------+
| bui/0 (8de8d039-40f5-44db-bc10-aba3c47b20db) | running | n/a | small_z1 | 10.244.66.61 |
+----------------------------------------------+---------+-----+----------+--------------+

SSH into the job

$ bosh ssh bui/0
Acting as user 'admin' on deployment 'bui-warden' on 'Bosh Lite Director'
Target deployment is 'bui-warden'

Setting up ssh artifacts

Director task 15

Task 15 done
Starting interactive shell on job bui/0
Unauthorized use is strictly prohibited. All access and activity
is subject to logging and monitoring.
Welcome to Ubuntu 14.04 LTS (GNU/Linux 4.4.0-53-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

Last login: Mon Mar 13 01:56:14 2017 from 192.168.50.1
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

View the monit summary

bui/8de8d039-40f5-44db-bc10-aba3c47b20db:~$ sudo -i
bui/8de8d039-40f5-44db-bc10-aba3c47b20db:~# watch monit summary

Every 2.0s: monit summary                                                                                                                                                         Mon Mar 13 02:01:54 2017

The Monit daemon 5.2.5 uptime: 11m

Process 'bui'                       running
System 'system_localhost'           running

Troubleshooting

monit: command not found
$ monit
-bash: monit: command not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment