[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
Automated mass T46 backup system
Author Message
bsanders Offline
Junior Member
**

Posts: 31
Joined: May 2014
Reputation: 0
Post: #1
Automated mass T46 backup system
Good Day,

I have over 100 T46G and it would be nice to have a centralized backup system. I am using templates but I would like to keep any end-user configuration changes as well. Is there such a thing?

thanks.
07-31-2014 09:43 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Yealink Support Offline
Administrator
*******

Posts: 2,683
Joined: Dec 2012
Reputation: 25
Post: #2
RE: Automated mass T46 backup system
Hi bsanders,

Do you mean you want to set the SIP server2 in the Yealink phone?
If yes, you can via autop to set the SIP server2. The sentence are:
Code:
account.1.sip_server.2.address =
account.1.sip_server.2.port =
account.1.sip_server.2.expires =
account.1.sip_server.2.retry_counts =
account.1.sip_server.2.failback_mode =
account.1.sip_server.2.failback_timeout =
account.1.sip_server.2.register_on_enable =

please refer to the autop guide to set it. you can get it from here.
guide

thanks
08-05-2014 03:18 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
bsanders Offline
Junior Member
**

Posts: 31
Joined: May 2014
Reputation: 0
Post: #3
RE: Automated mass T46 backup system
Hi Support,

An automated version of "manually exporting the configuration from the GUI". Something like that exist?

thanks.
08-07-2014 12:48 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
timalex Offline
Junior Member
**

Posts: 36
Joined: Jun 2014
Reputation: 0
Post: #4
RE: Automated mass T46 backup system
Idea bsanders is absolutely correct. Two options would be useful:

a) Centralized version. Ability to grap & download the config's by a cron script to a ftp server.

b) Phones version, as done with autoprovision params. Add some parameters like (t)ftp server, user & pwd, interval, days, time, etc.

Would love to see something like it as soon as possible. Thx.
(This post was last modified: 08-07-2014 01:44 AM by timalex.)
08-07-2014 01:16 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
rlsabin Offline
Moderator
*****

Posts: 61
Joined: Nov 2012
Reputation: 2
Post: #5
RE: Automated mass T46 backup system
This would definitely be a useful addition for all the Yealink phones .
(This post was last modified: 08-07-2014 05:51 AM by rlsabin.)
08-07-2014 05:50 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Yealink Support Offline
Administrator
*******

Posts: 2,683
Joined: Dec 2012
Reputation: 25
Post: #6
RE: Automated mass T46 backup system
Hi bsanders&timalex&rlsabin,

The requirement what you mentioned is to backup the configuration and upload to server when configuration changes ,right?
If yes,maybe you can refer to below syntax in AutoP file:

################################################################################​#######
## Autoprovision ##
################################################################################​#######
### It enables or disables the phone to synchronize personalized configuration settings with the auto provisioning server.
### If it is set to 1 (Enabled), personalized configuration settings via web/phone user interface are saved in the MAC-local.cfg file on the phone,
### and then the phone will upload the MAC-local.cfg file to the provisioning server. During auto provisioning, the phone requests to download the MAC- local.cfg file on the provisioning server.
### 0-Disabled, 1-Enabled. The default value is 0.
auto_provision.custom.sync =

### It enables or disables the phone to protect personalized configuration settings even after auto provisioning.
### If it is set to 1 (Enabled), personalized configuration settings via web/phone user interface will be protected and remained after auto provisioning.
### 0-Disabled, 1-Enabled. The default value is 0.
auto_provision.custom.protect =
auto_provision.custom.upload_method =

You can also lookup the AutoP guide for detail.
But the function only support in T2x with x.72.0.30 ,as for T4x,we will add this function in V73.The firmware V73 will be released in Q3.

thanks.
(This post was last modified: 08-12-2014 03:34 PM by Yealink Support.)
08-12-2014 08:36 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
mivk Offline
Banned

Posts: 9
Joined: Nov 2016
Post: #7
RE: Automated mass T46 backup system
I'm also looking for some way to get all the custom settings from all our phones (T48G).

The web interface lets me download the settings, but I cannot script this because the login is some custom javascript thing, not a standard web login. So I was not able to use wget or curl to automate downloading the configs.

Is there some other way to automatically login into every phone and download the config?

Or is there some way to enable SSH or Telnet?
06-09-2017 04:31 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
jolouis Offline
Moderator
*****

Posts: 339
Joined: Oct 2013
Reputation: 6
Post: #8
RE: Automated mass T46 backup system
(06-09-2017 04:31 PM)mivk Wrote:  The web interface lets me download the settings, but I cannot script this because the login is some custom javascript thing, not a standard web login. So I was not able to use wget or curl to automate downloading the configs.

Not saying this is the proper way to do it, but you can definitely use cURL to login to the phone and issue commands. The trick is you need to setup cURL to have a local cookiejar and to store incoming cookies/send cookies with each request.

Issuing a command to the phone is then a simple two step process:
a) Send a POST to the login page with the credentials
b) If successful you will get an auth cookie set and returned.
c) Send a POST to the actual page/interface you want to trigger. If you have done it properly, cURL will send the previous auth cookie along with the request and the phone will do what you ask.
06-12-2017 02:06 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
mivk Offline
Banned

Posts: 9
Joined: Nov 2016
Post: #9
RE: Automated mass T46 backup system
Unfortunately, keeping cookies doesn't help. The data that is posted at login is some obfuscated stuff generated by javascript. Also, if you just disable javascript in the browser, you cannot login.

