×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

scripts, cisco and ssh

Unanswered Question
May 23rd, 2006
User Badges:

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
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
sbilgi Mon, 05/29/2006 - 10:17
User Badges:
  • Silver, 250 points or more

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

Actions

This Discussion