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

Re: how to input 'y' or 'yes' with powershell script to NCM

$
0
0

i made a command script for nexus 3048

 

<!-- 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 20396

Trending Articles



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