-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Hi,
When running SSH into a Cisco device the connect() function in CiscoTrait tries to exec term width and term len. With a device that is locked down using enable, the term commands aren't available at this time, they're only available after enable mode is activated. Because the commands fail, the entire library fails to load and times out (at least in my environment).
In order to work around this, I have moved exec term width and len into a postEnable function in CiscoRouter, and have disabled postConnect as it has the same problem with exec('show ipv6'). This works perfectly, and the rest of the library functions as expected.
It would be nice for the exec function not to time everything out if the command wasn't recognised.
Thanks for your great work!