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:

  1. 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
    }]
    }
    }
  2. Login into NSX manager and replace transport_zone_id with appropriate ID (System -> Fabric -> Transport Zones )
  3. Update start and end VLAN IDs from 17, 23 in above example with appropriate range.
  4. 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
  5. 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) .
  6. If there are subsequent requests then replace "display_name" with other values to recognize the results properly

Refer:



Home > VMWare platform > VMWare NSX > Do MTU and VLAN-ID health check using NSX Manager