[asterisk-users] OT - How to test tftp for phones provisioning
Olivier
oza-4h07 at myamail.com
Sun Jul 27 11:40:41 CDT 2008
2008/7/27 Sigma Networks <sigma at easymail123.com>
> Olivier wrote:
> > Hi,
> >
> > I don't understand why a SIP hardphone can't provision itself using tftp.
> > I'm very suspicious about my tftp daemon but I lack basic knowledge of
> > Linux CLI to pinpoint what's going wrong and separate what belongs to
> > SIP phone configuration from what comes from tftp server.
> >
> > What I would like to do is to add a given file in current /srv/tftp
> > directory and test by hand that tftpd would serve this file when asked.
> >
> > Googling and reading man pages, I could find command that starts tftp
> > server but I couldn't find any command asking for a given file
> > (please, note I don't imply such commands don't exist but maybe, some
> > more general network tools (netcat, ...) are the one to use for basic
> > tftp testing).
> >
> > So let's say, you've got :
> > a perfectly running tftp server somewhere on your LAN,
> > it holds foo.txt file in its /srv/tftp directory.
> >
> >
> > Which command could you type in for a LAN workstation to receive this
> > foo.txt ?
> >
> > Regards
> >
> > PS1: I'm using Debian etch
> > PS2: With nestat -a, I've got this :
> >
> > Proto Recv-Q Send-Q Local address Remote address Status
> > udp 0 0 *:tftp *:*
> >
> > So, I think my tftp daemon is not listening but that's another topic.
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> >
> > AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> > Register Now: http://www.astricon.net
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> you'll want to turn on logging for tftpd so you can monitor the messages:
> tail -f /var/log/messages
tftp is started with this (in inetd.conf) :
tftp dgram udp wait nobody /usr/sbin/tcpd
/usr/sbin/in.tftpd /srv/tftp
Thanks to manual tftp (tftp foo.txt) I could find that this tftp server
defaults its log to syslog (grep foo.txt /var/log)
Now, I'm certain :
- a tftp server is somehow running
- I can't see any tftp request/reply from IP phone in /var/log/syslog
Maybe, DHCP server is forwarding IP phone to a wrong TFTP server address.
Anyway, that's another topic.
Thanks for helping.
>
> to test tftp if the daemon is running on the local server:
> tftp localhost
> get foo.txt
>
>
> good luck.
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080727/c1ff61e8/attachment.htm
More information about the asterisk-users
mailing list