1 Reply Latest reply on Oct 3, 2018 6:13 AM by erdinc.erdal

    Transfer Configs Using SCP via SSH Commands

    erdinc.erdal

      Hi Everyone;

       

      As much I know selecting Transfer Config Using SCP in connection profile probid us to seeing configuration parameters on web and compare configs. Because of this I try to use SSH to send some command for connect Solarwinds SCP server and backup config files to SFTP root folder. In this way NCM can trasfer CLI output using SSH command and also send .cfg or .zip files to NCM server.

       

      I try to create a template like below but its not working   . Any ideas about this?

       

      Thanks.

       

       

      <Configuration-Management Device="Template" SystemOID=" 1.3.6.1.4.1.2011" AutoDetectType="BySystemOid">

        <Commands>

          <Command Name="MenuBased" Value="False" />

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

          <Command Name="Reset" Value="screen-length 0 temporary" />

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

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

          <Command Name="VirtualPrompt" Value="\[.*\]|\:|\>"/>

          <Command Name="UseVirtualPromptForCommands" Value="true"/>

          <Command Name="EnableIdentifier" Value="\]"/>

          <Command Name="EnterConfigMode" Value="sys" />

          <Command Name="Startup" Value="display saved-configuration" />

          <Command Name="Running" Value="display current-configuration" />

          <Command Name="UploadSCP" Value="" />

          <Command Name="DownloadSCP" Value="${EnterConfigMode}${CRLF}${CRLF} sftp XXX.XXX.XXX.XXX${CRLF}${CRLF}scpusername${CRLF}${CRLF}password${CRLF}${CRLF}put flash:/startup.cfg ${StorageFilename}${CRLF}${CRLF}" />

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

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

          <Command Name="SaveConfig" Value="save${CRLF}y" />

        </Commands>

      </Configuration-Management>

       

      devicecli