Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

scripts, cisco and ssh

I have several PERL scripts that use Net::Telnet::Cisco, but security concerns dictate that we use only ssh on our newer systems. As I am mostly using ActiveState PERL for Win32, I tried the Win32 version of Net::SSH. But this is unreliable on Cisco systems.

I have had more success wrapping scripts around the Putty plink.exe for ssh cli. The one thing I can't seem to do is get to privileged mode. I had once used Expect, but I am more comfortable with PERL that TCL. I have not yet found a scriptable way to respond to the enable password prompt.

Any suggestions?

1 REPLY
Silver

Re: scripts, cisco and ssh

the command scripts are not running or cannot be found, it usually means that the ISC environment has not been sourced.

For the C-shell: source $ISC_HOME/bin/vpnenv.csh

For the K-shell and Bourne-shell: . $ISC_HOME/bin/vpnenv.sh

391
Views
0
Helpful
1
Replies
CreatePlease to create content