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?

Thanks.

2.png

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

cli.jpg

Parents
  • hi, 

    First you need to change transfer config need to be changed to SCP.

    After that you need to be sure for SCP service running that the Polling engine which node is assigned. Be sure that you create a user on SCP service. After that you can get your backup with this command :

    scp -P ** (you can specify your port for getting backup) (path your backup on the device) SCPUser@SolarwindsServerIP:${StorageFileName} 

Reply
  • hi, 

    First you need to change transfer config need to be changed to SCP.

    After that you need to be sure for SCP service running that the Polling engine which node is assigned. Be sure that you create a user on SCP service. After that you can get your backup with this command :

    scp -P ** (you can specify your port for getting backup) (path your backup on the device) SCPUser@SolarwindsServerIP:${StorageFileName} 

Children
No Data