Yealink Forums
Automated mass T46 backup system - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: T4x Series (/forumdisplay.php?fid=31)
+--- Thread: Automated mass T46 backup system (/showthread.php?tid=2174)

Pages: 1 2


Automated mass T46 backup system - bsanders - 07-31-2014 09:43 PM

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.


RE: Automated mass T46 backup system - Yealink Support - 08-05-2014 03:18 PM

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


RE: Automated mass T46 backup system - bsanders - 08-07-2014 12:48 AM

Hi Support,

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

thanks.


RE: Automated mass T46 backup system - timalex - 08-07-2014 01:16 AM

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.


RE: Automated mass T46 backup system - rlsabin - 08-07-2014 05:50 AM

This would definitely be a useful addition for all the Yealink phones .


RE: Automated mass T46 backup system - Yealink Support - 08-12-2014 08:36 AM

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.


RE: Automated mass T46 backup system - mivk - 06-09-2017 04:31 PM

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?


RE: Automated mass T46 backup system - jolouis - 06-12-2017 02:06 PM

(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.


RE: Automated mass T46 backup system - mivk - 06-12-2017 05:43 PM

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.


RE: Automated mass T46 backup system - mivk - 06-12-2017 05:46 PM

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.