Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
Getting started:
Related tutorials:
cell_z2/0a5a19b5-f1f8-4c0d-ba8d-64b63e9cdd83:~$ sudo -i
cell_z2/0a5a19b5-f1f8-4c0d-ba8d-64b63e9cdd83:~# /var/vcap/packages/guardian/bin/inspector-garden -pid $(pidof guardian) /bin/bash
cell_z2/0a5a19b5-f1f8-4c0d-ba8d-64b63e9cdd83:/# cd /var/vcap/data/garden/depot/
cell_z2/0a5a19b5-f1f8-4c0d-ba8d-64b63e9cdd83:/var/vcap/data/garden/depot# ls
bf51ff0c-65f3-4940-71ae-32e792c34e45
cell_z2/0a5a19b5-f1f8-4c0d-ba8d-64b63e9cdd83:/var/vcap/data/garden/depot# cd bf51ff0c-65f3-4940-71ae-32e792c34e45/
cell_z2/0a5a19b5-f1f8-4c0d-ba8d-64b63e9cdd83:/var/vcap/data/garden/depot/bf51ff0c-65f3-4940-71ae-32e792c34e45# /var/vcap/packages/runc/bin/runc exec -t bf51ff0c-65f3-4940-71ae-32e792c34e45 /bin/bash
root@bf51ff0c-65f3-4940-71ae-32e792c34e45:/# ls -l
total 84
Here we have added di_devops
user to space di
:
C:\Users\i275943\Desktop\Willow>cf space-users HCSC_PROD di <---
Getting users in org HCSC_PROD / space di as admin
SPACE MANAGER
{"timestamp":"1482471067.173836946","source":"guardian","message":"guardian.create.start","log_level":1,"data":{"handle":"dc7f09dd-8d31-4640-a9f5-1d557c104bf7-ae5d6bafb21941fdaaf5216fbdc5a516","session":"785071"}} | |
{"timestamp":"1482471067.173869848","source":"guardian","message":"guardian.create.gc.start","log_level":1,"data":{"handle":"dc7f09dd-8d31-4640-a9f5-1d557c104bf7-ae5d6bafb21941fdaaf5216fbdc5a516","session":"785071.1"}} | |
{"timestamp":"1482471067.173882961","source":"guardian","message":"guardian.create.gc.threshold.start","log_level":1,"data":{"handle":"dc7f09dd-8d31-4640-a9f5-1d557c104bf7-ae5d6bafb21941fdaaf5216fbdc5a516","limit":0,"session":"785071.1.1"}} | |
{"timestamp":"1482471067.175504208","source":"guardian","message":"guardian.create.gc.threshold.layer","log_level":1,"data":{"handle":"dc7f09dd-8d31-4640-a9f5-1d557c104bf7-ae5d6bafb21941fdaaf5216fbdc5a516","limit":0,"session":"785071.1.1","size":0,"total":0}} | |
{"timestamp":"1482471067.175529718","source":"guardian","message":"guardian.create.gc.thr |
{"timestamp":"1482488862.619482040","source":"rep","message":"rep.request.auction-fetch-state.auction-state.providing","log_level":1,"data":{"method":"GET","request":"/state","session":"151.1.1"}} | |
{"timestamp":"1482488862.619518518","source":"rep","message":"rep.request.auction-fetch-state.auction-state.containerstore-list.starting","log_level":1,"data":{"method":"GET","request":"/state","session":"151.1.1.1"}} | |
{"timestamp":"1482488862.619594812","source":"rep","message":"rep.request.auction-fetch-state.auction-state.containerstore-list.complete","log_level":1,"data":{"method":"GET","request":"/state","session":"151.1.1.1"}} | |
{"timestamp":"1482488862.619611740","source":"rep","message":"rep.request.auction-fetch-state.auction-state.volume-drivers.list-drivers.start","log_level":1,"data":{"method":"GET","request":"/state","session":"151.1.1.3.1"}} | |
{"timestamp":"1482488862.619623423","source":"rep","message":"rep.request.auction-fetch-state.auction-state.volume-drivers.list-drivers.end","log_level":1,"data":{"me |
get the app guid, query CC to construct the process guid from app-guid+app-version | |
[11:22] | |
query the BBS API for the actual lrps for that process guid (and index, if you care) | |
[11:22] | |
which will get you the cell id and instance guid for each actual lrp | |
[11:23] | |
and then go to that cell and get into the container for that instance guid |
v1 vs v2 https://bosh.io/docs/cli-v2-diff.html
bosh2 is strict about SSL certs. If a director has been initialized using bosh1 cli, connecting to the director via bosh2 cli will throw the folowing error :
ubuntu@bosh-stemcell:~$ bosh2 alias-env dev -e 10.193.72.9
Fetching info:
Performing request GET 'https://10.193.72.9:25555/info':
Performing GET request:
lemur-release/jobs
lemur-release/config
lemur-release/config/final.yml
lemur-release/config/blobs.yml
lemur-release/src
lemur-release/packages
for i in `ls -1 logs` | |
do | |
# for j in `$i | awk -F "." '{print $1"."$2}'` | |
# do | |
tar --strip-components=2 -xvf logs/$i consul_agent/consul_agent.stdout.log | |
mv consul_agent.stdout.log consul_agent_`echo $i | awk -F "." '{print $1"."$2}'` | |
#echo $i |awk -F "." '{print $1"."$2}' | |
done |
ssh-keygen -t rsa -b 4096 -C "[email protected]"
id_rsa_pivotal
Enter file in which to save the key (/Users/nsuvarna/.ssh/id_rsa):