SCP example of a network config upload and download

File Name

Cisco IOS-1.3.6.1.4.1.9.ConfigMgmt-Commands

Contents

<!--SolarWinds Network Management Tools-->
<!--Copyright 2008 SolarWinds.Net All rights reserved-->
<Configuration-Management Device="Cisco Devices" SystemOID=" 1.3.6.1.4.1.9">
 <Commands>
  <Command Name="RESET" Value="terminal width 0${CRLF}terminal length 0"/>
  <Command Name="Reboot" Value="reload${CRLF}y${CRLF}y"/>
  <Command Name="EnterConfigMode" Value="config terminal"/>
  <Command Name="ExitConfigMode" Value="end"/>
  <Command Name="Startup" Value="startup"/>
  <Command Name="Running" Value="running"/>
  <Command Name="DownloadConfig" Value="Show ${ConfigType}"/>
  <Command Name="UploadConfig" Value="${EnterConfigMode}${CRLF}${ConfigText}${CRLF}${ExitConfigMode}"/>
  <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="write memory"/>
  <Command Name="Version" Value="show version"/>
 </Commands>
</Configuration-Management>