Nutanix Health Check and Logs Collection
Below is the steps for performing NCC tool and log location / collection.
NCC Health Checks & Logs collection
AOS 5.1.x and Newer
- Log into Prism in web browser (Prism URL is IP of cluster virtual IP or any CVM IP)
- In the upper left hand corner, click on the Home dropdown and then Health.
- In the upper right hand corner, click on the Actions dropdown and then Run NCC Checks.
- In the upper right hand corner, click on the Actions dropdown and then Run NCC Checks.
- Ensure All Checks is selected, de-select Send the cluster check report in the email, and then click on Run.
- Ensure All Checks is selected, de-select Send the cluster check report in the email, and then click on Run.
- After 30 seconds to 1 minute, you should see the tasks icon (circle on the main toolbar) turn blue to show it’s progress.
- Once it is green, click on the green circle, and then click on View All Tasks.
- The first line of the Tasks page should say “Health Check” – click on the Succeeded link.
- The first line of the Tasks page should say “Health Check” – click on the Succeeded link.
- On the View Summary window, click on the Download Output link.
- On the View Summary window, click on the Download Output link.
- Save the file to workstation.
AOS 5.0.x and Older
- SSH into any CVM in the cluster.
- Execute command:
$ ncc health_checks run_all
- Upon completion, the health check file will be written here:
/home/nutanix/data/logs/ncc-output-latest.log - Use WinSCP (or any SCP application) to download file from the same CVM that step #2 was executed.
NCC Log Collector
AOS 5.1.x and Newer
- Log into Prism in web browser (Prism URL is IP of cluster virtual IP or any CVM IP)
- In the upper left hand corner, click on the Home dropdown and then Health.
- In the upper right hand corner, click on the Actions dropdown and then Log Collector.
- In the upper right hand corner, click on the Actions dropdown and then Log Collector.
- In the Run Log Collector window, choose the time period you want to gather logs for (past X amount of hours or days or a custom date/time range) and then click on Run Now.
Try to limit the time frame down as best as possible as the log bundle can easily reach a very large size.
- In the Run Log Collector window, choose the time period you want to gather logs for (past X amount of hours or days or a custom date/time range) and then click on Run Now.
- After 30 seconds to 1 minute, you should see the tasks icon (circle on the main toolbar) turn blue to show it’s progress.
- Once it is green, click on the green circle, and then click on View All Tasks.
- The first line of the Tasks page should say “Log Collector” – click on the Succeeded link to save the file to the workstation.
Be sure there are no popup blockers enabled in the browser (eg, Chrome) as it will prevent the download from starting.
AOS 5.0.x and Older
- SSH into any CVM in the cluster
- Execute command:
$ ncc log_collector run_all <time period>
Parameters to specify time period :
- –last_no_of_days=X
- –last_no_of_hours=X
- –start_time=YYYY/MM/DD-HH:MM:SS –end_time=YYYY/MM/DD-HH:MM:SS
Example:
ncc log_collector run_all --last_no_of_hours=4
Try to limit the time frame down as best as possible as the log bundle can easily reach a very large size.
- /home/nutanix/data/log_collector
- Use WinSCP (or any SCP application) to download file from the same CVM that step #2 was executed.
Miscellaneous Commands
- Determine NCC version.
- SSH access into CVM.
- Execute command:
$ ncc --ncc_version