For the curious, this is what gets POSTed during a normal browser login:

Code:
POST http://192.168.44.184/servlet?p=login&q=login Load Flags[LOAD_DOCUMENT_URI  LOAD_INITIAL_DOCUMENT_URI  ] Content Size[0] Mime Type[application/x-unknown-content-type]
   Request Headers:
      Host[192.168.44.184]
      User-Agent[Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0]
      Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
      Accept-Language[en-US,en;q=0.5]
      Accept-Encoding[gzip, deflate]
      Content-Type[application/x-www-form-urlencoded]
      Content-Length[703]
      Referer[http://192.168.44.184/servlet?p=login&q=loginForm&jumpto=status]
      Cookie[JSESSIONID=b974087751669c90]
      Connection[keep-alive]
      Upgrade-Insecure-Requests[1]
   Post Data:
      key[97dc68afd295986d85dc33371c0c0c966c1430b33dfd7bebac99965e8e38481deb7573823b882e63​614be37b9149ff3fb54518495cafb43ad87e927d79a53f218532e993f197ae92d7b32382b2604a41​838b81071bd7b2cab7dbd1eedd52ba2f14060bf854b00cfe54eb510db88cf6dea9bebdd424302429​bbcc2f9be01988f7]
      iv[01e35807cf377e1ff03a712d8cdead11b1feb0d715bd27e65654f7654561632e080471e41da1a26a​fc8de6b8907ad99f398911a32fec0c49f34fdc02f44cfb1fc77b9be4b15fc51efc90995141e5344a​764fe430024714f883b67be68211550dca1ca97e0e22e7441139547426b2d24313a56bbf6f13963f​5cbe78ec9d0ca8b2]
      data[dEDXyZxs6WZ7YBmIt8NasFXEUoEzHMIB2ot5uLnkUcioTa7zsBLderGSSNXR7reZBEwSmi3Ztm6K6YDJ​aLjqLpN4jsSgagAZh7pK9MQ9MfZEazKYm8Go9KGTEwTL15PooGv4U9GO0EnK5M52u%2Fs29A%3D%3D]
      jumpto[status]
      acc[]
   Response Headers:
      Location[/servlet?p=status&q=load]
      ContentType[text/html]
      Content-Length[0]
      Date[Mon, 12 Jun 2017 17:27:48 GMT]
      Server[embed httpd]

So I guess I'm trying to find some workaround/backdoor/whatever to be able to get the pages without javascript.

Or some curl or wget equivalent which supports javascript, but I don't think that exists.
06-12-2017 05:43 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
mivk Offline
Banned

Posts: 9
Joined: Nov 2016
Post: #10
RE: Automated mass T46 backup system
Unfortunately, keeping cookies doesn't help. The data that is posted at login is some obfuscated stuff generated by javascript. Also, if you just disable javascript in the browser, you cannot login.

For the curious, this is what gets POSTed during a normal browser login:

Code:
POST http://192.168.44.184/servlet?p=login&q=login Load Flags[LOAD_DOCUMENT_URI  LOAD_INITIAL_DOCUMENT_URI  ] Content Size[0] Mime Type[application/x-unknown-content-type]
   Request Headers:
      Host[192.168.44.184]
      User-Agent[Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0]
      Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
      Accept-Language[en-US,en;q=0.5]
      Accept-Encoding[gzip, deflate]
      Content-Type[application/x-www-form-urlencoded]
      Content-Length[703]
      Referer[http://192.168.44.184/servlet?p=login&q=loginForm&jumpto=status]
      Cookie[JSESSIONID=b974087751669c90]
      Connection[keep-alive]
      Upgrade-Insecure-Requests[1]
   Post Data:
      key[97dc68afd295986d85...]
      iv[01e35807cf377e1ff03a...]
      data[dEDXyZxs6WZ7YBmIt8Nas...]
      jumpto[status]
      acc[]
   Response Headers:
      Location[/servlet?p=status&q=load]
      ContentType[text/html]
      Content-Length[0]
      Date[Mon, 12 Jun 2017 17:27:48 GMT]
      Server[embed httpd]

(key, iv and data shortened in the hope of passing some stupid anti-spam filter)

So I guess I'm trying to find some workaround/backdoor/whatever to be able to get the pages without javascript.

Or some curl or wget equivalent which supports javascript, but I don't think that exists.
06-12-2017 05:46 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
  Connect Yealink T46U to FreePBX system via Synology Site to Site VPN TF2023 0 752 10-10-2023 11:48 PM
Last Post: TF2023
  Mass Factory Reset stratos 3 8,478 05-16-2019 03:09 PM
Last Post: jolouis
Exclamation Local Contacts Backup Not Working Garan 1 6,443 08-28-2017 04:25 PM
Last Post: complex1
  Backup outbound proxy server don`t work for T4x,T2x tommy 1 6,074 06-02-2016 05:11 AM
Last Post: Yealink_Michael
  Mass deletion Dan Steely 8 16,035 01-19-2016 05:49 AM
Last Post: Karl_Yealink
  BLF Backup Server T46G jrosaso 2 7,447 06-13-2015 02:23 AM
Last Post: jrosaso
  Mass config change with hosted VOIP provider charper 3 14,050 04-07-2015 08:50 PM
Last Post: Yealink_Peter

Forum Jump:


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

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