in reply to Re^4: Net::SSH2::Cisco not working on Cisco XR
in thread Net::SSH2::Cisco not working on Cisco XR

You'll notice in Net::SSH2::Cisco login(), that the shell() method is used, not exec(). This is so multiple commands can be issue in an interactive fashion.

Try your above Net::SSH2 script with shell() instead of exec() and see if it still works. That will help narrow down / eliminate anther possibility.

  • Comment on Re^5: Net::SSH2::Cisco not working on Cisco XR