Quantcast
Channel: THWACK: All Content - Network Configuration Manager
Viewing all articles
Browse latest Browse all 6057

SFTP with Debian XIVO and NCM SolarWinds with a script

$
0
0

Hi,

I have a script but it doesn't work...So I try to do it manually first.

When I  log into the Debian XIVO i can transfert the Data.tgz and Db.tgz to a  location on the NCM SolarWind(Windows Server)

 

ex: sftp@ipaddress of the NCM

dir

xivo

put data.tgz

 

So i can find the data.tgz on the NCM server, it work.

 

But automatically with the script it doesn't work :

 

<Commands>

               <Command Name="Precommand" Value="cd /var/backups/xivo"/>

               <Command Name="data.tgz" Value="data.tgz" />

               <Command Name="db.tgz" Value="db.tgz" />

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

               <Command Name="DownloadConfigIndirectSCP" value="sftp ${SCPServerUserName}${SCPStorageAddress}${CRLF}${SCPServerPassword}${CRLF]cd /xivo${CRLF}put $[ConfigType}{CRLF}bye${CRLF}"/>

  </Commands>

  </Configuration-Management>

 

On Dowwnload config:

i click on download ...loading... [TRANSFER FAILURE DUE TO TIMEOUT WAITINF FOR SUCCESS OR FAILURE PROMPT]

 

Can you tell me if there is a mistake on this script in order to help me.

 

Thanks evreyone!


Viewing all articles
Browse latest Browse all 6057

Trending Articles