Transfer Configs Using SCP via SSH Commands

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 emoticons_sad.png  . Any ideas about this?



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


    <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" />