Using NSX Manager central CLI

Follow the steps below and commands on how to verify DFW rules that get pushed into the ESXi host from NSX Manager:

  1. Log in to the NSX Manager console.
  2. To locate the vNIC filter name, use the following commands:
    show dfw cluster all
    show dfw cluster <cluster id>
    show dfw host <host-id>
    show dfw vm <vm-id>  
  1. To show the applied rules, use the command show dfw host <host id> filter <filter name> rules.
  2. The output will use NSX internal objects addrset such as dst###, ip-ipset-#, and ip-vm-### as the source or destination. To view the actual mapping between internal objects and the associated IP or MAC address, use the command show dfw host host-31 filter nic69373-eth0-vmware-sfw.2 addrsets.

Get VMware NSX Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.