<div dir="ltr"><br><br><div class="gmail_quote">2008/7/27 Sigma Networks <span dir="ltr"><<a href="mailto:sigma@easymail123.com">sigma@easymail123.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">Olivier wrote:<br>
> Hi,<br>
><br>
> I don't understand why a SIP hardphone can't provision itself using tftp.<br>
> I'm very suspicious about my tftp daemon but I lack basic knowledge of<br>
> Linux CLI to pinpoint what's going wrong and separate what belongs to<br>
> SIP phone configuration from what comes from tftp server.<br>
><br>
> What I would like to do is to add a given file in current /srv/tftp<br>
> directory and test by hand that tftpd would serve this file when asked.<br>
><br>
> Googling and reading man pages, I could find command that starts tftp<br>
> server but I couldn't find any command asking for a given file<br>
> (please, note I don't imply such commands don't exist but maybe, some<br>
> more general network tools (netcat, ...) are the one to use for basic<br>
> tftp testing).<br>
><br>
> So let's say, you've got :<br>
> a perfectly running tftp server somewhere on your LAN,<br>
> it holds foo.txt file in its /srv/tftp directory.<br>
><br>
><br>
> Which command could you type in for a LAN workstation to receive this<br>
> foo.txt ?<br>
><br>
> Regards<br>
><br>
> PS1: I'm using Debian etch<br>
> PS2: With nestat -a, I've got this :<br>
><br>
> Proto Recv-Q Send-Q Local address Remote address Status<br>
> udp 0 0 *:tftp *:*<br>
><br>
> So, I think my tftp daemon is not listening but that's another topic.<br>
</div></div>> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
><br>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>
> Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
><br>
> asterisk-users mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
you'll want to turn on logging for tftpd so you can monitor the messages:<br>
tail -f /var/log/messages</blockquote><div><br>tftp is started with this (in inetd.conf) :<br>tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp<br><br>Thanks to manual tftp (tftp foo.txt) I could find that this tftp server defaults its log to syslog (grep foo.txt /var/log)<br>
<br>Now, I'm certain :<br>- a tftp server is somehow running<br>- I can't see any tftp request/reply from IP phone in /var/log/syslog<br><br>Maybe, DHCP server is forwarding IP phone to a wrong TFTP server address.<br>
Anyway, that's another topic.<br><br>Thanks for helping.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
to test tftp if the daemon is running on the local server:<br>
tftp localhost<br>
get foo.txt<br>
<br>
<br>
good luck.<br>
<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br></div>