<?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 Re: Bulk update of objects in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/bulk-update-of-objects/m-p/316277#M81372</link>
    <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/47384"&gt;@LCMember37711&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not a scripter so I'm sure there are better and faster ways for this ... but this worked for me &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Enter cli, change the CLI config-output-format to 'set' and goto configuration mode ... and do "show address":&lt;/P&gt;
&lt;P&gt;&lt;BR style="box-sizing: border-box;" /&gt;&lt;SPAN style="box-sizing: border-box; font-family: 'courier new', courier; font-size: 10pt;"&gt;&amp;gt; set cli config-output-format set&lt;BR style="box-sizing: border-box;" /&gt;&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; font-family: 'courier new', courier; font-size: 10pt;"&gt;&amp;gt; configure&lt;BR style="box-sizing: border-box;" /&gt;&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; font-family: 'courier new', courier; font-size: 10pt;"&gt;Entering configuration mode&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;[edit]&lt;BR style="box-sizing: border-box;" /&gt;&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;# show address&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;&amp;gt;&amp;gt;&amp;gt; This will spit out all your address objects with the set commands.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;Copy/paste this entire output to a file called 'testing' for example.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;Then use the following script on this file :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;$ sed 's/$/\/32/' testing&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;This will add /32 to every end of line and will print the output to your screen.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Login into the CLI of your firewall again, change the CLI config-output-format to 'set' and paste the commands, including the /32 into the configuration mode :&lt;BR style="box-sizing: border-box;" /&gt;&lt;SPAN style="box-sizing: border-box; font-family: 'courier new', courier; font-size: 10pt;"&gt;&amp;gt; set cli config-output-format set&lt;BR style="box-sizing: border-box;" /&gt;&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; font-family: 'courier new', courier; font-size: 10pt;"&gt;&amp;gt; configure&lt;BR style="box-sizing: border-box;" /&gt;&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; font-family: 'courier new', courier; font-size: 10pt;"&gt;# &amp;lt;paste all your set commands here&amp;gt;&lt;BR style="box-sizing: border-box;" /&gt;&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; font-family: 'courier new', courier;"&gt;# commit&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;Not pretty and you might have to edit your output file a bit but it should do the trick &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;Aside from the above you might want to look into Expedition : &lt;A href="https://live.paloaltonetworks.com/t5/Expedition-Migration-Tool/ct-p/migration_tool" target="_blank" rel="noopener"&gt;https://live.paloaltonetworks.com/t5/Expedition-Migration-Tool/ct-p/migration_tool&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;&amp;nbsp;or have a look at panco: &lt;A href="https://github.com/scottdware/panco" target="_blank" rel="noopener"&gt;https://github.com/scottdware/panco&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;Hope it helps,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;-Kiwi.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="ConnectiveDocSignExtentionInstalled" data-extension-version="1.0.4"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Fri, 13 Mar 2020 16:28:49 GMT</pubDate>
    <dc:creator>kiwi</dc:creator>
    <dc:date>2020-03-13T16:28:49Z</dc:date>
    <item>
      <title>Bulk update of objects</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/bulk-update-of-objects/m-p/316242#M81364</link>
      <description>&lt;P&gt;I have a requirement to update the 100s of /32 address objects which do not have a CIDR.&amp;nbsp; Does anyone know of a script or other means to do a bulk update of the addresses to append CIDR?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 14:57:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/bulk-update-of-objects/m-p/316242#M81364</guid>
      <dc:creator>LCMember37711</dc:creator>
      <dc:date>2020-03-13T14:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk update of objects</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/bulk-update-of-objects/m-p/316277#M81372</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/47384"&gt;@LCMember37711&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not a scripter so I'm sure there are better and faster ways for this ... but this worked for me &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Enter cli, change the CLI config-output-format to 'set' and goto configuration mode ... and do "show address":&lt;/P&gt;
&lt;P&gt;&lt;BR style="box-sizing: border-box;" /&gt;&lt;SPAN style="box-sizing: border-box; font-family: 'courier new', courier; font-size: 10pt;"&gt;&amp;gt; set cli config-output-format set&lt;BR style="box-sizing: border-box;" /&gt;&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; font-family: 'courier new', courier; font-size: 10pt;"&gt;&amp;gt; configure&lt;BR style="box-sizing: border-box;" /&gt;&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; font-family: 'courier new', courier; font-size: 10pt;"&gt;Entering configuration mode&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;[edit]&lt;BR style="box-sizing: border-box;" /&gt;&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;# show address&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;&amp;gt;&amp;gt;&amp;gt; This will spit out all your address objects with the set commands.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;Copy/paste this entire output to a file called 'testing' for example.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;Then use the following script on this file :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;$ sed 's/$/\/32/' testing&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;This will add /32 to every end of line and will print the output to your screen.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Login into the CLI of your firewall again, change the CLI config-output-format to 'set' and paste the commands, including the /32 into the configuration mode :&lt;BR style="box-sizing: border-box;" /&gt;&lt;SPAN style="box-sizing: border-box; font-family: 'courier new', courier; font-size: 10pt;"&gt;&amp;gt; set cli config-output-format set&lt;BR style="box-sizing: border-box;" /&gt;&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; font-family: 'courier new', courier; font-size: 10pt;"&gt;&amp;gt; configure&lt;BR style="box-sizing: border-box;" /&gt;&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; font-family: 'courier new', courier; font-size: 10pt;"&gt;# &amp;lt;paste all your set commands here&amp;gt;&lt;BR style="box-sizing: border-box;" /&gt;&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; font-family: 'courier new', courier;"&gt;# commit&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;Not pretty and you might have to edit your output file a bit but it should do the trick &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;Aside from the above you might want to look into Expedition : &lt;A href="https://live.paloaltonetworks.com/t5/Expedition-Migration-Tool/ct-p/migration_tool" target="_blank" rel="noopener"&gt;https://live.paloaltonetworks.com/t5/Expedition-Migration-Tool/ct-p/migration_tool&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;&amp;nbsp;or have a look at panco: &lt;A href="https://github.com/scottdware/panco" target="_blank" rel="noopener"&gt;https://github.com/scottdware/panco&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;Hope it helps,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; caret-color: #16325c; color: #16325c; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: 'courier new', courier; font-size: 10pt;"&gt;-Kiwi.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="ConnectiveDocSignExtentionInstalled" data-extension-version="1.0.4"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Mar 2020 16:28:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/bulk-update-of-objects/m-p/316277#M81372</guid>
      <dc:creator>kiwi</dc:creator>
      <dc:date>2020-03-13T16:28:49Z</dc:date>
    </item>
  </channel>
</rss>

