Quantcast
Channel: THWACK: Message List - Network Configuration Manager
Viewing all articles
Browse latest Browse all 8827

NCM Change Templates: how do I cope with SFTP-Server authentication and changing prompt?

$
0
0

I'm new to NCM and I want to use it to copy an image from the Solarwinds SFTP Server to a switch, connecting from the switch CLI back to the SFTP server.

Everything works fine doing it manually from CLI. But if I use NCM, I run into a problem:

After having connected to the SFTP Server, it asks for the username. From this point the script aborts, because the prompt changes to the one from the SFTP server which

firstly asks for the username

secondly challenges for the password

thirdly changes to sftp-client> which is different to the one from the switch (which is [Switch].

I have to use SFTP and I have to use the sftp-command in the manner shown below.

 

I've read the NCM documentation and I seem to have understood most of it, but how do I get this to work?

 

Here is the communication when doing it manually from CLI:

 

[Switch]sftp 10.72.11.38
Trying 10.72.11.38 ...
Press CTRL+K to abort
Connected to 10.72.11.38 ...
Warning: The negotiated encryption or digest algorithm is insecure. Using a security algorithm (AES-256, SHA-256) is recommended.
Please input the username: tester
Enter password: ******

sftp-client> get IMAGENAME
Remote file: /IMAGENAME --->  Local file: IMAGENAME
Downloading the file. Please wait.../
Downloading file successfully ended.
File download is completed in 49 seconds.
sftp-client> bye
Bye
[Switch]


Viewing all articles
Browse latest Browse all 8827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>