Export Firewall Rules by Running CLI Commands
You can export the firewall rules in
VMware Aria
Operations for Networks
to a CSV file.- Log in to theVMware Aria Operations for NetworksPlatform CLI as aSupportuser.Provide your CLI login credentials using the SSH client.
- Switch to aUbuntuuser.ub
- Invoke the RDB tool.rdb
- Export the firewall rules inVMware Aria Operations for Networksto a CSV file using therun_fw_rule_export -pcommand.run_fw_rule_export -p <new csv file with directory path>For example, run the following command to export all firewall rules to a file namedfirewallRules_rdb.csvfile in thetmpdirectory:run_fw_rule_export -p /tmp/firewallRules_rdb.csv
- Navigate to the directory in which you have saved the CSV file.cd /<directory path>
- Change the owner and group of the CSV file tosupport.sudo chown support:support <file name>For example, run the following command to change the owner and group of thefirewallRules_rdb.csvfile tosupport:sudo chown support:support ./firewallRules_rdb.csv
- Copy the CSV file to your local machine.For example, you can run thescpcommand to copy the CSV file to a mac machine.scp support@10.79.191.187:/tmp/firewallRules_rdb.csv ./
- Open the CSV file on your local machine.An example CSV file with the firewall rules: