01-31-2020 05:37 PM
I am trying to copy the global-running-config of our VDX from a remote host linux host. I use the below command I am executing from a remote Linux host:
sshpass -p 'password' ssh -o StrictHostKeyChecking=no user@x.x.x.x 'copy global-running-config sftp://user:password@x.x.x.x/global-running-config use-vrf mgmt-vrf'
In the console I can see the SSH session established and a successful login, however the remote command is not being executed.
Any suggestions?
06-23-2020 12:05 PM
Hi,
I think you’d need a script that would be able to handle prompt and output. Typically, with Python, pexpect is such a tool.
Life would be easier with XMC.
Cheers.