VMware NSX

 View Only
  • 1.  Text config backup of NSX configurations?

    Posted Feb 28, 2017 05:58 PM

    One thing I find very useful about network devices Cisco, Arista, Palo Alto Networks, F5, Juniper etc etc - is that I can

    back up these devices to a linux host with rancid or other. I can then search these config files for instances of IP addresses

    or other criteria. NSX however really slows me down in needing to crawl through the GUI to find objects. Is there any means

    to back up vmware nsx to a text file or set of text files similar to how you'd back up Cisco IOS?



  • 2.  RE: Text config backup of NSX configurations?
    Best Answer

    Posted Mar 01, 2017 12:05 AM

    The NSX configurations are not taken backup as simple text files like Cisco or any other network devices.

    For example if you take the backup of the Firewall Rules in NSX it will be in .xml format & not plain text files.



  • 3.  RE: Text config backup of NSX configurations?

    Posted Mar 01, 2017 12:13 AM

    Thanks for the answer. It will save me from searching fruitlessly. :-)



  • 4.  RE: Text config backup of NSX configurations?

    Posted Mar 01, 2017 10:38 AM

    Have you tried using PowerNSX?

    https://github.com/vmware/powernsx

    That has a number of functions to allow you to query or configure your nsx manager programmatically including dfw rules, edge rules, security tags etc.

    Get-NsxFirewallSection | get-nsxfirewallrule

    That one liner would list you out all your firewall rules (with a caveat that there are some nuances like that list will look very high level and other commands would be needed to get all the fields you want and if you wanted to expand them, say to detail what those are applied to.