VMware Networking Community
vmmedmed
Enthusiast
Enthusiast
Jump to solution

Text config backup of NSX configurations?

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?

1 Solution

Accepted Solutions
rajeevsrikant
Expert
Expert
Jump to solution

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.

View solution in original post

0 Kudos
3 Replies
rajeevsrikant
Expert
Expert
Jump to solution

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.

0 Kudos
vmmedmed
Enthusiast
Enthusiast
Jump to solution

Thanks for the answer. It will save me from searching fruitlessly. 🙂

0 Kudos
NealeC
Hot Shot
Hot Shot
Jump to solution

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.

-------------- If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points. Chris Neale VCIX6-NV;vExpert2014-17;VCP6-NV;VCP5-DCV;VCP4;VCA-NV;VCA-DCV;VTSP2015;VTSP5;VTSP4 http://www.chrisneale.org http://www.twitter.com/mrcneale