niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » Perl » modules
Net:TFTPd questions - Want to upload configs via TFTP
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Adam
*nix forums Guru Wannabe


Joined: 22 Feb 2005
Posts: 251

PostPosted: Thu Jul 20, 2006 4:29 pm    Post subject: Net:TFTPd questions - Want to upload configs via TFTP Reply with quote

I am writing a script that will log into my network equipment and backup
the configurations to a TFTP server. Since I don't want the security
risk of a TFTP server running all the time, I want to create a TFTP
server when the script starts and destroy it when I am done. My problem
is that the Net::TFTPd module does not seem to process any of the
requests. Issuing a "netstat -a" does show a socket created on port 69,
but nothing else. The script times out and dies. Is that module
compatible with current versions of perl, since it was written for perl
5.006?

Has anyone else done this or had experience trying to do this? I am
running perl under RedHat Enterprise Linux 4. Suggestions or actual
code would be helpful and appreciated.

Thanks,

Chris G.
cgauthie^gmail(dot)com
Back to top
Sisyphus
*nix forums Guru


Joined: 04 Mar 2005
Posts: 503

PostPosted: Fri Jul 21, 2006 2:43 am    Post subject: Re: Net:TFTPd questions - Want to upload configs via TFTP Reply with quote

"Chris G." <nospam@example.com> wrote in message
news:44bfaf61$0$17960$892e7fe2@authen.yellow.readfreenews.net...
Quote:
I am writing a script that will log into my network equipment and backup
the configurations to a TFTP server. Since I don't want the security
risk of a TFTP server running all the time, I want to create a TFTP
server when the script starts and destroy it when I am done. My problem
is that the Net::TFTPd module does not seem to process any of the
requests.

Does that mean the client cannot even connect to the server ? I assume so,
since, for the connection to be created, the server needs to process at
least one request (namely, the request from the client for a connection).

For the purpose of testing it would be best to create a server that just
sits there and waits for a connection. Once you can get a client to connect
to that server then you know you're making progress. Once you've finished
your testing, manually kill the server, and *then* start messing about with
the short-lived server. (Nothing more annoying than trying to troubleshoot a
client connection to a server that continually needs to be re-started.)

Quote:
Issuing a "netstat -a" does show a socket created on port 69,
but nothing else. The script times out and dies. Is that module
compatible with current versions of perl, since it was written for perl
5.006?

It's unlikely ... though there's always the possibility that a bug
(introduced in perl 5.008) is preventing things from working properly. Do
you know for sure that this module worked with perl 5.006 ? The test script
that ships with the module doesn't test anything other than the loadability
of the module itself. That script is next to useless when it comes to
testing the functionality of the module.

Quote:

Has anyone else done this or had experience trying to do this? I am
running perl under RedHat Enterprise Linux 4. Suggestions or actual
code would be helpful and appreciated.


There's one bug reported at
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-TFTPd (with a workaround).
Difficult to say whether that bug/workaround is relevant to your problem or
not.

If you supply *minimal* server and client test scripts that demonstrate the
problem you stand a better chance of finding a solution.

Cheers,
Rob
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 6:53 pm | All times are GMT
navigation Forum index » Programming » Perl » modules
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Net:TFTPd questions - Want to upload configs via TFTP Adam Perl 0 Thu Jul 20, 2006 4:59 pm
No new posts Questions on bitfields and struct sarathy C 3 Thu Jul 20, 2006 1:58 pm
No new posts SLED 10 Questions Moif Murphy Suse 2 Thu Jul 20, 2006 12:11 pm
No new posts questions to anyone who uses wxPython nuno python 2 Thu Jul 20, 2006 4:12 am
No new posts Questions about "Line too long" Jonas Meurer Exim 9 Wed Jul 19, 2006 5:29 pm

Loan | Internet Advertising | Loans | Debt Consolidation | Consolidate Student Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.9243s ][ Queries: 16 (0.8460s) ][ GZIP on - Debug on ]