|
From: | Brandon Whaley |
Subject: | Re: [Fab-user] Fwd: Running Non-UNIX CLI commands through Fabric |
Date: | Mon, 05 Dec 2016 02:08:13 +0000 |
I am using the latest Fabric API to establish SSH connections. In my case, SSH-ing to the server opens up a CLI (like the ones Routers have). I need to execute 'enable' command followed by '_shell' command in-order to finally open up a UNIX shell. The problem here is that I am unable to automate these specific commands using Fabric. I have tried the 'shell=False' parameter for the run() function.How do we solve this problem. please help me out.
Error :
out: UNIX shell commands cannot be executed using this account.
Fatal error: run() received nonzero return code 1 while executing!
Requested: en
Executed: /bin/bash -l -c "en"
Waiting for your positive response.
_______________________________________________On 4 Dec 2016 1:20 p.m., "Rahul K" <address@hidden> wrote:Hello,
I am using the latest Fabric API to establish SSH connections. In my case, SSH-ing to the server opens up a CLI (like the ones Routers have). I need to execute 'enable' command followed by '_shell' command in-order to finally open up a UNIX shell. The problem here is that I am unable to automate these specific commands using Fabric. I have tried the 'shell=False' parameter for the run() function.
Fab-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user
[Prev in Thread] | Current Thread | [Next in Thread] |