Koozali.org: home of the SME Server

TFTP and using it to update a number of Snom phones

Offline Drifting

  • *****
  • 431
  • +0/-0
TFTP and using it to update a number of Snom phones
« on: February 21, 2018, 03:53:39 PM »
Hi all.

I am pretty sure I saw someone else had done this, but a quick search did not bring anything up. What I am trying to do is get the TFTP contrib I have installed to push a firmware update to some Snom phones.  Now must admit I am a little hazy with TFTP and know little apart from what the contrib says. I have the firmware located in the /tftpboot directory, but it does nothing on the phone apart from saying downloading? But never achieves it.
I have followed the instructions from snom about naming the file so the phone will look for it, but pretty sure I am missing something within TFTP to tell it how to push it?
No rush, was something I was playing with and trying to get my head round.

Regards
Infamy, Infamy, they all have it in for me!

Offline ReetP

  • *
  • 3,950
  • +6/-0
Re: TFTP and using it to update a number of Snom phones
« Reply #1 on: February 22, 2018, 08:40:04 PM »
I use it for all mine. Two different locations & a mixture of phones.

You can turn on the (limited) verbosity to help.

You can also try tftp manually from another workstation to see if you can retrieve the files.

What settings have you got on phone and server?

I'll help if I can.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Drifting

  • *****
  • 431
  • +0/-0
Re: TFTP and using it to update a number of Snom phones
« Reply #2 on: February 23, 2018, 01:57:18 PM »
Hi, thanks for the reply

As for settings, only the default install of the TFTP install, have the bin file located in the /tftpboot directory.

Nothing really on the phones, I just press the button on startup for tftp, put in an ip for the phone, then the IP of the TFTP server, and DFG. Will have a play with verbosity, as I tried a local tftp and it just timed out (tftp serverip get filename.bin)

also tried get /tftpboot/snom.bin

Paul.
« Last Edit: February 23, 2018, 02:34:59 PM by Drifting »
Infamy, Infamy, they all have it in for me!

Offline ReetP

  • *
  • 3,950
  • +6/-0
Re: TFTP and using it to update a number of Snom phones
« Reply #3 on: February 23, 2018, 03:32:22 PM »
Fix it by using manual tftp client first.

Once that works the phone will :-)

Just about to go off for the weekend. Will look closer when back
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,950
  • +6/-0
Re: TFTP and using it to update a number of Snom phones
« Reply #4 on: February 23, 2018, 03:35:42 PM »
config show tftpd

tftpd=service
    UDPPort=69
    access=private
    directory=/tftpboot
    log=verbose
    privilege=ro
    status=enabled
    timeout=default
    user=nobody

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,950
  • +6/-0
Re: TFTP and using it to update a number of Snom phones
« Reply #5 on: February 23, 2018, 03:38:59 PM »
netstat -an |grep 69

udp        0      0 192.168.10.1:69             0.0.0.0:*
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Drifting

  • *****
  • 431
  • +0/-0
Re: TFTP and using it to update a number of Snom phones
« Reply #6 on: February 23, 2018, 03:57:45 PM »
Mine looks nearly the same.

root@gateway ~]# config show tftpd
tftpd=service
    UDPPort=69
    access=private
    directory=/tftpboot
    log=normal
    privilege=ro
    status=enabled
    timeout=default
    user=nobody

And

[root@gateway ~]# netstat -an |grep69
-bash: grep69: command not found
[root@gateway ~]# netstat -an |grep 69
udp        0      0 10.0.0.1:69                 0.0.0.0:*     

Have a great weekend, appreciate your help, catch up when you have time, thanks again.

Paul.                       
Infamy, Infamy, they all have it in for me!

Offline ReetP

  • *
  • 3,950
  • +6/-0
Re: TFTP and using it to update a number of Snom phones
« Reply #7 on: February 23, 2018, 05:37:41 PM »
Ok. I'm back late Sunday night. Got a weekend in Tortosa to enjoy :-)  :pint:
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,950
  • +6/-0
Re: TFTP and using it to update a number of Snom phones
« Reply #8 on: February 26, 2018, 07:29:37 PM »
Bacl and about.

Got any further with a manual client?

I am assuming you are doing this all on the same subnet?

I'll do a test on mine to see what happens.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,950
  • +6/-0
Re: TFTP and using it to update a number of Snom phones
« Reply #9 on: February 26, 2018, 09:43:47 PM »
OK, I just did as follows on a *buntu desktop

Code: [Select]
tftp
For available commands do:
Code: [Select]
tftp ?
Code: [Select]
tftp> verboseVerbose mode on.

Code: [Select]
tftp> connect 192.168.10.1
Code: [Select]
tftp> get gxp1700fw.bin

getting from 192.168.10.1:gxp1700fw.bin to gxp1700fw.bin [netascii]
Received 26663033 bytes in 14.9 seconds [14315722 bits/sec]

tailf /var/log/messages

Feb 26 21:33:22 home in.tftpd[2079]: RRQ from 192.168.10.20 filename gxp1700fw.bin
Feb 26 21:33:37 home in.tftpd[2079]: Client 192.168.10.20 finished gxp1700fw.bin

tailf /var/log/tftpd/current
2018-02-26 21:32:46.632656500 udpsvd: info: pid 2054 from 192.168.10.20
2018-02-26 21:32:46.632900500 udpsvd: info: start 2054 home.reetspetit.net:192.168.10.1 :john-xubuntu.reetspetit.net:192.168.10.20:49671


Code: [Select]
tftp> get pxelinux.cfg/tools
getting from 192.168.10.1:pxelinux.cfg/tools to tools [netascii]
Received 2394 bytes in 0.0 seconds [inf bits/sec]

Feb 26 21:39:38 home in.tftpd[2319]: RRQ from 192.168.10.20 filename pxelinux.cfg/tools
Feb 26 21:39:38 home in.tftpd[2319]: Client 192.168.10.20 finished pxelinux.cfg/tools
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation