Automation

Scripting How-To: Listing Firewall Filters

By Elevate posted 07-26-2016 11:28

  

Question

What is the equivalent script of the following CLI command that lists destination addresses for firewall filters:

 

show firewall family inet

 

Answer

   var $get-filter = <get-configuration database = "committed"> {
            <configuration> {
                <firewall> {
                    <family> {
                        <inet>;
                    }
                }
            }
        }
        var $config = jcs:invoke($get-filter);

#How-To
#firewallfilters
#ScriptingHow-To
0 comments
0 views

Permalink