diff options
author | Knut Auvor Grythe <knut@auvor.no> | 2015-03-31 16:04:44 +0200 |
---|---|---|
committer | Knut Auvor Grythe <knut@auvor.no> | 2015-03-31 16:04:44 +0200 |
commit | 69747efcf8aca1a3c1241eb126bf0d0e27b8af05 (patch) | |
tree | e7a86213e402f9f6a4e42584b17104e6b5e418b0 /web | |
parent | aef116e3b3644f2b86b8c34150bb19fe5afe669f (diff) |
clean up juniper-ssh code
Diffstat (limited to 'web')
-rwxr-xr-x | web/nms.gathering.org/ssendfile.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/nms.gathering.org/ssendfile.pl b/web/nms.gathering.org/ssendfile.pl index ec2ebb8..835a966 100755 --- a/web/nms.gathering.org/ssendfile.pl +++ b/web/nms.gathering.org/ssendfile.pl @@ -19,7 +19,8 @@ if ($#ARGV != 1) { "./ssendfile.pl addr configfile\n"); } -my $conn = nms::switch_connect($ARGV[0]); +my $ssh = nms::switch_connect_ssh($ARGV[0]); +my $conn = $ssh->{telnet}; if (!defined($conn)) { die("Could not connect to switch.\n"); } @@ -33,7 +34,8 @@ while (<CONFIG>) { # print "New ip: $1\n"; # $conn->cmd( String => $cmd, # Timeout => 3); -# $conn = nms::switch_connect($1); +# $ssh = nms::switch_connect_ssh($1); +# $conn = $ssh->{telnet}; # if (!defined($conn)) { # die "Could not connect to new ip: $1\n"; # } |