<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Automation of a vsys configuration in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/automation-of-a-vsys-configuration/m-p/67746#M39662</link>
    <description>&lt;P&gt;We would like to automate the configuration of a new vsys, uisng inputs from a file or script with the required information, using either the set commands or the API.&lt;/P&gt;
&lt;P&gt;Has anyone attempted to do this, and what is the best way and how to gather the require commands etc for this.&lt;/P&gt;
&lt;P&gt;Any suggestions would be helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks you&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2015 16:50:12 GMT</pubDate>
    <dc:creator>dwmaas</dc:creator>
    <dc:date>2015-11-06T16:50:12Z</dc:date>
    <item>
      <title>Automation of a vsys configuration</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/automation-of-a-vsys-configuration/m-p/67746#M39662</link>
      <description>&lt;P&gt;We would like to automate the configuration of a new vsys, uisng inputs from a file or script with the required information, using either the set commands or the API.&lt;/P&gt;
&lt;P&gt;Has anyone attempted to do this, and what is the best way and how to gather the require commands etc for this.&lt;/P&gt;
&lt;P&gt;Any suggestions would be helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks you&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 16:50:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/automation-of-a-vsys-configuration/m-p/67746#M39662</guid>
      <dc:creator>dwmaas</dc:creator>
      <dc:date>2015-11-06T16:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Automation of a vsys configuration</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/automation-of-a-vsys-configuration/m-p/67828#M39683</link>
      <description>&lt;P&gt;Hi David&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;assuming you already have at least one vsys configured and want to re-use it's properties, you can easily do this through CLI&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first you'll want to collect the current vsys's info. the easiest way to collect the info so it can be easily edited later is by setting the config output to 'set' commands&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;gt; set cli config-output-format set &lt;/PRE&gt;
&lt;P&gt;this will change the show config output to a list of set commands rather than XML. next collect the current info&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;gt; configure 
Entering configuration mode
[edit]                                                                                                                           
# show vsys vsys1&lt;/PRE&gt;
&lt;P&gt;this will output all the vsys1 specific config in the form of re-usable set commands:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;set vsys vsys1 import network interface [ ethernet1/1 ethernet1/2 ethernet1/3 ethernet1/9 ethernet1/10 ethernet1/4 ethernet1/7 et
hernet1/8 ethernet1/5 ethernet1/6 ae1 ae2 tunnel.1 tunnel vlan loopback loopback.5 tunnel.2 loopback.20 tunnel.230 ]
set vsys vsys1 import network virtual-wire [ replay vw3 ]
set vsys vsys1 import network vlan 
set vsys vsys1 import network virtual-router vr_internet
set vsys vsys1 application 
....&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which you can then edit to suit your needs. When you're done editing the vsys config and want to put the config into the device, make sure to temporarily enable 'scripting mode' which will allow better handling of a large copy/paste operation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;gt; set cli scripting-mode on 
&amp;gt; configure
Entering configuration mode
[edit]                                                                                                                           
# &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps!&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 08:37:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/automation-of-a-vsys-configuration/m-p/67828#M39683</guid>
      <dc:creator>reaper</dc:creator>
      <dc:date>2015-11-09T08:37:40Z</dc:date>
    </item>
  </channel>
</rss>

