Telnet to switch, retrieve buffer data, ftp to server

Telnet to switch, retrieve buffer data, ftp to server

am 14.07.2005 15:02:28 von Nex_s

Hi Everyone,

I'm very new to perl and doing my best to learn quickly.

I need to write a perl script that logs into a switch using telnet,
starts a report, retrieves the data, ftp's the data to remote server
then logs out.

Any suggestions or help would be greatly appreciated.

Chris

Re: Telnet to switch, retrieve buffer data, ftp to server

am 14.07.2005 22:56:07 von nasir

what perl and version are you using.
Net::FTP (Ftp Client) and Net::Telnet (Telnet Client) are the modules
you will require.

Go through its documentation on how to install/add packages in your
perl.

cheers - nasir

Nex_s wrote:
> Hi Everyone,
>
> I'm very new to perl and doing my best to learn quickly.
>
> I need to write a perl script that logs into a switch using telnet,
> starts a report, retrieves the data, ftp's the data to remote server
> then logs out.
>
> Any suggestions or help would be greatly appreciated.
>
> Chris

Re: Telnet to switch, retrieve buffer data, ftp to server

am 14.07.2005 23:07:18 von nasir

http://search.cpan.org/dist/libnet/Net/FTP.pm
http://search.cpan.org/~jrogers/Net-Telnet-3.03/lib/Net/Teln et.pm
for activestate perl:
http://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/lib/Pod /perlfaq8.html#can_i_use_perl_to_run_a_telnet_or_ftp_session



Nex_s wrote:
> Hi Everyone,
>
> I'm very new to perl and doing my best to learn quickly.
>
> I need to write a perl script that logs into a switch using telnet,
> starts a report, retrieves the data, ftp's the data to remote server
> then logs out.
>
> Any suggestions or help would be greatly appreciated.
>
> Chris

Re: Telnet to switch, retrieve buffer data, ftp to server

am 15.07.2005 14:27:56 von Nex_s

Thank you kindly,
Chris

Re: Telnet to switch, retrieve buffer data, ftp to server

am 15.07.2005 20:36:23 von Joe Smith

Nex_s wrote:

> I need to write a perl script that logs into a switch using telnet,
> starts a report, retrieves the data, ftp's the data to remote server
> then logs out.

Try http://search.cpan.org/search?query=telnet+cisco&mode=all for
modules that are similar to what you're trying to do.
-Joe