[Ssh-sftp-perl-users] net-ssh-perl 1.30, "connection refused" dumping script..
Brought to you by:
dbrobins
From: Nick E. <Nic...@pg...> - 2006-08-09 14:28:43
|
I have a net--telnet script that collects data from Cisco devices, and it's pretty basic. I am adding ssh v1 &v2 support so I can collect data from devices that force Cisco's SSH version on that device. So far, as long as the device answers to ssh, it was a pretty easy task. But if the system has no ssh ability, and I hit it with the script, it dies and kills my script. I have not done much error handling with scripts, so I was hoping I could get some ideas on how to allow my script to recover from this connection failure and let me drop to a telnet attempt. I suppose I could do a test before calling the ssh module, see if tcp/22 is answering, but net::telnet does a nice job of providing an error of it cannot connect, does net::ssh::perl do that? Nick Nick Ellson Infrastructure Specialist PGE, Network Operations Center Personal: (503) 464-2995 Network Trouble: (503) 464-8754 "Educating Layer 8, one user at a time." |