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?
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.
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.
Thanks for the answer. It will save me from searching fruitlessly. 🙂
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.