Replies: 2 comments 14 replies
-
Hey @tybruno Sorta kinda this probably could work... on network drivers we compile a pattern that matches all privilege levels of a device, and because of that we shouldn't really ever not find a prompt we are happy with. That said, the main idea w/ scrapli things is I think my general recommendation if you are wanting to bypass the "normal" scrapli prompt/privilege level type behavior would be to just create a custom platform based on the Hopefully that makes sense! If not, can clarify tomorrow/later after I get some sleep 💤 🙂 Carl |
Beta Was this translation helpful? Give feedback.
-
This really depends on how vague you want to get on the The default pattern for the generic driver is Heres a working example for IOSXE (and probably EOS) -- you can see we dont need to do anything to the comms prompt pattern it "just works".
You could get crazy with the Carl |
Beta Was this translation helpful? Give feedback.
-
Hello,
Can the send_commands handle all the different configuration modes and interactive mode commands for Cisco IOS devices? I am either going to build a web app or cli that uses send_commands to allow users at run time to input the devices they want to connect to and the commands they want to run. In this case, the tool should be able to run any type of command. Basically, this tool would run a batch of commands on multiple devices.
send_commands(["show cdp nei", "conf t", "crypto key zeroize","y","exit","write erase","y","show run"]
Use case:
As a networking engineer, I want to be able to input the cli commands (show , configuration, and interactive) on a list of devices, so that I don't have to login to each device manually to run the same commands.
Beta Was this translation helpful? Give feedback.
All reactions