<?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: Custom Backup Script Cisco Nexsus in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-backup-script-cisco-nexsus/m-p/63295#M7694</link>
    <description>&lt;P&gt;Thank you for sharing! The &lt;A href="https://github.com/extremenetworks/ExtremeScripting/blob/master/Netsight/cfg_backup_scripts/README.md" target="_blank" rel="nofollow noreferrer noopener"&gt;GitHub CFG section&lt;/A&gt;. The &lt;A href="https://raw.githubusercontent.com/extremenetworks/ExtremeScripting/master/Netsight/cfg_backup_scripts/Cisco-Nexus-TFTP.txt" target="_blank" rel="nofollow noreferrer noopener"&gt;script &lt;/A&gt;itself.&lt;/P&gt;&lt;P&gt;Ideas for improve:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;timed reset&lt;/LI&gt; &lt;LI&gt;firmware upgrade&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Feel free to share if you update!&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2019 15:35:51 GMT</pubDate>
    <dc:creator>Zdeněk_Pala</dc:creator>
    <dc:date>2019-11-06T15:35:51Z</dc:date>
    <item>
      <title>Custom Backup Script Cisco Nexsus</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-backup-script-cisco-nexsus/m-p/63292#M7691</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Had to create a custom backup script for a Cisco Nexus as the boxed one was failing, the script looks like the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;-- Use these scripts to manage Cisco devices&lt;BR /&gt;name="Cisco Systems Adapted - TFTP"&lt;BR /&gt;desc="Cisco Systems NEXSUS SSH/TFTP Scripts"&lt;BR /&gt;protocol=TFTP&lt;BR /&gt;--&lt;BR /&gt;-----BEGIN SCRIPT "Configuration Upload"-----&lt;BR /&gt;copy running-config %TFTP_URL%&lt;BR /&gt;@KEY %0D&lt;BR /&gt;@receive 40&lt;BR /&gt;exit&lt;BR /&gt;-----END SCRIPT-----&lt;BR /&gt;-----BEGIN SUCCESS "Configuration Upload"-----&lt;BR /&gt;bytes copied&lt;BR /&gt;-----END SUCCESS-----&lt;BR /&gt;-----BEGIN SCRIPT "Configuration Download"-----&lt;BR /&gt;enable&lt;BR /&gt;%ENABLEPSWD%&lt;BR /&gt;copy %TFTP_URL% startup-config&lt;BR /&gt;startup-config&lt;BR /&gt;@receive 60&lt;BR /&gt;exit&lt;BR /&gt;-----END SCRIPT-----&lt;BR /&gt;-----BEGIN SUCCESS "Configuration Download"-----&lt;BR /&gt;bytes copied&lt;BR /&gt;-----END SUCCESS-----&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This works without issue as shown with the inventory script verbose logs enabled in XMC, below is an extract from the server.log file showing the commands where successful:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;BHR_N9K_2# copy running-config tftp://10.10.15.50/configs/tmp/10_10_15_247.cfg&lt;BR /&gt;Enter vrf (If no input, current vrf 'default' is considered):&lt;BR /&gt;Trying to connect to tftp server......&lt;BR /&gt;Connection to Server Established.&lt;BR /&gt;TFTP put operation was successful&lt;BR /&gt;Copy complete.&lt;BR /&gt;BHR_N9K_2# exit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2019-11-05 22:07:22,300 DEBUG [com.ets.netsight.inv.agent.ScriptMib] [Inventory Snmp-10] [ScriptMib] [10.10.15.247] Looking for success regex match: bytes copied:&lt;BR /&gt;2019-11-05 22:07:22,300 DEBUG [com.ets.netsight.inv.agent.ScriptMib] [Inventory Snmp-10] [ScriptMib] [10.10.15.247] No match for success regex match: bytes copied:&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So the script is executing without error but is showing a failure in XMC:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;FIGURE&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="643f6072d31a42a88ba5e968a7b1adbd_be104e0d-861b-42b0-9cbb-501b80b6e068.png"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/2177i300BD562A6EE9B2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="643f6072d31a42a88ba5e968a7b1adbd_be104e0d-861b-42b0-9cbb-501b80b6e068.png" alt="643f6072d31a42a88ba5e968a7b1adbd_be104e0d-861b-42b0-9cbb-501b80b6e068.png" /&gt;&lt;/span&gt;&lt;/FIGURE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;FIGURE&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="643f6072d31a42a88ba5e968a7b1adbd_39ca039e-929d-4808-a67e-70a53cd20484.png"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/632iB10805D3043B3F05/image-size/large?v=v2&amp;amp;px=999" role="button" title="643f6072d31a42a88ba5e968a7b1adbd_39ca039e-929d-4808-a67e-70a53cd20484.png" alt="643f6072d31a42a88ba5e968a7b1adbd_39ca039e-929d-4808-a67e-70a53cd20484.png" /&gt;&lt;/span&gt;&lt;/FIGURE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only bit I am considering as perhaps the issue are the last two lines in the server.log file given above:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2019-11-05 22:07:22,300 DEBUG [com.ets.netsight.inv.agent.ScriptMib] [Inventory Snmp-10] [ScriptMib] [10.10.15.247] Looking for success regex match: bytes copied:&lt;BR /&gt;2019-11-05 22:07:22,300 DEBUG [com.ets.netsight.inv.agent.ScriptMib] [Inventory Snmp-10] [ScriptMib] [10.10.15.247] No match for success regex match: bytes copied:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m not sure if this is why or what regex match is configured or looking for? Maybe a match on the ‘Copy Complete’ on the Cisco transcript when the TFTP upload has been completed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 06:19:50 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-backup-script-cisco-nexsus/m-p/63292#M7691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-06T06:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Backup Script Cisco Nexsus</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-backup-script-cisco-nexsus/m-p/63293#M7692</link>
      <description>&lt;P&gt;Hi Marin.&lt;/P&gt;&lt;P&gt;the script does expect text “&lt;STRONG&gt;bytes copied&lt;/STRONG&gt;”&lt;/P&gt;&lt;P&gt;the cisco does report “&lt;STRONG&gt;Copy complete&lt;/STRONG&gt;”.&lt;/P&gt;&lt;P&gt;As these doe not match =&amp;gt; the backup failed.&lt;/P&gt;&lt;P&gt;change the&amp;nbsp;BEGIN SUCCESS section and you will be good.&lt;/P&gt;&lt;P&gt;then please share, so others can benefit also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 06:24:51 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-backup-script-cisco-nexsus/m-p/63293#M7692</guid>
      <dc:creator>Zdeněk_Pala</dc:creator>
      <dc:date>2019-11-06T06:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Backup Script Cisco Nexsus</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-backup-script-cisco-nexsus/m-p/63294#M7693</link>
      <description>&lt;P&gt;Thanks Z, worked perfectly as you said. Script below, download section needs amending and testing, but easy enough now the detail has been teased out with the upload section:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;-- Use these scripts to manage Cisco devices&lt;BR /&gt;name="Cisco Systems Adapted - TFTP"&lt;BR /&gt;desc="Cisco Systems NEXSUS SSH/TFTP Scripts"&lt;BR /&gt;protocol=TFTP&lt;BR /&gt;--&lt;BR /&gt;-----BEGIN SCRIPT "Configuration Upload"-----&lt;BR /&gt;copy running-config %TFTP_URL%&lt;BR /&gt;@KEY %0D&lt;BR /&gt;@receive 40&lt;BR /&gt;exit&lt;BR /&gt;-----END SCRIPT-----&lt;BR /&gt;-----BEGIN SUCCESS "Configuration Upload"-----&lt;BR /&gt;Copy complete.&lt;BR /&gt;-----END SUCCESS-----&lt;BR /&gt;-----BEGIN SCRIPT "Configuration Download"-----&lt;BR /&gt;enable&lt;BR /&gt;%ENABLEPSWD%&lt;BR /&gt;copy %TFTP_URL% startup-config&lt;BR /&gt;startup-config&lt;BR /&gt;@receive 60&lt;BR /&gt;exit&lt;BR /&gt;-----END SCRIPT-----&lt;BR /&gt;-----BEGIN SUCCESS "Configuration Download"-----&lt;BR /&gt;bytes copied&lt;BR /&gt;-----END SUCCESS-----&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Appreciate the help.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 08:08:34 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-backup-script-cisco-nexsus/m-p/63294#M7693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-06T08:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Backup Script Cisco Nexsus</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-backup-script-cisco-nexsus/m-p/63295#M7694</link>
      <description>&lt;P&gt;Thank you for sharing! The &lt;A href="https://github.com/extremenetworks/ExtremeScripting/blob/master/Netsight/cfg_backup_scripts/README.md" target="_blank" rel="nofollow noreferrer noopener"&gt;GitHub CFG section&lt;/A&gt;. The &lt;A href="https://raw.githubusercontent.com/extremenetworks/ExtremeScripting/master/Netsight/cfg_backup_scripts/Cisco-Nexus-TFTP.txt" target="_blank" rel="nofollow noreferrer noopener"&gt;script &lt;/A&gt;itself.&lt;/P&gt;&lt;P&gt;Ideas for improve:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;timed reset&lt;/LI&gt; &lt;LI&gt;firmware upgrade&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Feel free to share if you update!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 15:35:51 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-backup-script-cisco-nexsus/m-p/63295#M7694</guid>
      <dc:creator>Zdeněk_Pala</dc:creator>
      <dc:date>2019-11-06T15:35:51Z</dc:date>
    </item>
  </channel>
</rss>

