Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20490

Re: Re: is anybody can tell to me how to using the configmgmt-command

$
0
0

Dear tim.l.nelson

Thank you for interesting my threads.

i made a configmgmt-command script for Cisco Nexus 3048 switch, and saw it works. :-)

i added the Precommand section and it works for input the y when prompt appears.

see the following plz


<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by () -->

<!--SolarWinds Network Management Tools-->

<!--Copyright 2005 SolarWinds.Net All rights reserved-->

<Configuration-Management Device="Cisco 3048 NX-OS Management Devices" SystemOID="1.3.6.1.4.1.9.12.3.1.3.1106">

  <Commands>

  <Command Name="RESET" Value="terminal width 0${CRLF}terminal length 0"/>

  <Command Name="Reboot" Value="reload${CRLF}y${CRLF}"/>

  <Command Name="EnterConfigMode" Value="config terminal"/>

  <Command Name="ExitConfigMode" Value="end"/>

  <Command Name="Startup" Value="startup-config"/>

  <Command Name="Running" Value="running-config"/>

  <Command Name="DownloadConfig" Value="Show ${ConfigType}"/>

  <Command Name="UploadConfig" Value="${EnterConfigMode}${CRLF}${ConfigText}${CRLF}${ExitConfigMode}"/>

  <Command Name="DownloadConfigIndirect" Value="copy ${ConfigType} ${TransferProtocol}://${StorageAddress}/${StorageFilename} vrf management${CRLF}${CRLF}${CRLF}"/>

  <Command Name="UploadConfigIndirect" Value="copy ${TransferProtocol}://${StorageAddress}/${StorageFilename}  ${ConfigType}${CRLF}${CRLF}"/>

  <Command Name="DownloadConfigIndirectSCP" Value="copy ${ConfigType} ${TransferProtocol}://${SCPServerUserName}@${SCPStorageAddress}/${StorageFilename}${CRLF}${CRLF}${CRLF}${CRLF}${SCPServerPassword}"/>

  <Command Name="UploadConfigIndirectSCP" Value="copy ${TransferProtocol}://${SCPServerUserName}@${SCPStorageAddress}/${StorageFilename}  ${ConfigType}${CRLF}${CRLF}${SCPServerPassword}"/>

  <Command Name="EraseConfig" Value="write erase${CRLF}Y"/>

  <Command Name="SaveConfig" Value="copy running startup"/>

  <Command Name="Version" Value="show version"/>

               <Command Name="Precommand" Value="y" Delay="1" RegEx="continue?" />

         </Commands>

</Configuration-Management>


Viewing all articles
Browse latest Browse all 20490

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>