Loading

×Sorry to interrupt
This page has an error. You might just need to refresh it.
[NoErrorObjectAvailable] Uncaught ReferenceError: addCTracking is not defined
Failing descriptor: {markup://c:KM_ArticleThemeLayout}

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

Collect NSX-T NCP logs in PKS environment (67648)

Last Updated: 4/3/2019Categories: How toTotal Views: 5392Language:
English

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Symptoms

This KB article describes how to collect NCP logs in PKS (1.2/ 1.3)  for NSX-T troubleshooting.

Purpose

Provide instructions to collect NCP logs with different options.

Impact / Risks

N/A

Resolution

Get the deployment id of the kubernetes cluster and the instance id of the VM (master or worker))
Login Opsmanager or other machine with bosh client and kubectl client installed

# bosh vms
Using environment '172.18.1.41' as client 'ops_manager'

Task 36563
Task 36562
Task 36563 done

Task 36562 done

Deployment 'pivotal-container-service-1ad5b09794ec7b43160d'

Instance                                                        Process State  AZ  IPs          VM CID                                   VM Type  Active
pivotal-container-service/3069599d-ba6b-453a-8e15-d8f5b8fdd004  running        AZ  172.18.1.42  vm-062fcfbc-962b-40fe-812a-4d8c68c9180b  large    true

1 vms

Deployment 'service-instance_60c7bef1-a796-4276-8001-cfa0aca85707'

Instance                                     Process State  AZ  IPs         VM CID                                   VM Type  Active
master/a8463a9d-8d06-45df-949f-13a6fb85ef82  running        AZ  172.30.0.2  vm-df8c41c0-9827-42b4-8aa6-1f8b145b904d  medium   true
worker/9100545d-c5e2-4c97-a6dd-5b28b80a3966  running        AZ  172.30.0.3  vm-d68ef49e-aa6d-474a-b5db-70f87c5c49c8  medium   true

2 vms

Generate NCP logs

Option 1:  Generate service instance logs including NCP logs.

~# bosh logs -d service-instance_60c7bef1-a796-4276-8001-cfa0aca85707
Using environment '172.18.1.41' as client 'ops_manager'

Using deployment 'service-instance_60c7bef1-a796-4276-8001-cfa0aca85707'

Task 36690

Task 36690 | 18:43:37 | Fetching logs for worker/9100545d-c5e2-4c97-a6dd-5b28b80a3966 (0): Finding and packing log files
Task 36690 | 18:43:37 | Fetching logs for master/a8463a9d-8d06-45df-949f-13a6fb85ef82 (0): Finding and packing log files
Task 36690 | 18:43:42 | Fetching logs for worker/9100545d-c5e2-4c97-a6dd-5b28b80a3966 (0): Finding and packing log files (00:00:05)
Task 36690 | 18:43:58 | Fetching logs for master/a8463a9d-8d06-45df-949f-13a6fb85ef82 (0): Finding and packing log files (00:00:21)
Task 36690 | 18:44:01 | Fetching group of logs: Packing log files together

Task 36690 Started  Mon Apr  1 18:43:37 UTC 2019
Task 36690 Finished Mon Apr  1 18:44:01 UTC 2019
Task 36690 Duration 00:00:24
Task 36690 done

Downloading resource 'c3f46a3d-ba9b-43ab-844b-31e2419a7346' to '/root/service-instance_60c7bef1-a796-4276-8001-cfa0aca85707-20190401-144019-42423186.tgz'...

############################################                75.82% 75.23 MB/s 0s
Succeeded

Option 2:  Generate NCP logs by logging in PKS master node:

# bosh -d service-instance_60c7bef1-a796-4276-8001-cfa0aca85707 ssh master/a8463a9d-8d06-45df-949f-13a6fb85ef82
Using environment '172.18.1.41' as client 'ops_manager'

Using deployment 'service-instance_60c7bef1-a796-4276-8001-cfa0aca85707'

Task 36712. Done
Last login: Mon Apr  1 18:47:43 2019 from 172.18.1.181
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

master/a8463a9d-8d06-45df-949f-13a6fb85ef82:~$

$ sudo su -
master/a8463a9d-8d06-45df-949f-13a6fb85ef82:~#

# tar -zcvf /tmp/var-log-ncp.tar.gz /var/log
* Note this collect all logs including NCP

For live review, NCP logs are under /var/vcap/sys/log/ncp folder in master node
ncp.stdout.log
ncp.stderr.log

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)

KB
•
古いメタデータ ソリューションから新しい Edge クラスタ ソリューションへの移行 (67554)

Results 1-2 of 2

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

Related Versions:

VMware NSX-T Data Center

Take Our Survey

Support Assistant