Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

How to collect logs in VMware PKS environment (58875)

Last Updated: 9/1/2023Categories: How toTotal Views: 4046Language:
English

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Purpose

This article provides instructions on how to collect Bosh deployment logs in VMware PKS environment.

Resolution

Before proceeding, you will need to access a system that has the BOSH command and has connectivity to the BOSH VM.

Alternately, you can access the BOSH command line from the Ops Manager VM by exporting the bosh command line credentials available at, Ops Manager UI > Bosh Tile > Credentials > Bosh Commandline Credentials.

Example:
export BOSH_CLIENT=ops_manager
export BOSH_CLIENT_SECRET=LTYa8CWh0l0YN_Wb4fs0cDTAg1s0096v
export BOSH_CA_CERT=/var/tempest/workspaces/default/root_ca_certificate
export BOSH_ENVIRONMENT=192.168.10.50

To collect the logs by using BOSH:

List all the bosh deployment names by running the command:
bosh deployments --column=name

Example:
ubuntu@clientvm:~$ bosh deployments --column=name
Using environment '192.168.10.50' as client 'ops_manager'

Name
harbor-container-registry-fdb88949eb52d58b850f
pivotal-container-service-b3b8732f7ebe9ebbd7b7
service-instance_b4b109eb-b732-4425-9941-74779e83e44e

3 deployments

Succeeded

To collect logs for all the VMs in a deployment, run this command:
bosh logs -d deployment name

Note: This will collect the logs and save them at the location from where you are running the command.

Example:
ubuntu@clientvm:~$ bosh logs -d pivotal-container-service-b3b8732f7ebe9ebbd7b7
Using environment '192.168.10.50' as client 'ops_manager'

Using deployment 'pivotal-container-service-b3b8732f7ebe9ebbd7b7'

Task 2584

Task 2584 | 08:03:47 | Fetching logs for pivotal-container-service/db1e7c74-0810-469f-bc24-7a1b262c6b5c (0): Finding and packing log files (00:00:01)
Task 2584 Started  Fri Feb 15 08:03:47 UTC 2019
Task 2584 Finished Fri Feb 15 08:03:48 UTC 2019
Task 2584 Duration 00:00:01
Task 2584 done

Downloading resource 'bb13a3cc-b31e-4e33-4de8-b0fb40816ab6' to '/home/ubuntu/pivotal-container-service-b3b8732f7ebe9ebbd7b7-20190215-080343-892599218.tgz'...
0.00%
Succeeded

To collect the logs and save in a specific location, specify the location as below:
bosh logs -d deployment_name --dir /location

To collect the logs for a specific VM in a deployment, run this command:
bosh logs vm_name -d deployment_name

Example:
ubuntu@clientvm:~$ bosh logs master/75268dd4-c8fc-40ed-9dfa-38ca528baf5e -d service-instance_b4b109eb-b732-4425-9941-74779e83e44e
Using environment '192.168.10.50' as client 'ops_manager'

Using deployment 'service-instance_b4b109eb-b732-4425-9941-74779e83e44e'

Task 2588
Task 2588 | 08:11:02 | Fetching logs for master/75268dd4-c8fc-40ed-9dfa-38ca528baf5e (0): Finding and packing log files (00:01:19)

Task 2588 Started  Fri Feb 15 08:11:02 UTC 2019
Task 2588 Finished Fri Feb 15 08:12:21 UTC 2019
Task 2588 Duration 00:01:19
Task 2588 done

Downloading resource 'ecd8c514-519c-45ee-503b-9a5e6d6e8ddc' to '/home/ubuntu/service-instance_b4b109eb-b732-4425-9941-74779e83e44e.master.75268dd4-c8fc-40ed-9dfa-38ca528baf5e-20190215-081216-774662052.tgz'...
##########################################################    95.74% 22.64 MiB/s
Succeeded

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

Result 1 of 1

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware Pivotal Container Service

Related Versions:

VMware Pivotal Container Service 1.x

Take Our Survey

Support Assistant