[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TFTP connecting but config not updating
Author Message
Darren.Jordaan Offline
Junior Member
**

Posts: 13
Joined: Jun 2013
Reputation: 0
Post: #1
TFTP connecting but config not updating
Hi, I'm attempting to set up auto provisioning via TFTP for a T20P running Firmware 9.70.0.140. Wireshark trace shows the phone submitting the TFTP read request and the correct y000000000007.cfg file however none of the parameters are updating on the phone. To simplify troubleshooting I removed all parameters except for the Auto pProvisioning and Time Settings parameters. My minimized config file is shown below as well as attached [/code][/quote]and I'd really appreciate any help:

#!version:1.0.0.1

##File header "#!version:1.0.0.1" can not be edited or deleted, and must be placed in the first line.##



################################################################################​#######
## Auto Provisioning ##
################################################################################​#######

#Configure the auto provision mode;
#0-Disabled (default), 1-Power on, 4-Repeatedly, 5-Weekly, 6-Power on + Repeatedly, 7-Power on + Weekly;
auto_provision.mode = 1

#Enable or disable the Plug and Play feature; 0-Disabled, 1-Enabled (default);
auto_provision.pnp_enable =

#Configure the domain name of the PNP server.
auto_provision.pnp_domain_name =

#Configure the value (manufacturer of the device) of the PNP subscribe message.
auto_provision.pnp_event_vendor =

#Configure the interval (in minutes) for the phone to check new configuration files. It ranges from 1 to 43200,

the default value is 1440.
#It is only applicable to "Repeatedly" and "Power on + Repeatedly" modes.
auto_provision.schedule.periodic_minute =

#Configure the start time of the day for the phone to check new configuration files. The default value is 00:00.
#It is only applicable to "Weekly" and "Power on + Weekly" modes.
#If the desired start time of the day is seven forty-five a.m., the value format is 07:45.
auto_provision.schedule.time_from =

#Configure the end time of the day for the phone to check new configuration files. The default time is 00:00.
#It is only applicable to "Weekly" and "Power on + Weekly" modes.
#If the desired end time of the day is seven forty-five p.m., the value format is 19:45.
auto_provision.schedule.time_to =

#Configure the day of week for the phone to check new configuration files. The default vaule is 0123456.
#0-Sunday,1-Monday,2-Tuesday,3-Wednesday,4-Thursday,5-Friday,6-Saturday;
#It is only applicable to "Weekly" and "Power on + Weekly" modes.
#If the desired week is Monday, Tuesday and Wednesday, the value format is 012.
auto_provision.schedule.dayofweek =

#Configure the URL of the auto provisioning server.
auto_provision.server.url = 10.10.11.252

#Configure the username and password for downloading.
auto_provision.server.username =
auto_provision.server.password =

#Configure the name of the common file.
#T28P: y000000000000.cfg, T26P: y000000000004.cfg, T22P: y000000000005.cfg, T20P: y000000000007.cfg;
auto_provision.common_file_name = y000000000007.cfg

#Enable or disable DHCP option mode; 0-Disabled, 1-Enabled (default);
auto_provision.dhcp_option.enable =

#Configure the value (manufacturer of the device) of DHCP option 60.
auto_provision.dhcp_option.option60_value =

#Configure the custom DHCP option number. It ranges from 128 to 254.
auto_provision.dhcp_option.list_user_options =

#Configure AES key (16 characters) for decrypting the common CFG file.
auto_provision.aes_key_16.com =

#Configure AES key (16 characters) for decrypting the MAC-Oriented CFG file.
auto_provision.aes_key_16.mac =

#Configure the mode of downloading configuration files for the phone. The value is 0(default) or 1.
auto_provision.update_file_mode = 0


################################################################################​#######
## Time Settings ##
################################################################################​#######

#Configure the time zone and time zone name. The time zone ranges from -11 to +12, the default value is +8.
#The default time zone name is China(Beijing).
#Refer to Yealink IP Phones User Guide for more available time zones and time zone names.
#local_time.time_zone = +8
#local_time.time_zone_name = China(Beijing)
local_time.time_zone = -6
local_time.time_zone_name =

#Configure the domain name or the IP address of the NTP server. The default value is cn.pool.ntp.org.
local_time.ntp_server1 = us.pool.ntp.org
local_time.ntp_server2 = 0.pool.ntp.org

#Configure the update interval (in seconds) when using the NTP server. The default value is 1000.
local_time.interval =

#Configure the daylight saving time feature; 0-Disabled, 1-Enabled, 2-Automatic (default);
local_time.summer_time =

#Configure the DST type when the DST feature is enabled; 0-By Date (default), 1-By Week;
local_time.dst_time_type =

#Configure the start time of DST. The default value is 1/1/0.
#If the DST type is configured as By Date, the value format is Month/Day/Hour. For example, the value 5/20/10

means the start time is at 10:00 on May 20.
#If the DST type is configured as By Week, the value format is Month/Day of Week/Day of Week Last in Month/Hour of

Day.
#For example, the value 1/4/2/5 means the start time is at 5 o'clock on Tuesday of the 4th week in January.
local_time.start_time =

#Configure the end time of DST. The default value is 12/31/23. The value format is the same to the start time.
local_time.end_time =

#Configure the offset time (in seconds). It ranges from -300 to 300, the default value is 60.
local_time.offset_time =

#Configure the time format; 0-12 Hour, 1-24 Hour (default);
local_time.time_format = 0-12 Hour

#Configure the date format; 0-WWW MMM DD (default), 1-DD-MMM-YY, 2-YYYY-MM-DD, 3-DD/MM/YYYY, 4-MM/DD/YY, 5-DD MMM

YYYY, 6-WWW DD MMM;
local_time.date_format = 4

#Enable or disable the DHCP Time; 0-Disabled (default), 1-Enabled;
local_time.dhcp_time =


Attached File(s)
.txt  y000000000007minimal.txt (Size: 7.11 KB / Downloads: 17)
07-26-2013 10:37 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Barnabas Offline
Member
***

Posts: 52
Joined: May 2013
Reputation: 0
Post: #2
RE: TFTP connecting but config not updating
Darren,

You may want to include some logs from TFTP server (on Linux it is /var/log/messages) and, if you can see any messages on the phone display.

This will help identify if your phone hits the TFTP server, and if, it can download any config file.

Barnabas
07-27-2013 04:47 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
kg4ysy Offline
Member
***

Posts: 65
Joined: May 2013
Reputation: 2
Post: #3
RE: TFTP connecting but config not updating
I'm with Barnabas for the files. I'd also be interested in seeing the log file from the phone. I bet there is an error in that file somewhere. You can get this log from the web interface.
07-30-2013 01:46 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Darren.Jordaan Offline
Junior Member
**

Posts: 13
Joined: Jun 2013
Reputation: 0
Post: #4
RE: TFTP connecting but config not updating

.tar  syslog.tar (Size: 558.5 KB / Downloads: 1)
(07-30-2013 01:46 AM)kg4ysy Wrote:  I'm with Barnabas for the files. I'd also be interested in seeing the log file from the phone. I bet there is an error in that file somewhere. You can get this log from the web interface.

Ok I'm attaching the log file from the phone. Unfortunately I don't know how to retrieve the TFTP log files due to the TFTP server being integrated/hosted on a Zultys MX250 IPPBX.
07-30-2013 02:49 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
kg4ysy Offline
Member
***

Posts: 65
Joined: May 2013
Reputation: 2
Post: #5
RE: TFTP connecting but config not updating
The file is full of "network is unreachable" messages. Are you sure this phone is on the network?
07-30-2013 03:21 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Darren.Jordaan Offline
Junior Member
**

Posts: 13
Joined: Jun 2013
Reputation: 0
Post: #6
RE: TFTP connecting but config not updating

.tar  syslog.tar (Size: 27.5 KB / Downloads: 1)
(07-30-2013 03:21 AM)kg4ysy Wrote:  The file is full of "network is unreachable" messages. Are you sure this phone is on the network?

Yes, definitely. I restarted the phone and re-exported the system log, updated log file attached.
07-30-2013 04:11 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Bryan Nelson Offline
Member
***

Posts: 71
Joined: Feb 2013
Reputation: 0
Post: #7
RE: TFTP connecting but config not updating
The phone is getting the server address from DHCP, so it is able to get on the network, but then the request times out:

Jul 29 20:09:06 autop[428]: [./src/fileStream.cpp :897 ] IFO Receive 4000ms timeout at 1..
Jul 29 20:09:06 autop[428]: [./src/fileStream.cpp :535 ] IFO Open URL Fail

The file may just may not be on the server, or more likely with tftp, the tftp server doesn't have the proper permissions on the file itself.

The Network Unreachable message may also indicate an actual networking issue, which would also lead to the timeout. You could run a test without option 66 set -- see if the phone stays online, then send a provisioning request through the web gui manually to see what happens.

Edit -- Your tftp server is also showing a different address than what you have in your config file:

IFO type = tftp,hostname = 216.62.212.252, username = , psw = ******, port = -1
auto_provision.server.url = 10.10.11.252


Good Luck!
(This post was last modified: 07-30-2013 04:38 AM by Bryan Nelson.)
07-30-2013 04:32 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Darren.Jordaan Offline
Junior Member
**

Posts: 13
Joined: Jun 2013
Reputation: 0
Post: #8
RE: TFTP connecting but config not updating
Ah thank you, yes it appears our DHCP server points to the 216 address for TFTP however the phones are unable to reach that subnet. We've modified the DHCP to point to the same subnet range as the phones and the Wireshark trace is showing successful TFTP data transfer however the config file parameters still are'nt updating on the phone. I'm attaching a current syslog as well as my minimized config. file for your review.


Attached File(s)
.txt  y000000000007Forum.txt (Size: 788 bytes / Downloads: 21)
.tar  syslog.tar (Size: 29.5 KB / Downloads: 3)
07-30-2013 09:22 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Bryan Nelson Offline
Member
***

Posts: 71
Joined: Feb 2013
Reputation: 0
Post: #9
RE: TFTP connecting but config not updating
Yeah, the phone still can't open the file due to encryption(?) Not sure on that, but you are closer, getting responses from the tftp server. Check your tftp logs if possible, you may still have an error there.

Jul 30 13:13:32 autop[418]: [./src/networkServer.cpp :276 ] WAR Get device mac: [0015651fbe2d]
Jul 30 13:13:32 autop[418]: [./src/autoParser.cpp :428 ] IFO Use Config COM AES KEY
Jul 30 13:13:32 autop[418]: [./src/autoParser.cpp :440 ] IFO AES Key is decrypted !
Jul 30 13:13:32 autop[418]: [./src/autoParser.cpp :262 ] ERR Fail to decrypt file!
Jul 30 13:13:32 autop[418]: [./src/autoParser.cpp :637 ] ERR DecryptionFile error!
Jul 30 13:13:32 autop[418]: [./src/networkServer.cpp :276 ] WAR Get device mac: [0015651fbe2d]
Jul 30 13:13:32 autop[418]: [./src/autoParser.cpp :537 ] IFO autoParser::OpenDownloadStream ...
07-30-2013 10:44 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Darren.Jordaan Offline
Junior Member
**

Posts: 13
Joined: Jun 2013
Reputation: 0
Post: #10
RE: TFTP connecting but config not updating
How to you open the syslog file to read the contents?
07-31-2013 09:08 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  W73P Custom Handset Config to Disable Noise Cancellation vikramgupte 2 2,966 10-25-2022 07:37 AM
Last Post: vikramgupte
  Hard reset a T20P and erase config Kevinlloyd 32 131,180 12-02-2021 05:54 AM
Last Post: callisap
  Daily config check oliv 2 5,960 07-07-2021 01:08 AM
Last Post: oliv
  settings are not updating from autoprovision server AdmshipYard 1 5,870 02-20-2021 04:20 PM
Last Post: AdmshipYard
  [OT] Apache 2.4 config allowing PUT oliv 0 3,879 10-28-2020 03:23 PM
Last Post: oliv
  Repeated AutoProvision TFTP/HTTP Issue patrick_keys 1 5,605 02-10-2020 05:04 PM
Last Post: jolouis
  y000000000000.boot and encrypted config files kapetrosyan 6 15,591 01-17-2020 11:22 PM
Last Post: kapetrosyan
  Bulk Manual config Tx Series ( With Server URL, Username & Password ) stéphane 2 8,154 01-28-2019 04:01 PM
Last Post: jolouis
  Enabling Remote Phone Book via Config File moosemasterson 6 30,125 04-11-2018 02:06 PM
Last Post: sbsllc
  Autoprovision - config file encryption problem oea 7 25,842 04-11-2018 11:03 AM
Last Post: Rus

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication