Export Firewall Rules by Running CLI Commands

You can export the firewall rules in
VMware Aria Operations for Networks
to a CSV file.
  1. Log in to the
    VMware Aria Operations for Networks
    Platform CLI as a
    Support
    user.
    Provide your CLI login credentials using the SSH client.
  2. Switch to a
    Ubuntu
    user.
    ub
  3. Invoke the RDB tool.
    rdb
  4. Export the firewall rules in
    VMware Aria Operations for Networks
    to a CSV file using the
    run_fw_rule_export -p
    command.
    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 named
    firewallRules_rdb.csv
    file in the
    tmp
    directory:
    run_fw_rule_export -p /tmp/firewallRules_rdb.csv
  5. Navigate to the directory in which you have saved the CSV file.
    cd /<directory path>
  6. Change the owner and group of the CSV file to
    support
    .
    sudo chown support:support <file name>
    For example, run the following command to change the owner and group of the
    firewallRules_rdb.csv
    file to
    support
    :
    sudo chown support:support ./firewallRules_rdb.csv
  7. Copy the CSV file to your local machine.
    For example, you can run the
    scp
    command to copy the CSV file to a mac machine.
    scp support@10.79.191.187:/tmp/firewallRules_rdb.csv ./
  8. Open the CSV file on your local machine.
    An example CSV file with the firewall rules:
    An example CSV file containing the exported firewall rules.