<div dir="ltr"><br><br><div class="gmail_quote">2008/7/27 Sigma Networks <span dir="ltr">&lt;<a href="mailto:sigma@easymail123.com">sigma@easymail123.com</a>&gt;</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>
&gt; Hi,<br>
&gt;<br>
&gt; I don&#39;t understand why a SIP hardphone can&#39;t provision itself using tftp.<br>
&gt; I&#39;m very suspicious about my tftp daemon but I lack basic knowledge of<br>
&gt; Linux CLI to pinpoint what&#39;s going wrong and separate what belongs to<br>
&gt; SIP phone configuration from what comes from tftp server.<br>
&gt;<br>
&gt; What I would like to do is to add a given file in current /srv/tftp<br>
&gt; directory and test by hand that tftpd would serve this file when asked.<br>
&gt;<br>
&gt; Googling and reading man pages, I could find command that starts tftp<br>
&gt; server but I couldn&#39;t find any command asking for a given file<br>
&gt; (please, note I don&#39;t imply such commands don&#39;t exist but maybe, some<br>
&gt; more general network tools (netcat, ...) are the one to use for basic<br>
&gt; tftp testing).<br>
&gt;<br>
&gt; So let&#39;s say, you&#39;ve got :<br>
&gt; a perfectly running tftp server somewhere on your LAN,<br>
&gt; it holds foo.txt file in its /srv/tftp directory.<br>
&gt;<br>
&gt;<br>
&gt; Which command could you type in for a LAN workstation to receive this<br>
&gt; foo.txt ?<br>
&gt;<br>
&gt; Regards<br>
&gt;<br>
&gt; PS1: I&#39;m using Debian etch<br>
&gt; PS2: With nestat -a, I&#39;ve got this :<br>
&gt;<br>
&gt; Proto Recv-Q Send-Q Local address &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Remote address &nbsp; &nbsp; &nbsp; &nbsp;Status<br>
&gt; udp &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 *:tftp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*:*<br>
&gt;<br>
&gt; So, I think my tftp daemon is not listening but that&#39;s another topic.<br>
</div></div>&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;<br>
&gt; AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>
&gt; Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt; &nbsp; &nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
you&#39;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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dgram&nbsp;&nbsp; udp&nbsp;&nbsp;&nbsp;&nbsp; wait&nbsp;&nbsp;&nbsp; nobody&nbsp; /usr/sbin/tcpd&nbsp; /usr/sbin/in.tftpd /srv/tftp<br><br>Thanks to manual tftp&nbsp; (tftp foo.txt) I could find that this tftp server defaults its log to syslog (grep foo.txt /var/log)<br>
<br>Now, I&#39;m certain :<br>- a tftp server is somehow running<br>- I can&#39;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&#39;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>
 &nbsp; <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>