Do MTU and VLAN-ID health check using NSX Manager
From Notes_Wiki
Home > VMWare platform > VMWare NSX > Do MTU and VLAN-ID health check using NSX Manager
While deploying or using NSX the biggest concern is whether we got switch / physical networking setup correctly in terms of VLAN-IDs and MTUs. To check whether each ESXi host uplink port is being trunked with all required VLANs and that all these VLANs are working at expected MTU use:
- Create file post-request.txt with following content
- {
- "resource_type": "ManualHealthCheck",
- "display_name": "Manual HealthCheck 002",
- "transport_zone_id": "7754341c-8f3c-443f-9c1a-2d635d5b0d1c",
- "vlans":{
- "vlan_ranges":[{
- "start": 17,
- "end": 23
- }]
- }
- }
- Login into NSX manager and replace transport_zone_id with appropriate ID (System -> Fabric -> Transport Zones )
- Update start and end VLAN IDs from 17, 23 in above example with appropriate range.
- Make API call using:
- curl -k -u admin -H 'Content-Type: application/json' -X POST -d @post-request.txt https://<NSXManager_IP>/api/v1/manual-health-checks
- after replacing <NSXManager_IP> with appropriate IP
- Then we can check the status of calls using:
- curl -k -u admin -X GET https://<NSXManager_IP>/api/v1/manual-health-checks/<Health-check-ID>
-
- where <Health-check-iD> is part of output of post command (id) .
- If there are subsequent requests then replace "display_name" with other values to recognize the results properly
Refer:
- https://docs.vmware.com/en/VMware-NSX-T-Data-Center/3.0/installation/GUID-9D2194BC-AFEB-451B-8B73-48A7218C0722.html
- https://linuxize.com/post/curl-post-request/
- http://www.vstellar.com/2018/06/21/getting-started-with-nsx-rest-api/
Home > VMWare platform > VMWare NSX > Do MTU and VLAN-ID health check using NSX Manager